2006 Aug 18 7:37 AM
Hi,
Anyone know how to automate running the batch session generated in SM35?
Maybe like write a program to run the batch session? or got other way to do it?
Thanks.
2006 Aug 18 8:09 AM
Hi
You can use below statement within your program after successfully creating the session, which submits to execute the session immediately:
SUBMIT RSBDCSUB TO SAP-SPOOL WITHOUT SPOOL DYNPRO
WITH IMMEDIATELY = SPACE
WITH MAPPE = G_SESS
WITH VON = SY-DATUM
WITH BIS = SY-DATUM
WITH Z_VERARB = 'X'
WITH FEHLER = SPACE
AND RETURN.
Note: G_SESS is the session name.
Kind Regards
Eswar
Hi
You can use below statement within your program after successfully creating the session, which submits to execute the session immediately:
SUBMIT RSBDCSUB TO SAP-SPOOL WITHOUT SPOOL DYNPRO
WITH IMMEDIATELY = SPACE
WITH MAPPE = G_SESS
WITH VON = SY-DATUM
WITH BIS = SY-DATUM
WITH Z_VERARB = 'X'
WITH FEHLER = SPACE
AND RETURN.
Note: G_SESS is the session name.
Kind Regards
Eswar
2006 Aug 18 7:43 AM
Hi,
You need to create a background job which can run the program that creates the session & run it, this can be scheduled,
Rgds,
2006 Aug 18 7:46 AM
HI,
look into this program, shedule this program in SM36 in background with required session name.
<b>RPIEWT04</b>Regards,
HRA
Message was edited by: HRA
2006 Aug 18 8:09 AM
Hi
You can use below statement within your program after successfully creating the session, which submits to execute the session immediately:
SUBMIT RSBDCSUB TO SAP-SPOOL WITHOUT SPOOL DYNPRO
WITH IMMEDIATELY = SPACE
WITH MAPPE = G_SESS
WITH VON = SY-DATUM
WITH BIS = SY-DATUM
WITH Z_VERARB = 'X'
WITH FEHLER = SPACE
AND RETURN.
Note: G_SESS is the session name.
Kind Regards
Eswar
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |