Application Development and Automation 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: 
Read only

Problems in reprocessing custom IDOC

Former Member
0 Likes
1,533

Hi Experts,

I have created a custom inbound IDOC, with custom function module and process code. Whenever I try to reprocess any IDOC, I face some issues.

If I set Function module input method as '0' (mass input), then whenever I try to reprocess any IDOC of 51 status, it shows me error .. 'EDI: IDoc XXXXXXX has not been opened (OPEN)', but if I try to reprocess IDOCs of 64 status, it does it without any problem.

If I set Function module input method as '2', then I could able to reprocess all IDOCs with 51 status. but while reprocessing 64 status of IDOCs it reprocess 1 and skips 4 each time. (out of 100 it reprocess 20)

If anyone had faced similar kind of problem, or if anyone has any idea about how to resolve this please let me know

thanks in advance.

Archana

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,119

Please put the value 1...When you process many IDOCs same time data in memory variables seems to be clashing..

By setting value to 1 means each IDOC ll be processed in separate work process and context swtiching will not be a problem..

Try this and let me know the result. If its get solved then i ll tell you logic behind this

regards

4 REPLIES 4
Read only

Former Member
0 Likes
1,120

Please put the value 1...When you process many IDOCs same time data in memory variables seems to be clashing..

By setting value to 1 means each IDOC ll be processed in separate work process and context swtiching will not be a problem..

Try this and let me know the result. If its get solved then i ll tell you logic behind this

regards

Read only

0 Likes
1,119

Hi Madan,

I tried with input method 1. But I am still getting same error while reprocessing 51 status IDOCs, but 64 status IDOCs get reprocessed successfully.

Read only

0 Likes
1,119

I was able to resolve this one.

In idoc processing function module, I had used FM EDI_DOCUMENT_OPEN_FOR_PROCESS, EDI_DOCUMENT_STATUS_SET and EDI_DOCUMENT_CLOSE_PROCESS to set the status. But as the system itself takes care of updating the status there was no need to do this. As I was closing the document in my FM, in further processing of 51 status IDOC, it was giving me error while status updation as document was already closed.

Now I set the input method as 0 and it is working properly.

Thanks,

Archana

Read only

Former Member
0 Likes
1,119

Hi,

try sending idoc with tcode BD87.

thanks

ravi