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: 

Abap Query select-options memory id

jgaia
Explorer
0 Kudos

Hi

I am facing a problem regarding variant in a query. The field below is always repeating the last value in the selection-screen.


select-options SP$00001 for VBRK-VBELN memory id VF

For example: The variant V1 has the value 234567 in the field SP$00001. After run the query with this variant, I will run the query again withn variant V2. In V2 the field SP$00001 is empty, but the old value (234567) is been repeated.

I know that it is because of the memory id command, but how can I remove this command from the abap query?

Thanks in advance.

Joao Gaia

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

Yes the problem is because of memory id.

To avoid this when you are using the second variant enable this flag in your variant screen so that the value from Memory does not appear

Regards,

Vasanth

3 REPLIES 3

Former Member
0 Kudos

Hi,

Yes the problem is because of memory id.

To avoid this when you are using the second variant enable this flag in your variant screen so that the value from Memory does not appear

Regards,

Vasanth

Former Member
0 Kudos

Hi,

Please follow the below code...

once your process finished, please delete your memory id...

REPORT ZTEST_1234.

tables : vbrk.

select-options SP$00001 for VBRK-VBELN memory id VF.

BREAK-POINT.

write SP$00001-low.

DELETE from MEMORY id 'VF'.

Hope it helps

jgaia
Explorer
0 Kudos

Thank you Vasanth!

It's working.