Skip to Content

Adding extensions to Decentralized_wm idocs: BADI seems not to work (please advise)

I've set up a decentralized warehouse system for a customer, and idocs are generated successfully. However, we want to send some additional information to the external system. For this, I wanted to use the BADI (method exit_saplv50i_003 of SMOD_V50B0001 for User Exit BAPI Replication of Outbound Deliveries).

So I implemented the BADI, activated it, and tried to test it.

But it won't stop at my breakpoints in there (not even when I activate update debugging), and when I program some code to make it add a line to IT_EXTENSION1 with some recognizable content, that also fails. Still, my idoc is created normally (only without a segment for extension1).

Any ideas what I might be doing wrong?

Add comment
10|10000 characters needed characters exceeded

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Mar 07, 2017 at 01:05 PM


    I managed to fix the issue. For any others who would have the need: use method EXIT_SAPLV50K_007 and not EXIT_SAPLV50K_003 to add data to the outgoing idoc. (probably the ~003 is used for processing incoming data).

    Thanks SAP for the very summary documentation :)

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      It wasn't, but that's probably my fault. I missed the column 'processing type' - also I didn't have everything set up back then, I now do so there's communication with the external system (this is the first time I get to spend real time on this since your response).

      In any case, do you have any info on what the 'verification' methods do? Can we change any delivery data in there?

  • Posted on Feb 06, 2017 at 07:04 PM

    Did you follow the example code from OSS note 351303 - Transfer of additional deliv. data in decentralized scenario

    Add comment
    10|10000 characters needed characters exceeded

    • In fact, the example is not clear to me...

      It seems like it should be enough to simply add a line to IT_EXTENSION1, and that this line should be added to the idoc 'as is'.

      Now, since I don't actually pass through my code at all, it's a bit of guessing work where I should be doing this: is it in method IF_EX_SMOD_V50B0001~EXIT_SAPLV50I_003 (User Exit BAPI Replication of Outbound Deliveries) or in EXIT_SAPLV50K_007 (User Exit BAPI Replication of Outbound Deliveries (Exit))?