‎2010 Jan 15 11:26 AM
Hi Sir,
I have a scerario in which I have written a z program. Now in my z program i m generating an idoc no in status 64,yellow status.
Now I have to process the idoc by calling the tcode BD*& from within the z program and all this should rum in background.
I am facing following prob:
My program stops at first screen of BD87 itself. After that I have to press F8 manually..again I have to select the idoc and click on process button.
But all this should be automate.
Please guide.
Krishan
‎2010 Jan 15 11:34 AM
Hi,
Use the program RBDAPP01 , this will change the status of 64 to 53 if success or 51 if any error. No need for BD87
Regards,
Nagaraj
‎2010 Jan 15 11:36 AM
Create a background job for program RBDAPP01 and set it to daily,weekly..
based on your requirement.
This will automate the process of changing status from 64.
‎2010 Jan 15 11:40 AM
if you know the IDOC number you can just make a call to function IDOC_INPUT
data: l_input_method type inputmethd,
l_input_succeeded type input_ok.
l_input_method = 'E'. "Foreground from errors
refresh: t_unprocessed_idocs,
t_idoc_data,
t_idoc_control.
t_unprocessed_idocs-docnum = '00000000' <<<<< put in IDOC number to be proccessed
append t_unprocessed_idocs.
call function 'IDOC_INPUT'
exporting
mass_processing = c_false
input_method = l_input_method
idoc_start_event_enabled = c_false
end_event_enabled = c_true
importing
input_succeeded_for_all = l_input_succeeded
tables
unprocessed_idocs = t_unprocessed_idocs
idoc_data = t_idoc_data
idoc_control = t_idoc_control
exceptions
others = 17.
‎2010 Jan 15 11:42 AM
Hi Krishan,
Since this program is calling screen 100 from inside, so probably submit with the required fields may not work automatically.
You will have to try calling it using CALL TRANSACTION and populating the fields, and simulating the bdc code for execute. In this case, the code for execute is- CRET and not ONLI as in case of other normal se38 reports.
regards,
amit m.