Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

RBDAPP01 - First IDoc the CMOD works all subsequent ones don't..

Former Member
0 Kudos

Hi All

I have an interesting issue with RBDAPP01, I have developed a CMOD in Include ZXVEDU04 to block duplicate orders based on the cust PO number and to convert the quantity coming in if certain Units of measure are specified by the trading partners.

When I test this with a single IDoc in WE19 everything works as expected.

If however I process multiple IDocs using RBDAPP01- the first IDoc is processed successfully, but ALL of the subsequent IDocs do not work correctly...

The user exit is being called for all IDocs as there is other code in the exit that is working for all of the IDocs and not just the first..

Has anyone come across this problem before?

Your views on this would be greatly appreciated..

Many Thanks.

1 REPLY 1

Former Member
0 Kudos

The issue was with a static variable that was not being re-initialised when each Idoc was processed, hence the reason why it worked for one and not for multiple IDocs.

Please note therefore that SAPLVEDA does not initialise its variables for each IDoc that is processed.