2013 Feb 04 8:52 AM
Hi Colleagues,
This is regarding the development with SAP GUI.
I have two related fields for example First Name and Last Name. Both are input/output field. I implement a F4 help for the field First Name. Is it possible, after selecting a value from the F4 help, the field Last Name can be filled with a value too?
Thanks and best regards,
Wenwen
2013 Feb 04 9:02 AM
Hi,
check the below link..
http://wiki.sdn.sap.com/wiki/display/ABAP/updating+value+of+another+field+on+the+selection+screen
Thanks,
Nikita.
Hi Colleagues,
This is regarding the development with SAP GUI.
I have two related fields for example First Name and Last Name. Both are input/output field. I implement a F4 help for the field First Name. Is it possible, after selecting a value from the F4 help, the field Last Name can be filled with a value too?
Thanks and best regards,
Wenwen
2013 Feb 04 9:02 AM
2013 Feb 04 9:02 AM
Hi,
check the below link..
http://wiki.sdn.sap.com/wiki/display/ABAP/updating+value+of+another+field+on+the+selection+screen
Thanks,
Nikita.
2013 Feb 04 9:05 AM
Hi Wenwen,
Is your search help an elimentary one (created in SE11) or is it written using one of the function modules for F4 help? (like F4IF_TABLE_VALUE_REQUEST etc..)
Regards,
Athreya
2013 Feb 04 9:14 AM
You have to define the parameters you want to bring to your fields as export parameters in the search help, and you have to link the search help to the structure you're using for your selection screen.
Check here:
http://help.sap.com/saphelp_nw04s/helpdata/en/63/1b70bfc32111d1950600a0c929b3c3/frameset.htm
http://help.sap.com/saphelp_nw04s/helpdata/en/63/1b70bfc32111d1950600a0c929b3c3/content.htm
You can also check out the standard search help USER_ADDR in TA SE11, that might help you get an idea what you need to do.
2013 Feb 04 9:29 AM
Hi wenwen,
Yes it is possible to export corresponding Lname when you select Fname.
To do, in DDIC, for table declaration create a search help to the fname field. In search help include both fname and lname. Now select check export for both the fields. Save and active.
Now during declaration at report, use this below declaration type.
PARAMETERS:
p_fname TYPE zxxtestemp2-fname,
p_lname TYPE zxxtestemp2-lname.
NOTE: zxxtestemp2 is the table name,for which search help is assigned.
Thanks and Regards,
Sachin N M
2013 Feb 04 9:37 AM
Hi Wenwen ,
If you are talking about Module Pool Programming then ,
I think your post is quite similar to below thread.
http://scn.sap.com/thread/3302403
Refer my reply there.
eg.
In the above example I had coded POH for variable VAR_CARRID but it populated default value 1100002 for variable VAR_DEVID as well.
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |