03-27-2009 11:09 AM
Dear All,
I want to give popup to save '.ps' file while printing a form from print program.
Can anyone help?
Thanks a lot in advance.
Best Regards,
Prasad
03-27-2009 11:15 AM
hi ,
do you want to display the pop-up with path and extension before saving the file.
if so use this function module
data returncode(1) type c.
text_oo1 = 'do you lke to save the file--Path in input screen'
call function 'POPUP_TO_CONFIRM'
exporting
titlebar = text-001
text_question = 'Are you sure you want to save ?'
text_button_1 = 'OK'
icon_button_1 = 'ICON_OKAY'
text_button_2 = 'Cancel'
icon_button_2 = 'ICON_CANCEL'
default_button = '2'
display_cancel_button = ''
importing
answer = returkode.
* Test the returnkode. If the first button is pushed the returncode is 1 and if the second
* button is pushed the returncode is 2
if returncode = 1.
perform save.
endif.
regards,
Prabhudas
03-27-2009 11:20 AM
hi,
below function modukle use to display old file name allow user to change the path at run time before saving
DATA : w_answer TYPE char30.
CALL FUNCTION 'POPUP_TO_GET_VALUE'
EXPORTING
fieldname = 'FILENAME'
tabname = 'RLGRAP'
titel = 'Change File name'
valuein = p_filename
IMPORTING
answer = w_answer
valueout = p_filename.
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Regards,
Prabhudas
03-27-2009 12:01 PM
Dear All,
I want to give popup to take file name to pstscript file on local device.
Please help.
Kind Regards,
Prasad
03-27-2009 12:15 PM
03-27-2009 12:28 PM
Actually, user wants .PS (post script) file & he is using TYPE G - POST Script printer. how to do this?
Please help.
Kind Regards,
Prasad
12-11-2009 5:22 AM