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

Issue regarding memory parameters

Former Member
0 Likes
731

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.

6 REPLIES 6
Read only

Former Member
0 Likes
685

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

Read only

Former Member
0 Likes
685

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

Read only

0 Likes
685

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.

Read only

0 Likes
685

Hi

SELECT-OPTIONS S_VBELN FOR VBAK-VBELN.

EXPORT S_VBELN[] TO MEMORY ID.......

Max

Read only

0 Likes
685

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

Read only

0 Likes
685

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 ?.