Need the Created by data in the shopping cart
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
WHERE guid = l_guid.
*FM Fetch all the data to a position of a personal favorite
CALL FUNCTION 'BBP_SCFAVO_ITEM_GETDETAIL'
Thanks in advance.