How generate a crystal reports layout for Batch Report

Dear Experts,
I want to create a crystal reports layout for Batch Report that appears when printing Delivery Note.
I've tried using DocKey@ token but it only works in the delivery note layout itself. The following code at the select expert for this crystal layout doesn't work:
{ODLN.DocEntry} = {?DocKey@}
Kindly guide me in the above issue. Thanks.

I am using version 8.8 SP.00 PL.10
It is very strange that I cannot get the layout connected to the database as I have followed the same steps for all layouts. It all works fine until I get to the invoice stage and then I cannot make the connection.
(I dont need to worry about the sales invoice as this was provided at installation point by our vendor)

Similar Messages

  • View Crystal Report Layout for my UDO Form

    Hi all,
    I try to view a report created for my UDO form. I set all settings in Administration -> Setup -> General -> Report and Layout Manager. Now I wonder what should be assigned to  eventInfo.LayoutKey. I tried assigned report's DocCode from RDOC, DocEntry of my UDO object or UDO Code but nothing works. Always get an error: Incorrect format of argument or something like that - I didn't get an error in English so I tried to translate it.
    How to show a report layout for my UDO form?
    Regards
    Szymon Lipnicki

    Hi and thanks for Your reply.
    Help file contains example how to open report layout prepare in Crystla Reports designer for UDO form.
    //Add Layout Key Event Handler
    SBO_Application.LayoutKeyEvent += new SAPbouiCOM._IApplicationEvents_LayoutKeyEventEventHandler(SBO_Application_LayoutKeyEvent);
    void SBO_Application_LayoutKeyEvent(ref SAPbouiCOM.LayoutKeyInfo eventInfo, out bool BubbleEvent)
        BubbleEvent = true;
        if (eventInfo.ReportTemplate == "A001" && eventInfo.ReportCode == "A001001")
            eventInfo.LayoutKey = 1; //Set the key of the layout
    I am using SAP 8.81.
    Regards
    Szymon

  • Need to generate a Index xml file for corresponding Report PDF file.

    Need to generate a Index xml file for corresponding Report PDF file.
    Currently in fusion we are generating a pdf file using given Rtf template and dataModal source through Ess BIPJobType.xml .
    This is generating pdf successfully.
    As per requirement from Oracle GSI team, they need index xml file of corresponding generated pdf file for their own business scenario.
    Please see the following attached sample file .
    PDf file : https://kix.oraclecorp.com/KIX/uploads1/Jan-2013/354962/docs/BPA_Print_Trx-_output.pdf
    Index file : https://kix.oraclecorp.com/KIX/uploads1/Jan-2013/354962/docs/o39861053.out.idx.txt
    In R12 ,
         We are doing this through java API call to FOProcessor and build the pdf. Here is sample snapshot :
         xmlStream = PrintInvoiceThread.generateXML(pCpContext, logFile, outFile, dbCon, list, aLog, debugFlag);
         OADocumentProcessor docProc = new OADocumentProcessor(xmlStream, tmpDir);
         docProc.process();
         PrintInvoiceThread :
              out.println("<?xml version=\"1.0\" encoding=\"UTF-8\" ?>");
                   out.print("<xapi:requestset ");
                   out.println("<xapi:filesystem output=\"" + outFile.getFileName() + "\"/>");
                   out.println("<xapi:indexfile output=\"" + outFile.getFileName() + ".idx\">");
                   out.println(" <totalpages>${VAR_TOTAL_PAGES}</totalpages>");
                   out.println(" <totaldocuments>${VAR_TOTAL_DOCS}</totaldocuments>");
                   out.println("</xapi:indexfile>");
                   out.println("<xapi:document output-type=\"pdf\">");
    out.println("<xapi:customcontents>");
    XMLDocument idxDoc = new XMLDocument();
    idxDoc.setEncoding("UTF-8");
    ((XMLElement)(generator.buildIndexItems(idxDoc, am, row)).getDocumentElement()).print(out);
    idxDoc = null;
    out.println("</xapi:customcontents>");
         In r12 we have a privilege to use page number variable through oracle.apps.xdo.batch.ControlFile
              public static final String VAR_BEGIN_PAGE = "${VAR_BEGIN_PAGE}";
              public static final String VAR_END_PAGE = "${VAR_END_PAGE}";
              public static final String VAR_TOTAL_DOCS = "${VAR_TOTAL_DOCS}";
              public static final String VAR_TOTAL_PAGES = "${VAR_TOTAL_PAGES}";
    Is there any similar java library which do the same thing in fusion .
    Note: I checked in the BIP doc http://docs.oracle.com/cd/E21764_01/bi.1111/e18863/javaapis.htm#CIHHDDEH
              Section 7.11.3.2 Invoking Processors with InputStream .
    But this is not helping much to me. Is there any other document/view-let which covers these thing .
    Appreciate any help/suggestions.
    -anjani prasad
    I have attached these java file in kixs : https://kix.oraclecorp.com/KIX/display.php?labelId=3755&articleId=354962
    PrintInvoiceThread
    InvoiceXmlBuilder
    Control.java

    You can find the steps here.
    http://weblogic-wonders.com/weblogic/2009/11/29/plan-xml-usage-for-message-driven-bean/
    http://weblogic-wonders.com/weblogic/2009/12/16/invalidation-interval-secs/

  • Default Layout for a report running in background

    Dear Friends,
    I have created a layout for report ME2L and set as default layout  (for every user)....
    Foreground execution picked the DEFAULT layout but when am trying to execute the same report in background, default layout is not picked but the STANDARD layout is shown in the spool
    Could you please suggest me how can i use same report layout for foreground as well as background
    Thanks in Advance
    Ana

    Atanu dey,
    If you wnat to download excel in back ground
    You have to download in application server only.
    EX:
    DATA :  v_filepath(80)     VALUE '/data/sapdata/inc/error_log/pme_br/',
      c_coma     VALUE ',' .
    OPEN DATASET v_filepath FOR OUTPUT IN TEXT MODE.
        IF sy-subrc EQ 0.
         LOOP AT i_errors_bat.
         CONCATENATE i_errors_bat-plant c_coma
                                 i_errors_bat-zzvendor c_coma
                           INTO v_string.
            TRANSFER v_string TO v_filepath.
          ENDLOOP.
       CLOSE DATASET v_filepath.
    Note : you can download in presentation server also.
    but it requires lot of authorizations and have to use
    FTP commands.
    Reason is Apllication server in back ground has to
    recognize the from which system request came.
    Better go for OPEN DATA sets.
    Don't forget to reward if useful.....

  • How to get the spool id or how to create a spool id for the report .

    hi,
    how to get the spool id or how to create a spool id for the report .
    this spool id i have to use it in CONVERT_ABAPSPOOLJOB_2_PDF fm to get the pdf download file.
    my requirement is to download a pdf file from the alv grid list.

    Hi Raghu,
    Execute this program.
    REPORT  ZTEST_3318                              .
    tables: usr01.
    perform send_report_to_spool.
    *&      Form  send_report_to_spool
          text
    form send_report_to_spool.
      data: loc_dest like pri_params-pdest,
            wf_listname type char12,
            wf_listtext like PRI_PARAMS-PRTXT,
            wf_copies type i,
            wf_days type i,
            wf_PARAMS LIKE PRI_PARAMS,     " achieving file PRI_PARAMS.
            wf_valid type c.
      clear : wf_listname , loc_dest , wf_listtext .
      move: 'AP interface' to   wf_listname .
      move: 'AP interface' to   wf_listtext .
    select single spld into usr01-spld from usr01 where bname eq sy-uname .
      if sy-subrc eq 0 .
        move: usr01-spld to loc_dest .
      endif .
      call function 'GET_PRINT_PARAMETERS'
        EXPORTING
          destination    = loc_dest
          copies         = 1
          list_name      = wf_listname
          list_text      = wf_listtext
          immediately    = ' '
          release        = ' '
          new_list_id    = 'X'
          expiration     = 1
          line_size      = 200
          line_count     = 65
          layout         = 'X_65_200'
          sap_cover_page = 'X'
          receiver       = 'SAP*'
          department     = ''
          no_dialog      = 'X'
        IMPORTING
          out_parameters = wf_params
          valid          = wf_valid.
      if wf_valid <> space.
        new-page print on parameters wf_params no dialog.
        perform write_summary .
        new-page print off.
      endif .
    endform.                    "send_report_to_spool
    *&      Form  write_summary
          text
    -->  p1        text
    <--  p2        text
    FORM write_summary .
    data: begin of itab occurs 0,
          matnr type matnr,
          end of itab.
    select matnr
           from mara
           into table itab
           up to 10 rows.
    loop at itab.
    write: / itab-matnr.
    endloop.
    ENDFORM.                    " write_summary
    This will create spool in SP01.What data you want to put in Spool write it in form write_summary.I have done coding for testing purpose
    After that use that spool for your purpose.
    If Useful award point

  • How to add Serial Number to the batch report name?

    How to format the report name for batch model to have <Sequencename>_<batch_SerialNumber>_<DateTime>.xml. Everytime a different sequence is executed the report file name should be formated with that sequence name and batch serial number porvided. I am using TS4.1
    Sequential model has a Determine Report File Path, is there something similar for batch model also, if so where?
    Thanks.
    CLD,CTD

    Did hit Post too early, here is the remaining,
    For the second part 
    have the serial number of each individual DUTs included in its file name
    The setting in Report Option will also save the UUT report with UUT serial Number included in the following format:
    SeqFileName_[UUT][Date][Time].xml where [UUT] will store the UUT serail number.
    CLD,CTD
    Attachments:
    reportOptions.jpg ‏85 KB

  • Need Standard report layout for Benefits

    Hi,
    Can anyone send me the standard report layout for benefits which is already generated.
    Thanks,
    Lakshmi

    Do you want a enrollment letter or a confirmation letter ? They are all there in the IMG as templates. Just copy it and design your own. No two businesses use the same format so sending you ours will be as good as you doing some work on the SAP delivered examples.
    Deon

  • How can i set a layout for MIGO screen

    Hello all,
    How can i set a layout for MIGO screen. & make that layout default. Like i want to drag Requistioner column next to quantity in MIgo screen. temporarily I can drag but is there a way to save as layout & save it.

    Hi
    First you arrange however you want and then go to table settings which is there in the right corner of the item details and create a variant and save.
    Find a button with blue yellow and white at the top end above the vertical drag bar when put the cursor it will show you as Configuration.
    After creating the variant tick the check box use as standard setting below the variant
    Hope it helps
    Edited by: Girish  Adaviswamy on Mar 3, 2010 1:27 PM

  • Defining Report LayOut for a parent child report

    I have a parent child report. I want to print this report in PDF using BI Publisher. Now I wanted to define a layout for that report using BI template builder. My stratagey for defining Report layuout is
    1. Write a query containing all fields that I need
    2. Convert that query data to XML, one way or the other
    3. Load that XML into template builder.
    4. Define the layout.
    Now the problem is that I need some fields for parent and some from child. If I do not use group buy clause in the query I will not be able to use the tabular format in template builder (taht I wanted to use).
    IF I use a group By caluse then I am unable to select the child fields as they are not the part of group by clause.
    Plz help

    You have 2 repeating frames: R_contracts and R_ads. Create a frame M_disclaimer after R_ads, within R_contracts to hold the disclaimer page. This page will print after all the ad records have been printed, and before the new contract starts.
    You can set Page Break Before on M_disclaimer to print this frame on a new page.

  • Reuse Crystal report Viewer For different reports - unload cache

    So I am migrating from crystal reports basic to crystal reports 2008. I have hit a stumbling block. Rather than have a new page and report viewer for each report I decided it would be easier to have one report viewer and send to it in session variables the report I wish to run and appropriate parameters. This seemed to work fine in CR basic.
    Now I have upgraded the viewer works fine for the first report I run however it then caches this report and doesn't seem to clear it down, if the new report has different parameters I will get a parameter error. If I run a report requiring the same parameters I will get the original report not an updated one.
    I believe I need to leave the CrystalReportSource cache on in order to page the report (correct me if I am wrong)
    I have taken a few snippets of code, is this possibly running too late in page life cycle have I missed something or is there a way to force a cache clear:
    protected override void OnLoad(EventArgs e) {
    //setup report in viewer with correct db logon
                    CrystalRepSource.Report.FileName = report;
                    SetupLogonInfo(CrystalRepSource);
                    //add parameters
                    AddParam(paramFields, pfItem1, dcItem1, "@year", year);
                    AddParam(paramFields, pfItem2, dcItem2, "@school", school);
                    AddParam(paramFields, pfItem3, dcItem3, "@division", division);
                    AddParam(paramFields, pfItem4, dcItem4, "@progArea", progArea);
                    AddParam(paramFields, pfItem5, dcItem5, "@type", SessionHandler.record_type);
                    AddParam(paramFields, pfItem6, dcItem6, "@filterText", "School = \'" + school +
                                                            "\' Division = \'" + division
                                                            + "\' Programme Area = \'" + progArea
                                                            + "\' Record Type = \'" + SessionHandler.record_type_text + "\'");
    CrystalViewer.ParameterFieldInfo = paramFields;
    private void SetupLogonInfo(CrystalReportSource CrystalRepSource)
            TableLogOnInfo logOnInfo = new TableLogOnInfo();
            logOnInfo = CrystalRepSource.ReportDocument.Database.Tables[0].LogOnInfo;
            ConnectionInfo connectionInfo = new ConnectionInfo();
            connectionInfo = logOnInfo.ConnectionInfo;
            connectionInfo.DatabaseName = Application["db"].ToString();
            connectionInfo.ServerName = Application["server"].ToString();
            connectionInfo.Password = Application["pass"].ToString();
            connectionInfo.UserID = Application["user"].ToString();
            CrystalRepSource.ReportDocument.Database.Tables[0].ApplyLogOnInfo(logOnInfo);
        private void AddParam(ParameterFields paramFields, ParameterField pfItem, ParameterDiscreteValue dcItem, string fieldName, string value)
            pfItem.ParameterFieldName = fieldName;
            dcItem.Value = value;
            pfItem.CurrentValues.Add(dcItem);
            paramFields.Add(pfItem);

    ok so I have tried changing the code to:
    CrystalRepSource.ReportDocument.SetParameterValue("@year", year);
                    CrystalRepSource.ReportDocument.SetParameterValue("@school", school);
                    CrystalRepSource.ReportDocument.SetParameterValue("@division", division);
                    CrystalRepSource.ReportDocument.SetParameterValue("@progArea", progArea);
                    CrystalRepSource.ReportDocument.SetParameterValue("@type", SessionHandler.record_type);
                    CrystalRepSource.ReportDocument.SetParameterValue("@filterText", "School = \'" + school +
                                                            "\' Division = \'" + division
                                                            + "\' Programme Area = \'" + progArea
                                                            + "\' Record Type = \'" + SessionHandler.record_type_text + "\'");
    private void Page_Unload(object sender, EventArgs e)
            try
                    CrystalRepSource.Report.DataSources.Clear();
                    CrystalRepSource.Report.Parameters.Clear();
                    //CrystalRepSource.ReportDocument.Close();
                    //CrystalRepSource.ReportDocument.Dispose();
                    CrystalRepSource.Dispose();
                    CrystalViewer.Dispose();
                    GC.Collect();
            catch { }
    I experimented with various bits in the page unload as you can see I have commented a bit out at present as it was throwing an exception. The SetParametersValue while handy (will clean the code up a bit) didn't make any difference I am still getting the same issue.

  • Copy report layout from one report to another

    I have a VERY complex report layout which is part of a report with Data model A.  I need to copy that report layout to another report which has Data model B, which has all the same structure as Data model A but is queried differently.   The first is invoices for regular billing the second is invoices for re-billing, all columns are the same.
    Thanks for any help / suggestions.

    Hi Robert,
    In the Report Organizer, just right click and Export the definition. Then, open the new company & right click and import the definition.

  • Functional report specifications for AUC reporting

    Hi All,
    Does anyone have a sample document about functional report specifications for
    AUC reporting?
    Can anyone e-mail a sample report to [email protected]
    Thank you,
    Best Regards,
    John Mc

    Hi,
    Looking at the requirement  it seems like you have 2 level of authorization check i.e. Check first user is authorized for cost center. And if yes then look for teh combination of Func area related to that cost center, for that user.
    I think keeping the second check for func. area within loop of cost center (for each cost center) should work.
    Thank-You.
    Regards,
    Vinod

  • Report definition for the report not specified

    Hello
    I have written the code  attached but getting the error "report definition for the report not specified"
    string v_report_name = Charts.ReportPermutation.ToString() + Charts.charttype + ".rdlc";
                string v_report_server = "http://MANOJ-PC/reportserver";
                string v_report_path = @"D:/Anshutech New/AnshutechPlusProjectCosting/AnshuProjMgmtSystem/AnshuProjMgmtSystem/";
                this.reportViewer1.LocalReport.ReportEmbeddedResource = "AnshuDataSet." + v_report_name;
                this.reportViewer1.ServerReport.ReportServerUrl = new System.Uri(v_report_server);
                this.reportViewer1.ServerReport.ReportPath = v_report_path + v_report_name;
                this.reportViewer1.ProcessingMode = Microsoft.Reporting.WinForms.ProcessingMode.Local;
                this.reportViewer1.RefreshReport();
    Please help
    regards
    Manoj Gokhale

    Hi kalpesh ,
    According to your description, you want to display a report which hasn’t been deployed to report server in ASP.NET MVC app, right?
    If so, you can add a ReportViewer control in ASP.NET MVC and utilize ADO.NET to provide the data to display the report. For more information, please refer to this article:
    ASP.NET MVC - Handling SSRS reports with ReportViewer – Part I.
    If you have any question, please feel free to ask.
    Best regards,
    Qiuyun Yu
    Qiuyun Yu
    TechNet Community Support

  • Editing new crystal layouts for financial reports in 8.8

    After upgrading to 8.8 PL10 I decided to investigate the new financial layouts for Crystal. When I opened the layout however I couldn't make much sense of how it is structured or even functions, it seems to reference a PLD table that I couldn't find under tables, views, or stored procedures. Any advice on how to better manipulate this report would be great.
    They are all structured similarly so lets use the new balance sheet as a reference.
    -John-Michael

    Hello!
    Here are my findings ...
    - The new Crystal Reports Layouts base deeply on the "old" PLD Layouts.
    - The table "PLD__ITEMS" is an XML-file with the data of the report.
    - If you want to show same additional fields of PLD__ITEMS on the report, it is not enough to drag the field on the report. You also  have to format the field and add additional info to the CSS-Class like: FileName="OINV";FieldNum="CardName";
    The workflow I used to edit the new CR Layouts:
    1. Edit the old PLD Layout as needed
    2. Use the Crystal Reports Converter to get a CR from the PLD [Download|/docs/DOC-8768#section16 [original link is broken]]
      (The PDF included gives some basic hints about the structure of the CR Layout)
    3. Edit the SAP CR with the informations of the converted CR (from PLD)
    Hope this helps a bit ...
    Martin Samlaus

  • Importing Crystal Report layout for customer statements

    Hello,
    I have imported a crystal report layout to use for the customer statements when running them from the ageing report.  The problem is even if we only select one business partner in the ageing report, when we print preview the statement it displays statements for all business partners - this is because in the crystal report there are no parameters.  I know that when you import a layout like this for other documents you need to use for example, {ORDR.DocEntry}={DocKey@} as the parameter however the customer statements don't have a docentry.  When I look at the system statement layout (collection layout), when you run the report you get an ADO.NET (XML) connection prompt.  Is it possible to use the crystal layout i have for the customer statements but for only the customer(s) showing on the ageing report?
    Many thanks,
    Kate

    So just to make it clear,
    you want an overview of open invoices from 1 customer.
    If so, try this in crystal reports :
    Create a parameter field (field explorer)
    Name : CardName
    Type : String
    Value : Static
    do not select a value field (none)
    press ok.
    Select expert
    Create new
    Starts with
    type this : {?CardName}
    press add
    Click formula editor and make it look like this :
    {OINV.DocStatus} = "o" and
    {OINV.CardName} startswith {?CardName}

Maybe you are looking for

  • Firefox stops responding during Gmail and Google, why?

    The last few weeks, Firefox 4.1.0, on my XP SP3 system, stops responding while I am sending Gmail, frequently, stopping the transmission. Today, for the first time, it stopped responding while I was searching on Google. The LAST thing I want to do is

  • HT204023 How can I see what devices are attached to my hotspot?

    I'd like to know what devices are attached to my hotspot.

  • Data Link Properties wizard doesn't display correctly.

    Hi, This is Dai. I'm using Oracle DB. When I try to create configuration of Identity Center and to config DB connection, Data Link Properties wizard doesn't display required DB provider. The document of "SAP NetWeaver Identity Management Identity Cen

  • Start script for Nagios 3.0.4 on Solaris 10 doesn't work.

    I compiled Nagios 3.0.4 on a Solaris 10 system using the following configure string: ./configure prefix=/space/nagios with-gd-lib=/usr/local/lib with-gd-inc=/usr/local/include with-nagios-user=na gios with-nagios-group=nagios with-temp-dir=/space/nag

  • Storage location check in MFBF.

    Dear Experts We have actually maintained in the BOM all the issue s.loc for the components. the system also proposes the correct s.loc, but the users manually change them to something different. hence we want the system to give error message or autho