cancel
Showing results for 
Search instead for 
Did you mean: 

Get GUID from shopping card

Former Member
0 Kudos

Hello, i am pretty new to SRM and Workflow and i need to find out, how i can access shopping card details in my implementation of /SAPSRM/IF_WF_AREA~GET_RESPONSIBLE_APPROVERS. I need the GUID from shopping card to call several other function modules which where developed by some othere guys long ago. Is there any function module i have to call? F4-search did not help. Any help from your side would be highly appreciated.

Kind regards,

Matt

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

You can use FM BBP_PD_SC_GETDETAIL to fetch all SC details.

Regards,

Nikhil

Former Member
0 Kudos

Hi,

ok, this hint was good. But i realized that i need the number of the created shopping cart as well. I searched this forum and found a thread saying that i can use this FM to obtain the GUID. But how can i determine the object_id of the shopping card?


CALL FUNCTION 'BBP_PD_SC_GUID_GET'
  EXPORTING
    IV_OBJECT_ID       = object_id
 IMPORTING
   EV_GUID            = lf_guid
*   EV_OBJECT_ID       =
  TABLES
    ET_MESSAGES        = lt_messages

Is it a field in the Interface or in memory? Or do i have to use

SAP_WAPI_CREATE_WORKLIST

and

SAP_WAPI_GET_OBJECTS

to obtain the shopping cart number?

Thanks for your help!

Kind regards, Matt

Former Member
0 Kudos

Hi,

You can get all the SC details from the Fm BBP_PD_SC_GETDETAIL. In this FM you should pass the SC number as Object ID.

CRMD_ORDERADM_H table have all the details of SC.

( Take the SC number from the Initiators to get some Idea regarding this. Give the range of SC like 0001 to 0020 )

In this table you will get the respective SC number

I hope it will help you.

Rewards accepted.

Regards

Krishhna

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi ,

Since SAP is passing the SC guid to method 'GET_APPROVERS_BY_AREA_GUID', if you want SC guid to be available in the method 'GET_APPROVERS_BY_AREA_GUID' then pass the GUID as leading object in

GET_AREA_TO_ITEM_MAP then get the leading object in the 'GET_APPROVERS_BY_AREA_GUID' method.

Saravanan