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

Scheduling a background job.

Former Member
0 Likes
440

Hi all,

I am calling scheduling a program for a background job, but the start time is predefined by the parameters in the program itself.

I require to set the parameters in run-time with a screen from where user can input the scheduling details for the job before calling it in background.

Is there any FM or other workaround for this other than creating a custom screen.

Pls. help with your ideas.

Regards,

Stock.

Hi all,

I am calling scheduling a program for a background job, but the start time is predefined by the parameters in the program itself.

I require to set the parameters in run-time with a screen from where user can input the scheduling details for the job before calling it in background.

Is there any FM or other workaround for this other than creating a custom screen.

Pls. help with your ideas.

Regards,

Stock.

2 REPLIES 2
Read only

Former Member
0 Likes
416

Hello,

You can use the FM:GET_PRINT_PARAMETERS

Pass the parameters as given:

CALL FUNCTION 'GET_PRINT_PARAMETERS'

EXPORTING

COPIES = '1'

DESTINATION = 'LOCL'

  • IMMEDIATELY = 'X'

NEW_LIST_ID = 'X'

NO_DIALOG = ''

USER = SY-UNAME

IMPORTING

OUT_PARAMETERS = s_print_parms

VALID = v_valid

EXCEPTIONS

ARCHIVE_INFO_NOT_FOUND = 1

INVALID_PRINT_PARAMS = 2

INVALID_ARCHIVE_PARAMS = 3

OTHERS = 4.

CASE sy-subrc.

when 1.

message e000 with 'ARCHIVE_INFO_NOT_FOUND'.

when 2.

message e000 with 'INVALID_PRINT_PARAMS'.

when 3.

message e000 with 'INVALID_ARCHIVE_PARAMS'.

ENDCASE.

This will give a pop-up where u can enter yr print parameters.

**Mark useful answers..

Read only

Former Member
0 Likes
416

Hi,

Yes, susanth is right. we can use that FM for that.

Reply for queries, shall post the updates.

Regards,

kumar