cancel
Showing results for 
Search instead for 
Did you mean: 
Subscribe

My sceen 200 is called from a button in screen 100.

At PROCESS AFTER INPUT.(screen 200)PROCESS ON VALUE-REQUEST.
FIELD LT_TABLE-LGORT
MODULE f4help.

Code:

SELECT SINGLE LGORT
 FROM MARD
 WHERE MATNR EQ @LT_TABLE-MATNR
 AND WERKS EQ @LT_TABLE-werks
 INTO @IT_FINAL.


 CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
 EXPORTING
 RETFIELD = 'LGORT'
 VALUE_ORG = 'S'
 TABLES
 VALUE_TAB = IT_FINAL
 RETURN_TAB = IT_RETURN.


 WRITE IT_RETURN-FIELDVAL TO LT_TABLE-LGORT.
 REFRESH IT_FINAL.

But it is not opening.

If I simply call the perform ,it will open automatically...

How can I fix this?

Thank You in advance

Accepted Solutions (1)

Accepted Solutions (1)

RaymondGiuseppi
Active Contributor

Is the field name in the dynpro definition actually 'LT_TABLE-LGORT' and, if yes, is this field defined in some TABLE CONTROL?

  • In case of TABLE CONTROL you must use the field STEPL to communicate the record index with related FM, get it from FM DYNP_GET_STEPL.
  • You are also required to get values of plant and material currently on screen before selecting data, the PAI is not yet executed so Abap variables are not updated, use FM DYNP_VALUES_READ (also with STEPL if TABLE CONTROL)
  • Either give the actual field name on dynpro to the F4 FM or update it explicitly from returned value with FM DYNP_VALUES_UPDATE (also with STEPL...)
former_member2492
Active Participant
0 Likes
CALL FUNCTION 'DYNP_GET_STEPL'
 IMPORTING
 POVSTEPL = LD_POVSTEPL .

Fixed everything,thanks

Answers (0)