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

MODULEPOOL PROGRAM (DYNPREAD VALUE NOT ASSIGNED)

pram_1991
Participant
0 Likes
1,046

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
Read only

RaymondGiuseppi
Active Contributor
0 Likes
945

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
Read only

RaymondGiuseppi
Active Contributor
0 Likes
946

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?

Read only

Former Member
0 Likes
945

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

Read only

0 Likes
945

thank you for your comment ....