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 schedule

Former Member
0 Likes
615

dear experts,

i am using these code to schedule a program to run in background

export 'value' to memory id 'table'.

call function job_open.

submit 'zprogram' via job job_name number job_number and return.

call function job_close.

in program 'zprogram' i have used the syntax

import so_input from memory id 'table'.

in event initialization.

but i thin data is not importing in called program using import statement. can anyone suggest me how to schedule it properly.

is there any problem in my code??

Edited by: shekharamit on Jul 20, 2010 6:53 AM

6 REPLIES 6
Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
589

Your export statement:

export 'value' to memory id 'table'.

and your IMPORT statement:

import so_input from memory id 'table'.

Don't you think there is definitely some problem with this. Read the F1 help & figure it out yourself.

BR,

Suhas

Read only

Former Member
0 Likes
589

sory for my export statement.

actualy it is

export so_input to memory id 'table' compression off.

and import statement is

import so_input from memory id 'table'.

Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
589

1. Is the structure of SO_INPUT same in both the programs?

2. When you run the program in online mode, is the IMPORT statement working correctly ?

BR,

Suhas

PS: By default the compression is turned off, you don't have to mention it explicitly

Read only

Former Member
0 Likes
589

yes. structure for so_input is same in both program.

in calling program it is

SELECT-OPTIONS : SO_BUKRS FOR AUFK-BUKRS OBLIGATORY NO INTERVALS,

in called program it is like

TYPES : BEGIN OF TT_BUKRS,

SIGN(1) TYPE C,

OPTION(2) TYPE C,

LOW(4) TYPE C,

HIGH(4) TYPE C,

END OF TT_BUKRS.

SO_BUKRS TYPE TABLE OF TT_BUKRS.

Read only

0 Likes
589

Hello Shekhar,

Did you try to debug the code???

Import/Export should work irrespective of the SUBMIT statement.

BR,

Vishal.

Read only

Former Member
0 Likes
589

yes. i have found that data is transferring in so_bukrs using the export statement in initialization.

but when the program is executed in background at that time so_bukrs doesn't content any value.

i tried to debug using jdbg in sm37.

initially i put a breakpoint in called zprogram at export statement. data is coming there but not available after the job is scheduled.

Edited by: shekharamit on Jul 20, 2010 9:07 AM