Run SBO report directly from SDK

Hi, is there a way to run an SBO report (for example Service Contracts) directly from SDK? The report should be given the necessary parameters too.
I know that i can call Service Contracts form, simulate a query to find the appropriate record and then simulate a click on print preview button. This way it will undoubtedly work.
But I would prefer opening the print preview directly, without the need of opening another form, that slows down the whole process. Is there a way to do this?

Tamas,
There is currently not an object via the SDK to directly run a report.  You would have to use the work around that you mentioned.
Eddy

Similar Messages

  • How to run reports directly from R/3 tables

    We are about to implement BW but the client wants to run temporary reports directly off R/3 tables. How can this be accomplished? Do we just use business content or r there other ways?
    Thanks

    I created a join of 3 tables using SQVI in BI 7.0.  Nobody else but me can see this query join.  Is there a way to save this to somwhere public, so others can access this view?  Maybe "Save As"??
    If possible, please provide steps to do this. 
    Thank in advance!

  • View Crystal Report File  from SDK

    Hello All,
    I want to View Crystal Report File (.rpt file) from SDK (using VB 6 )
    I have already try following code on my Add On :
       Public Sub RunCrystalReport()
       Dim crlApp As New CRAXDDRT.Application
       Dim crlRep As CRAXDDRT.Report
       Set crlRep = crlApp.OpenReport("D:\ReportTest.rpt")  
       Dim CRAX2 As CrystalActiveXReportViewerLib12Ctl.CrystalActiveXReportViewer
       Set CRAX2 = Form2.CRAX
       CRAX2.ReportSource = crlRep
       CRAX2.ViewReport
       End Sub
    But, nothing happen
    Could some one help one for this ?
    Thanks a lot
    Regards,
    Arie
    SDK Beginner

    Amazing Sir !!...
    I could run my report through B1 SDK right now...
    Many thanks to you Sir..
    Just one more thing, The Horisontal and Vertivcal Scroll control wasn't appear. Do I have to add scroll object or someting like that
    Many thanks again to you Mr. Porcelli
    Arie

  • Printing Reports directly from to a printer via 10g forms (Linux)

    Hi all,
    I need to be able to print Reports directly from a form to a printer (bypassing the form output) on Linux (RHEL 5). The trick here is this is Linux, not windows so, wasn't sure how to deal with printers in this case.
    I have the option working where I can run a report and set the options to "Cache" and PDF and it displays my outputted report directly in a new browser window w.
    I use the SET_REPORT_OBJECT_PROPERTY, RUN_REPORT_OBJECT, and WEB.SHOW_DOCUMENT properly for the PDF in a window.
    a.) I want to send them directly to a printer, preferably to a user's default printer on their PC, bypassing the output screen. How can I accomplish this?
    b.) I also would like the ability to generate a PDF (bypassing the output on a browser window) and put the form in a specified directory on a client's PC (which is what I used in 6i Client/Server). I believe I need to utilitize the WebUtil to allow this to happen. Otherwise, I'm thinking I just build a queue for the user on the Linux server and build a screen that shows all the reports they've generated for the past X amount of days and let them open them up and print from there.
    Any help (particulary for Part A) would be very beneficial.
    Chris

    1)
    if your app server is on a Linux server, for direct printing to work, the printer must be setup and accessible under Linux server using system-config-printer command, for PDF printout you probably want a postscript option checked
    if you print to screen (PDF) and then use print option then your windows client machine must have access to the printer
    2)
    you must pass this printer name as part of the report parameters.
    set_report_object_property(oRptObj, report_destype, Printer);
    and
    hidden_action := hidden_action ||'&report='|| cRptSrcFile; -- source of report program to call
    hidden_action := hidden_action ||'&destype='|| cDesType;
    hope this helps

  • Running fscript commands directly from Tool code

    Does any one know how to run fscript commands directly from Tool code.
    Better still how to run a script file containing fscript commands
    directly from Tool code
    regards,
    Manish shirke.
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>

    Try that :
    RunCommand('fscript < MyScript.fsc');
    Hope this help you,
    At 12:29 02/10/98 -0400, Shirke, Manish wrote:
    Does any one know how to run fscript commands directly from Tool code.
    Better still how to run a script file containing fscript commands
    directly from Tool code
    regards,
    Manish shirke.
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>
    Jean-Baptiste BRIAUD software engineer
    SEMA GROUP france
    16 rue barbes
    92120 montrouge
    mailto:[email protected]
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>

  • Running Report Directly from SAP Menu

    Hi ,
    I have to know that , I have created a report and given it a transaction code . There is also a standard report which output almost the same result .
    Now I want that standard report not to be shoen in the SAP menu on the left hand side and instead of it I want My reports transaction code to be visible so that the enduser is at an ease not to remember the Transaction code to run that report .
    So how can I go for it ?
    PLease advice .
    Thanx & Regards

    Hi,
    Have you looked transaction and screen variants (SHD0) or GuiXT solution?
    For more information, please check this links.
    http://help.sap.com/saphelp_nw04/helpdata/en/7d/f639fb015111d396480000e82de14a/content.htm
    http://www.synactive.com
    http://help.sap.com/saphelp_erp2004/helpdata/en/89/91b9d8194f11d5b3a30050dae02d7c/content.htm
    http://service.sap.com/guixt
    Hope this will help.
    Regards,
    Ferry Lianto
    Please reward points if helpful.

  • Print Crystal Report directly from C# without using Report Viewer

    Hello All,
    I need to print a crystal report directly to the printer without using ReportViewer in C#. I've a CrystalReport2(belowCode) which requires a query (Select * from JobHeader where JobNumber='J012345') to display all the data. I'm stuck with database connection
    and putting all the data to DataAdapter in C# (Below Code). I also have 8 subreports in my CrystalReport2. Can somebody please give me hand on this? I'm struggling with it. Thanks.
    Regards
    using CrystalDecisions.CrystalReports.Engine;
    using System;
    using System.Drawing;
    using System.Collections;
    using System.ComponentModel;
    using System.Windows.Forms;
    using System.Data;
    using System.Data.SqlClient;
    namespace csharp_win_printtoprinter
    /// <summary>
    /// Summary description for Form1
    /// </summary>
    public class Form1 : System.Windows.Forms.Form
    //CR Variables
    ReportDocument crReportDocument;
    private System.Windows.Forms.Button button1;
    private System.Windows.Forms.PrintDialog printDialog1;
    private System.Windows.Forms.Button button2;
    private System.Drawing.Printing.PrintDocument printDocument1;
    private CrystalDecisions.Windows.Forms.CrystalReportViewer crystalReportViewer1;
    private CrystalReport1 CrystalReport11;
    private Chart Chart1;
    /// <summary>
    /// Required designer variable
    /// </summary>
    private System.ComponentModel.Container components = null;
    public Form1()
    // Required for Windows Form Designer support
    InitializeComponent();
    // TODO: Add any constructor code after InitializeComponent call
    /// <summary>
    /// Clean up any resources being used
    /// </summary>
    protected override void Dispose( bool disposing )
    if( disposing )
    if (components != null)
    components.Dispose();
    base.Dispose( disposing );
    #region Windows Form Designer generated code
    /// <summary>
    /// Required method for Designer support - do not modify
    /// the contents of this method with the code editor
    /// </summary>
    private void InitializeComponent()
    this.button1 = new System.Windows.Forms.Button();
    this.printDialog1 = new System.Windows.Forms.PrintDialog();
    this.button2 = new System.Windows.Forms.Button();
    this.printDocument1 = new System.Drawing.Printing.PrintDocument();
    this.crystalReportViewer1 = new CrystalDecisions.Windows.Forms.CrystalReportViewer();
    this.Chart1 = new csharp_win_printtoprinter.Chart();
    this.CrystalReport11 = new csharp_win_printtoprinter.CrystalReport1();
    this.SuspendLayout();
    // button1
    this.button1.Font = new System.Drawing.Font("Microsoft Sans Serif", 16F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
    this.button1.Location = new System.Drawing.Point(32, 56);
    this.button1.Name = "button1";
    this.button1.Size = new System.Drawing.Size(160, 104);
    this.button1.TabIndex = 0;
    this.button1.Text = "Print Report No Choose Printer";
    this.button1.Click += new System.EventHandler(this.button1_Click);
    // button2
    this.button2.Font = new System.Drawing.Font("Microsoft Sans Serif", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
    this.button2.Location = new System.Drawing.Point(272, 56);
    this.button2.Name = "button2";
    this.button2.Size = new System.Drawing.Size(160, 104);
    this.button2.TabIndex = 1;
    this.button2.Text = "Choose Printer";
    this.button2.Click += new System.EventHandler(this.button2_Click);
    // crystalReportViewer1
    this.crystalReportViewer1.ActiveViewIndex = 0;
    this.crystalReportViewer1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
    this.crystalReportViewer1.Cursor = System.Windows.Forms.Cursors.Default;
    this.crystalReportViewer1.Location = new System.Drawing.Point(47, 188);
    this.crystalReportViewer1.Name = "crystalReportViewer1";
    this.crystalReportViewer1.ReportSource = this.CrystalReport11;
    this.crystalReportViewer1.Size = new System.Drawing.Size(903, 296);
    this.crystalReportViewer1.TabIndex = 2;
    // Form1
    this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
    this.ClientSize = new System.Drawing.Size(1164, 505);
    this.Controls.Add(this.crystalReportViewer1);
    this.Controls.Add(this.button2);
    this.Controls.Add(this.button1);
    this.Name = "Form1";
    this.Text = "Form1";
    this.Load += new System.EventHandler(this.Form1_Load);
    this.ResumeLayout(false);
    #endregion
    /// <summary>
    /// The main entry point for the application
    /// </summary>
    [STAThread]
    static void Main()
    Application.Run(new Form1());
    private void button1_Click(object sender, System.EventArgs e)
    crReportDocument = new ReportDocument();
    //Create an instance of a report
    crReportDocument = new CrystalReport2();
    //Use error handling in case an error occurs
    try
    //Set the printer name to print the report to. By default the sample
    //report does not have a defult printer specified. This will tell the
    //engine to use the specified printer to print the report. Print out
    //a test page (from Printer properties) to get the correct value.
    System.Drawing.Printing.PrintDocument printDocument = new System.Drawing.Printing.PrintDocument();
    crReportDocument.PrintOptions.PrinterName = printDocument.PrinterSettings.PrinterName;
    //Start the printing process. Provide details of the print job
    //using the arguments.
    crReportDocument.PrintToPrinter(0 ,true , 1, 1);
    //Let the user know that the print job is completed
    MessageBox.Show("Report finished printing!");
    catch(Exception err)
    MessageBox.Show(err.ToString(), "Unexpected exception");
    private void Form1_Load(object sender, System.EventArgs e)
    private void button2_Click(object sender, System.EventArgs e)
    //Open the PrintDialog
    this.printDialog1.Document = this.printDocument1;
    DialogResult dr = this.printDialog1.ShowDialog();
    if(dr == DialogResult.OK)
    //Get the Copy times
    int nCopy = this.printDocument1.PrinterSettings.Copies;
    //Get the number of Start Page
    int sPage = this.printDocument1.PrinterSettings.FromPage;
    //Get the number of End Page
    int ePage = this.printDocument1.PrinterSettings.ToPage;
    string PrinterName = this.printDocument1.PrinterSettings.PrinterName;
    crReportDocument = new ReportDocument();
    //Create an instance of a report
    crReportDocument = new Chart();
    try
    //Set the printer name to print the report to. By default the sample
    //report does not have a defult printer specified. This will tell the
    //engine to use the specified printer to print the report. Print out
    //a test page (from Printer properties) to get the correct value.
    crReportDocument.PrintOptions.PrinterName = PrinterName;
    //Start the printing process. Provide details of the print job
    //using the arguments.
    crReportDocument.PrintToPrinter(nCopy, false, sPage, ePage);
    //Let the user know that the print job is completed
    MessageBox.Show("Report finished printing!");
    catch(Exception err)
    MessageBox.Show(err.ToString());

    1. This is a VB.Net forum not a Visual C# forum. For Visual C# questions try this forum.
    Visual C#
    2. Crystal Reports are not supported by Microsoft. Therefore, unless somebody responding in the Visual C# forum has experience with whichever version of Crystal Reports you are using, you will probably not receive an answer in the Visual C# forum. SAP has
    their own assistance for Crystal Reports using Visual Studio. You can try to find an appropriate forum to ask questions in at SAP in the below link.
    SAP Community Network
    La vida loca

  • Print report directly from URL

    i have SSRS report where i have prompt to enter to get data. once the data is populated i would like to print directly from the print option rather saving to pdf and print. My page settings format is setup to 9X11 size. with this i can save and print fine.
    But if i print directly to print on A-4 right most part is not printing and looks like i have to change settings in my report. How do we print this kind of report correctly on A-4 size paper. Any help much appreciated.

    Hi SQL Instane,
    Per my understanding that you want to print the report directly when click the print button and print on A-4, you have set the size to 9X11 and after print out, some of the part is not printing, right?
    By default  the size setting for print to A4 is 8.5X11 or 11X8.5, If you have changed to 9X11 and didn't set the body size of the report properly, it my cause the issue you are facing.
    Details information below for your reference about how to do the size setting:
    Change the report size setting to 8.5(Page Width)X11(Page height), you can also try to decrease the size of the "left margin" and "right margin" to increase the width.
    Check the body size setting and maek sure they have the relationship as below:
    Body Width + Left margin + Right margin <=Page width
    Body height+ Top margin + Button margin <=Page height
    If you have many columns and need to increase the width, you can also change the default setting "potrait" (8.5X11)to "Landscape"(11X8.5)
    Article about  the Pagination in Reporting Services for your reference:
    http://msdn.microsoft.com/en-us/library/dd255278.aspx
    If your problem still exists, please try to provide more details information.
    Any problem, please feel free to ask.
    Regards
    Vicky Liu

  • Print Report Direct from current PC

    Hi
    I want to print pre printed reports direct to dot matrix Printer without Concurrent Manager in requested PC ( Print from PC not from Server ) .
    So , can i do that or not ?
    Thanks,
    Mohamed Badr

    In general you have 2 options for printing.
    1) print via the server printing queue
    2) download/open the report and click the print button on your workstation
    there is a 2 B option. If we are talking about a HTML based report you can modify the reports in such a way that you send a java script with it that starts the printing. However this is (A) not advisable and (B) somewhat experimental and not supported ;-)
    If you want to know more about printing via javascript check this page: http://www.htmlgoodies.com/beyond/javascript/article.php/3471121/Print-a-Web-Page-Using-JavaScript.htm
    Regards,
    Johan Louwers.

  • Redwood Cronacle : run a transaction directly from Cronacle

    Hello everyone,
    Do you know if it's possible to run directly from Cronacle a SAP transaction without using an ABAP program ?
    Thank you for your reply.
    Scheduling team

    Hello
    No this is not possible. Are there any transactions in particular that you want to schedule?
    However, if you go to a transaction through the SAP GUI automatically an ABAP program is created in the background. You should be able to run that ABAP from SAP CPS.
    Regards Gerben

  • Unable to load and run program in DDR from SDK

    Hello all,
    I'm starting to work with Zynq and I'm quite a noob in this field.
    I generated a system for a ZC702 board in which the connections to the DDR memory and the GPIO are correct.
    When I try to run a "Hello world" example that writes such words via serial, I'm facing the problem that I can just run it from the internal ram on the Zynq, not from the DDR. I will try to explain this with more detail.
    When I set the on-chip memory (initial address is 0x00000000) on the linker script and I run the program, the XMD console shows this:
    XMD% Processor started. Type "stop" to stop processor
    User Interrupt, Processor Stopped at 0x00101104
    Processor Reset .... DONE
    Downloading Program -- D:/50_EXPs/080715/Zynq_702_projects/zynq_book/zynq_book.sdk/hello_world_gpio/Debug/hello_world_gpio.elf
    section, .text: 0x00000000-0x0000191b
    section, .init: 0x0000191c-0x00001933
    section, .fini: 0x00001934-0x0000194b
    section, .rodata&colon; 0x0000194c-0x00001963
    section, .data&colon; 0x00001968-0x00001ddb
    section, .eh_frame: 0x00001ddc-0x00001ddf
    section, .mmu_tbl: 0x00004000-0x00007fff
    section, .init_array: 0x00008000-0x00008007
    section, .fini_array: 0x00008008-0x0000800b
    section, .bss: 0x0000800c-0x0000802f
    section, .heap: 0x00008030-0x0000842f
    section, .stack: 0x00008430-0x0000a02f
    Download Progress.10.20.30.40.50.60.70.80.90.Done
    Setting PC with Program Start Address 0x00000000
    As you can see, al the addresses are correct. In this moment, the processor executes the program and everything is fine.
    Then, if I select the DDR memory (initial address: 0x00100000) on the linker script generation, the console shows:
    XMD% Processor started. Type "stop" to stop processor
    Software Breakpoint 0 Hit, Processor Stopped at 0x000015bc
    Processor Reset .... DONE
    Downloading Program -- D:/50_EXPs/080715/Zynq_702_projects/zynq_book/zynq_book.sdk/hello_world_gpio/Debug/hello_world_gpio.elf
    section, .text: 0x00100000-0x0010191b
    section, .init: 0x0010191c-0x00101933
    section, .fini: 0x00101934-0x0010194b
    section, .rodata&colon; 0x0010194c-0x00101963
    section, .data&colon; 0x00101968-0x00101ddb
    section, .eh_frame: 0x00101ddc-0x00101ddf
    section, .mmu_tbl: 0x00104000-0x00107fff
    section, .init_array: 0x00108000-0x00108007
    section, .fini_array: 0x00108008-0x0010800b
    section, .bss: 0x0010800c-0x0010802f
    section, .heap: 0x00108030-0x0010842f
    section, .stack: 0x00108430-0x0010a02f
    Download Progress.10.20.30.40.50.60.70.80.90.Done
    Setting PC with Program Start Address 0x00100000
     But the program is not run and the processor is like "blocked".
    There is just one scenario in which this second configuration works, and it's when the on-chip memories were previously loaded with the first configuration. This could indicate that the program counter is not pointing to the DDR, but to the on-chip memory. Then, when I select the DDR, if there is nothing on the memories of the chip, it does not execute anything.
    Does anyone have any idea of what's exactly happening and how to fix it?
    Thanks in advance!
    Ignacio.

    Hello Ignacio,
    Are you able to step through at all with the debugger to see if it gets stuck somewhere in particular?
    As a test of DDR setup itself, what happens if you link to OCM but do some pointer access directly to DDR (maybe write 0xdeadbeef to 0x10000000, readback 0x10000000, then print it)? Does it work okay?

  • Running statspack report remotely from a client?

    Hi!
    To get a statspack report I run @spreport.sql from an SQL*Plus session on the database server.
    Having to go to the DB server for that sometimes is a chore and I would prefer to get a report from any client, or even from within SQL Developer.
    Is there an easy way to achive this or is there a tool for that?
    Obviously, the spreport.sql might differ from Oracle DB version to version, so I would either need to have a series of these reports scripts on the client and the select the right one or I would need to have some mechanisum (stored proc?) that gets to rdbms/admin on the server, executed the spreport.sql script there, read the output and return that from to the client.
    Is there an easier way or anyone knows of a package that will do that?
    Thanks,
    Marcus

    Marcus,
    I don't think that I did get your question. Sorry but do you mean to say that you want a report from the client terminal , running locally over teh client only? That's what I got from this line,
    Having to go to the DB server for that sometimes is a chore and I would prefer to get a report from any client, or even from within SQL Developer. Or do you want the report to be available from the server side to the client's local machine?
    If you want the report to be given to you on the client side only, I am not sure that there is any way possibly there. What's the issue in fetching the report from the server though ? If one can connect to db as a valid db and o/s user, he can fetch the data as well. But its just a thought. I don't use any of the tools much so I guess, I shall just join you and see what others have to say about it.
    Aman....

  • Run CD content direct from HD

    My wife teaches first grade and has an old G3 iMac that she lets her students use in her classroom. She has several programs on CD that the kids use. As you can imagine the disks take a beating. How can I copy the contents of the CD's onto the hard drive so that the CD's are not needed? I used to know how to do this but haven't run OS 9 myself in ages. My searches also turned up nothing.
    Thanks.

    If you decide to go down the Disk Copy disk image route, it may pay to lock (use Get Info) the disk image file, before mounting it.
    Roxio Toast, if you already have it, usually does a much better job at making usable disk images. Same again, remember to lock the disk image before mounting it.
    Otherwise, I'm assuming that there is only one iMac and only one CD for each software package, just live with the CD's. A spindle of 50 CD's goes for about £7 in rip-off Britain. Buy them when they're on offer in the supermarkets two-for-one, and I have 100 CD-R's for £0.07 each.
    A final alternative, and clutching at straws here, is that the software packages just don't need the CD installed. ie. you can just copy the files to the iMacs internal hard disk using the Finder. If the software comes from the days of 3.2GB and 4Gb hard disks, it may just not have considered copying 600MB of content to a hard disk a viable option.

  • Run nVision report synchronously from with FieldChange

    In PeopleCode you can run an AE or COBOL program synchronously using remote call functions.
    Anyone know how to do this with an nVision report? I'd like to run an nVision report immediately in FieldChange but WAIT until output is ready. I also DON'T want to schedule it to batch as this takes too long.
    Thanks
    Graham

    You could use CreateProcessRequest and then run it to the REN server. Is this what your looking for?
    CreateProcessRequest
    http://docs.oracle.com/cd/E28394_01/pt852pbh1/eng/psbooks/tpcl/book.htm?File=tpcl/htm/tpcl02.htm#H4186
    Process Request Classes
    http://docs.oracle.com/cd/E28394_01/pt852pbh1/eng/psbooks/tpcr/book.htm?File=tpcr/htm/tpcr35.htm%23g037ee99c9453fb39_ef90c_10c791ddc07__1851

  • Printing report directly from printer

    Hi,
    I need a small information.if any one of our guys can give me some info that would be great.
    I am writing a ABAP report now. lets say when we write 'hello world' in code and F8  program o/p will show 'hello world' right. I need to print this through user default printer automatically...might be pop-up for confirmation would help.
    Thanks in advance...
    Raj

    Hi Rich,
    Calling program is
    REPORT ZTESTRAJ1 .
    parameters:p_date like sy-datum.
    DATA: SELTAB     TYPE TABLE OF RSPARAMS,
          SELTAB_WA  LIKE LINE OF SELTAB.
    start-of-selection.
          CLEAR SELTAB_WA.
    MOVE: 'p_date' TO SELTAB_WA-SELNAME,
          'P'     TO SELTAB_WA-KIND,      " PARAMETER
          sy-datum    TO SELTAB_WA-LOW.
    APPEND SELTAB_WA TO SELTAB.
    CLEAR SELTAB_WA.
    MOVE: 'p_matnr' TO SELTAB_WA-SELNAME,
          'P'     TO SELTAB_WA-KIND,      " PARAMETER
          '1233344'  TO SELTAB_WA-LOW.
    APPEND SELTAB_WA TO SELTAB.
    SUBMIT Ztestraj with p_date eq sy-datum
                    with p_uname eq sy-uname
                    with p_matnr eq '122333' and return.
    if sy-subrc = 0.
    write 'Printed'.
    endif.
    Here is the program Ztestraj
    parameters:
    p_matnr like mara-matnr,
    p_date like sy-datum,
    p_uname like sy-uname.
    data:  l_matnr like mcha-matnr.
    start-of-selection.
    l_matnr = p_matnr.
    CALL FUNCTION 'CONVERSION_EXIT_MATN1_INPUT'
      EXPORTING
        INPUT              = l_matnr
    IMPORTING
       OUTPUT             =  l_matnr
    EXCEPTIONS
      LENGTH_ERROR       = 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.
    WRITE:  L_MATNR.
    DATA: PARAMS LIKE PRI_PARAMS,
          DAYS(1)  TYPE N VALUE 2,
          COUNT(3) TYPE N VALUE 1,
          VALID    TYPE C.
    CALL FUNCTION 'GET_PRINT_PARAMETERS'
      EXPORTING DESTINATION           = 'LOCL'
                COPIES                = COUNT
                LIST_NAME             = 'ZTESTRAJ'
                LIST_TEXT             = 'SUBMITTO SAP-SPOOL'
                IMMEDIATELY           = 'X'
                RELEASE               = 'X'
                NEW_LIST_ID           = 'X'
                EXPIRATION            = DAYS
                LINE_SIZE             = 80
                LINE_COUNT            = 120
                LAYOUT                = 'X_44_120'
               SAP_COVER_PAGE        = 'X'
                COVER_PAGE            = 'X'
               RECEIVER              = 'SAP*'
               DEPARTMENT            = 'System'
                NO_DIALOG             = 'X'
      IMPORTING OUT_PARAMETERS        = PARAMS
                VALID                 = VALID.
    IF VALID <> SPACE.
      SUBMIT ztestraj TO SAP-SPOOL
        SPOOL PARAMETERS PARAMS
        WITHOUT SPOOL DYNPRO and return.
        if sy-subrc = 0.
        endif.
    ENDIF.

Maybe you are looking for

  • Translation fails missing present pin

    Dear Community, I hav a rather odd problem with the translation tools. I am re-designing a bridge between aurora and a PCI connector. I have been using Aurora successfully in other projects with the same board for a while now and thus am reasonably c

  • How to allow ebay to use my iPad camera

    I Downloaded the ebay app for iPad and accidentally did clicked the don't allow eBay to use camera option and now cannot take pictures of ebay items for sale

  • Help! Digital Booklet doesn't work!

    I just downloaded the 'Superman Returns' soundtrack from the music store. It comes with an interactive digital booklet, but when I double-click the booklet, notthing happens. iTunes acts as though it's trying to play a track (a track which it identif

  • Deleting users help???

    I am an administrator, but when I go in the System Preferances then to Users and Groups, The user I want to delete is not listed, yet when I log in to the account, it does exist. Also on the top right of my screen, I click my user name, and the user

  • Can you help with my Flash installation problems please?

    My Adobe Flash Player (AFP) is gone and I cannot reinstall it.  I run Win 7 and IE10.  I was fine until 3 days ago.  The AFP support page tells me I do not have AFP, yet it is on my "uninstall programs" list.  I uninstall AFP, restart, install AFP (u