Application Development Blog Posts
Learn and share on deeper, cross technology development topics such as integration and connectivity, automation, cloud extensibility, developing at scale, and security.
cancel
Showing results for 
Search instead for 
Did you mean: 
Bhushan_hs
Participant

Function Module to read value with POPUP

This function module helps in reading the value from the user


Here I suppose enter 12345 as a value

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.

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


2 Comments