Skip to Content
0

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

Feb 06, 2017 at 01:44 PM

141

avatar image

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?

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

Jürgen L
Feb 06, 2017 at 07:04 PM
1

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

Show 2 Share
10 |10000 characters needed characters left characters exceeded

Thanks, I was not aware of that note. I'll take a look at the example code and get back to you all with the result (some days from now).

0

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))?

0
Smeets Rob Mar 07, 2017 at 01:05 PM
0

Hi,

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 :)

Show 2 Share
10 |10000 characters needed characters left characters exceeded

wasn't this clear from the note I gave you?

Scenario Object Processing type User exit
SAVE_REPLICA IBDLV Outbound processing EXIT_SAPLV50K_005
SAVE_REPLICA OBDLV Outbound processing EXIT_SAPLV50K_007
SAVE_REPLICA IBDLV Inbound processing EXIT_SAPLV50I_001
SAVE_REPLICA OBDLV Inbound processing EXIT_SAPLV50I_003

1

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?

0