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

Re: How to return value from f4 help into table control ?

$
0
0

Hi,

 

First get the line number of the table control using the FM 'DYNP_GET_STEPL' and store it in g_stepl .

Then pass g_stepl against stepl parameter of  FM  'F4_INT_TABL_VALUE_REQUEST'.

 

DATA: g_stepl type sy-stepl

 

 

CALL FUNCTION 'DYNP_GET_STEPL'

IMPORTING

  povstepl        = g_stepl

EXCEPTIONS

  stepl_not_found = 1

OTHERS          = 2.

IF sy-subrc IS INITIAL.

* Display search help from the internal table

   CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

    EXPORTING

     retfield        = 'GRADE'

     dynpprog        = sy-repid

     dynpnr          = sy-dynnr "'0100

     dynprofield     = 'ITAB-GRADE'

     stepl           = g_stepl

     value_org       = 'S'

    TABLES

     value_tab       = it_grade

     return_tab      = it_return.

    EXCEPTIONS

     parameter_error = 1

     no_values_found = 2

     OTHERS          = 3.

 

Regards,

DPM


Viewing all articles
Browse latest Browse all 9193

Trending Articles



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