‎2007 Jul 24 12:35 PM
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.
‎2007 Jul 24 12:37 PM
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.
‎2007 Jul 24 12:38 PM
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
‎2007 Jul 24 12:41 PM
Hi,
put :
PARAMETERS: bukrs like j_1bbranch-bukrs,
branch LIKE j_1bbranch-branch.
it should work,
Regards,
Sooness.
‎2007 Jul 24 12:42 PM
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>
‎2007 Jul 24 12:51 PM
hello Narayana Varma,
can you please give me the steps in detail...