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

Import statement using DATA BUFFER

Former Member
0 Likes
928

Hi All,

I am using RFC enabled FM using STARTING NEW TASK, We cannot import data from FM back to the program when we use this statement. So I am exporting data into DATA BUFFER in the FM and trying to import data in the main program. Can you please tell me how can I import data from SHARED MEMORY, Below is my code.

call function 'YPMLR_SITEBAL_DETAILS'
    starting new task 'ID'
    exporting
      s_cyl       = s_cyl-low
      s_lifnr     = s_lifnr-low
      s_lstyp     = s_lstyp-low
    tables
      s_zlocn     = lt_zlocn
      gt_zmlr_mld = gt_zmlr_mld
      gt_zmlr_lp  = gt_zmlr_lp
      gt_zmlr_mlp = gt_zmlr_mlp
      gt_zmc_loc  = gt_zmc_loc.

"IMPORT e_rand_no TO e_rand_no from MEMORY ID 'RAND'.

Here is the export statement used in FM,

EXPORT e_rand_no FROM e_rand_no  TO DATA BUFFER XSTR.

2 REPLIES 2
Read only

Former Member
0 Likes
496

Hi,

Check this link for Export to database instead of memory..

http://help.sap.com/abapdocu/en/ABAPEXPORT_DATA_CLUSTER_MEDIUM.htm

Import from database instead of memory

http://help.sap.com/abapdocu/en/ABAPIMPORT_MEDIUM.htm

Read only

Former Member
0 Likes
496

Answered