Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Need the Created by data in the shopping cart

Hi Experts,

I want to fetch the created by in the shopping cart and use it in the BADI BBP_ITEM_CHECK, when I wrote the select statement in the BADI in fetching the Created by from the CRMD_ORDER_H table then I am recieving a dump.

Here is the sample code

DATA: l_wa_messgs TYPE bbp_smessages_badi, "Error Messages

l_message TYPE bapi_msg, "Message Text

t_item TYPE bbp_pds_sc_item_d, "Item Data

c_hier TYPE crmt_item_type_db VALUE 'HIER',"Item Category

DATA : l_guid TYPE bbp_guid,

wa_created_by TYPE comt_created_at_usr.

l_guid = iv_doc_guid.

SELECT SINGLE created_by

FROM crmd_orderadm_h

INTO wa_created_by

WHERE guid = l_guid.

*FM Fetch all the data to a position of a personal favorite




- -

Thanks in advance.



Former Member
Not what you were looking for? View more on this topic or Ask a question