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: 

exporting values

Former Member
0 Kudos

Hi,

We are trying to export the overall limit and expected value for a line item in a framework PO.

When there is only one line item, it correctly exports the values like below..

v_sumlimit = ch_esuh-sumlimit.

v_commitment = ch_esuh-commitment.

EXPORT v_commitment

TO MEMORY ID 'ESUH_PO_COMMIT'.

EXPORT v_sumlimit

TO MEMORY ID 'ESUH_PO_SUM'.

But when you have 2 line items , the above given code gets repeated and only the overall limit and the expected values of the second line item gets exported..How can we save the save the values depending on the number of line items in the PO and then export that.

And how we get the values in the import side..Pls let me know.

3 REPLIES 3

Former Member
0 Kudos

Hi abhishek,

1. you can try by exporting the full internal table.

regards,

amit m.

former_member404244
Active Contributor
0 Kudos

Hi,

get all the item details in one internal table and then try to export it..Have a look at the below code

REPORT ZGRO_EXPORT_MEM MESSAGE-ID ZZ LINE-SIZE 1000.

*

TABLES: EKKO.

*

DATA: I_EKKO TYPE TABLE OF EKKO WITH HEADER LINE.

*

START-OF-SELECTION.

*

SELECT * FROM EKKO INTO TABLE I_EKKO UP TO 100 ROWS.

*

EXPORT I_EKKO FROM I_EKKO TO MEMORY ID 'I_EKKO'.

*

SUBMIT ZGRO_IMPORT_MEM.

Reward if helpful.

Regards,

Nagaraj

former_member189059
Active Contributor
0 Kudos

use this to export and import tables


  data: wa_indx type indx.
  
  export tab = itab to database indx(xy) from wa_indx client
    sy-mandt
    id 'DETAILLIST'.


* to import 
  import tab = itab from database indx(xy)
   to wa_indx client sy-mandt id 'DETAILLIST'.

* deletes the data to save wastage of memory
    delete from database indx(xy)
      client sy-mandt
      id 'DETAILLIST'.

Message was edited by:

Kris Donald