Application Development 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: 

background job events

Former Member
0 Kudos

Hi Guys,

Does the event initialization triggers if we run the prog in background? coz if i run the program in foreground getting proper results. if background i am not getting the filename and job not running. i am running the job with dynamic variant.

my initialization event form code is as follows:

<b>FORM selection_set_date CHANGING v_date.

DATA : rv_weekday LIKE dtresr-weekday,

rv_date(35) TYPE c.

CONCATENATE 'WIP_' sy-datum(4) '_' sy-datum+4(2) '_'

sy-datum+6(2) INTO rv_date.

CONCATENATE '/apps/TTS/planning/data/APPLE/'

rv_date '.csv' INTO filename.

ENDFORM. " selection_set_date</b>

AT SELECTION-SCREEN ON VALUE-REQUEST FOR filename.

PERFORM f4_get_filename USING filename.

AT SELECTION-SCREEN .

PERFORM at_selection_date_set USING p_time p_date.

INITIALIZATION.

PERFORM selection_set_date CHANGING p_date.

START-OF-SELECTION.

PERFORM validate_download.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

I had same problem ,please keep this form in start-of-selection.

FORM selection_set_date CHANGING v_date.

DATA : rv_weekday LIKE dtresr-weekday,

rv_date(35) TYPE c.

CONCATENATE 'WIP_' sy-datum(4) '_' sy-datum+4(2) '_'

sy-datum+6(2) INTO rv_date.

CONCATENATE '/apps/TTS/planning/data/APPLE/'

rv_date '.csv' INTO filename.

ENDFORM. " selection_set_date

and also

this is also in start-of-selection and now see the results.

2 REPLIES 2

ferry_lianto
Active Contributor
0 Kudos

<deleted>

Former Member
0 Kudos

I had same problem ,please keep this form in start-of-selection.

FORM selection_set_date CHANGING v_date.

DATA : rv_weekday LIKE dtresr-weekday,

rv_date(35) TYPE c.

CONCATENATE 'WIP_' sy-datum(4) '_' sy-datum+4(2) '_'

sy-datum+6(2) INTO rv_date.

CONCATENATE '/apps/TTS/planning/data/APPLE/'

rv_date '.csv' INTO filename.

ENDFORM. " selection_set_date

and also

this is also in start-of-selection and now see the results.