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: 

MODULEPOOL PROGRAM (DYNPREAD VALUE NOT ASSIGNED)

pram_1991
Participant
0 Kudos

Hi Experts,

i need immediate solution for module pool program DYNPREAD value not assigned . (EKET-MENGE Value)

if i enter directly (dynpred-value) value assign its working good (Please refer below mentioned code and image)

  LS_DYNP-FIELDNAME = 'GS_MSEG-MENGE'.
  LS_DYNP-FIELDVALUE = '10.00'.
  LS_DYNP-STEPL = LV_INDEX.
  APPEND LS_DYNP TO LT_DYNP. CLEAR LS_DYNP.

If I mentioned field to (dynpred-value) value not showing in screen (please refer blow mentioned code)

  DATA : LV_MENGE TYPE MSEG-MENGE.
  SELECT SINGLE MENGE INTO LV_MENGE FROM EKET WHERE
                EBELN = GS_MSEG-EBELN AND EBELP = GS_MSEG-EBELP AND ETENR = GS_MSEG-ETENR .

  LS_DYNP-FIELDNAME = 'GS_MSEG-MENGE'.
  LS_DYNP-FIELDVALUE = LV_MENGE.
  LS_DYNP-STEPL = LV_INDEX.
  APPEND LS_DYNP TO LT_DYNP. CLEAR LS_DYNP.
1 ACCEPTED SOLUTION

raymond_giuseppi
Active Contributor
0 Kudos

Well, you didn't check the sy-subrc success of the select statement, are you trying to read database before commit or are your key values false?

3 REPLIES 3

raymond_giuseppi
Active Contributor
0 Kudos

Well, you didn't check the sy-subrc success of the select statement, are you trying to read database before commit or are your key values false?

former_member182550
Active Contributor
0 Kudos

Given that he gets something back in his select, should he not be calling function module dynp_values_update ?

Secondly demands get my hackles up. ("I need immediate")

Rich

0 Kudos

thank you for your comment ....