Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9730

Re: module pool - table control

$
0
0

Hi

  I think you can use this FMs

Step 1:

'DYNP_GET_STEPL'

In a module at the time Process On Value-Request (POV), the functionmodule defines the current step loop line from which the F4 help wascalled

Step 2 .

call another function module :

DYNP_VALUES_READ

 

Step 3:

Then use this fm

'F4IF_INT_TABLE_VALUE_REQUEST'

 

example:

CALL FUNCTION 'DYNP_GET_STEPL'

    IMPORTING

      povstepl = lv_stepl.

  x_screen_values-stepl     = lv_stepl .

  x_screen_values-fieldname = 'ZAPS_SERVICE-SER_NAME' .

  APPEND x_screen_values TO t_screen_values .



  CALL FUNCTION 'DYNP_VALUES_READ'

    EXPORTING

      dyname     = sy-repid

      dynumb     = sy-dynnr

    TABLES

      dynpfields = t_screen_values.



  READ TABLE t_screen_values INTO x_screen_values INDEX 1 .

  IF sy-subrc = 0.

    SELECT     item_name         "fetching item name based on the hotel and type of service

               price

    FROM       zapt_item_list

    INTO TABLE lt_item_name

    WHERE      hid EQ zapt_bokin_head-hid AND service_name = x_screen_values-fieldvalue .



    IF sy-subrc = 0 .

      CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

        EXPORTING

          retfield    = 'ITEM_NAME'

          dynpprog    = sy-repid

          dynpnr      = sy-dynnr

          dynprofield = 'ZAPS_SERVICE-ITEM_NAME'

          value_org   = 'S'

        TABLES

          value_tab   = lt_item_name

          return_tab  = t_rtn.

      CLEAR lt_item_name .

    ENDIF.


Viewing all articles
Browse latest Browse all 9730

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>