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 selection screen

Former Member
0 Likes
1,192

hello all,

if you see the transaction "FCHN" then you will find that when you enter "Account ID" by using the F4 help the "House Bank" and "Paying Company Code" get filled on its own from the line you have selected. similarly when you "House Bank" by using the F4 help the "Paying Company Code" get filled on its own from the line you have selected.

I want to do the same in my Z Program where in i have the following fields "bukrs" and "branch" from the table "j_1bbranch" where in i want to select the "branch" and the "bukrs" should be picked up on its own.

PARAMETERS: bukrs TYPE bukrs,

branch LIKE j_1bbranch-branch.

this should be possible as one "branch" has only one "bukrs" while one "bukrs" can have more than one "branch".

so on selecting "branch" the "bukrs" should be filled on its own.

.....

kindly answer.

5 REPLIES 5
Read only

Former Member
0 Likes
826

Hi,

U can give MATCHCODE OBJECT for that Parameter so that u can get F4 help for that Parameter.

<b>PARAMETERS: p_zfield TYPE ztable-zfield MATCHCODE OBJECT zfield_sh_1.</b>

You must create a Search Help (that's how matchcodes are called nowadays) in transaction SE11. in my example code <b>zfield_sh_1</b> would be the Search Help.

Steps To create Matchcode Object:

Step1 : Go to Se11 and Select Search Help and Enter One Name and Click Create.

Step2 : Enter your Table name in 'Selection Method' Field.

Step3 : Enter the field Name and tick the Flags Imp and Exp and Type 1 and 2 in Lpos,

Spos fields.

Step4 : Save it.

CHECK THIS LINK TO CREATE A MATCHCODE OBJECT

http://searchsap.techtarget.com/tip/1,289483,sid21_gci553386,00.html

Regards,

Padmam.

Read only

Former Member
0 Likes
826

Hi...

Use the event <b>AT SELECTION SCREEN ON FIELD(field</b>) and then write the select query..this will help you..

<b>Reward points if useful</b>

Regards

Ashu

Read only

dev_parbutteea
Active Contributor
0 Likes
826

Hi,

put :

PARAMETERS: bukrs like j_1bbranch-bukrs,

branch LIKE j_1bbranch-branch.

it should work,

Regards,

Sooness.

Read only

varma_narayana
Active Contributor
0 Likes
826

Hi..

Under the Event

AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_BRANCH.

Call the FMs.

DYNP_VALUES_READ "To get the values of the fields from Sel Screen

F4_INT_TABLE_VALUE_REQUEST "To generate F4 help

DYNP_VALUES_UPDATE to Copy the Values to Selection Screen

<b>Reward if Helpful.</b>

Read only

0 Likes
826

hello Narayana Varma,

can you please give me the steps in detail...