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

Memory ID problem

Former Member
0 Likes
822

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

5 REPLIES 5
Read only

Former Member
0 Likes
619

After import you check the table using if condition,

if li_po_pallet is initial then your memory ID has no contents.

Read only

0 Likes
619

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

Read only

0 Likes
619

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

Read only

0 Likes
619

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

Read only

former_member491305
Active Contributor
0 Likes
619

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.