cancel
Showing results for 
Search instead for 
Did you mean: 

Confirmation screen

Former Member
0 Kudos

Hi Expert,

How can I read the Purchase Order number in the confirmation screen when executing BBP_DOC_CHECK_BADI .

Thanks.

Regards,

Henry

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi,

I need to retrieve the PO number during creating the confirmation.

Thanks.

Regards,

Henry

Former Member
0 Kudos

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.

Former Member
0 Kudos

Hi Zubair,

Thanks for your reply, however that is not what I'm asking for.

I have resolved the issue.

Thanks.

Regards,

Henry