Skip to Content
0
Former Member
Dec 29, 2011 at 06:38 AM

problem in FM DYNP_VALUES_UPDATE

524 Views

Here is my COde:

report ZTEST_POOL.
 tables : d020s,mara.

  data: begin of dynpfields occurs 0.
          include structure dynpread.
  data: end of dynpfields.

  selection-screen : begin of block b1 with frame title text-011.
   select-options: p_list for mara-matnr.
selection-screen: end of block b1.

   dynpfields-fieldname = 'P_LIST-LOW'.
   dynpfields-fieldvalue = 'MATERIAL1'.
  append dynpfields.

 dynpfields-fieldname = 'P_LIST-HIGH'.
  dynpfields-fieldvalue = 'MATERIAL2'.
  append dynpfields.

  call function 'DYNP_VALUES_UPDATE'
       exporting
             dyname     = sy-cprog
             dynumb     = sy-dynnr
       tables
             dynpfields = dynpfields
       exceptions
             invalid_abapworkarea = 01
             invalid_dynprofield  = 02
             invalid_dynproname   = 03
             invalid_dynpronummer = 04
             invalid_request      = 05
             no_fielddescription  = 06
             undefind_error       = 07.

Wheni Execute this... My screen Fields P_LIST-LOW and P_LIST-HIGH are not updating.

they are still empty.

plz let me know whats wrong in my code.