on 10-31-2007 1:02 PM
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
80 | |
9 | |
9 | |
7 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.