cancel
Showing results for 
Search instead for 
Did you mean: 

Pop up in smart forms

Former Member
0 Kudos

Hi all,

I need the following functionality:

When a SF is printed (just before that actually) i need a pop-up to come up and allow the user to type a few lines of text.

When he/she hits the SAVE button the popup should close and the typed text should appear on the smartform which is printed.

I have got these below functional modules which were told will solve the purpose in few posts whihc are already there but the following functional modules as suggested requires few mandatory parameters

such as form name,programe name,input_text,or title....etc.

May i know what does these each correspond to actually ? what is the 'program name' we have to actually pass here? 'form name' would be the smart form aname we are using i guess.... please let me know the code and exact usage of this

POPUP_GET_VALUES

POPUP_GET_VALUES_DB_CHECKED

POPUP_GET_VALUES_USER_CHECKED

POPUP_GET_VALUES_USER_HELP

POPUP_GET_VALUES_USER_BUTTONS

POPUP_GET_VALUES_SET_MAX_FIELD

Thanks and Regards,

Archana.V

Accepted Solutions (1)

Accepted Solutions (1)

Rodrigo-Giner
Active Contributor
0 Kudos

Hi Archana.

Each Form has associated a "printing program" first u have to know this program, if it uses the standard u will have to make a copy of that one and change the customizing of that specific class of message ( tx V/30 and V/40 )

At the start of the printing program u could use a Pop up function to retrieve the values.

check this sample to retrieve 2 values in a Popup


report pop_up_test.

data: IT_TABLE like sval OCCURS 0 WITH HEADER LINE..

IT_TABLE-TABNAME = 'MARA'.   "Table of the field requested
IT_TABLE-fieldname = 'MATNR'. "Field requested
APPEND IT_TABLE.

IT_TABLE-TABNAME = 'MARA'.
IT_TABLE-FIELDNAME = 'MTART'.
APPEND IT_TABLE.

CALL FUNCTION 'POPUP_GET_VALUES'
  EXPORTING
  POPUP_TITLE           = 'Complete the values'
  START_COLUMN          = '5'
  START_ROW             = '5'
 TABLES
   FIELDS                = IT_TABLE.
 EXCEPTIONS
   ERROR_IN_FIELDS       = 1
   OTHERS                = 2 .

LOOP AT IT_TABLE.
  WRITE 😕 IT_TABLE-VALUE. "Values that u enter in the popup.
ENDLOOP.

The field are passed to the field VALUE of the IT_TABLE internal table, u can use it to assign that value to the field of the smatform that u want.

And have never do this...but it has to work fine, if u have any trouble, tell me.

Former Member
0 Kudos

Hi Rodrigo,

Thanks a lot ,it solved my problem.

Regards,

Archana

Answers (0)