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

Search Help Issue

Former Member
0 Likes
889

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
867

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.

8 REPLIES 8
Read only

santhosh_patil
Contributor
0 Likes
867

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

Read only

Former Member
0 Likes
867

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

Read only

Former Member
0 Likes
867

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

Read only

Former Member
0 Likes
867

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

Read only

0 Likes
867

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.

Read only

0 Likes
867

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

Read only

0 Likes
867

Dear Arun,

Can you send me an example code if you have with you, or should I send my code.

Regards,

Alok.

Read only

Former Member
0 Likes
868

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