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

description is not displaying automatically with f4 help

Former Member
0 Likes
1,925

Hi Guys,

I've a field on the selection screen to which i've provided f4 functionality using 'F4IF_INT_TABLE_VALUE_REQUEST' fm. I've a comment field besides the field, whenever i select a record from the f4 screen then comment field should show the description of that.

Right now it is showing description when i press enter. But without pressing enter how can i display that directly. Please help me out.

Suppose my f4 screen is like this

field_value description

a aaa

b bbb

c ccc

d ddd

if i click on a record then on the selction screen it should display the description of it automatically.

pls help me out

regards

mallika

1 ACCEPTED SOLUTION
Read only

Sandeep_Panghal
Product and Topic Expert
Product and Topic Expert
0 Likes
1,478

Try this:

      • If we use F4 help on one f iled and want to transfer value sfor anotehr field on the screen with values from this

    data loto TYPE TABLE OF dselc.

    data ls_loto TYPE dselc.

Fill DYNPFLD_MAPPING with fieldname and screen-name

    ls_loto-fldname = 'CARRID'.

    ls_loto-dyfldname = 'ABC'.

    APPEND ls_loto to loto.

    CLEAR ls_loto.

     ls_loto-fldname = 'CONNID'.

    ls_loto-dyfldname = 'ABCD'.

    APPEND ls_loto to loto.

CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

  EXPORTING

   DDIC_STRUCTURE         = 'SFLIGHT'

    retfield               = 'CARRID'

*   PVALKEY                = ' '

   DYNPPROG               = sy-repid

   DYNPNR                 = sy-dynnr

   DYNPROFIELD            = 'ABC'

   VALUE_ORG              = 'S'

  tables

    value_tab             = it_sflight

   FIELD_TAB              = lot

   RETURN_TAB             = ret

   DYNPFLD_MAPPING        = loto.

Hi Guys,

I've a field on the selection screen to which i've provided f4 functionality using 'F4IF_INT_TABLE_VALUE_REQUEST' fm. I've a comment field besides the field, whenever i select a record from the f4 screen then comment field should show the description of that.

Right now it is showing description when i press enter. But without pressing enter how can i display that directly. Please help me out.

Suppose my f4 screen is like this

field_value description

a aaa

b bbb

c ccc

d ddd

if i click on a record then on the selction screen it should display the description of it automatically.

pls help me out

regards

mallika

8 REPLIES 8
Read only

Sandeep_Panghal
Product and Topic Expert
Product and Topic Expert
0 Likes
1,479

Try this:

      • If we use F4 help on one f iled and want to transfer value sfor anotehr field on the screen with values from this

    data loto TYPE TABLE OF dselc.

    data ls_loto TYPE dselc.

Fill DYNPFLD_MAPPING with fieldname and screen-name

    ls_loto-fldname = 'CARRID'.

    ls_loto-dyfldname = 'ABC'.

    APPEND ls_loto to loto.

    CLEAR ls_loto.

     ls_loto-fldname = 'CONNID'.

    ls_loto-dyfldname = 'ABCD'.

    APPEND ls_loto to loto.

CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

  EXPORTING

   DDIC_STRUCTURE         = 'SFLIGHT'

    retfield               = 'CARRID'

*   PVALKEY                = ' '

   DYNPPROG               = sy-repid

   DYNPNR                 = sy-dynnr

   DYNPROFIELD            = 'ABC'

   VALUE_ORG              = 'S'

  tables

    value_tab             = it_sflight

   FIELD_TAB              = lot

   RETURN_TAB             = ret

   DYNPFLD_MAPPING        = loto.

Read only

former_member229729
Active Participant
0 Likes
1,478

Hi,

Set the Parameters of the Function Module as given below:

RETFIELD = <name of return field in internal table>

Say: your field must be the Description Field of Internal table

DYNPPROG = <Report Name i.e sy-repid>

DYNPNR = <Screen number e.g. 1000 incase of sel.screen)

DYNPROFIELD = <screen field name>

Thanks and regards,

RamaniN

Read only

former_member195698
Active Contributor
0 Likes
1,478

Hello Mallika,

Use the following code after the call to the Function - F4IF_INT_TABLE_VALUE_REQUEST

a) import record_tab from memory id 'mcx_record_tab'.

read table record_tab into wa_rectab index 1.

The selected value is stored in this record

where the table record_tab is declared in the following way

data:record_tab like seahlpres occurs 0 with header line,

b) Use the value and update the SECOND Field using FM - DYNP_VALUES_UPDATE

Regards,

Aj

Read only

0 Likes
1,478

Hi Guys,

Thanks for the reply but im not clear.

Lets say i got two fields like this.

Selection-screen: begin of line.

Select-options : field1 for ztable-field1 no intervals no extensions.

selection-screen: comment (50) description.

Selection-screen : end of line.

AT SELECTION-SCREEN ON VALUE-REQUEST FOR field1

perform get_field1 changing field1-low

description.

form get_field1 CHANGING p_field1-low

p_descriotion

Here im populating my internal table containing field1 and description.

Im calling the function module 'F4IF_INT_TABLE_VALUE_REQUEST' and passing field1

but how to pass description?

pls clarify..

Read only

0 Likes
1,478

You have to populate "description " as well in the internal table which you are passing to FM.

Read only

0 Likes
1,478

Yes..my internal table is having description also...im populating field1 and description into that

and calling function module and passing the field1 and internal table. But how to get description on the selection screen????

Edited by: Mallika Chennasamudram on May 14, 2009 11:17 AM

Read only

0 Likes
1,478

Then try the above solution which ihave suggested , map DYNPFLD_MAPPING with the selection paramters.

Read only

0 Likes
1,478

Hey thanks dynpro mapping has resolved the issue

Edited by: Mallika Chennasamudram on May 14, 2009 11:52 AM