08-05-2015 10:34 PM
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
08-06-2015 12:27 PM
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
08-06-2015 12:27 PM
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
08-06-2015 1:55 PM
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
08-19-2015 10:14 PM