cancel
Showing results for 
Search instead for 
Did you mean: 

SC number or SC parent GUID for already ordered/saved SC

Former Member
0 Kudos
81

Hello experts,

I have a custom logic to place for already ordered/saved SC in web dynpro component /SAPSRM/WDC_DODC_NA view V_DODC_ATTACHMENT in SRM 7.0 landscape.

I have created an post exit for onactionclick_description and custom logic is dependent on SC number based on which I will fetch details from one custom table and proceed.

Is there any way to get shopping cart in this webdynpro post exit to go ahead. Any class/method which gives us SC number for current instance?

Accepted Solutions (0)

Answers (2)

Answers (2)

laurent_burtaire
Active Contributor
0 Kudos

Hello,

try with this:


lv_item_guid   =  wd_this->mo_dodm_attach->/sapsrm/if_cll_dodm_na~get_item_guid( ).

or with:

lv_item_guid = wd_comp_controller->mv_sel_itm_guid.


You will get the SC item guid.


Regards.



Laurent,

Former Member
0 Kudos

Hello Laurent,

I have noticed that this returns me some guid which is different from actual GUID when i go and check in BBP_PD.

For ex.52FAE622583E0F20E1008000355A2A42 is something which i receive using above but actual guid in BBP_PD for that item is 52E8D2A7D4230AE0E1008000355A2A42.

Any pointers here.

Anurodh.

laurent_burtaire
Active Contributor
0 Kudos

Hello,

maybe it corresponds to the SET GUID of attachment or GUID of attachment.

Check also /SAPSRM/CL_CH_WD_DODM_NA class.

Regards.

Laurent

konstantin_anikeev
Active Contributor
0 Kudos

Hi,

try the methods of wd_comp_controller->mo_bom

such as get_pdo

Regards

Konstantin