Skip to Content
author's profile photo Former Member
Former Member

background job events

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.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jun 07, 2007 at 06:41 PM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jun 07, 2007 at 05:39 PM

    <deleted>

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.