on 06-14-2011 1:22 PM
Dear Expert,
I would like to get Confirmation number by PO Number. Please let me know what the Function module should I use in SRM
example : I have a PO number, I want to know the confirmations number related for these PO number
Many Thanks
See if this works out for you:
FM: BBP_PD_CONF_GETLIST
Parameter: I_FOR_PO_ID = <your PO ID>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
please find the code below:
DATA : lv_po TYPE CRMD_ORDERADM_H-OBJECT_ID,
lv_conf TYPE CRMD_ORDERADM_H-OBJECT_ID,
lt_pdlist TYPE TABLE OF BBP_PDS_PDLIST,
ls_pdlist TYPE BBP_PDS_PDLIST,
lt_messages TYPE TABLE OF BBP_PDS_MESSAGES,
lv_po = po num ber
*Get the confirmation number for given po number
CALL FUNCTION 'BBP_PD_CONF_GETLIST'
EXPORTING
I_FOR_PO_ID = lv_po
TABLES
E_PDLIST = lt_pdlist
E_MESSAGES = lt_messages.
LOOP AT lt_pdlist into ls_pdlist WHERE OBJECT_TYPE = 'BUS2203'.
lv_conf = ls_pdlist-object_id
ENDLOOP.
Regards,
Neelima
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.