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

Background Processing, Selection Screens and Variants

Former Member
0 Likes
347

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

1 REPLY 1
Read only

Former Member
0 Likes
301

done myeslf