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

Two column matchcode

Former Member
0 Likes
1,760

Hi,

I need to produce a match code in which two columns of data are shown.

Problems are:

  • Whenever a row is selected, both values must be picked on a table control.

  • Need to change column names.

How can this be done?

Thanks.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,343

Hi,

IN the event PROCESS ON VALUE-REQUEST..

Call the function module F4IF_INT_TABLE_VALUE_REQUEST and then in the return internal table...Get the values for both the fields..and assign to the screen fieldname..

Thanks,

Naren

6 REPLIES 6
Read only

Former Member
0 Likes
1,344

Hi,

IN the event PROCESS ON VALUE-REQUEST..

Call the function module F4IF_INT_TABLE_VALUE_REQUEST and then in the return internal table...Get the values for both the fields..and assign to the screen fieldname..

Thanks,

Naren

Read only

0 Likes
1,343

Please, can you correct this code?

In my dynpro (3000) there is a tableview (table control). The two fields I would like to fill whenever I push F4 on one of them and click on a row are named after the original internal table fields, IT_DATOS-SECFAB and IT_DATOS-GRULIN.

So, I try to provide:

TYPES: BEGIN OF values,

secfab TYPE likp-secfab,

grulin TYPE likp-grulin,

END OF values.

DATA: it_fieldtab TYPE TABLE OF dfies WITH HEADER LINE,

it_return_tab TYPE TABLE OF ddshretval WITH HEADER LINE,

it_dynpfld_mapping TYPE TABLE OF dselc WITH HEADER LINE,

values_tab TYPE TABLE OF values.

it_fieldtab-tabname = 'LIKP'.

it_fieldtab-fieldname = 'SECFAB'.

APPEND it_fieldtab.

it_fieldtab-tabname = 'LIKP'.

it_fieldtab-fieldname = 'GRULIN'.

APPEND it_fieldtab.

CLEAR it_fieldtab.

it_dynpfld_mapping-fldname = 'SECFAB'.

it_dynpfld_mapping-dyfldname = 'IT_DATOS-SECFAB'.

APPEND it_dynpfld_mapping.

CLEAR it_dynpfld_mapping.

it_dynpfld_mapping-fldname = 'GRULIN'.

it_dynpfld_mapping-dyfldname = 'IT_DATOS-GRULIN'.

APPEND it_dynpfld_mapping.

CLEAR it_dynpfld_mapping.

CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

EXPORTING

retfield = 'SECFAB'

dynpprog = sy-cprog

dynpnr = sy-dynnr

dynprofield = 'IT_DATOS-SECFAB'

TABLES

value_tab = values_tab

fieldtab = it_fieldtab

return_tab = it_return_tab

dynpfld_mapping = it_dynpfld_mapping.

What's wrong with that?

Thanks a lot.

Read only

0 Likes
1,343

How very silly of me. It is already working.

Thanks a lot.

Read only

seshatalpasai_madala
Product and Topic Expert
Product and Topic Expert
0 Likes
1,343

Hi,

If you want to transfer data from a search help to more than one field on the table then you have to assign this search help at the table level.

Goto SE11 and open your strucutre and for the any one fields you want this search help to transfer data put you cursor there and then click on the Search help icon there mention you search help and do paramter mapping.

Then this will transfer data to multiple fields on the screen.

Regards,

Sesh

Read only

0 Likes
1,343

That does sound well, but, alas, I am unable to locate the icon you talk of.

I open the table LIKP on SE11, select the line corresponding to GRULIN (one of the two columns I need), and I search for the <i>search help icon</i>. Where should I look? If it is not so easy to explain with words, could you please send me a printscreen to <i>qwerty at ctv dot es</i>?

Thanks a lot.

Read only

Former Member
0 Likes
1,343

Search helps can be implemented in a variety of ways:

please see the link for your use ...

<a href="http://">http://www.sapdevelopment.co.uk/dictionary/shelp/shelp_imp.htm</a>

<a href="http://">http://www.sapdevelopment.co.uk/dictionary/shelp/shelp_basic.htm</a>

reward points if it is usefull ...

Girish