2007 Apr 25 5:23 AM
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.
2007 Apr 25 5:35 AM
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..
2007 Apr 25 7:27 AM
Hi,
Yes, susanth is right. we can use that FM for that.
Reply for queries, shall post the updates.
Regards,
kumar
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |