2007 Jan 04 6:11 AM
Dear All,
I have three text fields in one of my screens.
1. Transporter
2. TruckType and
3. Destination
I have provided search help for Transporter field and I display all the above three fields in the search help LOV.
My requirement is that on selection of any entry from the search help, the other two fields on the screen i.e. Truck Type & Destination should also get populated from the relative fields of the selected entry.
Regards,
Alok.
2007 Jan 04 6:59 AM
Hi Alok,
Do like this..
Create a PERFORM ,
PROCESS ON VALUE-REQUEST.
FIELD P9003-TRANS MODULE TRANS_F4_REQUEST.
SELECT the data from Main table for Transporter.
After Use this Function Module like this..
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
DDIC_STRUCTURE = ' '
RETFIELD = 'TPROG'
PVALKEY = ' '
DYNPPROG = 'MP900300'
DYNPNR = '2000'
DYNPROFIELD = 'P9003-SHIFT'
DYNPROFIELD = 'TPROG'
STEPL = 0
WINDOW_TITLE =
VALUE = ' '
VALUE_ORG = 'S'
MULTIPLE_CHOICE = ' '
DISPLAY = ' '
CALLBACK_PROGRAM = ' '
CALLBACK_FORM = ' '
TABLES
VALUE_TAB = T_T550A
FIELD_TAB =
RETURN_TAB = T_RETURN
DYNPFLD_MAPPING =
EXCEPTIONS
PARAMETER_ERROR = 1
NO_VALUES_FOUND = 2
OTHERS = 3
.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
IF SY-SUBRC = 0.
P9003-TRANS = T_RETURN-FIELDVAL.
T_T550A-TPROG = P9003-SHIFT.
SELECT the data based on Transporter main table.
IF SY-SUBRC = 0.
READ TABLE T_MAINTAB INDEX 1.
POPULATE U R FIELDS here.
ENDIF.
ENDIF.
Reward me points if it helpful.
Thanks,
N.L.Narayana
Dear All,
I have three text fields in one of my screens.
1. Transporter
2. TruckType and
3. Destination
I have provided search help for Transporter field and I display all the above three fields in the search help LOV.
My requirement is that on selection of any entry from the search help, the other two fields on the screen i.e. Truck Type & Destination should also get populated from the relative fields of the selected entry.
Regards,
Alok.
2007 Jan 04 6:22 AM
Hi,
After selecting the search help...
u will have the Transporter - data in the Transporter - select-option.
So get the Truck type and Destination from the database for that Transporter
and populate the select-options fileds for the truck type and Destination.
Try with this... and let me know...
-
Santhosh
2007 Jan 04 6:27 AM
Hi,
Once transporter field is filled your AT-SELECTION SCREEN ON transporter, will be trigerred so based on transporter value select remaining data & populate it.
Regards,
Raghavendra
2007 Jan 04 6:27 AM
when you will get the transporter then in pai select data from dbtab to your screen fields.
after getting the value in transporter and press enter it will automatically populate the values in the rest of two fields
reagrds
shiba dutta
2007 Jan 04 6:30 AM
Hi Alok,
While creating the search help for multiple values, u need to select Collective Search Help type and u assign those fields for which you want to have the search help in LOV.
Note: this LOV shud be Collective Search help type
Regards
Kannaiah
2007 Jan 04 6:39 AM
Dear friends,
Let me redefine my problem. It's regarding how to 'Export' more than one field value using the F4IF_INT_TABLE_VALUE_REQUEST function.
Alok.
2007 Jan 04 6:43 AM
Hi Alok ,
The FM has a table <b>RETURN_TAB</b> , which contains the value of the record selected from the search help.
Get the value from this table , read your search help table and get the value of the second field and once this is done , populate your second field.
Do revert back in case of queries
Regards
Arun
2007 Jan 04 6:56 AM
Dear Arun,
Can you send me an example code if you have with you, or should I send my code.
Regards,
Alok.
2007 Jan 04 6:59 AM
Hi Alok,
Do like this..
Create a PERFORM ,
PROCESS ON VALUE-REQUEST.
FIELD P9003-TRANS MODULE TRANS_F4_REQUEST.
SELECT the data from Main table for Transporter.
After Use this Function Module like this..
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
DDIC_STRUCTURE = ' '
RETFIELD = 'TPROG'
PVALKEY = ' '
DYNPPROG = 'MP900300'
DYNPNR = '2000'
DYNPROFIELD = 'P9003-SHIFT'
DYNPROFIELD = 'TPROG'
STEPL = 0
WINDOW_TITLE =
VALUE = ' '
VALUE_ORG = 'S'
MULTIPLE_CHOICE = ' '
DISPLAY = ' '
CALLBACK_PROGRAM = ' '
CALLBACK_FORM = ' '
TABLES
VALUE_TAB = T_T550A
FIELD_TAB =
RETURN_TAB = T_RETURN
DYNPFLD_MAPPING =
EXCEPTIONS
PARAMETER_ERROR = 1
NO_VALUES_FOUND = 2
OTHERS = 3
.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
IF SY-SUBRC = 0.
P9003-TRANS = T_RETURN-FIELDVAL.
T_T550A-TPROG = P9003-SHIFT.
SELECT the data based on Transporter main table.
IF SY-SUBRC = 0.
READ TABLE T_MAINTAB INDEX 1.
POPULATE U R FIELDS here.
ENDIF.
ENDIF.
Reward me points if it helpful.
Thanks,
N.L.Narayana
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |