Printing SAP Script from PCUI

Hi,
  How shall we print Sapscripts from PCUI.
Thanks and Regards,
Abdul Raheem .S

Abdul, is it not a valid option to translate your SAPScript to a Smartform? This is much easier to handle and also follows SAP's future development. Tiest.

Similar Messages

  • SAP Script from FM

    am calling a SAP Script from FM, in this SAP script there are some variables used the values to these variables are assigned inside FM. but these are not getting displayed. where as when I am calling the FM from report program the values are getting displayed

    1. You can print the data by using report program or application(through assingment in NACE)
    2. When you want to print some standard SAP application like pur. order , sales order this you will do with NACE and you fire the print from that application transaction like ME21, ME22, VA01 etc.
    3. Next is through stand alone transaction or program that is a report program thorugh which you will call the OPEN_FORM, WRITE_FORM, CLOSE_FORM and print the output.
    I think in your case, you are print through report program. If you want to write some data from print program to layout you should call WRITE_FORM by passing window and text elements.
    even when you are calling sap script from some other wrapper function module also, it calls and prints the data in the form.
    But ultimatly you should print the data by using report program or standard sap application method.
    Thanks,

  • Calling SAP scripts from WEBDYNPRO

    Hi
    We need to call SAP scripts from WebDynpro application.  As per my understanding we need to do following steps
    Create a new RFC function module and create sap script output in PDF format.For this
        - use OPEN_FORM , by assigning TDGETOTF='X' in the Options(Structure
          ITCPO). 
        - call function module CLOSE_FORM with option OTFDATA
        - convert OTF data to PDF by using function module CONVERT_OTF_2_PDF
    Now I would like to know how to display the PDF string from WebDynpro.
    Please help....
    Regards
    Sujith

    Hi,
    You can call by creating external window method.
    create LINK to URL or LINK TO ACTION according to requirement, for this. write code in onaction of that.
    data: iv_url type string value 'http://<server>:<port>/sap/bc/gui/sap/its/webgui?~transaction=*se38 RS38M-PROGRAMM=rsparam;DYNP_OKCODE=SHOP'.
      data: api_component  type ref to if_wd_component,
              window_manager type ref to if_wd_window_manager,
              window type ref to if_wd_window.
      api_component = wd_comp_controller->wd_get_api( ).
      window_manager = api_component->get_window_manager( ).
      window = window_manager->create_external_window(
                     url = iv_url
                     modal = abap_false ).
      window->open( ).
    Cheers,
    Kris.

  • Translations of SAP Script from English to Spanish

    Hi All,
    I need to do translate one of the SAP script from English to Spanish. Could anyone please help me how to achieve this?
    Thank you in anticipation.

    Hi Nikhil,
    You can use transaction SE63 to do this: Translation->long Texts->SAPscript->Forms.
    Regards,
    John.

  • Books for SAP Script from SAP Press

    Do we have any books published for SAP Scripts from SAP Press ?

    Hi,
    Yes-> http://www.sap-press.de/katalog/buecher/titel/gp/titelID-667?GalileoSession=74564414A2Qf67.aL0Q
    Have also a look at
    http://www.amazon.com/gp/product/1893570142/102-2992344-7930525?v=glance&n=283155&n=507846&s=books&v=glance
    Eddy

  • SAP Script from scratch.

    Hi friends.
    i want to develop sap script from scratch.
    please any one have good document for this, then please send me on <b>[email protected]</b>
    thanks in advance.

    Hi,
    Please have a look at the links,
    Sap Script Programming.
    SAP Scripts
    Regards,
    Hema.
    Reward points if it is useful.

  • How to print different pages of sap script  from diff. trays of printer

    Hi All,
    I have the requirement in SAP script. How to print different pages from different trays in the printer.
    For example  page 1 logo and address has to print from tray-1,
                        page 2 main data print from tray-2,
                        page 3 footer data print from tray-3.
    will appreciate if u come up with solutions asap.
    Thanks in advance.

    Hi,
    May be the links given below might help you,
    SAPScript:Selecting Different Tray in SAPscript
    Print to different output tray in SAPscript/Print Workbench
    Regards,
    Hema.
    Reward points if it is useful.

  • Passing data to SAP script from print program-VF03

    Hi All,
    I have a stand alone print program which ahs the invoice number in its selection screen which when entered displays the layout of invoice by using a sap script.
    Now since I have to get this layout displayed from VF03, I have added the program, sap script name and a subroutine which contains the code which was initially there under the start-of-selection event in the stand alone program, in NACE. I have replaced the selection screen parameter for invoice number in my program with nast-objky which contains the invoice entered in vf03.
    But when I am entering the invoice in vf03 and selecting print preview, the data is getting captured in the internal table defined in my program but the same is not getting reflected in the layout displayed. So I am always getting the blank values in the output though I did not modify the original sap script at all. Pls help.

    Keep a breakpoint in your print program and see if your program is being triggered indeed. Do not forget to start Update debugging, otherwise it will not stop in your print program.
    Regards,
    Ravi

  • PO Print SAP scripts:Grand total field -- High priority

    Hi experts
    In a PO print out, For example in one line item ,I have conditions printed as below
    Line iem 1.
    Gross price -- 1000
    VAT% 40
    Service Tax -
    123.36
    Net. Incl. Disc. 1163.36
    Line iem 2.
    Gross price -- 500
    VAT% 20
    Service Tax -
    61.8
    Net. Incl. Disc. 581.8
    Grand total----
    1500
    (desired tgrand total 1163.36+581.8)
    I have many line items like this and the total of all conditions at individual line item printed is correct.
    But at the bottom of the PO print, in the "Grand Total" the sum of only the Gross values is printed (Not the total of the Net. Incl. vlaues of line items).
    I got info from our developer that we are using SAP scripts (not smart forms).
    Please guide me if anyone has come accros a issue like this and got the answer. This is urgent.
    Thank you
    MRao

    To calculate grand totals and sub totals in sap scripts you have to use subroutines.
    Say if you have to add the unit price (KOMVD-KBERT) then in the main window where ever that value is picked write this routine
    /: DEFINE &TOT_PRICE&
    /: PERFORM F_GET_PRICE IN PROGRAM <subroutine prog name>
    /:USING &KOMVD-KBERT&
    /:CHANGING &TOT_PRICE&
    /:ENDPERFORM
    Then write the variable where ever you want it to be printed (mostly grant total will be in footer window)
    Then create subroutine pool program and you have to write the following code.
    FORM F_GET_PRICE tables int_cond structure itcsy
                                               outt_cond structure itcsy.
    data : value type kbert.
    statics   value1 type kbert.
    Read int_cond table index 1.
    value = int_cond-value.
    value1 = value1 + value.
    Read outt_cond table index 1.
    outt_cond-value = value1.
    Modify outt_cond index 1.
    ENDFORM.
    I have given a rough example,
    Note:Int_cond-value and outt_cond-value are characters.
    Close the thread once your question is answered.
    Regards,
    SaiRam

  • Printing sap script to spool by skipping print parameter window

    Hi all,
    I am trying to print an output (derived from sap script) directly from program to spool and then fetch the spool request and download it to PDF. This should happen automatically when the end user executes the program by giving required inputs. Can any one guide me on this ?
    Rgds,
    Praveen

    Hi all,
    I got the problem solved. Thanks for all who replied and supported me. This is how i solved it. This is not the full code. I am not giving declaration part here. But this is the main blocks which is going to work.
    Data: purdocno TYPE string,
                        v_len_in TYPE i.
    PERFORM open_from.
        LOOP AT it_itab.
          ON CHANGE OF it_itab-ebeln.  
              PERFORM start_form.
              PERFORM write_form.
              PERFORM end_form.
          END ON.
        ENDLOOP.
    PERFORM close_form.
    PERFORM convpdf.
    FORM convpdf.
        CALL FUNCTION 'CONVERT_OTF'
         EXPORTING
           format                      = 'PDF'
    *       MAX_LINEWIDTH               = 132
    *       ARCHIVE_INDEX               = ' '
    *       COPYNUMBER                  = 0
    *       ASCII_BIDI_VIS2LOG          = ' '
           PDF_DELETE_OTFTAB           = 'X'
         IMPORTING
           BIN_FILESIZE                = v_len_in
    *       BIN_FILE                    =
          TABLES
            otf                         = i_otf
            lines                       = i_pdf
         EXCEPTIONS
           ERR_MAX_LINEWIDTH           = 1
           ERR_FORMAT                  = 2
           ERR_CONV_NOT_POSSIBLE       = 3
           ERR_BAD_OTF                 = 4
           OTHERS                      = 5.
        purdocno = s_ebeln+3(10).
        concatenate 'c:\' purdocno '.pdf' INTO purdocno.
        CALL FUNCTION 'GUI_DOWNLOAD'
         EXPORTING
    *      BIN_FILESIZE                    =
          filename                        = purdocno
          FILETYPE                        = 'BIN' " important
    *    IMPORTING
    *      FILELENGTH                      =
         tables
           data_tab                        = i_pdf
         EXCEPTIONS
           FILE_WRITE_ERROR                = 1
           NO_BATCH                        = 2
           GUI_REFUSE_FILETRANSFER         = 3
           INVALID_TYPE                    = 4
           NO_AUTHORITY                    = 5
           UNKNOWN_ERROR                   = 6
           HEADER_NOT_ALLOWED              = 7
           SEPARATOR_NOT_ALLOWED           = 8
           FILESIZE_NOT_ALLOWED            = 9
           HEADER_TOO_LONG                 = 10
           DP_ERROR_CREATE                 = 11
           DP_ERROR_SEND                   = 12
           DP_ERROR_WRITE                  = 13
           UNKNOWN_DP_ERROR                = 14
           ACCESS_DENIED                   = 15
           DP_OUT_OF_MEMORY                = 16
           DISK_FULL                       = 17
           DP_TIMEOUT                      = 18
           FILE_NOT_FOUND                  = 19
           DATAPROVIDER_EXCEPTION          = 20
           CONTROL_FLUSH_ERROR             = 21
         OTHERS                            = 22.
        IF sy-subrc <> 0.
    *     MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        ENDIF.
    ENDFORM.

  • Sap scripts(from scratch)

    Hi all
         Can you tell me how to write sapscripts and how to execute it as iam new to it....
    say it from scartch as you tel as even layman can understand .....
    Rewards for all useful answers......

    Hi
    <b><u>I'm having a good material on scripts If u want i'll provide that material to you</u></b>
    <u><b>
    scripts</b></u>
    Link for SAP Scripts (step by step procedure)
    http://smoschid.tripod.com/How_to_do_things_in_SAP/How_To_Create_A_SAPSCRIPT_Form/How_to_Create_SAPSCRIPT.html
    SAPScripts
    http://esnips.com/doc/1ff9f8e8-0a4c-42a7-8819-6e3ff9e7ab44/sapscripts.pdf
    http://esnips.com/doc/1e487f0c-8009-4ae1-9f9c-c07bd953dbfa/script-command.pdf
    http://esnips.com/doc/64d4eccb-e09b-48e1-9be9-e2818d73f074/faqss.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
    SAP SCRIPT FIELDS
    http://help.sap.com/saphelp_erp2005vp/helpdata/en/d1/8033ea454211d189710000e8322d00/content.htm
    scripts easy material
    http://www.allsaplinks.com/sap_script_made_easy.html
    http://www.sappoint.com/abap/ssintro.pdf
    http://www.sappoint.com/abap/sscript.pdf
    http://www.sappoint.com/abap/sscript.pdf
    http://www.sappoint.com/abap/lsetssap.pdf
    http://www.sappoint.com/abap/sscrtpex1.pdf
    http://www.sap-img.com/sapscripts.htm
    http://www.thespot4sap.com/Articles/SAPscript_Introduction.asp
    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
    Other Links
    http://www.virtuosollc.com/PDF/Get_Reporter.pdf
    http://help.sap.com/saphelp_47x200/helpdata/en/da/6ada3889432f48e10000000a114084/frameset.htm
    http://help.sap.com/saphelp_erp2005/helpdata/en/66/bc7d2543c211d182b30000e829fbfe/frameset.htm
    http://help.sap.com/saphelp_erp2005/helpdata/en/5b/d22cee43c611d182b30000e829fbfe/frameset.htm
    http://www.virtuosollc.com/PDF/Get_Reporter.pdf
    http://help.sap.com/saphelp_47x200/helpdata/en/da/6ada3889432f48e10000000a114084/frameset.htm
    http://help.sap.com/saphelp_erp2005/helpdata/en/66/bc7d2543c211d182b30000e829fbfe/frameset.htm
    http://help.sap.com/saphelp_erp2005/helpdata/en/5b/d22cee43c611d182b30000e829fbfe/frameset.htm
    http://www.thespot4sap.com/Articles/Code_CostCentreReport.asp
    http://www.allsaplinks.com/dialog_programming.html
    http://help.sap.com/saphelp_webas630/helpdata/en/9f/db9cdc35c111d1829f0000e829fbfe/frameset.htm
    http://www.allsaplinks.com/files/using_table_in_screen.pdf
    http://www.geocities.com/ZSAPcHAT
    DIFF BETWEEN SCRIPTS N SMARTFORMS
    SAPscript technology is based on a mainframe product from the 1980s, while Smart Forms have only been around since (roughly) 2001. With that sort of time gap, there are bound to be significant differences between the two tools. Client dependence is a fundamental one. Although SAPscript has had some incremental improvements over time, its forms have always been -- under the hood -- relatively ...
    1. script is client dependent one while smartform is client independent.
    2. In scripts we have to write print program while in smart forms it is not necessary.
    3. In scripts we can print background logo while in smartforms we cant print background logo
    4. In scripts we have 99 main windows while in smartforms we have only 1 main window.
    5. In scripts we should write paragraph format otherwise we cant execute program while in smartforms no need to create paragraph formats .
    6. In scripts we can print the text in only two character formats.
    while in smartforms we can do with more.
    7. In scripts we dont have line types while in smartforms we have linetypes.
    also refer
    difference between smartforms and scripts
    Diff betwen Scripts & smartforms
    advantages of smartforms over scripts
    the main diffarences between smart form and script form are:
    1) smart forms are clinent independent where as scripts are client dependent.
    2) smart form require half the time to create and maintain forms compare with
    script.
    3) smart forms provide multiple page formats where as in script not possible
    4) smart forms exisist without main window also where as in script not possible.
    5) smart form is entairely graphical user interface comapre with script.
    6) labeling is not possible in smart form where as it is possible in script.
    7) smart form genarate function module whenver it activate where as script
    doesn't genarate.
    8) smart form can easily web publishing using the genarated XML output compare
    with script.
    9) using smart forms we can design web forms but bot possible with script.
    10) we can maintain background graphics in smartform wher as in script not
    possible.
    11) in smart form we use transaction codes SMARTFORM for designing FORM
    and SMARTSTYLES to create differnt styles of text, where as in script we
    use SE71 for form painter and SE72 for different styles of text and font.
    12) we can migrate script to smart form vice-versa is not possible.
    Reward all helpfull answers
    Regards
    Pavan

  • Problem while printing SAP Script

    Hi All,
    I have one scenario, in which I have to copy the Standard SAP Script  form (HR_ALL_FIX) client '000' and import in the development server as custom SAP script(ZHR_ALL_FIX)  and making change in main window the text. Instead of  "Yours Faithfully" text I have changed it to 'Warm Regards'.
    When I try to view the print preview of the script from PP40 tcode,  the output is overlapped.
    Instead of 'warm regards' to be displayed at the end of the page, its being printed in between somewhere.
    No other changes I have made.
    Any inputs and help will be really helpful.
    Thanks in advance

    I am still facing the problem . tried everything. Have only changed the language while copying from DE to EN.
    Also, just creating a Z form without ANY change at all( even the printer used to check print preview is the same)... and attaching it to OOVM transaction and then checking the print preview - TEXT comes randomly (in different order)
    Any help will be really appreciated and rewarded..
    Awaiting help.
    Edited by: HeenaChampaneri on Apr 15, 2010 8:39 AM

  • Question on Printing SAP Script

    Hi Group,
    I have an urgency in printing a SAPScript. I would like to know how to change the printer settings to hold the page of a particular size for printing.
    Please let me know the procedure to achieve this and also the transaction(s) relating to this configuration.
    My requirement:
    I want to create some settings to a SAP Script page and I want to use the same configuration (of the page) while running the driver program.
    My Issue is:
    I have a page(SAP Script) in which I want to print exactly 3 cheques for the page.
    But, currently, I am able to get only one cheque getting printed and remaining 2/3 of the page is getting wasted. So I want to do the configuration accordingly to achieve my task.
    Please let me know your valuable inputs.
    Thanks & Regards,
    Vishnu.

    We don't include the audit trail content in the specification print out.   I recommend using a BI Publisher contextual report that you can launch from the specification.  You can learn more about custom reporting in the extensibility pack reporting guide.

  • Problem in using the sap script from 1 client to another

    Hi,
    I am working on a sap script which is developed in the 555 cliet(Quality) but now the error comes change to repository or cross client is not allowed.
    In order to change the script which i am working on i tried to copy that script in 333 client and created with the orignal script. I tried to copy the modified script (developed in 555) but it is copying that script.
    Plzz proivde me guideliness how to solve this problem.

    >
    ricx .s wrote:
    > Hi,
    >
    > I am working on a sap script which is developed in the 555 cliet(Quality) but now the error comes change to repository or cross client is not allowed.
    >
    > In order to change the script which i am working on i tried to copy that script in 333 client and created with the orignal script. I tried to copy the modified script (developed in 555) but it is copying that script.
    >
    > Plzz proivde me guideliness how to solve this problem.
    Hi there,
    Are clients 555 and 333 both on DEV Server? If so you may use transaction SCC1 to copy the form from one client to another. Just run SCC1 on the client where the sapscript form will be copied, indicate the source client, and search for the transport request number that contains your form.
    Also, where did you develop your form?
    Let me know.
    Regards.

  • Changes are not reflecting while executing the SAP script from report

    HI,
    In SAP-script we are nmaking changes in form in client 130
    it is showing the changes in 140 client but while excuting the report the same are not reflecting in the output.
    Thanks in Advance
    Naveen M

    Hello.
    Scripts are mandant depentant. So you must copy from 130 to 140 for changes take efect.
    Do it in transaction SE71 in mandant 140, first screen, in the menu options.
    And never forget to activate it in all mandants.
    Best regards.
    Valter Oliveira.

