Application Development 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: 

Problem in POV

former_member211992
Active Participant
0 Kudos

Dear all

i have 3 input fields in the screen , for the 3rd field i have used POV.

  PROCESS ON VALUE-REQUEST.
        FIELD GV_VERID MODULE VAL_VERID.


in the module val_verid i have used select query to fetch values from mkal and passed that value to CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'.


Problem is in select query i have used first two fields in where condition .those two fields showing empty even after i have given values in the text box.



How to rectify this.

Thanks

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi, use FM

DYNP_VALUES_READ  to read entered values of 2 fields before you call search help

Example :

data s_prueba    TYPE dynpread.
s_prueba-fieldname = 'BELNR'.
  APPEND s_prueba TO t_prueba.

  CALL FUNCTION 'DYNP_VALUES_READ'
    EXPORTING
      dyname     = sy-repid
      dynumb     = sy-dynnr
    TABLES
      dynpfields = t_prueba.

  READ TABLE t_prueba INTO s_prueba INDEX 1 .
*zzz = s_prueba-fieldvalue .

3 REPLIES 3

Former Member
0 Kudos

Hi, use FM

DYNP_VALUES_READ  to read entered values of 2 fields before you call search help

Example :

data s_prueba    TYPE dynpread.
s_prueba-fieldname = 'BELNR'.
  APPEND s_prueba TO t_prueba.

  CALL FUNCTION 'DYNP_VALUES_READ'
    EXPORTING
      dyname     = sy-repid
      dynumb     = sy-dynnr
    TABLES
      dynpfields = t_prueba.

  READ TABLE t_prueba INTO s_prueba INDEX 1 .
*zzz = s_prueba-fieldvalue .

0 Kudos

Thanks maxim ,, got it ..but after clicking the value in help it not get stored in input field.

sivaganesh_krishnan
Contributor
0 Kudos

hi peter ,

You cannot get values if you just give the field name.. You must read the field values using a function module DYNP_VALUES_READ.Using this Function module it is possible to read the values of the text field.

This is because you are working in POV of a particular field. so same way if you want to update some other field with your values.. You cannot give the value directly to the field name . You have to set the values to the field using DYNP_VALUES_UPDATE.

Regards,

Sivaganesh