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

Program rbdapp01 when called from a program is not working

Former Member
0 Likes
3,226

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.

1 ACCEPTED SOLUTION
Read only

Tamas_Hoznek
Product and Topic Expert
Product and Topic Expert
0 Likes
2,158

Try it with DOCNUM-LOW = i_report_tab-docnum

8 REPLIES 8
Read only

Tamas_Hoznek
Product and Topic Expert
Product and Topic Expert
0 Likes
2,159

Try it with DOCNUM-LOW = i_report_tab-docnum

Read only

Former Member
0 Likes
2,158

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.

Read only

Tamas_Hoznek
Product and Topic Expert
Product and Topic Expert
0 Likes
2,158

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.

Read only

Former Member
0 Likes
2,158

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.

Read only

0 Likes
2,158

Pass message type and see.

Cheers,

Raja.D

Read only

former_member15255
Active Participant
0 Likes
2,158

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

Read only

Former Member
0 Likes
2,158

Hi,

Try using this

SUBMIT RBDAPP01 AND RETURN WITH DOCNUM EQ ' IDOC_NUMBER'

WITH p_output = ' '

Regards,

Aravind.

Read only

Former Member
0 Likes
2,158

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.