cancel
Showing results for 
Search instead for 
Did you mean: 

Smartforms closing problem

Former Member
0 Kudos

Dear Friends

I'm working with smartform and i want to do small adjustment

when user display the print screen ( i mean display page) he can go back with BACK button or can print with PRINT button

so if he tack print i want to do another part, that is save that print as a PDF format (I mean tack a print and save PDF also)

*i have PDF creating part

if you can suggest, how to close smartform and return to main program after Print (without BACK button) i can handle*

Please help me to solve this matter.

Can you understand my question?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos
Former Member
0 Kudos

Dear Sravanthi

Thanks for your comment,

but i want print hard copy also (Printer Copy)

in your part only PDF file.

Thanks again

Former Member
0 Kudos

HI

this is my understanding of ur requirement, a new report pgm is created which is a driver program for smartform, the output of report program has print button, as u click on the print button both PDF file and physical copy should be printed.

Former Member
0 Kudos

Dear Lavanya

yes of course,

that is my question.

thanks for the understanding.

Answers (3)

Answers (3)

Former Member
0 Kudos

I Closed this thread, thanks for all, specially Sravanthi

Former Member
0 Kudos

Hi

data:
w_input   TYPE ssfcompin,            " Smart Composer input parameters
  w_control TYPE ssfctrlop.            " Control Structure.

Call function ssfcomp_open.
EXPORTING
      input = w_input
    EXCEPTIONS
      error = 1.

LOOP AT t_tab INTO  fs_tab.
w_control-no_open   = ' '.
w_control-no_close  = ' '.
*"Individual spool request.............................................
      IF w_flag NE '1'.
        w_control-no_open  = 'X'.
        w_control-no_close = ' '.
        w_flag = 1.
call function w_nam-->smartform function module
call function w_nam-->smartform function module.

Call function ssfcomp_close.
EXCEPTIONS
      error = 1.

Regards,

Sravanthi

Former Member
0 Kudos

Dear Sravanthi

thanks lot, you were try to help me,

but dear I unable to follow your sample codes, can you please describe me

this is the my code


* Collect Function Module Name
  CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
    EXPORTING
      FORMNAME           = 'ZPP014_REP_DAILYLINESITUATION'
    IMPORTING
      FM_NAME            = LV_FNAME
    EXCEPTIONS
      NO_FORM            = 1
      NO_FUNCTION_MODULE = 2
      OTHERS             = 3.
*

*

Itab pass to smartform by memory Id


  EXPORT IT_SCHDB TO MEMORY ID 'SCHDB'.

** call the function module to print the layout
  IF NOT LV_FNAME IS INITIAL.

call FUNCTION MODULE


    CALL FUNCTION LV_FNAME.

after close the smart form this PDF part functioning (PRINT or just come back (BACK button)

you know, i want to function this part only after print


PERFORM PRINT_PDF USING LV_FNAME.
ENDIF.

i hope your can help me with your experience,

Thanks in advance

former_member181995
Active Contributor
0 Kudos

This is your closed 3rd sep [thread|]

Former Member
0 Kudos

Dear Amith

In general part i couldn't found any good answers that's why i close that thread

Former Member
0 Kudos

Dear Sravanthi

are you not here?

former_member181995
Active Contributor
0 Kudos

>

> Dear Sravanthi

>

> are you not here?

Cheers

Former Member
0 Kudos

Dear Amith

please don't laugh to peoples.

if you haven't enough knowledge to answer there questions better to be silance.

i though Sravanthi will help me and she have good knowledge about this matter, that's why i ask like this.

however thanks for the reply my thread.

Have you a good day!