‎2010 Sep 16 12:23 PM
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
‎2010 Sep 16 1:23 PM
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.