cancel
Showing results for 
Search instead for 
Did you mean: 

Access to Global data of SC in SRM 7.0

Former Member
0 Kudos

Experts,

We are in the process of upgrading SRM5.0 to 7.0, we got the below logic to access the global data of shopping cart in DOC_CHANGE badi, after the upgradation, we are trying to find similar structures in SRM7.0, trying to figure out with - SAPLBBP_SC_APP but couldnt find GS_GLOBAL or similar structure.

could you pls help me out on this.

CONSTANTS: c_globalname TYPE string VALUE '(SAPLBBP_SC_UI_ITS)GS_GLOBAL'.

CONSTANTS: c_scname TYPE string VALUE '(SAPLBBP_SC_UI_ITS)GS_SC'.

FIELD-SYMBOLS: <lf_global> TYPE bbps_sc_app_global,

<lf_sc> TYPE bbps_sc_app_document.

ASSIGN (c_globalname) TO <lf_global>.

ASSIGN (c_scname) TO <lf_sc>.

Thanks

SR

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

You should retrieve it using the BORF buffer which contains the latest SC data. The following logic would help:

data lo_pd_model type ref to /sapsrm/if_pdo_model_access

lo_pd_model = /sapsrm/cl_pdo_model_factory=>get_instance()

lo_pd_model-> get_detail

Regards,

Prasanna