Skip to Content

Function Module to read value with POPUP

This function module helps in reading the value from the user


/wp-content/uploads/2013/02/1_186826.png

Here I suppose enter 12345 as a value

/wp-content/uploads/2013/02/2_186833.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.

/wp-content/uploads/2013/02/3_186834.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


To report this post you need to login first.

2 Comments

You must be Logged on to comment or reply to a post.

Leave a Reply