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: 

Clearing the selection-screen fields after the execution of the program?

Former Member
0 Kudos
117

Hi all,

I have a cost-center group & cost center fields in the selection-screen. And in the at-selection screen event, i populate the cost center fields for the given cost center group in the selection-screen. After the execution of the program, when i come back to selection screen, i see those populated cost center ranges for the cost center group in the selection screen , which i don't want to see. So how to clear those fields?

Please do help me.

Thanking you all in advance.

Regards,

ABAPer

4 REPLIES 4

Former Member
0 Kudos
40

Hi,

Just use 'Free-memory' in the initialization section of report.

thanks

Sunil

0 Kudos
40

USe the free memory statement.



parameters: p_check1 type c.

start-of-selection.

write:/ 'Test'.

<b>free memory.</b>


Regards,

Rich Heilman

Former Member
0 Kudos
40

Hi,

Use free memory at end of start-of-selection..

parameters: p_werks type werks_d.

at selection-screen.

tables: marc.

select single * from marc

where matnr = p_matnr.

if sy-subrc = 0.

p_werks = marc-werks.

endif.

start-of-selection.

write: / p_matnr.

write: / p_werks.

Free memory.

Thanks,

Naren

Former Member
0 Kudos
40

Hi SAP Abaper,

If the answer was rectified,, pls close the thread and assign needfull points.

thanks,

Sunil