2007 Dec 06 1:43 PM
Hi All,
I am having a little trouble Background Processing with Selection Screens and Variants.
When a user runs my report and selects the option of background processing, then they select a checkbox. Once this is checked, they should go and fill in details, press Execute and voila a background process is created. However what is happening is that when i execute it then it asks for a variant. I do not want this to happen. I want the values in the selection screens to be used as default. Here is my code for background processing
FORM START_BACKGROUND_PROCESSING.
CALL FUNCTION 'BP_JOBVARIANT_SCHEDULE'
EXPORTING
TITLE_NAME = 'End Customer Report '
JOB_NAME = 'customer_report'
PROG_NAME = 'ZSE_SD_SALES'
EXCEPTIONS
NO_SUCH_PROGRAM = 1
OTHERS = 2
.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDFORM. "START_BACKGROUND_PROCESSING
After the background process is started, all teh data is collated then written to the app server. this is the order
ELSEIF R2 EQ 'X' AND SY-BATCH EQ 'X'.
PERFORM INITIALIZE_DATA.
PERFORM SELECT_DATA.
PERFORM PROCESS_DATA.
PERFORM GET_END_CUSTOMER_DATA.
PERFORM WRITE_TO_APP_SERVER.
Any ideas? Points given to those who are helpful
Hi All,
I am having a little trouble Background Processing with Selection Screens and Variants.
When a user runs my report and selects the option of background processing, then they select a checkbox. Once this is checked, they should go and fill in details, press Execute and voila a background process is created. However what is happening is that when i execute it then it asks for a variant. I do not want this to happen. I want the values in the selection screens to be used as default. Here is my code for background processing
FORM START_BACKGROUND_PROCESSING.
CALL FUNCTION 'BP_JOBVARIANT_SCHEDULE'
EXPORTING
TITLE_NAME = 'End Customer Report '
JOB_NAME = 'customer_report'
PROG_NAME = 'ZSE_SD_SALES'
EXCEPTIONS
NO_SUCH_PROGRAM = 1
OTHERS = 2
.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDFORM. "START_BACKGROUND_PROCESSING
After the background process is started, all teh data is collated then written to the app server. this is the order
ELSEIF R2 EQ 'X' AND SY-BATCH EQ 'X'.
PERFORM INITIALIZE_DATA.
PERFORM SELECT_DATA.
PERFORM PROCESS_DATA.
PERFORM GET_END_CUSTOMER_DATA.
PERFORM WRITE_TO_APP_SERVER.
Any ideas? Points given to those who are helpful
2009 May 27 4:37 PM
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |