‎2022 Jun 16 11:11 AM
hi team,
when i click on refresh button both header and item data should be cleared in module pool screen .it should show blank in input screen in all fields ,please give solution
‎2022 Jun 16 11:46 AM
Hi Alazhu,
Clear work area. for example work area name is Z_T_E_M.
just write
clear Z_T_E_M.

‎2022 Jun 16 12:43 PM
this is my zalast_ekko,zalast_ekpo.tables
this my coding
CASE sy-ucomm.whether it is correct or not give me a correct coding
‎2022 Jun 16 1:23 PM
Hi Alazhu,
Zalast_ekko and zalast_ekpo are internal table or work area ?
If it is a work area then write
CASE sy-ucomm.
WHEN 'RE'.
clear :zalast_ekko,zalast_ekpo.
ENDCASE.if it is a internal table then write
CASE sy-ucomm.
WHEN 'RE'.
refresh :zalast_ekko,zalast_ekpo.
ENDCASE.
‎2022 Jun 16 1:33 PM
in item table how to clear the records using an table control.
it is clearing in header table but not clearing in item table, can you please give me a solution fast
‎2022 Jun 16 1:44 PM
Hi Alazhu,
To clear data from table control.
delete zalast_ekko.
delete zalast_ekpo.
‎2022 Jun 16 3:21 PM
According to SAP Clean Code, if I'm not wrong, REFRESH should not be used. Header lines are obsolete.
"work area" doesn't mean anything without context. Usually, this term is used only in abstract context like ABAP documentation. Better use the term "global variable corresponding to the screen field" (same name as screen field).
"delete itab" should not be used also because not explicit. It works only inside a loop.
alagu123 If you need exact solution, you should provide all possible details, otherwise it's impossible to help you as nobody can see what you did (unless having a crystal ball).‎2022 Jun 16 1:55 PM