on 06-04-2009 7:58 AM
Hi Expert,
How can I read the Purchase Order number in the confirmation screen when executing BBP_DOC_CHECK_BADI .
Thanks.
Regards,
Henry
Hi Henry,
Call the FM: BBP_PD_CONF_GETDETAIL inside BPP_DOC_CHECK_BADI by passing the confirmation number.
You will get the PO number in E_HEADER-BE_REFOBJ field.
Thanks,
Pradeep
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
method IF_EX_BBP_DOC_CHECK_BADI~BBP_DOC_CHECK.
data: ls_header TYPE BBP_PDS_CONF_HEADER_D,
lt_ITEM TYPE TABLE OF BBP_PDS_CONF_ITEM_D.
if flt_val eq 'BUS2203'.
CALL FUNCTION 'BBP_PD_CONF_GETDETAIL'
EXPORTING
I_GUID = iv_doc_guid
IMPORTING
E_HEADER = ls_header
TABLES
E_ITEM = lt_item.
endif.
endmethod.
Use the above mentioned code. The guid which is an importing parameter should be given as an input to the function module. You will get the purchase oder number in the field BE_REFOBJ in the item table.
Regards,
Zubair.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.