Application Development 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: 

Search help with 2 export parameters

Former Member
0 Kudos

Hi experts,

I have defined an search help on the dictionary over LFA1 table. The fields of the search help are:

LIFNR --> With import and Export flags

LAND1 --> With import flag

NAME1 --> With import flag

STCD1 --> With import an Export flags

I want to use the same search help on two fields of a dynpro, one for LIFNR an the other one for STCD1 field, so when I a record is selected the two fields get updated, but the field returned is always LIFNR.

Is there any way to get the STCD1 field of the search help and update the two fields at same time without using F4IF_INT_TABLE_VALUE_REQUEST function module?

Thanks in advance.

Regards,

Jordi

4 REPLIES 4

former_member156446
Active Contributor
0 Kudos

hi open the search help in se11 and check the import / Export check boxes

Former Member
0 Kudos

hi

AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_lifnr .

PERFORM value_request1.

AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_land1 .

PERFORM value_request2.

in the form end form of value request call FM :

CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

EXPORTING

DDIC_STRUCTURE = ' '

retfield = 'lifnr '

PVALKEY = ' '

DYNPPROG = sy-repid

DYNPNR = sy-dynnr

DYNPROFIELD = 'p_lifnr'

STEPL = sy-stepl

VALUE_ORG = 'S'

CALLBACK_PROGRAM = 'ZSNT_TEST2'

tables

value_tab = t_oldmat

similarly

return field for land1 return field will be " land1" and dynprofield will be p_land1 .

try like this ....

regards

sachhi

Former Member
0 Kudos

Hi all,

thanks for your answers, but maybe I didn't explained myself quite well.

On SE11. the Import/Export parameters of the search help are OK. I want to get the second export parameter, not only the first one, but I don't know how to assign it to the dynpro field (only using the screen painter or flow logic, but without regenerate manually the search help with fm F4IF_INT_TABLE_VALUE_REQUEST.

If is not possible, I'll use the FM F4IF_INT_TABLE_VALUE_REQUEST, but then, I don't know how to restrict the selection values before the search help values are shown.

Regards,

Jordi

Former Member
0 Kudos

Solved!

Take a look at [|]