cancel
Showing results for 
Search instead for 
Did you mean: 

Confirmation Check Badi

Former Member
0 Kudos

We implemented the badi BBP_DOC_CHECK_BADI for the shopping cart, which allowed us to throw error and warning messages during the check of the SC.

I am now on the hunt for a Confirmation check badi or a place to add error messages during check of the confirmation.

Any known exits, badis, or places to add Implicit enhancements?

Thanks,

Travis

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Just as I post this I find that I can just add the confirmation business object BUS2203 to my filter on the same BBP_DOC_CHECK_BADI to add checks for the Confirmations.

I'll answer my own question in case anyone else has the same issue.

Former Member
0 Kudos

Hi Travis,

How do you read the Purchase Order number from the confirmation screen in BBP_DOC_CHECK_BADI ?

Thanks.

Regards,

Henry

Former Member
0 Kudos

Hi Henery,

Implement the badi, create a method read confirmation which calls bbp_pd_conf_getdetail, see below. Create the e_* structures as class attributes and you will see the po in the header structure field BE_REFOBJ.

method READ_CONFIRMATION.

check ( conf_guid is not initial ) or

( conf_i_object_id is not initial ).

refresh( ).

call function 'BBP_PD_CONF_GETDETAIL'

EXPORTING

I_GUID = conf_guid

I_OBJECT_ID = conf_i_object_id

  • I_REF_DOC_NO =

  • I_PARTNER_NO =

I_WITH_ITEMDATA = 'X'

  • I_ATTACH_WITH_DOC = ' '

  • I_ITEM_SORTED_BY_HIERARCHY = 'X'

  • I_READ_FROM_ARCHIVE = ' '

IMPORTING

E_HEADER = e_header

ET_ATTACH = et_attach

TABLES

E_ITEM = e_item

E_ACCOUNT = e_account

E_PARTNER = e_partner

E_LONGTEXT = e_longtext

E_ORGDATA = e_orgdata

E_STATUS = e_status

E_MESSAGES = e_messages

E_TAX = e_tax

E_HCF = e_hcf

E_ICF = e_icf

E_ACTVAL = e_actval

E_ACC_ACTVAL = e_acc_actval

E_HEADER_REL = e_header_rel

E_ITM_REL = e_itm_rel

E_OVE_REL = e_ove_rel

E_PRIDOC = e_pridoc .

endmethod.