2007 Nov 13 6:52 AM
Hi Guys,
I would like to ask how do you check what are the contents of the memory ID. In my situation I passed an internal table to a memory id.
ex.
Include 1.
Export li_po_pallet to memory ID 'ICT_PALLET_PO_ORDERNUMBER'.
Include 2.
Import li_po_pallet to memory ID 'ICT_PALLET_PO_ORDERNUMBER'.
how can I check if the memory ID have a value inside it?
thanks!
Regards,
Michael Nacionales
2007 Nov 13 7:17 AM
After import you check the table using if condition,
if li_po_pallet is initial then your memory ID has no contents.
2007 Nov 13 7:48 AM
I need to verify if what is the current value of the memory id before import... I want to confirm if there is really a value inside it
2007 Nov 13 8:06 AM
hi Michael,
you cannot check directly in the memory. You have to IMPORT first and check the sy-subrc (or the intenal table). I would suggest to import into a temporary internal table (same like the real one), do the check and if it is ok, than you can either import to the real internal table or move from temp to real.
hope this helps
ec
2007 Nov 13 8:25 AM
Data clusters are stored in a storage medium with the help of the statement EXPORT .
· MEMORY ID id for storage under the name id in the ABAP Memory
To store and read data clusters, ABAP offers the following statements:
· EXPORT parameter list TO medium
· IMPORT parameter list FROM medium
2007 Nov 13 7:21 AM
Hi,
You can Check SY-SUBRC value after the IMPORT statement.If it is Zero,Then Data is successfully imported to the ITAB.
Eg:
Calling Program:
Export li_po_pallet to memory ID 'ICT_PALLET_PO_ORDERNUMBER'.
Called Program:
Import li_po_pallet to memory ID 'ICT_PALLET_PO_ORDERNUMBER'.
If Sy-subrc = 0.
<New Content is come in to li_po_pallet>
endif.