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

Clearing input fields on F4 help

Former Member
0 Likes
970

Hi experts,

I have created two blocks one for country details and other for state details.

In country details i have 3 input fields id, name and code. In state also i have 3 input fields id, name and code.

I have given f4 search help for both country and state id. When i select country id, name and code will be filled automatically. The states under selected country id will be populated in the F4 help for state id.

Now consider both the blocks are filled with values. Now i'll select different country ID, and now i want the state's details block fields to be cleared (filled with empty values).

How can i do this????

Please Help me out...

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
804

Hi Satish

CALL FUNCTION 'DYNP_VALUES_UPDATE'

   

In the Table used in the function add fields which you want to change, also provide the field for which you are giving search help and set it to value that you selected from f4 Help.

             .

Hi experts,

I have created two blocks one for country details and other for state details.

In country details i have 3 input fields id, name and code. In state also i have 3 input fields id, name and code.

I have given f4 search help for both country and state id. When i select country id, name and code will be filled automatically. The states under selected country id will be populated in the F4 help for state id.

Now consider both the blocks are filled with values. Now i'll select different country ID, and now i want the state's details block fields to be cleared (filled with empty values).

How can i do this????

Please Help me out...

3 REPLIES 3
Read only

Former Member
0 Likes
805

Hi Satish

CALL FUNCTION 'DYNP_VALUES_UPDATE'

   

In the Table used in the function add fields which you want to change, also provide the field for which you are giving search help and set it to value that you selected from f4 Help.

             .

Read only

0 Likes
804

Ok Mr. Prthk,

But i dont want to use function module for this. Can you do this without using FM?????

Read only

0 Likes
804

Sorry, I think this is the only way possible. I have not come across any other methods.