Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

screen exit QQMA0001

hi!

i created new screen 102 in this exit.

on the screen i have pushbutton that triggers the FM

f4if_int_table_value_request.

i need to choose one column and return its value to the screen field.

i get the value tab field and i see it in the PBO, but when i choose the cell i want to return it to the screen

but nothing happens.

i passed the follwing parameters:

1.DYNPROFIELD = 'QMEL-ZZAENNR1' (the field on screen that i want to return the value to )

2.RETFIELD = AENNR ( the name of the filed from table value_ tab that i want to return.

3. value_org = 'S'.

4.PROGNAME AND SYNAME i moved sy-repid and sy-dynnr to variables and passed them to the FM

if someone know what might be the problem it will be big help.

regards

yifat

Tags:
replied

Hi again,

1. In the PAI flow logic, write like this :

PROCESS AFTER INPUT.

<b>PROCESS ON VALUE-REQUEST.

FIELD A MODULE MYF4.</b>

(where A is the screen field name)

(change A in your case)

2. Now write one extra module MYF4,

with this code. (for eg.)

(u may change your dynpro field name,

in my eg, it is 'A'.

MODULE MYF4 INPUT.

BREAK-POINT.

*----


DATA : BEGIN OF ITAB OCCURS 0,

UNAME LIKE USR01-BNAME,

END OF ITAB.

data : RETURN_TAB LIKE DDSHRETVAL occurs 0 .

data : RETURN_wa LIKE DDSHRETVAL .

*----


*PARAMETERS : A(12) TYPE C.

*----


ITAB-UNAME = 'U01'. APPEND ITAB.

ITAB-UNAME = 'U02'. APPEND ITAB.

ITAB-UNAME = 'U03'. APPEND ITAB.

CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

EXPORTING

  • DDIC_STRUCTURE = ' '

retfield = 'ITAB-UNAME'

  • PVALKEY = ' '

DYNPPROG = SY-REPID

DYNPNR = SY-DYNNR

DYNPROFIELD = 'A'

  • STEPL = 0

  • WINDOW_TITLE =

  • VALUE = ' '

VALUE_ORG = 'S'

  • MULTIPLE_CHOICE = ' '

  • DISPLAY = ' '

  • CALLBACK_PROGRAM = ' '

  • CALLBACK_FORM = ' '

  • MARK_TAB =

  • IMPORTING

  • USER_RESET =

tables

value_tab = ITAB

  • FIELD_TAB = FTAB

RETURN_TAB = return_tab

  • DYNPFLD_MAPPING =

  • EXCEPTIONS

  • PARAMETER_ERROR = 1

  • NO_VALUES_FOUND = 2

  • OTHERS = 3

.

break-point.

ENDMODULE.

3. then run your module pool.

4. It will work fantastic.

regards,

amit m.

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question