‎2012 Feb 08 10:04 PM
Hi Guys,
I am calling the program rbdapp01 from a custom program to reprocess an inbound ASN with IDOC status of 64. The code is listed as below in the custom program.
SUBMIT rbdapp01
WITH docnum = i_report_tab-docnum
WITH p_output = C_FALSE
AND RETURN.
After the execution of the custom program, the IIDOC is not processed and it remains in the status 64 with a message "Re processing deleted , inbound delivery IDOC , ,". When I run the program in debug mode, I can see that the control is going into the rbdapp01 program. But some where along the line, it is failing for what ever may be the reason and it does not process the IDCO, but it only populates the message.
But when I execute the same program rbdapp01 for the same IDOC from SE38, the IDOC is processed fine.
Looks like, I am missing something when I am calling this program rbdapp01 in another custom program. Any advice is really appreciated.
Regards
Rupesh.
‎2012 Feb 08 10:47 PM
‎2012 Feb 08 10:47 PM
‎2012 Feb 09 5:48 PM
Hi,
When I use the 'DOCNUM-LOW = i_report_tab-docnum' in the program, the program is ending with a run time error. When I debug this error, it looks like the DOCNUM object is filled with blanks and the program is selecting all the records from the table EDIDC with a status of 64. Also I tried to change the values to insert the DOCNUM-LOW with my specific IDOC number, but it aboarts with another run time error.
I think the program RBDAPP01 must be called differently or passed more values, not sure. Any advice ??
Or is there other program or function module that we can use to reprocess the IDOCS with status 64 ?
Thank you,
Rupesh.
‎2012 Feb 09 10:30 PM
There is no reason why this program should be run differently than any other report.
I'm surprised that specifying DOCNUM-LOW causes a runtime error... but anyway. To avoid any possible incompatibility during the call, since DOCNUM is a SELECT-OPTION, build a proper selection table with the IDoc number(s) you want to process and pass that when doing the SUBMIT.
‎2012 Feb 15 10:47 PM
Hi Tamas,
Thank you for your feedback, I tried with a table , but I still get a run time error "Exception condition "NO_BUKRS" raised."
Any ideas ?
Regards,
Rupesh.
‎2012 Feb 16 6:07 AM
‎2012 Feb 16 8:02 AM
Hi,
Please make use of this method of submit
DATA : rspar_tab TYPE TABLE OF rsparams,
rspar_line LIKE LINE OF rspar_tab.
rspar_line-selname = 'DOCNUM'.
rspar_line-sign = 'I'.
rspar_line-option = EQ'.
rspar_line-low = .
rspar_line-high = .
APPEND rspar_line TO rspar_tab.
SUBMIT RBDAPP01 WITH SELECTION-TABLE rspar_tab.
Try to implement this code, hope this help outs
Thanks & Regards
Suresh
‎2012 Feb 16 9:05 AM
Hi,
Try using this
SUBMIT RBDAPP01 AND RETURN WITH DOCNUM EQ ' IDOC_NUMBER'
WITH p_output = ' '
Regards,
Aravind.
‎2012 Feb 21 11:00 PM
Hi Guys,
Thank you for all your feedback, we are able to resolve the issue with a call to rbdprocess
SUBMIT rbdprocess
WITH p_idoc EQ i_report_tab-docnum
WITH p_nodisp EQ 'X'
AND RETURN.
Regards,
Rupesh.