Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Poppup to SAVE .PS file on front end while printing

Former Member
0 Kudos

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

6 REPLIES 6

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

Dear All,

I want to give popup to take file name to pstscript file on local device.

Please help.

Kind Regards,

Prasad

0 Kudos

try this : CC_POPUP_STRING_INPUT

CC_POPUP_CONTROL_NAME_INPUT

Former Member
0 Kudos

Actually, user wants .PS (post script) file & he is using TYPE G - POST Script printer. how to do this?

Please help.

Kind Regards,

Prasad

Former Member
0 Kudos

Thanks a lot.

Best Regards,

Prasad