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 and validation in table control

Former Member
0 Likes
366

Hi all,

I have created a table control with wizard using internal table. in that i have provided a f4 help on matrial no.

i want next field maktx to automatically populated from master table based on the matrial no selected in matnr field.

moreover if the user manually enters the material no inspite of using f4 help , then this materail no should be checked against entries in mara table. if an entry doues not exist in mara table table then processing should be stopped.

plz help.

Regards,

Ashmita Singh

1 REPLY 1
Read only

Sandeep_Panghal
Product and Topic Expert
Product and Topic Expert
0 Likes
334

for first query , this can be achieved using :

    • If we 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.

This will automatically fill the other field as well (here CONNID).

For second issue , you can do a check on at selection-screen against MARA.