‎2009 Jul 29 9:56 AM
Hi All,
My program is generating a session . Now i need to process this session in background without going to the SM35
Is there any other alternative to do so using the FMs or by settings any options in the SUMBIT statement .
Thank you,
Regards.
Padmasri.
‎2009 Jul 29 10:01 AM
You can make use of program RSBDCSUB. Once session generated and available, you can submit this program.
It will take care to run job in background.
Regards,
Raj
Edited by: Raja gurrala on Jul 29, 2009 11:01 AM
‎2009 Jul 29 10:01 AM
You can make use of program RSBDCSUB. Once session generated and available, you can submit this program.
It will take care to run job in background.
Regards,
Raj
Edited by: Raja gurrala on Jul 29, 2009 11:01 AM
‎2009 Jul 29 10:09 AM
Hi,
Could you plz elaborate with a sample on this to proceed.
Thank u,
Regards,
Padmasri.
‎2009 Jul 29 10:13 AM
You can submit session like below.
submit rsbdcsub with mappe = v_session and return.v_session is your session name.
Raj
‎2009 Jul 29 11:16 AM
Hi,
How can i know whether the session is processed successfully or not?
Regards,
Padmasri.
‎2009 Jul 29 10:02 AM
hi ,
You can use the following fm for your requirement.
/OSP/JOB_SCHEDULE
regards,
Veeresh
‎2009 Jul 29 10:02 AM
Yes Option is there byusing SPOOL Generation.
Create a new program and Copy same Internal table into it.
Use SUBMIT for that program in your main program as follows:
SUBMIT (P_REPID) TO SAP-SPOOL WITHOUT
SPOOL DYNPRO
SPOOL PARAMETERS MSTR_PRINT_PARMS
AND RETURN .
Use FM as follows to sent spool for execution in background.
EXPORT T_MAIN = T_MAIN TO MEMORY ID 'T.Code'.
CALL FUNCTION 'GET_PRINT_PARAMETERS'
EXPORTING
AUTHORITY = SPACE
COPIES = '1'
COVER_PAGE = SPACE
DATA_SET = SPACE
DEPARTMENT = SPACE
DESTINATION = 'LOCL'
EXPIRATION = '1'
IMMEDIATELY = SPACE
IN_ARCHIVE_PARAMETERS = IN_ARC_PARAM
IN_PARAMETERS = IN_PARAM
LAYOUT = SPACE
MODE = SPACE
NEW_LIST_ID = 'X'
NO_DIALOG = 'X'
USER = SY-UNAME
IMPORTING
OUT_PARAMETERS = MSTR_PRINT_PARMS
VALID = MC_VALID
EXCEPTIONS
ARCHIVE_INFO_NOT_FOUND = 1
INVALID_PRINT_PARAMS = 2
INVALID_ARCHIVE_PARAMS = 3
OTHERS = 4.
Regds,
Anil
‎2009 Jul 29 10:17 AM