Application Development and Automation 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: 
Read only

module pool

Former Member
0 Likes
392

I got some values in I/O fields(5 fields).Now my requirement is to delete all the values in the 5 I/O field by pressing a button.Pls Give a sample code for tht.

1 ACCEPTED SOLUTION
Read only

dani_mn
Active Contributor
0 Likes
368

HI,

create a button on your screen and assign it a function code like 'CLEAR'. now in one of your PAI module. check the function code. like this.

<b>

MODULE PAI_PROCESS.
CASE ok_code.

WHEN 'CLEAR'.
clear: field1, field2, field3, field4, field5.

ENDCASE.
ENDMODULE.

</b>

Regards,

HRA

3 REPLIES 3
Read only

Former Member
0 Likes
368

Hi Alex,

Use Clear: <I/O Fieldname>.

or if you are using tables or internal tables use

Clear: <table name>.

Regards:-

<b>Santosh.D</b>

Read only

dani_mn
Active Contributor
0 Likes
369

HI,

create a button on your screen and assign it a function code like 'CLEAR'. now in one of your PAI module. check the function code. like this.

<b>

MODULE PAI_PROCESS.
CASE ok_code.

WHEN 'CLEAR'.
clear: field1, field2, field3, field4, field5.

ENDCASE.
ENDMODULE.

</b>

Regards,

HRA

Read only

Former Member
0 Likes
368

Hai Alex,

Clearing a screen field is much simpler. In the PAI have a module which checks for the user_command and <b>clear <fieldname></b> will clear the i/o field.