Skip to Content

Cross entity badi

hi Experts,

I wrote a cross ET badi to copy payment term field value from company code to , other cc and all purchasing orgs.

The badi is working for copying payment terms from company code to purchasing org , but when I write data in exact same way for writing zterm in Bp_compny , if more than 1 cc exist for that vendor, it is not working . Only updates po but not other cc,

Please provide of any hints.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    Jul 17, 2017 at 06:13 PM

    Hi all,

    thank you for your inputs.

    I was able to solve the issue:

    While writing PO, payment terms, usmd_fag was automatically set to abap_true

    however while Company code, flag was set to true only for the CC i am changing , after i set the flag for all CC in the loop. it is working.

    Also, they key filled up for both CC and PO is just the BP_header (BP#)

    Thank You again. Shaila.

    Add comment
    10|10000 characters needed characters exceeded

  • May 17, 2017 at 02:44 PM

    Hi,

    It would be great if you can add some more details..what you mean by 'write data in exact same way for writing zterm in Bp_compny'.

    Thank you
    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    May 26, 2017 at 07:06 AM

    Hello Shaila,

    Since the BP_CUS_CC will be common for all the company codes, please use the Single Entity badi. In the CT_DATA you will get all the company code for the given BP. In this badi, you can copy the vaues between the Company codes.

    Add comment
    10|10000 characters needed characters exceeded