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: 

Passing an Internal Table to a Report executed through 'Submit' in Background Job Using OOPs

0 Kudos

Hi All,

I have created one program in Oops. Need to Pass internal table data to Submit program using Memory ID in Background Job. Kindly help me to solve this issue.

Thanks,

Regards,

CSingali

3 REPLIES 3

0 Kudos

Facing the same issue I tried every


SPAN { font-family: "Courier New"; font-size: 10pt; color: #000000; background: #FFFFFF; } .L0S31 { font-style: italic; color: #808080; }

* FREE MEMORY ID 'ZFI_BANKBG_IDAT'.
* EXPORT t_data to MEMORY ID 'ZFI_BANKBG_IDAT'.
* EXPORT 'Hello World' to MEMORY ID 'test1'.

possible way to do this but no success

SPAN { font-family: "Courier New"; font-size: 10pt; color: #000000; background: #FFFFFF; } .L0S31 { font-style: italic; color: #808080; }

** export t_data to shared buffer indx(st) id 'ZFI_BANKBG_IDAT'.


I tried this but it show me buffer error in runtime

raymond_giuseppi
Active Contributor
0 Kudos

For a background job don't export to memory id, export your data to shared memory/buffer of the current application server (in case of multiple server insure the background job will execute in same server) or export to file (some Z file of type INDX). In recent versions use some shared object memory (OO class required). Perform some search on memory in online help and forum Wiki.

NB: Note that you should commit the data in some case to bypass lock and buffering exceptions,

matt
Active Contributor
0 Kudos

Assuming both programs are custom deveopments, the structure of your program is wrong. Rewrite the program you're submitting to, so that the logic is in a separate global class (known as the model). Then your first program can simply instantiate the model and use its methods directly.