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

session in background

Former Member
0 Likes
960

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
898

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

7 REPLIES 7
Read only

Former Member
0 Likes
899

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

Read only

0 Likes
898

Hi,

Could you plz elaborate with a sample on this to proceed.

Thank u,

Regards,

Padmasri.

Read only

0 Likes
898

You can submit session like below.

submit rsbdcsub with mappe = v_session and return.

v_session is your session name.

Raj

Read only

0 Likes
898

Hi,

How can i know whether the session is processed successfully or not?

Regards,

Padmasri.

Read only

former_member673464
Active Contributor
0 Likes
898

hi ,

You can use the following fm for your requirement.

/OSP/JOB_SCHEDULE

regards,

Veeresh

Read only

Former Member
0 Likes
898

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

Read only

Former Member
0 Likes
898

Hi,

Please follow the link.

[]

You can use the RSBDCSUB to run the session in the background.