2023 May 29 10:14 AM
Hi . I have a transaction for my report and I have designed the screen using module pool screen for selection option. Whenever I enter to transaction it shows the previous entered data I have cleared my work area also I am unable to clear my field in my transaction could any one help me to clear the field value initially and only enter manual data
Thanks
2023 May 29 10:44 AM
madhuchandan
You can use the following code to clear the screen in ABAP:
CLEAR: wa_field1, wa_field2.
CopyThis will clear the values of the fields wa_field1
and wa_field2
. You can replace these fields with the fields you want to clear1.
To clear the field value initially, you can set the initial value for the field in the module pool screen. You can also use the following code to clear the field value:
CLEAR: wa_field.
CopyThis will clear the value of the field wa_field
. You can replace this field with the field you want to clear2.
2023 May 29 10:46 AM
2023 May 29 11:53 AM
You could dynamically in event INITIALIZATION or AT SELECTION-SCREEN OUTPUT
NB: But check also, why those data are persistent, are some parameters or select options carrying a MEMORY ID pid (in this case remove this option, or insure your program doersn't change their values, saving values at start of program, and restoring those at end)