09-27-2011 5:01 PM
Hi Expert,
I have copied zprogram of the standard one RFKORK00 . In the zprogram i have added field using select-options and i want to pass the data of this field to the print program.
Flow of the program is - ZRFKORK00 calls submit and return SAPF140 and SAPF140 calls submit and return zprint_prg
Please suggest how i should pass the data to print program and also necessary parameters will be needed to add in SAPF140 and zprint_prg ?
Do i need to make SAPF140 to ZSAPF140 ?
Please advice.
09-27-2011 5:05 PM
Hi
If you want to transfer some data from ZRFKORK00 to zprint_prg you can try to use IMPORT/EXPORT .... FROM/TO MEMORY ID: see the help
Max
09-27-2011 5:22 PM
Hello,
Please use SHARED BUFFER concept for sharing memory data in background.
Example would be:
EXPORT <export data> TO SHARED BUFFER indx(st) ID <id>.
Thanks
09-27-2011 5:31 PM
It would be very helpful if you can be able to explain it like how should be the carrier of the select-option field. I mean will it be a internal table or some different type of variable. Because i tried to use export and got error that field which is exporting should be the char field.
Helpful for me to understand if you please elaborate more.
09-27-2011 5:33 PM
Hi
SELECT-OPTIONS S_VBELN FOR VBAK-VBELN.
EXPORT S_VBELN[] TO MEMORY ID.......
Max
09-28-2011 9:23 AM
Hello,
Example:
EXPORT i_rfc_it = i_rfc_it TO SHARED BUFFER indx(st) ID 'RFC_IT'
Here i_rfc_it is an internal table..
You can import data
IMPORT i_rfc_it = i_rfc_it FROM SHARED BUFFER indx(st) ID 'RFC_IT''
Thanks
09-28-2011 10:59 AM
Here i have doubt that when i will write export staement in the zprogram. After zprogram control will go to standard program as i have mentioned and after standard program control will go to zprint program. So i have doubt when i will write import statement in zprint program, will the data be fetched in zprint program ?
also pls tell me which memory id i should use ?...is it 'BAR' ?
In addition to this, when i debug zprogram and control will go to the zprint program, can i able to see data stored in memory id there?..if yes then how ?.