‎2010 Apr 01 3:59 PM
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
‎2010 Apr 01 4:16 PM
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.
‎2010 Apr 01 4:16 PM
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.
‎2010 Apr 01 4:58 PM
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.
‎2010 Apr 01 5:05 PM
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.
‎2010 Apr 01 6:18 PM
‎2010 Apr 01 6:17 PM
‎2010 Apr 05 12:46 PM
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?
‎2010 Apr 05 12:51 PM
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.
‎2010 Apr 05 12:50 PM