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

f4 help in table maintainence generator

Vijay
Active Contributor
0 Likes
2,622

hi all,

i have to to give f4 for one field in table maintainence of my custom table.

say i have two fields a, b. say some value is entered a and then f4 is pressed on b.then i need to show f4 based on the value entered in a.

i have written the code in process on value request event but i need to have only that particular record that is having the currten line on which f4 is pressed so that i can fetch on the basis of value of a only.

if any one can tell me if there is any structure that holds the current record.

regards

vj

hi all,

i have to to give f4 for one field in table maintainence of my custom table.

say i have two fields a, b. say some value is entered a and then f4 is pressed on b.then i need to show f4 based on the value entered in a.

i have written the code in process on value request event but i need to have only that particular record that is having the currten line on which f4 is pressed so that i can fetch on the basis of value of a only.

if any one can tell me if there is any structure that holds the current record.

regards

vj

5 REPLIES 5
Read only

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

Try this:

You use F4 help on one field and want to transfer values for another 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 Member
0 Likes
1,151

Hi

As per your query i understood that When table maintainance is done for a table from SM30, on selection of F4 help value of Field1 should determine the F4 help values for field2.

This can be done in below approach

1) For Field 1 and Field 2 create a new application master table and maintain all the possibilities of F4 help values for field 1 & field 2- say table is A

2) use field 1 & field 2 as part of other fields in any table and maintain check table relation ship for both fields with table A

Read only

Former Member
0 Likes
1,151

Hi,

Refer to this link..[Providing F4 HELP for Table Maintanence generator |]

Read only

Former Member
0 Likes
1,151

Use FM DYNP_VALUES_READ to get the display component of the table maintenance generator.

Regards,

Joan

Read only

fikretsomay
Participant
0 Likes
1,151

This message was moderated.