Print a sapscript

i want to printing a check(preprinted) into LANDSACP forrmat  and my layout is in portrate format , which a already change my layout accords to   LANDSACP format
but the characters  which r printing on check is according to protrate format so
any one can help it very urgent..........

Hi
When you change the format to Landscape you have to change the WINDOW positions also and the text elements in the windows also, it's a must, since all the data is alligned into portrait previously
So you have to allign all the data as per the format.
Reward points for useful Answers
Regards
Anji

Similar Messages

  • Double side printing from SAPScript, last page missing

    Hello all,
    I try to setup double side printing from SAPScript, but have a problem and hope that somebody might help me.
    In my form I have two pages with main window (FIRST and NEXT) which have print mode set to 'D' and next page set to 'TANDC'. Page 'TANDC' has only one VAR window which contains terms and conditions text.
    Now, everything works fine except that T&C text isn't printed after last page (ie. after last 'NEXT' page). Is there a way to force printing of last (back side) page?
    PS: Calling 'WRITE_FORM' from the print program at the end didn't help either.
    Thanks in advance.
    Grigor

    Hi Vinod,
    this has a same effect as calling NEW-PAGE from form.
    Again, window 'FOOTER' is printed on a new page instead bellow 'MAIN' window and there are no T&C on the last sheet. I also tried to explicitly call text element in window 'FOOTER' before calling 'CONTROL_FORM', like this:
    CALL FUNCTION 'WRITE_FORM' "last element in 'MAIN' window
           EXPORTING
                element = 'LAST'
           EXCEPTIONS
                OTHERS  = 01.
      CLEAR sy-subrc.
    CALL FUNCTION 'WRITE_FORM'
           EXPORTING
                element = 'FOOTER'
                window = 'FOOTER'
           EXCEPTIONS
                OTHERS  = 01.
      CLEAR sy-subrc.
    CALL FUNCTION 'CONTROL_FORM'
           EXPORTING
                 COMMAND = 'NEW-PAGE'
           EXCEPTIONS
                 UNOPENED = 01
                 UNSTARTED = 02.
    It looks like the 'FOOTER' window is under control of SAPScript, not of print program.
    Note: 'CONTROL_FORM' call is placed immediatelly before 'CLOSE_FORM', so at the last possible place.
    Kind regards,
    Grigor

  • Image not printed in SapScript, only after page break

    Hi,
    I have a problem in printing an image (stored as text) in a sapscript. The image was uploaded correctly from a TIF file in tcode SE78. The image contains a signature and I need to print it at variable positions within the form. That is I need to print it in the MAIN window. The image does not get printed when a page break occurs when outputing the text element containing the picture. If the page break occurs when outputing any (other) text, the image is printed correctly (after that text).
    Has anybody else encountered this problem? Could it be a sapscript bug?
    Thx in advance.
    Claudiu

    >
    > Looks like the last page is not called !!! I can see data only on one page and it shows page 1 of 1.
    >
    > "make sure ST_TEMP is filled with data" how do I do this ?? My program line node has the data filled in the internal table it_temp and the loop node has the data transferred to st_temp for every row. How can I debug the program lines code ??
    > > Have a break <username> in the program lines. and check it_temp has data in it.
    > "use a command and call the last page at end of the loop on internal table"...how to do this ?
    > > like program lines there is a "command line" do a little search on SDN for more info on how to use command lines for next page.
    >

  • Text printing in SapScript

    Hi Abapers,
    I am chaniging an existing SapScript that was not working properly. Client wants to print "Item Text" in output which is of 3 to 4 page. where as there is only one line item in PO. Also there is "Header Text"  of 1 page. Client wants to display all line items then "Item Text" should displayed. and at last the "eader Text". The Format is Like as Follows:-
    PO No.                           12.12.2006
    Vendor Name
    Country
       S.No.     Mat. Desc.                          Qty. ...............and so on..........
       1            abc                                    11 .....................
    Item Text starts from here........................
    Problem is here
    This text is of 3 page (say).
    So text starts from here and est of text goes to next page.
    Only 4 Lines are printed properly and rest of lines are not printed.
    I also checked in debuging mode.
    so attachibng the code for reference kindly go through this.
    Header Text Starts from here
       Total amt.  in words......
    FORM READ_TEXTSLO1 TABLES IN_TAB200  STRUCTURE ITCSY
                           OUT_TAB200 STRUCTURE ITCSY.
      READ TABLE IN_TAB200 INDEX 1.
      EBELN1 = IN_TAB200-VALUE.
      READ TABLE IN_TAB200 INDEX 2.
      EBELP = IN_TAB200-VALUE.
      CONCATENATE EBELN1 EBELP INTO OBJNAME.
      CLEAR WRK_IT1.
      CLEAR WRK_IT2.
      CLEAR WRK_IT3.
      CLEAR WRK_IT4.
      CLEAR WRK_IT5.
      Repeated Code
      SELECT SINGLE TDNAME INTO WRK_TDNAME FROM STXH
        WHERE TDOBJECT = 'EKPO'
        AND TDNAME = OBJNAME
        AND TDID EQ 'F01'.
      IF SY-SUBRC = 0.
        CALL FUNCTION 'READ_TEXT'
          EXPORTING
            CLIENT   = SY-MANDT
            ID       = 'F01'
            LANGUAGE = 'E'
            NAME     = OBJNAME
            OBJECT   = 'EKPO'
          TABLES
            LINES    = IT_LINE.
        IF SY-SUBRC = 0.
         delete it_line where tdline EQ ' '.
    BREAK ABAP7.
         DESCRIBE TABLE it_line LINES wrk_lines1.
          LOOP AT IT_LINE.
            CLEAR WRK_TABIX.
            WRK_TABIX = SY-TABIX.
            IF WRK_TDLINE EQ ' '.
              WRK_TDLINE = IT_LINE-TDLINE.
            ELSE.
              CONCATENATE  WRK_TDLINE IT_LINE-TDLINE INTO  WRK_TDLINE
              SEPARATED BY SPACE.
            ENDIF.
            Y = STRLEN( WRK_TDLINE ).
            CALL FUNCTION 'RKD_WORD_WRAP'
                   EXPORTING
                     TEXTLINE                  = WRK_TDLINE
                     DELIMITER                 = ' '
                     OUTPUTLEN                 = 100
                  IMPORTING
                    OUT_LINE1                 = OUT_LINE1
                    OUT_LINE2                 = OUT_LINE2
                    OUT_LINE3                 = OUT_LINE3
              OUT_LINE3                 =
            TABLES
              OUT_LINES                 =
            EXCEPTIONS
              OUTPUTLEN_TOO_LARGE       = 1
              OTHERS                    = 2
            IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
            ENDIF.
    *break abap7.
            CASE WRK_TABIX.
              WHEN 1 .
                WRK_IT1 = OUT_LINE1.
              WHEN 2 .
                WRK_IT2 = OUT_LINE1.
              WHEN 3 .
                WRK_IT3 = OUT_LINE1.
              WHEN 4 .
                WRK_IT4 = OUT_LINE1.
            ENDCASE.
            IF OUT_LINE3 EQ ' '.
              WRK_TDLINE = OUT_LINE2.
            ELSE.
              CONCATENATE OUT_LINE2 OUT_LINE3 INTO WRK_TDLINE
              SEPARATED BY SPACE.
            ENDIF.
          ENDLOOP.
          IF WRK_IT4 NE ' '.
            Y = STRLEN( WRK_TDLINE ).
            IF Y GT 50.
              CALL FUNCTION 'RKD_WORD_WRAP'
                       EXPORTING
                         TEXTLINE                  = WRK_TDLINE
                         DELIMITER                 = ' '
                         OUTPUTLEN                 = 50
                      IMPORTING
                        OUT_LINE1                 = OUT_LINE1
                        OUT_LINE2                 = OUT_LINE2
                        OUT_LINE3                 = OUT_LINE3
              OUT_LINE3                 =
            TABLES
              OUT_LINES                 =
            EXCEPTIONS
              OUTPUTLEN_TOO_LARGE       = 1
              OTHERS                    = 2
              IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
              ENDIF.
              wrk_it4 = out_line1.              " Change Uncommented"
              WRK_ITA = OUT_LINE1.
              WRK_ITA4 = OUT_LINE2.
            ELSE.
              WRK_ITA = WRK_TDLINE.
            ENDIF.
          ENDIF.
        ENDIF.
        CLEAR WRK_TDLINE.
        CLEAR OUT_LINE1.
        CLEAR OUT_LINE2.
        CLEAR OUT_LINE3.
        OUT_TAB200-VALUE = WRK_IT1.
        MODIFY OUT_TAB200 INDEX 1 TRANSPORTING VALUE.
        OUT_TAB200-VALUE = WRK_IT2.
        MODIFY OUT_TAB200 INDEX 2 TRANSPORTING VALUE.
        OUT_TAB200-VALUE = WRK_IT3.
        MODIFY OUT_TAB200 INDEX 3 TRANSPORTING VALUE.
        OUT_TAB200-VALUE = WRK_IT4.
        MODIFY OUT_TAB200 INDEX 4 TRANSPORTING VALUE.
      ENDIF.
    *****************************************************************Repeated code
    Again the same code is repeated but now the TDID eq F02 in Select Query and also in READ_TEXT  Fun. Module. and now in the CASE statement next 4 lines coded as
    WHEN 1 .
                WRK_IT5 = OUT_LINE1.
              WHEN 2 .
                WRK_IT6 = OUT_LINE1.
              WHEN 3 .
                WRK_IT7 = OUT_LINE1.
              WHEN 4 .
                WRK_IT8 = OUT_LINE1.
    and also these 4 rows modified as follows
    OUT_TAB200-VALUE = WRK_IT5.
          MODIFY OUT_TAB200 INDEX 5 TRANSPORTING VALUE.
    Now each time 4 - 4 rows coded as like as above.
    upto TDID = F05
    So there are total of 20 lines.
    Now the text is of 4 to 5 page then its not printed. even 5th line is not printed. control not goes to 2nd Select Query cause the OBJECTNAME does not exist.
    <b>for more information write your Email ID . So that i can explain more.</b>
    So kindly review this and let me know what should i do ?
    Helpful answer rewarded.
    Regards
    Robin

    hi,
    <b>SAP SCRIPTS TUTORIALS</b>
    http://www.sapbrain.com/TUTORIALS/TECHNICAL/SAPSCRIPTS_tutorial.html
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVSCRPROG/BCSRVSCRPROG.pdf
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVSCRRDI/BCSRVSCRRDI.pdf
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVSCREDIT/BCSRVSCREDIT.pdf
    http://www.sappoint.com/abap/sscrtpex1.pdf
    http://www.sap-img.com/sapscripts.htm
    http://www.esnips.com/doc/1ff9f8e8-0a4c-42a7-8819-6e3ff9e7ab44/sapscripts.pdf
    SAP Script From the Scratch
    http://www.sapbrain.com/TUTORIALS/TECHNICAL/SAPSCRIPTS_tutorial.html
    http://www.sap-img.com/sapscripts.htm
    http://sappoint.com/abap/
    http://www.henrikfrank.dk/abapexamples/SapScript/sapscript.htm
    http://www.henrikfrank.dk/abapexamples/SapScript/symbols.htm
    http://sapbrain.com/TUTORIALS/TECHNICAL/SAPSCRIPTS_tutorial.html
    http://www.esnips.com/doc/1ff9f8e8-0a4c-42a7-8819-6e3ff9e7ab44/sapscripts.pdf
    http://www.esnips.com/doc/cb7e39b4-3161-437f-bfc6-21e6a50e1b39/sscript.pdf
    http://www.esnips.com/doc/fced4d36-ba52-4df9-ab35-b3d194830bbf/symbols-in-scripts.pdf
    http://www.esnips.com/doc/1e487f0c-8009-4ae1-9f9c-c07bd953dbfa/script-command.pdf
    http://www.esnips.com/doc/b57e8989-ccf0-40d0-8992-8183be831030/sapscript-how-to-calculate-totals-and-subtotals.htm
    http://esnips.com/doc/64d4eccb-e09b-48e1-9be9-e2818d73f074/faqss.pdf
    http://esnips.com/doc/1e487f0c-8009-4ae1-9f9c-c07bd953dbfa/script-command.pdf
    http://esnips.com/doc/1ff9f8e8-0a4c-42a7-8819-6e3ff9e7ab44/sapscripts.pdf.
    http://esnips.com/doc/cb7e39b4-3161-437f-bfc6-21e6a50e1b39/sscript.pdf
    http://esnips.com/doc/fced4d36-ba52-4df9-ab35-b3d194830bbf/symbols-in-scripts.pdf
    http://esnips.com/doc/b57e8989-ccf0-40d0-8992-8183be831030/sapscript-how-to-calculate-totals-and-subtotals.htm
    Rgds
    Anver
    <b><i>if hlped pls mark points</i></b>

  • Is it possible to print layout/sapscript in background  ?

    hello
    i need to print some form ( layout/sapscript ) in background
    is it possible to print it immediately in background   ?
    i don’t want to keep it in the spool .
    This is the following code of my.
    submit   ****
            SUBMIT YMM_VERIFICATION_BCK_GRND
            VIA JOB JOBNAME NUMBER  JOBCOUNT
            with SL_BELNR in TB_BELNR
            with SL_GJAHR in TB_GJAHR
            with SL_BUKRS in TB_BUKRS
            TO SAP-SPOOL  IMMEDIATELY ' '
            DESTINATION    'LOCL'
            KEEP IN SPOOL  ' '
            AND RETURN.
    print ************
    itcpo-tdimmed   = 'X'.
      CALL FUNCTION 'OPEN_FORM'
       EXPORTING
              APPLICATION                       = 'TX'
              ARCHIVE_INDEX                     =
              ARCHIVE_PARAMS                    =
              DEVICE                            = 'PRINTER'
               DIALOG                            = 'X'
              FORM                              = 'YMM_VERIFICATION'
              LANGUAGE                          = SY-LANGU
              OPTIONS                           = ITCPO

    DATA: number           TYPE tbtcjob-jobcount,
          name             TYPE tbtcjob-jobname VALUE 'JOB_TEST',
          print_parameters TYPE pri_params.
    CALL FUNCTION 'JOB_OPEN'
      EXPORTING
        jobname          = name
      IMPORTING
        jobcount         = number
      EXCEPTIONS
        cant_create_job  = 1
        invalid_job_data = 2
        jobname_missing  = 3
        OTHERS           = 4.
    IF sy-subrc = 0.
      SUBMIT submitable TO SAP-SPOOL
                        SPOOL PARAMETERS print_parameters
                        WITHOUT SPOOL DYNPRO
                        VIA JOB name NUMBER number
                        AND RETURN.
      IF sy-subrc = 0.
        CALL FUNCTION 'JOB_CLOSE'
          EXPORTING
            jobcount             = number
            jobname              = name
            strtimmed            = 'X'
          EXCEPTIONS
            cant_start_immediate = 1
            invalid_startdate    = 2
            jobname_missing      = 3
            job_close_failed     = 4
            job_nosteps          = 5
            job_notex            = 6
            lock_failed          = 7
            OTHERS               = 8.
        IF sy-subrc <> 0.
        ENDIF.
    CALL FUNCTION 'RSPO_R_RDELETE_SPOOLREQ'.
      ENDIF.
    ENDIF.

  • REGION is not shown in Address to be printed in SAPSCRIPT

    Hi,
           I am trying to print the address within a sapscript .Everything is being displayed except the 'regio' ie region field. but when i replace the label region with city or something else followed by the field name it prints fine.
    The code is as follows:
    ADDRESS DELIVERY PARAGRAPH L
      TITLE    &VBDKL-KUNWE&
      NAME     &VBDKL-NAME1&, &VBDKL-NAME2&, &VBDKL-NAME3&,&VBDKL-NAME4&
      STREET   &VBDKL-STRAS&
      CITY     &VBDKL-ORT01&
      POSTCODE &VBDKL-PSTLZ&
      REGION   &VBDKL-REGIO&
      COUNTRY  &VBDKL-LAND1&
      FROMCOUNTRY 'FR '
    ENDADDRESS

    Check this out once -
    Formatting Addresses: ADDRESS
    The ADDRESS - ENDADDRESS control command formats an address according to the postal convention of the recipient country defined in the COUNTRY parameter. The reference fields are described in the structures ADRS1, ADRS2, or ADRS3, depending on the type of address. Either direct values or symbols may be assigned to the parameters.
    Syntax:
    /: ADDRESS [DELIVERY] [TYPE t] [PARAGRAPH a] [PRIORITY p] [LINES l]
    /: TITLE title
    /: NAME name1[,name2[,name3[,name4]]]
    /: PERSON name of natural person [TITLE form of address]
    /: PERSONNUMBER number of the personen
    /: DEPARTMENT department
    /: STREET street name HOUSE house number
    /: LOCATION additional location information
    /: POBOX po box [CODE post code / zip code] [CITY city]
    /: POSTCODE post code / zip_code
    /: CITY city1[,city2]
    /: NO_UPPERCASE_FOR_CITY
    /: REGION county / state
    /: COUNTRY recipient country [LANGUAGE language code]
    /: COUNTRY_IN_REC_LANG
    /: LANG_FOR_COUNTRY language key
    /: FROMCOUNTRY sender country
    /: ADDRESSNUMBER address number
    /: ENDADDRESS
    The parameter values contain both formatting and address information. The address data are formatted for output according to the data in the following parameters:
    TYPE
    FROMCOUNTRY
    COUNTRY
    LANGUAGE
    PRIORITY
    DELIVERY
    LINES
    For more information, see the documentation for the SAP function module ADDRESS_INTO_PRINTFORM.
    If DELIVERY is not specified and if a POBOX is specified, then the POBOX is used in an address instead of a STREET.
    Parameters
    DELIVERY
    Means that the address should be formatted as a complete delivery address, using the street name and number rather than the P.O. Box.
    TYPE
    Specifies the type of address. The following types are possible:
    1.     Normal address (ADRS1). This is the address of a company or organization. It corresponds to the address structure that is expected in most SAP applications.
    2.     Private or personal address (ADRS2). This is the address of a natural person, a private or home address.
    3.     Company addressDienstadresse (ADRS3) with contact person. This is the address of a colleague or contact within a company or organization. The company name should be specified in the TITLE and NAME fields; the ATTN: contact person should be named in PERSON and TITLE.
    Should you enter another address type or leave the field blank, then type 1 is used for formatting.
    PARAGRAPH
    Specifies the paragraph format to be used for outputting the address. If this parameter is not given, the address will be output using the default paragraph format.
    PRIORITY
    Specifies which of the address lines may be omitted should this be necessary. Any combination of the following codes may be specified. The order in which you list the codes determines the order in which address lines are left out.
    The codes are as follows:
    A Title
    P Mandatory empty line
    4 Name4
    3 Name3
    R Region
    T Neighborhood, administrative section of a city (CITY2)l
    D Department
    L Country name
    C Post code or zip code
    2 Name2
    B P.O. Box (Japan only)
    S Street name and number or P.O. Box, depending upon DELIVERY parameter
    N Name and form of address of natural person (PERSON and TITLE)
    I Location information in LOCATION
    O City
    LINES
    Specifies how many lines may be used for formatting the address. If there are too few lines available to allow all the address data to be formatted, then the data specified in the PRIORITY parameter are omitted. If there is no LINES parameter and if this command is in a form window of a type other than MAIN, then the number of lines available for formatting the address are automatically calculated based on the current output position and the size of the window.
    TITLE
    Title or form of address. Used only with addresses of types 1 and 3.
    NAME
    Up to four names may be given, separated by commas. Used only with addresses of types 1 and 3.
    PERSON
    Name of the addressee. Used only for addresses of type 2 (private or personal address) or type 3 (company contact address). In type 3 addresses, use PERSON for the name of your contact person: ‘Attn: Mr. Jeffries’. The name fields should be used for the company address.
    PERSONNUMBER
    Personal number. Can be used only for address types 2 or 3 (private or personal address).
    TITLE (with PERSON)
    Title of the addressee. Can be used only for address types 2 or type 3 (private or personal address).
    DEPARTMENT
    Department of the addressee. Can be used only for address type 3 (company address).
    STREET
    Street name.
    HOUSE
    House number for the corresponding street.
    LOCATION
    Additional location information, such as the building, "Upstairs Apartment" and so on. Appears on its own line in the address.
    POBOX
    P. O. Box
    CODE
    The post code / zip code of the P. O. Box if this differs from the post code / zip code of the recipient.
    CITY
    The city in which the destination P.O. Box is located if this differs from the city of the recipient.
    POSTCODE
    Post code / zip code of the recipient.
    CITY
    Addressee’s city. city1 is expected to be the city; city2 is the neighborhood or administrative section, if required.
    NO_UPPERCASE_FOR_CITY
    Default = NO_UPPERCASE_FOR_CITY ‘ ‘
    Usually, the system prints the city and country names of foreign addresses in uppercase ( NO_UPPERCASE_FOR_CITY ‘ ‘ ).
    You can use this parameter to force the system to output city and country name unchanged (uppercase/lowercase).
    ( NO_UPPERCASE_FOR_CITY ‘X’ )
    REGION
    This allows an administrative region, county, province, or state etc. to be specified.
    COUNTRY
    Specifies the recipient country, i.e. the country according to whose postal conventions the address is to be formatted.
    COUNTRY_IN_REC_LANG
    This flag tells the system to use the recipient language for the country name.
    ( COUNTRY_IN_REC_LANG ‘X‘ )
    ( Default: Recipient language is not used: COUNTRY_IN_REC_LANG ‘ ‘ )
    LANG_FOR_COUNTRY
    Default = Space
    Use this parameter to explicitly set the language in which to print the country name of a foreign address. By default, the system uses the language of the sending country.
    LANGUAGE
    Language code of the language of the recipient country, if it differs from that of the recipient COUNTRY. Example: addresses in Switzerland. Standard SAP language codes are used; you can display these in the initial SAPscript text processing screen or in table T002.
    FROMCOUNTRY
    Specifies the language to be used for formatting the name of the recipient country. For most European countries, the recipient country is specified by placing the international car registration letters in front of the post code and separating them from the post code with a hyphen. You must always specify the sender country.
    ADDRESSNUMBER
    The number is used to index a central address file, from which the desired address is read instead of using the set of the above fields. You can find more information on this facility in the documentation for the function module ADDRESS_INTO_PRINTFORM.
    You use this one parameter instead of the set of parameters described before.
    /: ADDRESS
    /: TITLE 'Firma'
    /: NAME 'Schneider & Co', 'Finanzberatung'
    /: STREET 'Kapitalgasse 33'
    /: POBOX '12345' CODE '68499'
    /: POSTCODE '68309'
    /: CITY 'Mannheim'
    /: COUNTRY 'DE'
    /: FROMCOUNTRY 'DE'
    /: ENDADDRESS
    This produces the following output address:
    Firma
    Schneider & Co
    Finanzberatung
    Postfach 12345
    68499 Mannheim
    If the DELIVERY parameter is specified on the ADDRESS command, then the street name and number will appear in the address in place of the P. O. Box number.
    Firma
    Schneider & Co
    Finanzberatung
    Kapitalgasse 33
    68309 Mannheim
    SAPscript makes an internal call to the ADDRESS_INTO_PRINTFORM function module for formatting the address. If the result is not as expected, you should check the settings for this function module (see the function module documentation).

  • Logos not printing in SAPScript in background

    Hi all,
    Company logo is part of check printing, which is developed using SAPSCript.
    The printed checks have the logo, if the job is run from foreground.
    But, when check printing is scheduled, it is not getting printed.  Ideally, check printing will be a scheduled process only.
    Also, this issue happens with certain users only.  Can anybody help me in identifying the auth object that relates to logos?
    Request the experts to provide input on these.
    Regards,
    Sridevi
    Edited by: Sridevi on Jul 2, 2008 10:39 AM

    Hi,
    I ran ST01 and found S_BDS_DS object missing.
    Regards,
    Sridevi

  • Duplicate printing In SAPScript form

    In SAPScript form, is it possible to print the same page twice in one go without creating the same window twice?
    There is a specific requirement that we need to print the same content twice.
    Thanks for your kind help.
    Ashish

    In the OPEN_Form function module you can pass the no. of copies OPTIONS-TDCOPIES.

  • Label Printing in SAPScript

    Hi All,
    I am facing a problem in Printing a Label in SAPScript.
    Kindly find the following code snippet.
    Request to give the explaination of the below code.
    FO40,37A0N,30,35FRFDSHIP FROM:^FS
    FO40,87A0N,30,35FRFD&SHIP_POINT-LINE1&^FS
    FO40,137A0N,30,35FRFD&SHIP_POINT-LINE2&^FS
    FO40,187A0N,30,35FRFD&SHIP_POINT-LINE3&^FS
    FO40,237A0N,30,35FRFD&SHIP_POINT-LINE4&^FS
    FO40,287A0N,30,35FRFD&SHIP_POINT-LINE5&^FS
    Points Assured.
    Regards.

    I have already replied to this in another forum, however ...
    You have to check the lines SHIP_POINT-LINE1/SHIP_POINT-LINE2/SHIP_POINT-LINE3/SHIP_POINT-LINE4/SHIP_POINT-LINE5. These have to be replaced by internal table fields coming from your print program inorder to display the text on the label.
    FO40,37A0N,30,35FRFDSHIP FROM:^FS
    FO40,87A0N,30,35FRFD&SHIP_POINT-LINE1&^FS
    FO40,137A0N,30,35FRFD&SHIP_POINT-LINE2&^FS
    FO40,187A0N,30,35FRFD&SHIP_POINT-LINE3&^FS
    FO40,237A0N,30,35FRFD&SHIP_POINT-LINE4&^FS
    FO40,287A0N,30,35FRFD&SHIP_POINT-LINE5&^FS
    Try this. Hope it will help.

  • Excise invoice printing by sapscript

    Hi All,
    Can anyone provide me the details of  step by step how to display the sales excise invoice  by sapscript?
    I had gone to VF02 and then enter the Billing document Number whose excise invoice has already developed. I went to header > output>output type is J1I0 for output type.When I am going to Print preview by ISSUE OUTPUT TYPE no preview is coming...
    Hope Connection between driver program and sapscript is not done..
    Else if I go V1IP and entering excise invoice number and then tell me how print preview will come with value...
    Please do help..Urgently..Go live is forthcoming soon...I remain grateful for the same....
    Sikha.

    Hi,
      Please  do this....
    1.Check the SAP Script : OPEN_FORM should have the option DIALOG = 'X'.Then only the dialog will be appearing.
    If this is ok, then go to 2.
    2.Go to SE11 and Display the entries of TNAPR by giving the Output Type, Application Type and Print Medium( 1).
    If the configuration is done correctly, then the form details are shown.Else, the configuration is not done.
    If configuration is not done, then go to NACE.
    Select Corresponding application Type and click on output types.All the output will be appearing.Then select the output which you want and click on Processing Routines (on Left hand side).
    Then You will get a screen where you need to enter the Subroutine, Form Name etc.
    Thanks & Regards,
    Vamsi.

  • DMS printing from sapscript

    Hi
    I have a requirement when a user prints Bill of Lading document i need to print a document (stored in the document management) that is linked to a customer or material master.. Can you please explain me how to archive printing documents stored in DMS from sapscript.
    I really appreciate for all the help.
    thanks,
    Hemanth

    Hi,
    Did you find the solution to this? I am having to solve the same problem. Any input is much appreciated.
    Thanks,
    Sanjay

  • Update Text at run time and print in SAPScript

    Hello Experts,
                     My requirement is to print some hard coded text in SAPScript at item level based on the quantity.
    If at all the quantity is 4 then i need to print the text "Quantity" 4 times.
    In script i have written the command: INCLUDE <textname> OBJECT TEXT ID ST LANGUAGE E.
    and i have created a text using tcode SO10 then written a subroutine to update that text.
    In the subroutine i have used the Funtion Module SAVE_TEXT and FM: COMMIT_WORK to updated the text.
    Though it is updating the text in SO10 but its priting the text which was created for the first time.
    Like: for the 1st line item if the quantity is 4 then its printing the "Quantity" 4 times
    But for the 2nd line item if the quantity is 2 then also its priting the "Quantity" 4 times and i can see in the tcode SO10 the text is updated from 4 times to 2 times but at script level it is not priting the updated one.
    Ex: 4 times the quantity is update to 2times
    "Quantity"
    "Quantity"
    "Quantity"
    "Quantity"
    to
    "Quantity"
    "Quantity"
    Please help out with this
    Thanks
    Syed

    i think this is possible in print program. it may be useful to u
    Ex :   item     description   quantity.
            00010   test1              4
            00020   test2             3
            00030   test3             8.
    loop at lt_itab into wa_itab.
    for first item : 00010   the quantity is 4.
    n = your qnatity (4) wa_itab-qty.
    take one more final table and append all quantity records.
    do 4 times.
    text :  " quantity"
    append final table.
    enddo.
    endloop.
    finally your final internal table is :
    item     description   quantity    text.
    00010   test1              4          quantity
                                     4           quantity
                                     4          quantity
                                     4          quantity

  • Address print problem - sapscript

    Hello
    I have a problem with print name for example
    "Mr &Smith& and &M& company" from field &VBDKR-NAME1&. The output is "Mr and company" sapscript format the name. I use
    /: ADDRESS PARAGRAPH AS
    /: ADDRESSNUMBER &VBDKR-ADRNR(K)&
    /: FROMCOUNTRY &VBDKR-SLAND&
    /: ENDADDRESS 
    and it helps but now i want to output only street from the  address or name2 (&VBDKR-NAME2&). I try to use
    ADDRESS PARAGRAPH AS PRIORITY 6APHRT7I8LCBS5O LINES 1
    but it returns "invalid label".
    Any help ?
    Regards Bartek

    Hi,
    Instead of ADDRESSNUMBER can you use the other way like
    /: ADDRESS [DELIVERY] [TYPE t] [PARAGRAPH a] [PRIORITY p] [LINES l]
    /: TITLE title
    /: NAME name1[,name2[,name3[,name4]]]
    /: PERSON name of natural person [TITLE form of address]
    /: PERSONNUMBER number of the personen
    /: DEPARTMENT department
    /: STREET street name HOUSE house number
    /: LOCATION additional location information
    /: POBOX po box [CODE post code / zip code] [CITY city]
    /: POSTCODE post code / zip_code
    /: CITY city1[,city2]
    /: NO_UPPERCASE_FOR_CITY
    /: REGION county / state
    /: COUNTRY recipient country [LANGUAGE language code]
    /: COUNTRY_IN_REC_LANG
    /: LANG_FOR_COUNTRY language key
    /: FROMCOUNTRY sender country
    /: ENDADDRESS
    You have the STREET option here. Also find the detail help at,
    http://help.sap.com/saphelp_470/helpdata/en/d1/803238454211d189710000e8322d00/frameset.htm
    Thanks
    Vinod

  • Page number wise printing of sapscript

    Dear All,
    I have SAPSCRIPT program for SAP FI/CO voucher printing .
    The problem is that the user has to select each and every page to print after they have a print preview.
    What user need is that the script would be printed as according to the user enters the page number range like for example
    page 1-12 and the form would be printed from page 1 to 12.
    can anyone help me out with the problem ASAP.
    thankx & rgds
    TCL kolkata

    Hi!
    &PAGE& variable gives you the actual page.
    /E MYELEMENT
    /: DEFINE &MYPAGE& = &PAGE&
    I hope it works...
    Regards
    Tamá

  • Bar code vertical print in SAPScript

    Hi friends,
       How to print Bar code in Vertical manner in SAPScript.

    In SAPscript forms, barcodes depend on printer description languages. So, just look at their documentation. Then  you create your own printer barcode and print control with this code.

  • Printing a sapscript gives error .

    Hi
    I have created a new sapscript  to print a tax invoice .When i preview it i can see it fine .
    Also when in the print options  put locl and print it .It gets printed to the printer that i have allocated in my local .
    But when i change the print options to put the name of the printer directly it gives me an error saying that Device type PLAIN does not support page format DINA4.
    It is the same printer but when put as local it prints but when we put the number directly it does not print and gives as error .
    Any suggstions ?
    Thanks in advance
    Anjali

    Hi,
    There is used another driver in SAP . With LOCLl you mostly use your windows printer driver. Your other printer choice uses a sap printer driver.
    You should check that one because that one makes trouble (tranaction SPAD).
    Gr., Frank

Maybe you are looking for