2014 Oct 09 4:33 PM
Hi experts,
I need to create several idocs with fm IDOC_INBOUND_FROM_FILE. As the user can choose many files to upload, I use this function within a loop. The first one goes well and the idoc's number is shown but it's not processed. And for the following files I get idoc number "0000000000" and sy-subrc = 1 -> idoc_not_stored, and they are not processed.
When I execute WE02 I can see both idoc created.
If I only choose one file all the process works, the idoc is created and processed.
Is there any other thing I have to do in order to create all the idocs ?
Thanks in advance,
María
2014 Oct 09 5:54 PM
Try putting a wait loop in your process and checking the idoc status until it is complete, before continuing to the next itteration of the read loop.
Neal
Hi experts,
I need to create several idocs with fm IDOC_INBOUND_FROM_FILE. As the user can choose many files to upload, I use this function within a loop. The first one goes well and the idoc's number is shown but it's not processed. And for the following files I get idoc number "0000000000" and sy-subrc = 1 -> idoc_not_stored, and they are not processed.
When I execute WE02 I can see both idoc created.
If I only choose one file all the process works, the idoc is created and processed.
Is there any other thing I have to do in order to create all the idocs ?
Thanks in advance,
María
2014 Oct 09 5:54 PM
Try putting a wait loop in your process and checking the idoc status until it is complete, before continuing to the next itteration of the read loop.
Neal
2014 Oct 10 8:11 AM
2014 Oct 10 4:04 PM
Typically 53 indicated that the idoc was processed correctly.
2014 Oct 09 6:46 PM
Hello,
Please use while loop and process the FM if sy-subrc eq 0.
Regards,
Nagaraj
2014 Oct 10 9:19 AM
Problem solved.. the consultant gave me an incorrect file, field mandt was not filled correctly. Instead of callinf FM IDOC_INBOUND_FROM_FILE, I used submit report RSEINB00 and got the error..
thanks a lot for your answers !!
María
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |