‎2007 Dec 14 8:02 AM
hiii
is there a funtion module that can execute the batch automatically without passing through the SM35
i am using batch input (OPEN CLOSE group)
‎2007 Dec 14 8:08 AM
Hi,
Use report RSBDCSUB.
submit rsbdcsub and return
with mappe = batchi.
Or Also:
have perform process_session statement after BDC
form process_session.
submit rsbdcsub
using selection-set 'XXX'
to sap-spool without spool dynpro
and return.
endform. " process_session
And most important to create a VARIANT with same name (as session)in RSBDCSUB.
Reward points if found helpful ..
Cheers,
Chandra Sekhar.
‎2007 Dec 14 8:04 AM
Hi,
U can use call tr method in background method no.
regards,
desha
‎2007 Dec 14 8:06 AM
howww?
i need to give the option to the user to decide if he want to process in background or foreground
‎2007 Dec 14 8:08 AM
Hi,
Use report RSBDCSUB.
submit rsbdcsub and return
with mappe = batchi.
Or Also:
have perform process_session statement after BDC
form process_session.
submit rsbdcsub
using selection-set 'XXX'
to sap-spool without spool dynpro
and return.
endform. " process_session
And most important to create a VARIANT with same name (as session)in RSBDCSUB.
Reward points if found helpful ..
Cheers,
Chandra Sekhar.
‎2007 Dec 14 8:13 AM
when you submit program . i don't want the user to enter values for RSBDCSUB.
do you have any sample code
‎2007 Dec 14 9:07 AM
Hi
Chandra shekar,
acn u pls explain me deatil abt RSBDCSUB or if u acn can u pls send me the code.
My mail id ; jagadeesh.bachu@gmail.com
Thanks & Regards
Jagdeeshwar.B
‎2007 Dec 14 8:29 AM
anyone have any idea pleazzzz
do we jave to use job_submit for that
‎2007 Dec 14 10:05 AM
hi newbie82.c,
I had this similar experience like yours where user wants to automate a batch session after creating it but doesn't want to go to sm35.
What I did:
1. I do a bdc recording of sm35 and put the bdc code into the same program that does the OPEN and CLOSE GROUP...
So it means, after do a Batch (BDC) then I will also do another BDC for SM35 to automate it from the same program...
That solve my customer's requirement...
I hope this solve your problem too...
Thanks
William Wilstroth
Message was edited by:
william wilstroth
‎2007 Dec 14 10:14 AM
don't you think there is other way mo re simple
what abot FM JOB_OPEN
JOB_CLOSE
JOB_SUBMIT
‎2007 Dec 14 10:21 AM
Hi newbie82.c,
Yes you can use that 3 FMs.
Thanks
William Wilstroth
‎2007 Dec 14 10:28 AM
the 3 FM will it seem to me that it will run in background.
but what if user what to run the BDC in foreground
‎2007 Dec 14 10:35 AM
If user want BDC in foreground use a CALL TRANSACTION and don't create a BDC butt fill a BDCDATA structure table and then
CALL TRANSACTION 'transaction' USING itabYou can specify the way to process in OPTIONS and MODE parameters.
Look at
<a href="http://help.sap.com/saphelp_47x200/helpdata/en/fa/09715a543b11d1898e0000e8322d00/frameset.htm">Using CALL TRANSACTION USING for Data Transfer</a>
something like
if foreground is initial.
BDC_OPEN_GROUP
endif.
fill bdcdata
if foreground is initial.
BDC_INSERT
BDC_CLOSE_GROUP
SUBMIT RSBDCSUB WITH MAPPE = group_name
else.
CALL transaction USING data MODE mode.
endif.
Regards
‎2007 Dec 14 10:47 AM
but with call transaction you can't load file from user desktop
‎2007 Dec 14 10:49 AM
‎2007 Dec 14 10:11 AM
any can advise on code sample for releasing sesion without using SM35