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

F4 help in SAP GUI

0 Likes
2,997

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
2,693

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

6 REPLIES 6
Read only

Former Member
0 Likes
2,693

Hi,

You can have a look @ below link

http://scn.sap.com/message/8833322#8833322

Read only

Former Member
0 Likes
2,694
Read only

Former Member
0 Likes
2,693

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

Read only

Former Member
0 Likes
2,693

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.

Read only

Former Member
0 Likes
2,693

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

Read only

Sijin_Chandran
Active Contributor
0 Likes
2,693

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.