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: 

Inbound IDOC process error

Former Member
0 Kudos
225

Hi

While an Inbound is being processed it is not behaving as per the design and if the same type of idoc is reprocessed through BD87 is it behaving as per the design.

In detail, the idoc will create a purchase order based on reservation number in R/3 and the quantity needs to be checked against the availability. If the quantity is more in the idoc counting all line items of idoc segments it should not be posted giving that the quantity is not available. If it is automated it is not checking, but while testing on creation of an inbound idoc and reprocessed the validation is happenning.

So, please help me in understanding as why the idoc is not getting validated when it is automated ans whne it is reprocessed through BD87 it is getting validated.

Thanks

Shankar

5 REPLIES 5

Former Member
0 Kudos
167

Hi,

be aware of that you cannot set a breakpoint if it is processed automatically.

So are you really sure that your code is not processed?

Put an endless loop in it and have a look in sm50 to see if the automated process gets stuck in it.

Best regards,

Oliver

0 Kudos
167

Hi Oliver

Thanks for the response.

while processing it thorugh test tool(WE19) particular code part is not been executed where the quantity is being validated. But while reprocessing through BD87 it is being validated. Just wanted to know why is it behaving so.

Thanks

Shankar

0 Kudos
167

Hi Shankar,

how do you notice that your code is not executed.

Usually I would say it should.

Therefore I recommended to implement an infinite loop to make sure that it is really not executed.

By the way...where did you implement your coding?

Best regards,

Oliver

Edited by: Oliver Hütköper on Aug 12, 2011 8:45 AM

0 Kudos
167

Gowry,

thats a unique problem... but you are lucky.. i faced the very same problem 3 months before.

i actually wrote a "not good" code in the idoc function module. So what i did , i changed my coding(making it more simple) and.. EUREKA!!! it worked for me..... try this out, i think there is some coding issue....

0 Kudos
167

Hi Gowri,

can you please explain: You say in WE19 no validation takes lace, that means the PO is created. How to re-process an IDoc that as been posted successfully?

Regards

Clemens