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

Importing from Memory Id

Former Member
0 Likes
1,065

Hi All,

Please tell me how the following command works and how can we see the contents which are being returned from this memory Id.

IMPORT /ICO/MO_RUP-BERNR TO WLV_BERNR FROM MEMORY ID 'ZOR'.

Also,

GET PARAMETER ID 'ZOR' FIELD WLV_BERNR.

Thanks,

Archana.

1 ACCEPTED SOLUTION
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
1,030

But, understand that these are two different memory areas. If the values are begin EXPORTed, then you must IMPORT them using the statement, if it is a parameter id and being SET some where, then you must GET it using the statement. You can not mix and match statements here.

Regards,

Rich Heilman

Hi All,

Please tell me how the following command works and how can we see the contents which are being returned from this memory Id.

IMPORT /ICO/MO_RUP-BERNR TO WLV_BERNR FROM MEMORY ID 'ZOR'.

Also,

GET PARAMETER ID 'ZOR' FIELD WLV_BERNR.

Thanks,

Archana.

8 REPLIES 8
Read only

suresh_datti
Active Contributor
0 Likes
1,030

In both teh cases the variable WLV_BERNR willhold thevalue imported..

just use write: / WLV_BERNR .

~Suresh

Read only

0 Likes
1,030

I know the variable WLV_BERNR will hold the value, and also this is being used in a User Exit so cannot use the write statement.

I can manage to see the value being imported in the variable while debugging but I want to see the value which is in the memory id and if the value which is there is the correct one which is to be imported.

Can you help on that.

Thanks,

Archana.

Read only

0 Likes
1,030

>>I can manage to see the value being imported in the variable while debugging but I want to see the value which is in the memory id and if the value which is there is the correct one which is to be imported.

You cannot get into the memory id.. the only way is to IMPORT from it.. just clear the variable before you IMPORT.. & whatever value it holds after the IMPORT is what is in the memory..

~Suresh

Read only

0 Likes
1,030

The only way to see the values is to IMPORT them using the IMPORT statement. There is no other way to see it.

If you were using Shared Objects, then that is a different story, you would be able to see the value without actually accessing it from your program.

Regards,

Rich Heilman

Read only

0 Likes
1,030

Ok Thanks guys this gives me some hint...

Thanks again...

Archana.

Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
1,031

But, understand that these are two different memory areas. If the values are begin EXPORTed, then you must IMPORT them using the statement, if it is a parameter id and being SET some where, then you must GET it using the statement. You can not mix and match statements here.

Regards,

Rich Heilman

Read only

Former Member
0 Likes
1,030

1 .check what is the screen field for parameter id ZOR in that transaction, say VBAP-VBELN

2.so when debugging the user-exit or transaction check the value of the that screen field , that value will be stored

Read only

0 Likes
1,030

Hi Archana,

If you want to see what you're importing, if it's correct, you can start debugging in the start os the transaction and create a breakpoint related to the command EXPORT. Then you probably can see if the content exported to memory it's correct.

If you use this solution, don't stop debugging at the 1st EXPORT command, because it can be repeated before you import it.

I hope it helps.

Regards,

Paulo Sousa