Sapscript Print

Hi Guru,
   I have a situation where in i have my script program to print 10 pages in total.
   But suddenly i get a requirement that my client need to print only those
   pages starting from page no - 5 to page no - 8. How do i do this in sapscript.
   Guru Devo Bhava :)>

In "OPEN_FORM" you have a parameter call OPTIONS. Pass structure ITCPO, goto SE11, and have a look at this structure components,
Ex, populate components like TDPAGESLCT -(Pages selected for printing) and also check all other components need to be populated, don't forget to pass this structure to form as shown below.
CALL FUNCTION 'OPEN_FORM'
OPTIONS = ITCPO
Regards,
Sairam

Similar Messages

  • 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-  &

  • Sapscript: Print different languages

    Dear all,
    We have the following issue I need your help on:
    We have an offer, which has to be printed in Chinese and English. For printing we use the Sapscript forms ...
    Here is the current coding for printing (SE71):
    - Chinese: Printout is in Chinese and correct
    /:         ADDRESS PARAGRAPH T2 LINES 8
    /:           ADDRESSNUMBER &VBDKA-ADRNR(K)&
    /:           COUNTRY 'CN' LANGUAGE 'C'
    /:           LANG_FOR_COUNTRY 'X'
    /:           FROMCOUNTRY &VBDKA-SLAND&
    /:         ENDADDRESS
    - Englisch: Printout of customer address is shown as ##### even we print the output type in English and there is an English language maintained in SD and customer master data
    /:         ADDRESS PARAGRAPH T2 LINES 8
    /:           ADDRESSNUMBER &VBDKA-ADRNR(K)&
    /:           FROMCOUNTRY &VBDKA-SLAND&
    /:         ENDADDRESS
    The customer master data in VD03 is in English and Chinese as "Internat. Version".
    Please can you help us how the coding should look like, so the same output type can be printed in Chinese with Chinese letters and English with Latin letters.
    I've read through some other related topics and it seems like the device type is also relevant if the printing of different languages is supported or not!?
    Does someone know the correct device type? We currently use the following: PDFUC.
    By the way: In our user exit we also have implemented an user exit with the following function ....
    * China:
      ELSEIF destination_country_fields-intca = 'CN'.
         IF sender_country_fields-intca = 'CN'.
    * China -> China: Version C (if maintained, otherwise version SPACE)
          version_key = 'C'.
         ELSE.
    * from elsewhere -> China: International (if maintained)
           version_key = 'I'.
         ENDIF.
    --> This user exit shows, that we can't print the English characters since it's always pulls the Chinese ADRNR.
    Do you have an idea how we can adapt the program or user exit so we also can print the form in English, even parts goes CN to CN.
    Thanks in advance.

    Hi Andreas,
    you just have to make sure, that the device-type support the character-set. This is located in TA SPAD and there you go to the device-type.
    but that is a basis-thing.
    Additional to that it necessary to call the form in the correct language in such specific cases.
    To solve this issue go to SE63 and translate it to chinese.
    Now, if you got a chinese customer, call the form for the chinese output and if you got the english call the EN-Output.
    To connect both forms together you can use the START_FORM/ END_FORM functionstones. It is located in the same functiongroup.
    OR
    An easy try and error thing would be to set the country before printing the address.
    /: SET COUNTRY CN
    /:         ADDRESS PARAGRAPH T2 LINES 8
    /:           ADDRESSNUMBER &VBDKA-ADRNR(K)&
    /:           FROMCOUNTRY &VBDKA-SLAND&
    /:         ENDADDRESS
    SET COUNTRY <Yourpreferredcountry>
    This takes affect also at the outputdevice-type to refer to the correct language-settings.
    It is just an idea which come during writing my answer. I never faced something like that, but I can imagine, that this could be a also an easy to go solution.
    Hope that gives you a solution for your problem.
    ~Florian

  • SAPSCRIPT: Printing international characters on ZEBRA; How to do?

    Hi,
    I use software NiceLabel software to design barcode forms. I upload the design to so10 Sapscript text and print it on the Zebra ptinter. I used device tape ASCIIPRI. The SAP system is unicode.
    Now I need to print chinese pallet labels and I get unexpected problems. I found a lot information but no solution. Is it possible to print international charcters form SAPScript on Zebra?
    I got the information from Zebra's White Paper: Solution for Printing International Characters. There it says:
    "Unicode UTF-8 is embedded within Zebra printers."
    "SAP Forms can be universal. Labels and forms ... do not need to be modified or recreated to print in different languages."
    "SAP-developed UTF-8 device type and code page support for SAPscript users"
    "Label design software that can generate ZPL with support for Unicode ZPL commands"
    Do you now which device type I have to use? I think I need an UTF-8 device type. Do you know how to go on?
    Please help. Thanks
    Frank

    Hi Frank,
    as far as I know, it might be possible when using SMARTFORMS instead of SAPScript!
    In that case, it depends of the device type and the printer type, of course.
    Have a look on SAP Note 750002 SmartForms: Support für Zebra Etikettendrucker (ZPL2).
    Cheers
    Klaus

  • SAPScript print out Margin problem

    Hi Gurus,
    I have configured a printer already existing to one of my storage location. When I am taking print out of material document, it is not coming correctly. Text is getting wrapped up on right hand side. But the preview of same material document is showing perfectly in spool result.
    I have checked the printer setting, print out is coming correctly for windows.
    I am using HPLaserJet Printer. I have maintained in SPAD- > Output attibutes- > Additional SAPscript & Smart Form Information:- Horizontal Move: 3mm , Vertical Shift: 2 mm. There is no page format maintained in tray info.
    but in Spool request, under "Print with changed parameters", the format under spool request is " DINA4".
    Please guide, if i need to maintain some more settings for the margins.
    Thanks & Regards,
    Sandeep

    Hi,
    For Material document Print out settings refer the below steps..in link
    Re: Printing all items (collective) from material document
    there are lot of threads regrading same answered in the forum have a look for the same
    Once all the settings are done check in MB90 you are selecting the line item and shoting the print.

  • SapScript - Print table out_par - more than one entry for object

    Hi Gurus,
    following problem.
    I have a SapScript form and call an external program from within the form.
    In this programm I get more than one entry for the same out_par-value - this is correct.
    My problem now is that on the form there is only printed one of the entrys.
    Here my coding in SapScript.
    /:           DEFINE &ZZ_OBJECT& = '        '
    /:           PERFORM LESEN_OBJEKTLIST IN PROGRAM ZIHFORM
    /:           USING &CAUFVD-AUFNR&
    /:           CHANGING &ZZ_OBJECT&
    /:           ENDPERFORM
    *           All involved object:
    *           &ZZ_OBJECT&
    Many thanks in advance for your help.
    Regards

    In Sapscript PERFORM-ENDPERFORM statements, the parameters can contain only one value as they are variables of type character & length 80.
    If you want multiple values in your CHANGING parameters, fetch all of them in different variables. Also, in your program store them in the same order, in the output internal table of structure ITCSY.
    Check this thread
    http://wiki.sdn.sap.com/wiki/display/profile/ExternalSubroutinesinSAPScript

  • SAPSCRIPT - print of scanned text

    Hi Guys,
    I have the following problem:
    We would like to print the scanned signatures of 2 persons at a orderform (sales order).
    The form is an sapscript form.
    For every sales order we have 2 persons which are responsible.
    Now we would like to print the scanned signatures of these two persons,
    as there are several possible combinations of these two persons we don't like to scan the signatures of every possible combination, but every signature in a seperate standard text.
    The printout should look like this:
    (Signature 1 - standard text 1)       (Signature 2 - standard text 2)
    Mr. Mueller                                       Mr. Maier
    The name of the person should be printed exactly under the includes standard text.
    Thanks for your help
    Manuel

    Hi Manuel,
    As far as I can see, just need to scan the signatures and make a bitmap for each signature. Then you can upload them to SAP via transaction SE78. Finally you can output the signatures in your sapscript form using the BITMAP command as described in SAP note 307414.
    Regards,
    Aidan

  • Sapscript print a extra page

    Hi expert,
    now i'm confused about a sapscript problem. The device program of this form is a standard SAP program SAPF130D, the issue is when i print it, the result will be two page, the second page does not have any data except for the header details. even if we don't print any content in the main window,the second page is also be printed. and i have checked the form, there are not any comand like 'new page'. Is there anyone have any idea to share.
    will appreciate your reply, thank you!!!

    This may have several reasons, but quite likeley it is a blank line beeing printed in main window not fitting in page1.
    The according paragraph format has not tagged the option "no empty lines".
    at least that would make him print a second page without seeing anything on the main window in the output.

  • Sapscript print barcode problem.

    hi everyone . i have troble about printing barcode using sapscript.
    now i have program sapscript program name is "ZRABARC01"
    and this program call sapscript = "ZAA_BARCODE"  (you will see  code at below of this message)
    this program work well.
    i want to create new programm "ZRABARC01_TEST"
    (i use se38 for copy program from ZRABARC01)
    and this new program will call sapscipt "ZAA_BARCODE_TEST"
    (i use se71 to copy from ZAA_BARCODE) 
    sapscript is active
    the problem is when i execute program ZRABARC01_TEST to call sapscript ZAA_BARCODE_TEST
    it's will show button print barcode
    after press button . it's will show print preview button.
    when i press print preview button .
    it's show error like this.
    error message
    There is no valid form
    Message no. AB 061
    Diagnosis
    During the printing of barcodes,
    the system could not find a valid form. Either no form was selected,
    or the form selected is not active.
    System Response
    The print procedure terminates.
    Procedure
    Use a valid form. You can either use the sample supplied by SAP,
    or modify it to your requirements. You maintain forms using the "form painter" (SE71) transaction.
    and after that i press print button again.
    there is error
    ABAP runtime errors    LOOP_WITHIN_LOOP
    what should i do to use program ZRABARC01_test call sapscript ZAA_BARCODE_test
    and i wonder why when i use program ZRABARC01_test and call sapscript
    ZAA_BARCODE  it's show same error.
    please help me.
    program code
    pa_form = 'ZAA_BARCODE'
    LOOP.
        AT FIRST.
         Formular ๖ffnen
          CALL FUNCTION 'FIAA_BARCODE_OPEN'
               EXPORTING
                    i_form = pa_form.
        ENDAT.
      Zurckholen der Struktur ANLAV.
        anlav = anlav_str.
    Insert 03/11/2004 OaK
        WRITE anlav-anln1 TO t-anln1 NO-ZERO.
        l1 = strlen( t-anln1 ).
        CASE l1.
          WHEN '1'.
            CONCATENATE '000000000000' t-anln1 INTO t-anln1.
          WHEN '2'.
            CONCATENATE '00000000000'  t-anln1 INTO t-anln1.
          WHEN '3'.
            CONCATENATE '0000000000'   t-anln1 INTO t-anln1.
          WHEN '4'.
            CONCATENATE '000000000'    t-anln1 INTO t-anln1.
          WHEN '5'.
            CONCATENATE '00000000'     t-anln1 INTO t-anln1.
          WHEN '6'.
            CONCATENATE '0000000'      t-anln1 INTO t-anln1.
          WHEN '7'.
            CONCATENATE '000000'       t-anln1 INTO t-anln1.
          WHEN '8'.
            CONCATENATE '00000'        t-anln1 INTO t-anln1.
          WHEN '9'.
            CONCATENATE '0000'         t-anln1 INTO t-anln1.
          WHEN '10'.
            CONCATENATE '000'          t-anln1 INTO t-anln1.
          WHEN '11'.
            CONCATENATE '00'           t-anln1 INTO t-anln1.
          WHEN '12'.
            CONCATENATE '0'            t-anln1 INTO t-anln1.
        ENDCASE.
    *End of insert 03/11/2004 OaK
    *Insert for Barcode printing 26/01/04
       UNPACK anlav-anln1 TO t-anln1.
        IF anlav-anln1+0(2) = '00'.
          MOVE anlav-anln21(3) TO t-anln10(3).
        ENDIF.
        APPEND t.
    *End of insert.
        CALL FUNCTION 'Z_AA_BARCODE_PRINT'
             EXPORTING
                  i_anlav = anlav
                  i_form  = pa_form
             TABLES
                  i_t     = t.
        CALL FUNCTION 'END_FORM'.
        CALL FUNCTION 'START_FORM'
             EXPORTING
                  form   = pa_form
             EXCEPTIONS
                  OTHERS = 8.
        AT LAST .
         Formular schliessen
          CALL FUNCTION 'FIAA_BARCODE_CLOSE'
               EXPORTING
                    i_form = pa_form.
        ENDAT.
      ENDLOOP.
    ENDFORM.
    Edited by: dittaporn nanasilp on Nov 17, 2009 11:55 AM

    hi,
    I am unable to read your post, check it once.
    rgds

  • Sapscript - print negative amounts

    Hi,
    we have a sapscript solution for printing the content of amount items; they are defined with NETWR or KWERT data element (CURR 13/15,2). When we print negative values the format is "x,y-", with the less sign after, but now it is asked to have the format "-x,y", with the less sign before. (ex. AS IS: 123,45- => TO BE:-123,45)
    I'm looking for the less impact possible solution, any idea?
    Thank in advance for every suggestion.
    Umb.
    Moderator Message: FAQ. Wrong forum. Please search before you post.. in the right forum.
    Edited by: kishan P on Jan 19, 2011 4:41 PM

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

  • Sapscript: Print Dialog not coming up!!!!!!!

    Dear All,
    One of my SapScript program is behaving abnormally. When I execute it using the login of ABAP, the Print Dialog Box appears where the user can select the output device etc for printing but when I do the same from some other login, other than that of ABAP, the print dialog box doesn't appear, hence the user is unable to get a print.
    What could be the reason?? Please advice..
    Regards & Thanks in advance,
    Alok.

    Thanks Kozerski, for your valuable input. It solved my problem.
    Thanks once again..I have rewarded your reply also.
    Alok.

Maybe you are looking for

  • How do you create a new apple id on the iphone

    how do you create a new apple id on the iphone 4?

  • Reading JSON data from a URL

    Hi all, I have a requirement of reading JSON data from a particular URL and using one of the value to set one property in iView. I need some info on how to get JSON data from a URL and extracting attribute's value from it. What are the APIs that can

  • Process Task dependency issue in OIM 11g

    Hello, I created 3 process tasks (Task1, Task2 and Task3) .I would like to trigger Task3 when both Task1 and Task2 get completed status. So what I did is I put both Task1 and Task2 as depedent tasks in Task 3 "Task Dependecy" tab. In this case both T

  • How to load empty column from flatfiles to tables in oracle using aql*loade

    HI,, i am trying to load data from flat files to oracle tables using sql*loader. i got empty column to load. while i am trying it is throwing an error as null colums canot load... plz help me with this... Thanks in adavnce..

  • Questions on syndication

    Hi, I have two worklows - one gets triggered when adding a record to MDM and another on update of existing record. Both these workflows will always have only one record in job. I would like to syndicate the  record at the end of approval step in each