06-22-2017 11:17 AM
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
11-08-2017 5:53 AM
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
11-08-2017 6:57 AM
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,
11-08-2017 7:41 AM
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.