Quantcast
Channel: SCN : Document List - ABAP Development
Viewing all articles
Browse latest Browse all 935

Function Module to read value with POPUP

$
0
0

Function Module to read value with POPUP

 

This function module helps in reading the value from the user


1.png

 

 

Here I suppose enter 12345 as a value

 

2.png

 

 

 

So in above screen shot user can enter a value in the text box & this value can be read in the program.

 

We can read the user entered value as show in below screen shot.

 

3.png

 

A sample program shows how exactly we can use this function module

 

 

REPORT ZTEST .

data: begin of  tab occurs 0.

      include STRUCTURE SVAL.

data: end of tab.

 

DATA: SRETURN(1) TYPE C.

 

clear tab.

 

      tab-TABNAME   = 'ZOPPT_PROCURE'.

      tab-FIELDNAME = 'DOC_NO'.

      tab-FIELDTEXT = 'Change document number'.

      APPEND tab.

      CLEAR  tab.

 

 

CALL FUNCTION 'POPUP_GET_VALUES'

  EXPORTING

    popup_title           = 'Test'

   START_COLUMN          = '5'

   START_ROW             = '5'

IMPORTING

   RETURNCODE            = SRETURN

  tables

    fields                =  tab

EXCEPTIONS

   ERROR_IN_FIELDS       = 1

   OTHERS                = 2

          .

 

 

Regards,

Nagabhushan



Viewing all articles
Browse latest Browse all 935

Trending Articles



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