Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Document Change Badi don't fill change parameters

Hi all,

I try to use DOC_CHANGE_BADI for Auctions. When I change parameters, they don't show in my document. Even item's are empty.

What am I doing wrong?

Sayid

Former Member
Former Member replied

Again...

Look at example code and this thread:

Doc Change Badi

 data: ls_header      type bbps_auc_header_badi,
        lt_item        type bbpt_auc_item_badi,
        ls_item        type bbps_auc_item_badi,
        ls_item_import type bbp_pds_auc_item_icu,
        lt_partner     type bbpt_pds_partner,
        ls_partner     type bbp_pds_partner,
        lt_orgdata     type bbpt_pds_org,
        ls_orgdata     type bbp_pds_org.

* header data
  move-corresponding is_header to ls_header.

* show me the string :]
  if ls_header-zzauctest is not initial and ls_header-description np 'TEST:*'.
    concatenate 'TEST: ' ls_header-description into ls_header-description separated by space.
  endif.

* ...or hide it :D
  if ls_header-zzauctest is initial and ls_header-description cs 'TEST: '.
    shift ls_header-description by 6 places.
  endif.

* item data
    loop at it_item into ls_item_import.
      move-corresponding ls_item_import to ls_item.
    endloop.

* partner data
  loop at it_partner into ls_partner.
    append ls_partner to lt_partner.
  endloop.

* organisation data
  loop at it_orgdata into ls_orgdata.
    append ls_orgdata to lt_orgdata.
  endloop.

  es_header    = ls_header.
  et_item[]    = lt_item[].
  et_partner[] = lt_partner[].
  et_orgdata[] = lt_orgdata[].

Regards,

Marcin

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question