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 value request

Former Member
0 Likes
572

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
542

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

5 REPLIES 5
Read only

Former Member
0 Likes
543

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

Read only

0 Likes
542

I HAVE PASSED ALL THE 4 FIELDS IN THE INTERNAL TABLE

Read only

Former Member
0 Likes
542

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

Read only

Former Member
0 Likes
542

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

.

Read only

Former Member
0 Likes
542

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.