Maybe you are looking for

  • Print button low resolution (72dpi) prints and PDFs

    Hello, When I printed single pages from an Aperture book using the 'Print..' button the prints look rather soft. For the prints, this is not much of a problem (just proofing), but I'm having the same problem when I print a book to PDF (or JPEG) that

  • Have I lost my photos forever? URGENT HELP NEEDED!!

    Here's the situation. I have a G5 PowerMac, and I recently uploaded photos from my camera. I wanted to burn them to a CD so I took the original picture folders from the harddrive (my bad) and dragged them onto a blank CD. Once I had them on there, I

  • New iTunes download delets my sound card

    Everytime I try to download the new version of iTunes it delets my sound card. I would return to the older version but off the website all you can download it the newversion and I can no longer find my download disk. ANything I can do to prevent loss

  • Alternative Reconcialtion account while doig the MIRO

    Hi All, One of the cleint required alternative Reconcialtion accoutn while doign the MIRO. Scenario like this there is one Vendor 'A' used supplies Raw material and Serives to company. Business is not intrested to create new vendor. But they needs di

  • J2SDK 1.2.1_02 on RH 8.0

    I am trying to port my app from windows to linux. I just installed the J2SDK on a full install of RH 8.0 and I am getting the following error message. HelloWorldApp.java:3: package Systems does not exist Systems.out.println("Hello World!"); ^ 1 error