10-30-2007 11:27 AM
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.
10-30-2007 11:29 AM
Hi abhishek,
1. you can try by exporting the full internal table.
regards,
amit m.
10-30-2007 11:31 AM
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
10-30-2007 11:33 AM
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