Skip to Content
avatar image
Former Member

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    avatar image
    Former Member
    Jan 28, 2007 at 04:48 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jan 28, 2007 at 04:45 PM

    Hi Sayid,

    When You are using DOC_CHANGE_BADI (probably method AUC_CHANGE) You must fill all export tables even You don't use it.

    Regards,

    Marcin Gajewski

    Add comment
    10|10000 characters needed characters exceeded