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 - ON VALUE REQUEST updating a second field

Former Member
0 Likes
2,641

Hi,

I have two fields F1 and F2.

I use a ON VALUE REQUEST on F1 to populate it. Which is working perfectly.

I've written logic to update F2 right below the ON VALUE request so that once I execute the ON VALUE request on F1, it should populate both F1 and F2. But, it doesnt seem to populate F2 at all.

After the ON VALUE request, only when I press the RETURN key, the field F2 is populated. Is there an event which could be used to populate other fields (in my case F2) apart from the one on which ON VALUE REQUEST is done?

Thanks in advance.

Tabraiz

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
2,176

If I understand what you're asking (populate two fields from one search help), search for posts that mention function module: F4IF_INT_TABLE_VALUE_REQUEST..

This will allow you to construct a table containing various values and populate more than one screen field upon function module call.

8 REPLIES 8
Read only

Former Member
0 Likes
2,177

If I understand what you're asking (populate two fields from one search help), search for posts that mention function module: F4IF_INT_TABLE_VALUE_REQUEST..

This will allow you to construct a table containing various values and populate more than one screen field upon function module call.

Read only

0 Likes
2,176

I use a customized FM to popup a screen to display the internal table populated. So, i do not need the standard FM's to populate my fields.

Read only

0 Likes
2,176

Hi,

For populating the data into 2nd field i feel that you can use the below FM.

CALL FUNCTION 'DYNP_VALUES_UPDATE'

EXPORTING

DYNAME = SY-CPROG

DYNUMB = SY-DYNNR

TABLES

dynpfields = DYFIELDS.

Read only

0 Likes
2,176

@Bose - Thanks mate. Works like a charm.

Read only

Former Member
0 Likes
2,176

Hello Poornima,

check this link below:

regards, Sebastiá

Read only

Former Member
0 Likes
2,176

The first part worked. Now, I have another issue. I need to make a single text field visible/invisible based on the ON VALUE REQUEST event. The FM 'DYNP_VALUES_UPDATE' cannot be used here as I do not have any values to update to the field, except that i just need to make to toggle visible/invisible switch on a text field. How do I do this?

Read only

0 Likes
2,176

Hi,

Use the below code .


at selection-screen.
LOOP at screen.
if screen-name = 'textfield'  .  "--->Pass the name of screen field which you want to make invisible.
screen-invisible = 1.
endif.
modify screen.
endloop.

Regards,

Lakshman.

Read only

Former Member
0 Likes
2,176

Found a way. Thanks