‎2009 Jun 08 8:22 AM
I am using this FM F4IF_INT_TABLE_VALUE_REQUEST for F4 value request..
In that display there are 4 fields.This was for the field Matnr.When i press F4 its displaying 4 fields.Now i need the Material number to be dsplayed in the Matnr field but the return field wanto be another field.
So is it possible to select more than 1 field (not record) in this FM..Can anybody suggest me how to do this
‎2009 Jun 08 9:29 AM
Hi,
I think you want MATNR in your F4 but on selecting a particular MATNR you need some other
field value for that particular MATNR selected.You can achieve the requirement. For this you have to populate both the fields in your F4 internal table .
Hope this will give you an idea.
Regards,
Smart Varghese
‎2009 Jun 08 9:29 AM
Hi,
I think you want MATNR in your F4 but on selecting a particular MATNR you need some other
field value for that particular MATNR selected.You can achieve the requirement. For this you have to populate both the fields in your F4 internal table .
Hope this will give you an idea.
Regards,
Smart Varghese
‎2009 Jun 08 10:08 AM
‎2009 Jun 08 10:11 AM
Hi ,
Please check this code - -
DATA : BEGIN OF fs,
matnr TYPE mara-matnr,
ersda TYPE mara-ersda,
END OF fs.
DATA: t_itab LIKE TABLE OF fs.
INITIALIZATION.
SELECT matnr ERSDA FROM mara INTO TABLE t_itab
.
PARAMETERS : p_a TYPE mara-ersda .
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_a.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
* DDIC_STRUCTURE = ' '
retfield = 'ERSDA' " This value will be returned
* PVALKEY = ' '
dynpprog = sy-cprog
dynpnr = sy-dynnr
dynprofield = 'P_A'
value_org = 'S'
TABLES
value_tab = t_itab
.Regards
Pinaki
‎2009 Jun 08 11:15 AM
Hi,
According to my requirement i have used Z table.
Compare your code with this sample code.
TYPES:BEGIN OF T_ZTPPI,
WORDNO LIKE ZTPPI-WORDNO,
END OF T_ZTPPI.
DATA: LT_ZTPPI TYPE TABLE OF T_ZTPPI.
select-options: S_WORDNO FOR ZTPPI-WORDNO,
SELECT WORDNO
FROM ZTPPI INTO TABLE LT_ZTPPI.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR S_WORDNO-LOW.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = 'WORDNO'
DYNPPROG = SY-CPROG
DYNPNR = SY-DYNNR
DYNPROFIELD = 'S_WORDNO'
VALUE_ORG = 'S'
tables
value_tab = LT_ZTPPI[]
EXCEPTIONS
PARAMETER_ERROR = 1
NO_VALUES_FOUND = 2
OTHERS = 3
AT SELECTION-SCREEN ON VALUE-REQUEST FOR S_WORDNO-HIGH.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = 'WORDNO'
DYNPPROG = SY-CPROG
DYNPNR = SY-DYNNR
DYNPROFIELD = 'S_WORDNO'
VALUE_ORG = 'S'
tables
value_tab = LT_ZTPPI[]
EXCEPTIONS
PARAMETER_ERROR = 1
NO_VALUES_FOUND = 2
OTHERS = 3
.
‎2009 Jun 08 11:21 AM
Hi,
in the function module that you are using,
there are 2 more tables
RETURN_TAB and DYNPFLD_MAPPING,
in DYNPFLD_MAPPING you can set which internal table field
is to be mapped to which screen field,
and if you want to do some processing and then populate the screen field
you can use RETURN_TAB.
Regards,
Samson Rodrigues.