SapScript Print prog

Hi,
I have been trying to print the values from the print prongram into the form. in the print  program the values are getting populated but, the same values when i am trying to print in the form they are not getting printed.
after opening the form i am calling the write_form as follows.
This is with regard to a Billing Contract.. i.e when the billing is done a contract is getting generated and the same details i am trying to print and in the print program i have used function module 'BAPI_CONTRACT_CREATEFROMDATA'  to populate the data into respective internal tables and then i am loopint throught the itab which is populated through the BAPI function.
In the print program the internal table is having the data but the same in not getting printed in the form.
I am executing the print form through RSNAST00. I was wondering whether it requires any configuration.. needs to be done ..since i am populating data using BAPIs.
Help in this regard is very much required.
Thanks in advance.

Problem solved
EXCL_VAT is a quantity field and the value field in ITCSY is a Character field,  so had to change the code in the following manner.
write EXCL_VAT to outtab-value.
condense outtab-value.
Regards
Hrishi

Similar Messages

  • Smartforms :Multiple forms 2 be printed in single print prog,PDF too

    Hello Smartforms Gurus
    I need to print 4 forms (Export Invoice, packing List, Enclosure to Packing list, Case marking) within a single print prog .
    User will execute this prog and it should print all the 4 forms and then by clicking on a button(Archive) there
    it should download a single pdf file containing all 4 forms .
    At present my following program directly download this form(only Export Invoice) to a pdf file but doesnt leave options to go to Print or Print Preview .
    Plz look into my code , and  suggest.
    Thnx
    Moni
    *Printing of Export Invoice, Packing List,Enclosure to Packing List &  *
    *Case Marking in one SMART FORMS Layout                                *
    REPORT ZSD_REP_MULTI_PRINT.
    TABLES :
        vbak,
        vbap,
        vbpa,
        vbfa,
        VBRK,
        VBRP,
        LIKP,
        LIPS,
        KONV,
        objk,
        tvko,
        ser01,
        sadr,
        equi,
        makt,
        mast,
        t005t,
        kna1,
        t001w,
        T001,
        ADRC,
        sscrfields,
        zpp_plcmi,      "Packing list history For Conf: Item data
        zplh,           "PACKING LIST HISTORY : HEADER DATA
        zpli.           "PACKING LIST HISTORY : ITEM DATA
    DATA: FM_NAME  TYPE RS38L_FNAM,
          P_E_DEVTYPE TYPE RSPOPTYPE,
          P_JOB_OUTPUT_INFO TYPE SSFCRESCL OCCURS 2000 WITH HEADER LINE,
          P_OUTPUT_OPTIONS TYPE SSFCOMPOP OCCURS 0 WITH HEADER LINE,
          P_CONTROL_PARAMETERS TYPE SSFCTRLOP OCCURS 0 WITH HEADER LINE ,
          P_DOC  LIKE DOCS OCCURS 2000 WITH HEADER LINE,
          P_LINES LIKE TLINE OCCURS 200,
          P_BIN_FILESIZE TYPE I,
          P_LANGUAGE TYPE SFLANGU,
          P_BIN_FILE TYPE XSTRING,
          <i>OK_CODE LIKE SY-UCOMM.</i>
    DATA: T_ITEM   TYPE  ZSD_TABL_LITEM,
          WA_ITEM  TYPE  ZSD_STRUCT_LITEM,
          T_ADRS   LIKE  ZSD_STRUCT_ADRS  OCCURS 0 WITH HEADER LINE,
          MSLINES  LIKE  TLINE OCCURS 1 WITH HEADER LINE,
          TIDNO    LIKE STXL-TDID,
          TNAME    LIKE STXL-TDNAME,
          TOBJT    LIKE STXL-TDOBJECT,
          SSORD    LIKE VBAK-VBELN,
          TOT      LIKE VBAK-NETWR,
          WORD     LIKE SPELL.
    SELECTION-SCREEN BEGIN OF BLOCK blk1 WITH FRAME TITLE text-001.
    PARAMETERS: P_DELNO LIKE  LIKP-VBELN OBLIGATORY,
                P_INVNO LIKE  VBRK-VBELN OBLIGATORY,
                P_DATE  LIKE  SY-DATUM.
    SELECTION-SCREEN END   OF BLOCK blk1.
    AT SELECTION-SCREEN.
      CLEAR T_ADRS.
      REFRESH T_ITEM.
      T_ADRS-INVNO = P_INVNO.
      T_ADRS-INVDAT = P_DATE.
      SELECT SINGLE VBELV INTO  VBFA-VBELV
                             FROM  VBFA
                             WHERE VBELN = P_DELNO
                               AND VBTYP_N = 'J'  .
      SSORD = VBFA-VBELV.
    *Exporter's  Address
      SELECT SINGLE BUKRS_VF INTO  VBAK-BUKRS_VF
                             FROM  VBAK
                             WHERE VBELN = VBFA-VBELV.
      SELECT SINGLE   ADRNR
                      INTO T001-ADRNR
                      FROM T001
                      WHERE BUKRS = VBAK-BUKRS_VF.
      SELECT SINGLE NAME1 STREET CITY1 POST_CODE1 COUNTRY
             INTO (T_ADRS-NAME1,T_ADRS-STREET,T_ADRS-CITY1,
                   T_ADRS-POST_CODE1, ADRC-COUNTRY)
             FROM  ADRC
             WHERE ADDRNUMBER EQ T001-ADRNR.
      SELECT SINGLE LANDX
                    INTO T_ADRS-COUNTRY
                    FROM T005T
                    WHERE     SPRAS = 'EN'
                          AND LAND1 = ADRC-COUNTRY.
    **BUYERS NO & DATE
    SELECT SINGLE BSTNK BSTDK INTO  (T_ADRS-BSTNK,T_ADRS-BSTDK)
                         FROM  VBAK
                         WHERE VBELN = VBFA-VBELV.
    *Consignee Address & Buyer Other Than Consignee
      SELECT SINGLE KUNNR KUNAG INTO (LIKP-KUNNR, LIKP-KUNAG)
                                FROM LIKP WHERE VBELN = P_DELNO.
      IF LIKP-KUNNR = LIKP-KUNAG.
        SELECT SINGLE NAME1 NAME2 STRAS ORT01 PSTLZ REGIO TELF1 ADRNR
                  INTO (T_ADRS-CNAME1, T_ADRS-CNAME2, T_ADRS-CSTREET,
                        T_ADRS-CCITY,  T_ADRS-CPCODE, T_ADRS-CREGIO,
                        T_ADRS-CTELF1, KNA1-ADRNR)
                  FROM  KNA1
                  WHERE KUNNR = LIKP-KUNNR.
        SELECT SINGLE COUNTRY INTO  ADRC-COUNTRY
                              FROM  ADRC
                              WHERE ADDRNUMBER EQ KNA1-ADRNR.
        SELECT SINGLE LANDX
                    INTO T_ADRS-CCOUNTRY
                    FROM T005T
                    WHERE     SPRAS = 'EN'
                          AND LAND1 = ADRC-COUNTRY.
        T_ADRS-ONAME1   =  T_ADRS-CNAME1 .
        T_ADRS-ONAME2   =  T_ADRS-CNAME2 .
        T_ADRS-OSTREET  =  T_ADRS-CSTREET .
        T_ADRS-OCITY    =  T_ADRS-CCITY.
        T_ADRS-OPCODE   =  T_ADRS-CPCODE .
        T_ADRS-OREGIO   =  T_ADRS-CREGIO.
        T_ADRS-OTELF1   =  T_ADRS-CTELF1 .
        T_ADRS-OCOUNTRY =  T_ADRS-CCOUNTRY.
      ELSE.
        SELECT SINGLE NAME1 NAME2 STRAS ORT01 PSTLZ REGIO TELF1 ADRNR
                  INTO (T_ADRS-CNAME1, T_ADRS-CNAME2, T_ADRS-CSTREET,
                        T_ADRS-CCITY,  T_ADRS-CPCODE, T_ADRS-CREGIO,
                        T_ADRS-CTELF1, KNA1-ADRNR)
                  FROM  KNA1
                  WHERE KUNNR = LIKP-KUNNR.
        SELECT SINGLE COUNTRY INTO ADRC-COUNTRY
                              FROM  ADRC
                              WHERE ADDRNUMBER EQ KNA1-ADRNR.
        SELECT SINGLE LANDX
                    INTO T_ADRS-CCOUNTRY
                    FROM T005T
                    WHERE     SPRAS = 'EN'
                          AND LAND1 = ADRC-COUNTRY.
    *Buyer Other than Consignee
        SELECT SINGLE NAME1 NAME2 STRAS ORT01 PSTLZ REGIO TELF1 ADRNR
                   INTO (T_ADRS-ONAME1, T_ADRS-ONAME2, T_ADRS-OSTREET,
                         T_ADRS-OCITY,  T_ADRS-OPCODE, T_ADRS-OREGIO,
                         T_ADRS-OTELF1, KNA1-ADRNR)
                   FROM  KNA1
                   WHERE KUNNR = LIKP-KUNAG.
        SELECT SINGLE COUNTRY INTO  ADRC-COUNTRY
                              FROM  ADRC
                              WHERE ADDRNUMBER EQ KNA1-ADRNR.
        SELECT SINGLE LANDX
                    INTO T_ADRS-OCOUNTRY
                    FROM T005T
                    WHERE     SPRAS = 'EN'
                          AND LAND1 = ADRC-COUNTRY.
      ENDIF.
    *Other's Ref
      TIDNO = 'Z071'.
      TNAME = SSORD.
      TOBJT = 'VBBK'.
      PERFORM FINDTEXT.
      LOOP AT MSLINES.
        T_ADRS-OREF = mslines-tdline(25).
        EXIT.
      ENDLOOP.
    *Buyer's Order No  Ref
      TIDNO = 'Z023'.
      TNAME = SSORD.
      TOBJT = 'VBBK'.
      PERFORM FINDTEXT.
      LOOP AT MSLINES.
        T_ADRS-BUYER = mslines-tdline(25).
        EXIT.
      ENDLOOP.
    *Exporter Ref
      TIDNO = 'Z072'.
      TNAME = SSORD.
      TOBJT = 'VBBK'.
      PERFORM FINDTEXT.
      LOOP AT MSLINES.
        T_ADRS-XPREF = mslines-tdline(25).
        EXIT.
      ENDLOOP.
    *Pre-Carraige By
      TIDNO = 'Z074'.
      TNAME = SSORD.
      TOBJT = 'VBBK'.
      PERFORM FINDTEXT.
      LOOP AT MSLINES.
        T_ADRS-PCRG = mslines-tdline(25).
        EXIT.
      ENDLOOP.
    *Place Of reciept by Pre-Carraige
      TIDNO = 'Z073'.
      TNAME = SSORD.
      TOBJT = 'VBBK'.
      PERFORM FINDTEXT.
      LOOP AT MSLINES.
        T_ADRS-PLPCRG = mslines-tdline(25).
        EXIT.
      ENDLOOP.
    *Vessel/Flight No
      TIDNO = 'Z075'.
      TNAME = SSORD.
      TOBJT = 'VBBK'.
      PERFORM FINDTEXT.
      LOOP AT MSLINES.
        T_ADRS-VFNO = mslines-tdline(25).
        EXIT.
      ENDLOOP.
    *Port Of Loading
      TIDNO = 'Z077'.
      TNAME = SSORD.
      TOBJT = 'VBBK'.
      PERFORM FINDTEXT.
      LOOP AT MSLINES.
        T_ADRS-PLOAD = mslines-tdline(25).
        EXIT.
      ENDLOOP.
    *Port Of Discharge
      TIDNO = 'Z076'.
      TNAME = SSORD.
      TOBJT = 'VBBK'.
      PERFORM FINDTEXT.
      LOOP AT MSLINES.
        T_ADRS-PDISG = mslines-tdline(25).
        EXIT.
      ENDLOOP.
    *Final Destination
      TIDNO = 'Z070'.
      TNAME = SSORD.
      TOBJT = 'VBBK'.
      PERFORM FINDTEXT.
      LOOP AT MSLINES.
        T_ADRS-FDEST = mslines-tdline(25).
        EXIT.
      ENDLOOP.
    *Terms Of Delivery & Payment
      TIDNO = 'Z080'.
      TNAME = SSORD.
      TOBJT = 'VBBK'.
      PERFORM FINDTEXT.
      LOOP AT MSLINES.
        T_ADRS-TERMS = mslines-tdline(50).
        EXIT.
      ENDLOOP.
    APPEND T_ADRS.
    *BODY SECTION FOR LINE ITEMS
      SELECT POSNR KWMENG VRKME WAERK
             INTO  (VBAP-POSNR, VBAP-KWMENG, VBAP-VRKME, VBAP-WAERK)
             FROM  VBAP
             WHERE VBELN = SSORD.
    *Mark/Case No
        TIDNO = '0002'.
        CONCATENATE SSORD
                    VBAP-POSNR
        INTO        TNAME.
        TOBJT = 'VBBP'.
        PERFORM FINDTEXT.
        LOOP AT MSLINES.
          WA_ITEM-MARKNO = mslines-tdline(40).
          EXIT.
        ENDLOOP.
    *Packing Type
        TIDNO = '0003'.
        CONCATENATE SSORD
                    VBAP-POSNR
        INTO        TNAME.
        TOBJT = 'VBBP'.
        PERFORM FINDTEXT.
        LOOP AT MSLINES.
          WA_ITEM-PACKTYP = mslines-tdline(40).
          EXIT.
        ENDLOOP.
    *Goods Description
        TIDNO = '0001'.
        CONCATENATE SSORD
                    VBAP-POSNR
        INTO        TNAME.
        TOBJT = 'VBBP'.
        PERFORM FINDTEXT.
        LOOP AT MSLINES.
          WA_ITEM-PACKTYP = mslines-tdline(40).
          EXIT.
        ENDLOOP.
    *Goods Quantity
        WA_ITEM-QTY = VBAP-KWMENG.
        WA_ITEM-VRKME = VBAP-VRKME.
    *Goods Rate
        SELECT SINGLE KNUMV INTO VBAK-KNUMV FROM VBAK WHERE VBELN = SSORD.
        SELECT SINGLE KBETR WAERS
                      INTO  (WA_ITEM-RATE, WA_ITEM-WAERS)
                      FROM  KONV
                      WHERE KNUMV = VBAK-KNUMV
                        AND KPOSN = VBAP-POSNR
                        AND KSCHL = 'PR00'.
    *Goods Amount
        WA_ITEM-AMOUNT = WA_ITEM-QTY * WA_ITEM-RATE.
        WA_ITEM-WAERK = VBAP-WAERK.
        TOT = TOT + WA_ITEM-AMOUNT.
        APPEND WA_ITEM TO T_ITEM.
      ENDSELECT.
      T_ADRS-TOT = TOT.
      CALL FUNCTION 'SPELL_AMOUNT'
       EXPORTING
         AMOUNT          = TOT
         CURRENCY        = VBAP-WAERK
      FILLER          = ' '
         LANGUAGE        = SY-LANGU
       IMPORTING
         IN_WORDS        = WORD
       EXCEPTIONS
         NOT_FOUND       = 1
         TOO_LARGE       = 2
         OTHERS          = 3
      IF SY-SUBRC <> 0.
           MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      T_ADRS-TOT_WORDS = WORD-WORD.
      APPEND T_ADRS.
    START-OF-SELECTION.
    <b>  SET PF-STATUS '1000'.</b>
      CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
        EXPORTING
          FORMNAME                 = 'Z_SD_REP_MULTI_PRINT'
      VARIANT                  = ' '
      DIRECT_CALL              = ' '
       IMPORTING
          FM_NAME                  = FM_NAME
    EXCEPTIONS
       NO_FORM                  = 1
       NO_FUNCTION_MODULE       = 2
       OTHERS                   = 3
      IF SY-SUBRC <> 0.
          MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      P_LANGUAGE = 'EN'.
      CALL   FUNCTION 'SSF_GET_DEVICE_TYPE'
        EXPORTING
          I_LANGUAGE    = P_LANGUAGE
          I_APPLICATION = 'SAPDEFAULT'
        IMPORTING
          E_DEVTYPE     = P_E_DEVTYPE.
      P_OUTPUT_OPTIONS-XSFCMODE = 'X'.
      P_OUTPUT_OPTIONS-XSF = SPACE.
      P_OUTPUT_OPTIONS-XDFCMODE = 'X'.
      P_OUTPUT_OPTIONS-XDF = SPACE.
      P_OUTPUT_OPTIONS-TDPRINTER = P_E_DEVTYPE.
      P_OUTPUT_OPTIONS-TDDEST = 'LOCL'.
      APPEND P_OUTPUT_OPTIONS.
      P_CONTROL_PARAMETERS-NO_DIALOG = 'X'.
      P_CONTROL_PARAMETERS-GETOTF = 'X'.
      P_CONTROL_PARAMETERS-NO_CLOSE = SPACE.
      APPEND  P_CONTROL_PARAMETERS.
      CALL FUNCTION FM_NAME
       EXPORTING
      ARCHIVE_INDEX              =
      ARCHIVE_INDEX_TAB          =
      ARCHIVE_PARAMETERS         =
        CONTROL_PARAMETERS         = P_CONTROL_PARAMETERS
      MAIL_APPL_OBJ              =
      MAIL_RECIPIENT             =
      MAIL_SENDER                =
        OUTPUT_OPTIONS             = P_OUTPUT_OPTIONS
        USER_SETTINGS              = 'X'
      IMPORTING
      DOCUMENT_OUTPUT_INFO       =
        JOB_OUTPUT_INFO            = P_JOB_OUTPUT_INFO
      JOB_OUTPUT_OPTIONS         =
      TABLES
        T_ADRS                     = T_ADRS
        T_ITEM                     = T_ITEM
    EXCEPTIONS
       FORMATTING_ERROR           = 1
       INTERNAL_ERROR             = 2
       SEND_ERROR                 = 3
       USER_CANCELED              = 4
       OTHERS                     = 5
      IF SY-SUBRC <> 0.
        MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    <b>AT USER-COMMAND.
    OK_CODE = SY-UCOMM.
    CASE OK_CODE.
    WHEN 'ARCHIVE'.</b>
    CALL FUNCTION 'CONVERT_OTF_2_PDF'
      EXPORTING
        USE_OTF_MC_CMD               = 'X'
      ARCHIVE_INDEX                =
    IMPORTING
        BIN_FILESIZE                 = P_BIN_FILESIZE
    TABLES
        OTF                          = P_JOB_OUTPUT_INFO-OTFDATA
        DOCTAB_ARCHIVE               = P_DOC
        LINES                        = P_LINES
    EXCEPTIONS
       ERR_CONV_NOT_POSSIBLE        = 1
       ERR_OTF_MC_NOENDMARKER       = 2
       OTHERS                       = 3.
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    CALL FUNCTION 'WS_DOWNLOAD'
    EXPORTING
       BIN_FILESIZE                  = P_BIN_FILESIZE
      CODEPAGE                      = ' '
       FILENAME                      = 'C:\sd.pdf'
       FILETYPE                      = 'BIN'
       MODE                          = ''
      WK1_N_FORMAT                  = ' '
      WK1_N_SIZE                    = ' '
      WK1_T_FORMAT                  = ' '
      WK1_T_SIZE                    = ' '
      COL_SELECT                    = ' '
      COL_SELECTMASK                = ' '
      NO_AUTH_CHECK                 = ' '
    IMPORTING
        FILELENGTH                    = P_BIN_FILESIZE
      TABLES
        DATA_TAB                      = P_LINES
      FIELDNAMES                    =
    EXCEPTIONS
      FILE_OPEN_ERROR               = 1
      FILE_WRITE_ERROR              = 2
      INVALID_FILESIZE              = 3
      INVALID_TYPE                  = 4
      NO_BATCH                      = 5
      UNKNOWN_ERROR                 = 6
      INVALID_TABLE_WIDTH           = 7
      GUI_REFUSE_FILETRANSFER       = 8
      CUSTOMER_ERROR                = 9
      NO_AUTHORITY                  = 10
      OTHERS                        = 11
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    <b>ENDCASE.</b>
    *&      Form  FINDTEXT
          text
    FORM FINDTEXT.
      REFRESH mslines.
      CALL FUNCTION 'READ_TEXT'
        EXPORTING
          client                  = sy-mandt
          id                      = tidno
          language                = sy-langu
          name                    = tname
          object                  = tobjt
        TABLES
          lines                   = mslines
        EXCEPTIONS
          id                      = 1
          language                = 2
          name                    = 3
          not_found               = 4
          object                  = 5
          reference_check         = 6
          wrong_access_to_archive = 7
          OTHERS                  = 8.
      DELETE mslines WHERE tdline IS INITIAL.
    ENDFORM.                    "FINDTEXT
    Message was edited by: md monirujjaman
    Message was edited by: md monirujjaman
    Message was edited by: md monirujjaman

    Hello,
    You cannot get continuous page numbers, But you will be able to merge all the 4 form outputs into one PDF file.
    In yesterdays example you called one form, then converted OTF data into PDF data and downloaded on Presentation server.
    In this case, after you call first form, you get the OTF data. Push this OTF data into a MAIN Internal table ( Same type as of OTF dada Int TAB ). Then Call second form. Then you get second set of OTF data. This second set of OTF data may be appended to the MAIN Internal table and the follw same procedure for the rest of the forms. In the end you will have one Internal table which holds OTF data of all the 4 forms.
    Now convert the OTD data to PDF Data by the FM and Download one file which has output of all the 4 forms.
    I hope my explanation is quite clear.
    Regarding your second question, the Archive and Print and archive buttons on the PRINT PREVIEW screen works for Spool archiving which is to be enabled by customizing. If you wish to archive the output as PDF, you may have to do it in program.
    I am NOT accessible on YAHOO.
    Plz let me know if you are stuck.
    Regards, Murugesh AS

  • How to use standard print prog SAPFM06P in an ECC 6.0 environment?

    Dear all,
    I am working in an Upgrade proj, and I find this print prog SAPFM06P remarkably different in both the systems 4.6C & ECC 6.0. It seems the ECC 6.0 print program is configured for an Adobe form.
    But the requirement I have is that of printing a custom SAP Script through either this standard print program SAPFM06P or a copy of the same. How do I go about in making this print program adaptable to calling a SAP Script instead of an Adobe form ?
    Will greatly appreciate a quick response on this.
    Thanks a dozen!
    Aradhana.

    Actually there are many includes in this standard print program SAPFM06P that have been commented out by SAP in this new version ECC 6.0.
    I could make it work with the configuration of the message in NACE, but my concern is whether I would be able to incorporate all the functionality that those includes have.
    Do let me know your thoughts on this.
    Thanks!

  • SmartForms: Purchase order Print prog and SLIN

    Hi all,
    I am on 4.7 and Purchase Order Print Prog name is /SMB10/FM06P. When i am doing SLINE Check on this Prog. I am getting the following Message.
          Program:  /SMB10/FM06P  Row:      1
    The namespace of program /SMB10/FM06P has the setting "C" and cannot be tested.
    A possible cause for this is that an SAP program is being checked in a customer
    system.
    Note, the following rule applies after a change in the source code:
    For testing the namespace setting is ignored for one week
    (The message cannot be hidden using pseudo-comment "#EC .., or by using SET
    EXTENDED CHECK OFF/ON)
    Is any one have idea about this?
    Thanks in advnace.

    Thanks for your Reply,
    When i am doing Syntax check in SE38, I am getting the below error message.
    <b>"The Program "/SMB10/FM06P" is not Unicode-compatible, according to its program attributes."</b>
    I have found the OSS Note No: 751007
    Solution
    Copy the program into your own namespace (e.g "ZZsmbfm06p"), maintain the program attribute to make sure the flag "Unicode checks active" is selected. Then maintain the customizing for output control again.
    <b><u>
    GOD BLESS SAP, SAP asking to Create Custom Object.</u></b>
    Thanks
    Message was edited by: Vipin Nagpal
    Message was edited by: Vipin Nagpal

  • SAPscript printing (Works Fine in Preview, Disappear in Print Out)

    Dear Guru,
      i have a problem in SAPscript printing, especially i use ULINE(90) inside forms,  it's works fine in Preview, but when i print it out after 89 of ULINE showed, it's show blank area and the 90th uline appear in next line.
    any expert in this area can tell me what happen?
    thanks.
    Howard

    Hi Howard,
    this is printer problem.
    Appart from regular settings we have left margin and right margin settings for printer.
    If you rememmber we can do this setting if we print MS WORD document.
    There is no setting available in SAP.
    So solution is to increase right margin on your laout and try to fit your contents in same.
    The preview is dependening on device type in SAP so u get previeew right.
    Hope this will help.
    Thanks,
    Dhiraj.

  • SAPScript - Print Preview 2 Pages - Physical Print overlap as 1 Page

    HI Experts,
    I have a problem with Invoice SAPScript Printing - where the print preview is good with 2 Pages,
    But when it physical prints out - Only 1 page and overlapping the Second page content to the first.
    Any idea where did I miss out?
    Thank you in Advance.
    Regards,
    CWLIM

    HI ,
    Sheelesh  is right.
    I had both SAPScript and Smartform issue with the overlapping printing.
    What you need to do is to check your page format to see if it is the correct size for the specific printer.
    If it is too big for the printer paper size - it will overlap the printing as 1 page.
    For example : A4 Lanscape printing on normal HP Laser Printer - DINA4 Landscape should be used.
    Or at least when you define your own page format - refer to the correct size and orientation.
    HOpe this helps.
    Thank you all

  • SAPscript print program for multiple pages

    Hello friends,
    How to write SAPscript print program for multiple pages? please help me.
    Thanks and regards,
    Shivanand.

    I believe you have posted this question in the wrong forum.  There is an ABAP Forms Printing Forum.

  • Migrating SAPscript print program to Smartform

    hello everyone,
    Requirement is to print transfer orders. Current functionality supports SAPscripts and its print program. Since we are going to be using Smartforms, I need to change the print program so that it calls the custom smartform created by me.
    Can anybody help me out by telling me a step-by-step process as to WHERE and WHAT changes I can do in the SAPscript print program so that I can use it for my Smartform?
    The SAPscript print program that needs to be changed is: RLVSDR40.
    Thanks in advance.
    Regards,
    Fred.

    Hi Fred,
    The system does not migrate the print program (data retrieval) or the form logic contained in the print program. You must make the required changes to the respective print program yourself. PL take a look at the following
    <a href="http://help.sap.com/saphelp_47x200/helpdata/en/9d/9599386185c064e10000009b38f8cf/frameset.htm">SAP help</a>
    Regards,
    Suresh Datti

  • Sapscript printing only the last value

    Hello,
    Im currently coding subroutine for medruck.. My problem is sapscript is only printing the last value of the item for all items.. For example:
    Item # 1    10 pcs  10,000.00
    Item # 2     5 pcs   10,000.00
    Item # 3     5 Pad  10,000.00
    where actually the value of item 1 and item 2 is not 10,000.. sapscript prints only the price of item # 3 for the  first two items.. here is my code..
      TABLES: konv, ekko, ekpo.
      DATA: BEGIN OF tab OCCURS 0,
          brtwr LIKE ekpo-brtwr,
          ebelp LIKE konv-kposn,
          ebeln LIKE ekko-ebeln,
          knumv LIKE ekko-knumv,
          kbetr LIKE konv-kwert,
    END OF tab.
      DATA: sum TYPE p DECIMALS 2, gross TYPE p DECIMALS 2, val(16) TYPE c, d_knumv LIKE ekko-knumv, tab1 LIKE tab, val1(20) TYPE c,
            ext TYPE p DECIMALS 2, val2(20) TYPE c, extend TYPE p DECIMALS 2.
      REFRESH: tab.
      READ TABLE in_tab INDEX 1.
      CHECK sy-subrc = 0.
      SELECT brtwr ebelp ebeln FROM ekpo INTO TABLE tab WHERE ebeln = in_tab-value.
      LOOP AT tab.
        AT NEW ebelp.
          tab-kbetr = 0.
          ext = 0.
        ENDAT.
        SELECT SINGLE knumv FROM ekko INTO tab-knumv WHERE ebeln = tab-ebeln.
        SELECT SINGLE kbetr FROM konv INTO tab-kbetr WHERE knumv = tab-knumv AND kposn = tab-ebelp                                AND kschl = 'ZDEL'.
        ext = tab-brtwr + tab-kbetr.
        AT END OF ebelp.
          READ TABLE out_tab INDEX 1.
          WRITE ext TO val.
          out_tab-value = val.
          MODIFY out_tab INDEX 1.
        ENDAT.
        CLEAR: tab.
      ENDLOOP.
    i used this code using abap only and it work. there seems to be a problem in sapscript.. Thank u for the help guys..
    Thanks,
    JP

    put ur write_form with in loop...
    loop at itab.
      write_form..
          element = 'ddd'
    endloop.
    in script check ...
    check wheather element is specified there r not
    /e  ddd.
         &itab-   &  &itab-  &

  • Print prog for a tcode

    Hye All,
    How to find a print prog for a particular tcode.
    Thanks,
    Vibha

    Hi,
    Go to SE 93 then enter ur transaction press display mode then u will get print program for that perticular transaction.
    second option goto NACE transaction select perticular application related ur transaction. Then press out put type then u will have to select perticular out put type then double click on processing routines then u will get related form and related print program.
    if it use full answer please reward me a points.
    praveen

  • RFDUZI00 Print Prog. extra functionality, Wht data is migrating?

    Hi,
    In ECC6.00 version SAP has given a extra funtionality of "Data Migration" in the program RFDUZI00 (Print prog for printing the SAP Script of "Notice sent to customers for charged interest amounts for their late due payment").
    SAP  is achieving this Data migration functionality by calling the FM FI_INTITHE_WRITE_FOR_MIGRATION, fine. But, I did not understand that, actually, What is SAP doing? where its writing the data(i guess the data is customer open items)? where its migrating? is it to data base?
    I have seen WHERE USED LIST of this FM, I went into this FM and tried to understand, actually whts SAP doing inside this FM, I tried to pull the FM documentation, in Google as well, but nothing is success!! So, pls. let me know it.
    Thank you

    Have a look at OSS Note 670117 (the number is mentioned a few times in RFDUZI00) to get the context of the SAP changes... if you look at the code in FI_INTITHE_WRITE_FOR_MIGRATION you can see it is modifying tables INTITHE (FI Item Interest Calculation: Information per Item) and INTITIT (FI Item Interest Calculation: Details).
    Jonathan

  • Can anybody plz give me Smartforms print prog for Invoice/PackList

    Hello Smartforms Gurus
      Can anybody plz give me Smartforms print prog for Invoice/Packing List. I need to develop the same from scratch. I know Smartform for simple Application but   complex application i need to refer u all guys prog plz.
    I would be greatful plz.          
    Thnx In Advance

    Hi,
    Could you please give me the link where you found these  group of pre-configured smartforms available in sap labs?
    I looked for... but i have not founded it.
    Thanks in advance!.
    Regards,
    Albio.-

  • F110 - Pmnt adv - can specify bespoke SAPscript but not bespoke print prog

    Folks,
    As developer I have a requirement to develop bespoke SAPscript to print off payment advices via F110.
    I have taken a copy of standard sapscript F110_IN_AVIS to create the Z version, and know how to specify this bespoke form via transaction FBZP>Paying company codes>Forms.
    I can also see where you can specify your own form via config of variant against program RFFOAVIS_FPAYM within F110.
    But nowhere can I find how to change the print program from RFFOAVIS_FPAYM.  I need to change the print program, as the new bespoke SAPscript will incorporate additional windows for company logos and extra texts.
    Does anyone know how/where I can specifiy my own print program, is it possible?
    Much appreciated and many thanks in advance.
    Jon-Paul.

    Hi,
    Im told by the functional consultant they wish to remain with the "Use payment medium workbench" option rather than changing to "Use classic payment medium programs RFFO*", within config.
    I raised the following OSS message but got the expected response by SAP that this is a consulting issue - which makes me wonder whether it is possible so set the print control program but of course they want consultancy fees for passing on the info.  Anyone got any further ideas on setting print control program for bespoke payment advice sapscript whilst keeping the "Use payment medium workbench" config set?
    ""Via transaction FBZP>Pmnt methods in country>Country BE>Payment method T "OUT_Virement loc/Loc overschr" we have specified the payment medium to "use payment medium workbench" with format ZSEPA_CT.  We are obliged to use the SEPA (single european payment area) format.
    We have also configured, via FBZP>Paying company codes>company code 2020>Forms our own bespoke SAPscript form for printing of the payment advice ZBM1_F110_IN_AVI, which is based upon standard form F110_IN_AVIS.  Our Z form has been enhanced to include company logos and other texts, in additional windows.
    There doesnt appear to be anywhere within SPRO, or setting of the variant against the printing/DME program within F110, to define a bespoke print program that controls the output of the bespoke sapscript, in order that the additional and new SAPscript windows containing logos and texts are actually output.
    The only option appears to be to change the config to use "classic payment medium programs RFFO*" to specify a bespoke payment advice print program to control the bespoke payment advice SAPscript, but we cannot do this as we wish to use the payment medium workbench method.
    There are also no suitable implicit enhancement spots within payment program RFFOAVIS_FPAYM that allow us to execute "WRITE_FORMS" against our bespoke SAPscript so that we can write our own windows containing addtional logos and texts.
    The only alternatives I can see for full control of output within payment advice form is to use Adobe forms instead, or make a repair to RFFOAVIS_FPAYM. 
    Please can you clarify the point of being able to specify a customer SAPscript when you cannot control additional windows to be printed.  Note additional windows to be printed contain bitmap logos, hence the other option to set within FBZP "Sender details for SAPscript forms" boxes - Text id, Letter head, footer, signature text and sender, is not sufficient either."
    Thanks very much in advance,
    Jon-Paul.

  • Print local variable from print prog into sapscript

    Hi,
    I have one local variable declared in the print program for one SAP-form. I want to print it in some window of that form.
    How do i pass that variable to the form for printing ?
    Thanks & Regards
    Hrishi

    Problem solved
    EXCL_VAT is a quantity field and the value field in ITCSY is a Character field,  so had to change the code in the following manner.
    write EXCL_VAT to outtab-value.
    condense outtab-value.
    Regards
    Hrishi

  • Print Prog-Auto Print Barcode Label for Goods Receipt(MIGO) using Smartform

    Hi Guru's
    I have created a smartform that prints barcodes on a label.
    My tests print successfully to the Printronix thermal label printer.
    Is there perhaps a SAP Standard print program that i can use in my output type that will call my smartform upon goods receipt(MIGO)?
    please bear in mind that i am looking for a print program that calls a SMARTFORM. not a sapscript.
    /SMB40/M07DR does not exist on my system. and I am going to use output type WEE1 - for LABEL Printing
    Awaiting your feedback.
    Thanks in advance geniuses!

    Good luck dude,
    In that same program I noticed We01 that will print a smartform GR. I think if you use form entry_we01 in your output control you should do well.

Maybe you are looking for

  • What OS will my MacBook 2,1 support?

    Apparently I need to repair my start up disk but I don't have a OS bootable disk! What will my MacBook support that I can get from the apple store?

  • APPS 11i on Linux

    Has anyone worked on Apps 11i on Linux ? What version of Linux is required to install R11i ? Thanks in advance.

  • Scriplet value in custom tag attribute doesn't compile

              Using a custom tag (a BodyTag extention) in a JSP. When WebLogic 6.0 tried to compile           it I get the following error. It compiles fine in JBuilder and runs fine in resin           servlet server.           Here the source line from

  • Academic Version Upgrade

    We own a business, and I have a question of legality. We have an Academic version of MacroMedia Studio MX. We want to know if we are able to use that Academic version to upgrade into the Adobe CS3 Design Premium non-academic version. Again, this woul

  • Firewall on Solaris 10

    After reading docs.sun.com and searching avidly, can anyone point me in the right direction of how to setup the firewall Solaris 10 which is shipped. Any pointers would be greatly appeciated, not usually stumped bu this time I am regards, Paul.