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: 

How run the back ground jobs

Former Member
0 Kudos

Hi Experts,

I have one scenario .

I have scheduled on program in back ground.

now that in back . when i excute that back job program.

I need to tranfer that data to application server.

please suggest me how to do this.

Ramesh.

thanks in advanice.

1 ACCEPTED SOLUTION

former_member156446
Active Contributor
0 Kudos

there is a system variable sy-batch which recognises if the job is running in background or not..

OPEN DATASET p_file FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.

IF sy-subrc NE 0.

MESSAGE e001(zsd_mes).

EXIT.

ELSE.

*---Data is downloaded to the application server file path

LOOP AT it_tab2 INTO wa_tab2.

TRANSFER wa_tab2 TO p_file.

ENDLOOP.

ENDIF.

*--Close the Application server file (Mandatory).

CLOSE DATASET p_file.

1 REPLY 1

former_member156446
Active Contributor
0 Kudos

there is a system variable sy-batch which recognises if the job is running in background or not..

OPEN DATASET p_file FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.

IF sy-subrc NE 0.

MESSAGE e001(zsd_mes).

EXIT.

ELSE.

*---Data is downloaded to the application server file path

LOOP AT it_tab2 INTO wa_tab2.

TRANSFER wa_tab2 TO p_file.

ENDLOOP.

ENDIF.

*--Close the Application server file (Mandatory).

CLOSE DATASET p_file.