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

About FM 'DYNP_VALUES_READ'

Former Member
0 Likes
448

Hi.

I have quetions for FM 'DYNP_VALUES_READ'.

As far As I know, this FM should be used for F4help, but I'd like to this for only getting screen values.

If I use this in certain screen value-request, can I use returned table records to list out screen values?

please help me.

thanks.

Hi.

I have quetions for FM 'DYNP_VALUES_READ'.

As far As I know, this FM should be used for F4help, but I'd like to this for only getting screen values.

If I use this in certain screen value-request, can I use returned table records to list out screen values?

please help me.

thanks.

2 REPLIES 2
Read only

Former Member
0 Likes
421

This message was moderated.

Read only

Former Member
0 Likes
421

hello,

Kindly go through this


PARAMETERS: p_bu LIKE zta_emc-bu_unit,
            p_sbu(50) TYPE c. "LIKE zta_emc-sbu_unit.

DATA : itab LIKE zta_sbu_unit OCCURS 0 WITH HEADER LINE.
DATA : itab_bu LIKE zta_bu_unit OCCURS 0 WITH HEADER LINE.
DATA : itab_code LIKE zta_bu_sbu OCCURS 0 WITH HEADER LINE.
DATA:  tp_dirty LIKE ddshretval OCCURS 0 WITH HEADER LINE.
DATA it_dynfield TYPE STANDARD TABLE OF dynpread WITH HEADER LINE.

AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_sbu.

* the fetching of data has to be done within the AT SELECTION-SCREEN ON VALUE-REQUEST.

  CALL FUNCTION 'DYNP_VALUES_READ'
    EXPORTING
      dyname             = sy-repid
      dynumb             = sy-dynnr
*      translate_to_upper = 'X'
      request            = 'A'
    TABLES
      dynpfields         = it_dynfield.
  READ TABLE it_dynfield WITH KEY fieldname = 'P_BU'.

Regards,

Mansi.