‎2010 Jul 20 5:53 AM
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
‎2010 Jul 20 6:12 AM
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
‎2010 Jul 20 6:19 AM
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'.
‎2010 Jul 20 6:36 AM
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
‎2010 Jul 20 6:41 AM
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.
‎2010 Jul 20 7:17 AM
Hello Shekhar,
Did you try to debug the code???
Import/Export should work irrespective of the SUBMIT statement.
BR,
Vishal.
‎2010 Jul 20 8:03 AM
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