cancel
Showing results for 
Search instead for 
Did you mean: 

Smartforms

Former Member
0 Kudos

HI All,

I have designed a smartform and when the smartform is executed it genreates a spool number.

I have printed the spool in my local printer . it is printing fine , But when the same is converted to PDf file and save locally on my desktop and printed it is printing shirking format .

The entire desinged has been shirked to the lower size and printed .

Requirement is :

the layout design should be of same size when it is printed directly from spool and when is printed from PDF file,

I have used the funtion module CONVERT_OTFSPOOLJOB_2_PDF' do I need to control anything in this functional module to correct the error

Please help me to reslove the issue

Thanks

Sandhya

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Kudos

you can change the Spool: Output device and check it.

Former Member
0 Kudos

Hi,

check this link .It will be useful for you in printing form output as PDF doc.

http://help.sap.com/saphelp_nw70/helpdata/en/27/67443cc0063415e10000000a11405a/frameset.htm

-


Chandra

Former Member
0 Kudos

Hi,

For PDF conversion of smart forms you can use FM : CONVERT_OTF_2_PDF. It is better than which using by you in your driver program.

Former Member
0 Kudos

Hi ,

Please check with the paramaters of your function module n check , that what can you do by setting those parameters.

Thanks,

Rahul

Former Member
0 Kudos

Hi,

Execute the program RSTXPDFT4 and give spool number and execute.

Former Member
0 Kudos

Hi Sandhya,

I have the same scenario. Buty I am taking OTF data instead Spool job... try with OTF data.

Its Simple,. beclow is a sample code check out.



DATA:  I_OTF    TYPE ITCOO OCCURS 0 WITH HEADER LINE,
        I_TLINE  TYPE TABLE OF TLINE WITH HEADER LINE,
        W_RETURN TYPE SSFCRESCL,
        W_CONTROL TYPE SSFCTRLOP,
        V_LEN_IN                 TYPE SO_OBJ_LEN,
        V_BIN_FILESIZE           TYPE I,
        V_NAME                   TYPE STRING,
        V_EXT                    TYPE STRING,
        V_TITLE                  TYPE STRING,
        V_PATH                   TYPE STRING,
        V_FULLPATH               TYPE STRING,
        V_FILENAME               TYPE STRING,
        W_OPTIONS TYPE SSFCOMPOP.

        CALL FUNCTION FNAME
          EXPORTING
            CONTROL_PARAMETERS = W_CONTROL
            OUTPUT_OPTIONS     = W_OPTIONS
            USER_SETTINGS      = 'X'
            GV_NAME1           = WA_LFA1-NAME1
            GV_ORT01           = WA_LFA1-ORT01
          IMPORTING
            JOB_OUTPUT_INFO    = W_RETURN
          TABLES
            IT_BSAK            = IT_BSAK.

        I_OTF[] = W_RETURN-OTFDATA[].

         CALL FUNCTION 'CONVERT_OTF_2_PDF'
            IMPORTING
              BIN_FILESIZE   = V_LEN_IN
            TABLES
              OTF            = I_OTF
              DOCTAB_ARCHIVE = IT_DOCS
              LINES          = I_TLINE.

        CALL FUNCTION 'GUI_FILE_SAVE_DIALOG'
          EXPORTING
            DEFAULT_FILE_NAME = V_NAME
          IMPORTING
            FILENAME          = V_NAME
            PATH              = V_PATH
            FULLPATH          = V_FULLPATH.

        MOVE V_FULLPATH TO V_FILENAME.

        CALL FUNCTION 'GUI_DOWNLOAD'
          EXPORTING
            BIN_FILESIZE = V_BIN_FILESIZE
            FILENAME     = V_FILENAME
            FILETYPE     = 'BIN'
          TABLES
            DATA_TAB     = I_TLINE.

Thanks & regards,

Dileep .C