Switch from OINV to ODRF in Crystal Report layout for print the Invoice?

Hi,
I have imported in Sap Business One some standard report developed by Sap with Crystal Report (like Sales Invoice).
I have try to print my Invoices and all is OK, then I have try to print a Draft Invoice and, even in this case, is all ok. Then I have open the Crystal Report designer for this print module, and the entry point is the OINV table. How can he print succesful the Draft Invoice (that is in the ODRF table ObjType = 13)? Formula Field? I don't understand!!
Thank for the help!!
Marco

Hi Marco,
You only need a single Crystal report for this. Base it on a stored procedure which has two INT type parameters @DocKey and @ObjectId. Within your SQL create IF blocks to handle different @ObjectId values:
IF @ObjectId = 13 then use the invoices tables OINV/INV1 etc.
IF @ObjectId = 112 then use the draft tables ODRF/DRF1 etc.
Don't forget to put the @ symbol at the end of the parameter in the report itself. That is all that is needed to create a single report that works for both added invoices and draft invoices. You could extend the SQL to handle other @ObjectId values like 14 for AR Credit Notes and so on.
Regards,
Andrew.

Similar Messages

  • Crystal Reports layout for AP/AR Invoice, Credit Note

    Hi
    I am currently designing layouts for AP and AR procedures.
    The Quotations, Orders and Goods Receipt PPO's all work fine using the Dockey@ parameter but neither the purchasing invoice and credit notes or the sales credit notes seem to connect at all during the design stage.
    Do i need to set a new/different parameter for these particular layouts or am I doing anything else wrong?
    Regards
    Peter

    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)

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

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

  • Crystal Report Formula for traversing the Hierarchy

    Hi Friends,
    I have a Hierarchy Node Variable in Query Designer and I use the same in my Crystal Report.
    I need to create a formula, which will traverse and find all of the child nodes of the selected Hierarchy Node (through the variable). Could you please let me know if this is possible and send me the code.
    Thanks in Advance!
    Regards,
    Vinaya Paulraj.

    Hi Vinaya
    In Crystal, under the 'Report' menu, there is an item called ''Hierarchical Grouping Options'. This item allows you to sort information based on the relationship between two fields.
    For example:
    The following example is based on using the sample database called Xtreme that ships with Crystal Reports and Xtreme's Employee table.
    There is an {Employee ID} field and {Reports to} field in the Employee table. These fields both contain an Employee ID number. There can be employees with employees that report to them. In other words, there can be employees that report to a higher level of management. You want to see the overall hierarchy of the employees. To do so, you would use the 'Hierarchical Grouping Option' in Crystal Reports.
    To view the employee hierarchy from the Employee table, complete the following:
    1. Create a group and group on {Employee ID}. You want to group on {Employee ID} because you want to see the overall hierarchy of employees.
    · From the 'Insert' menu, select 'Group'.
    · From the 'Insert Group' dialog box, select {Employee.Employee ID} in the first drop-down list.
    · Click 'OK'.
    2. Create a hierarchical group.
    · From the 'Report' menu, select 'Hierarchical Grouping Options'.
    · Select 'Sort Data Hierarchically'.
    · Select {Reports to} from the drop-down list for 'Parent ID'. In this example, the {Reports to} field is the parent field; therefore, we must select it in the 'Parent ID' field.
    3. Indenting the hierarchical group, you must enter a value between 0 and 4 inches.
    The 'Group Indent' setting only affects the display of the report. If you enter a value other than zero (0) the various levels of hierarchy will appear indented when the report is previewed. Thus making it easier to see the various groups of employees, managers, etc.
    For more information, search the online help for 'Grouping data hierarchically'.
    Regards
    Girish

  • 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

  • Print report.vi for printting the frant panel

    I download a example,now  when i run it ,it can print the frant panel,but there is another dialog .how can i make it disppear .
    Attachments:
    dialog.jpg ‏208 KB

    Hi Fay,
    No question is too foolish during the process of learning.
    well i did not have to use the highlight execution to detect error, Since in your VI,  the error that was poping up had to do something with a file creating operation.
    so i checked the path you had set, and it turned out to be an invalid path. Thats all!
    And here's something i would like to tell, unless u want to fix the file path, do not keep the file path as a constant.
    When Kept as a control, a pop up msg will ask you for the file path, which is easier for you to browze and specify the file path.
    hope you enjoy learning LabVIEW.
    All the best,
    Regards
    Dev

  • Crystal Report Layout asking for Login Info

    I have modified the Delivery Note Crystal Report Layout for Business One by clicking the Edit button on the Report and Layout Manager for Delivery Note (Items).  I then saved my modifications to a file.  Finally, I go into Business One and import the Layout for Delivery Note (Items).  When I preview the Layout it asks me for login information then continues to fail.  How dow I make it so I can print the Delivery without having to constantly log in?

    Hi Jeff,
    I recently had a similar problem on an 8.82 implementation, having contacted and spoken to SAP Support multiple times these suggested fixes worked:
    The request to login to the database when you open or print preview a Crystal
    report is a known issue. To resolve this, I recommend you go through our Root
    Cause Analysis (RCA) guide. Please see attac hed Note 1676353 on where to find
    this. There are four Cases in this guide (which contain a number of Influences)
    - please go through all Cases and Influences.
    We also tried the following:
    STEP 1:
    Influence 2: Case 2 is to clear all the data for login (e.g. sa and
    password - delete them) and then ticked 'Integrated Security#.
    - Influence
    3: #: Check the current datasource is to update connection.
    - Retest opening
    the system reports on a workstation.
    - If they are still reporting an error
    try the next step
    - STEP 2:
    - Change the datasource location of
    the report from OLE DB to SAP Business One type and leave the
    authentication
    information blank. Try running the report in Crystal, and then import to SAP.
    And also opened up the Crystal Report via the Edit button in SAP in Reports and Layouts Manager, we then clicked on the database connection and updated all the tables (even though they were the same) and these got the reports needed working. Speaking to SAP it is a known bug and they are releasing a hotfix to resolve it, but try explaining that to a customer !!!
    Hope these help.
    Regards
    Sean

  • Purchase Order Crystal Report Layout Error

    The stock Crystal Report Layout for Purchase Orders is giving me the following error:
    A subscript must be between 1 and the size of the array.
    Details: errorKind
    Error in File POR20002 {b89f97ad-bf1f-447b-8bb4-b3d2e5219269}
    {3C375C81-7D37-475D-9BCB-1703CE533B65}.rpt
    Error in formula N_Decimal_Places:
    '// To get the length of decimals
    A subscript must be between 1 and the size of the array.
    Details: errorKind
    I looked in the Crystal Reports Formula fields and could not find N_Decimal_Places.
    Has any one else had the problem with the PO layout that comes with Business One?  If so, how did you fix it?

    Couldn't find how to copy the PO layout over using copy express.
    I did compare the RDOC fields for POR20002 in both databases and they are Identical. 
    In Crystal Reports, I did a formula search for N_Decimal_Places and it found nothing.  Then I did a search for 'length' in all formulas and it finds length in N_Decimal_Places.  When I double click on N_Decimal_Places it clears the screen and never shows the formula. This happens in both layouts for my test database and SBODemoUS.
    Again, SBODemoUS works correctly and AAA_TEST give the error.

  • Crystal Report unable to print out throught Remote Desktop from server

    Dear All Expert,
    I am facing problem when print a crystal report layout from SAP B1 8.8 through Remote to Server, print to Client machine. It will promt out Error Message "thunking spooler apis from 32 to 64 process has stopped working fix", but if print PLD, then it is work. Any Idea? Client machine using Windows 7 facing this problems, earlier using windows XP is fine. Thanks a lot.

    Hi Gordon,
    fyi, I have Turn Off UAC for the client machine (Win 7 32 bit), do the checking from command prompt (srf/scannow), uninstall the printer driver and reinstall the correct printer driver for server (windows server 64 bit), client machine (win7 32 bit), reboot the machine. Do the setting from internet option > Advance> 
    1. Allow active content fro CDs to run on My Computer*
    2. Allow active content to run files on My Computer*
    3. Allow software to run or install even if the signature is invalid.
    But all of the above could not resolve the problem happen. It happen only print SAP B1 8.8 crystal report layout. Others PLD layout is able to print. Please Advice.

  • How Do I Display HTML Formatted Text From A Data Table In Crystal Reports?

    I'm creating reports in Crystal XI.  The information being displayed in the reports comes from data tables where the text is formatted in HTML.
    I've worked with Crystal Reports enough to know that HTML text pulled from a data table doesn't appear in Crystal the same way it does in a web browser.  Crystal Reports ignores all the tags (...unless I'm missing something...) and just displays the text.
    Someone far more Crystal savy than I (...who I don't have access to...) came up with a Formula Field workaround that tricks Crystal Reports into displaying some basic HTML tags.  Here's that workaround:
    <!--
    stringVar TableName := ;
    TableName := Replace (TableName, "<ul>","<br> <br>");
    TableName := Replace (TableName, "<li>", "<br>   &bull; ");
    TableName := Replace (TableName, "</li>", "");
    TableName := Replace (TableName, "</ul>","<br> <br>");
    TableName := Replace (TableName, "<a", "<u><font color='blue'");
    TableName := Replace (TableName, "</a>", "</font></u>");
    TableName
    -->
    QUESTION - Does any similar workaround exist so I can display an HTML Table in Crystal Reports?  If not, is there any way to display HTML formatted text from a data table in Crystal Reports as it would appear in a web browser?

    Hi Steven,
    To display html text in Crystal Reports follows these steps.
    1. Right click on the field and select Paragraph tab.
    2. Under 'Text Interpretation' select 'HTML Text' and click OK.
    I have tried using the way,but it never works.So reply me if there is any way to solve the issue

  • Getting Data from SAP ECC & BI to Crystal Reports and then Broadcasting.

    Hi,
    I need to get the data from SAP ECC & BI to Crystal reports and then after formating data in Crystal reports, my requierment is to send via email (Broadcasting). Is there any option to  Broadcast from Crystal reports?
    I read Ingo Hilgefort blogs, but I need in detail steps such as to verify Integration Kit is installed or not and also how to create connections in between SAP ECC and Crystal. What are the Security setups(User IDs and Authorizations) involved?
    What is best option for email/broadcasting for Crystal Reports?
    Your help is appreciated.
    Thanks.
    SVK.

    Hi,
    I would suggest you then start with the installation and user guide fr the SAP Integration Kit.
    Ingo

  • Problem in Fetching value from Employee Master Date in Crystal Report

    Hi All,
    I am using the SAP Standard report for Sales Quotation and now my client needs a new requirement.
    That is, for certain sales employee they need a manger and the manager name, email, mobile no from employee master data should be fetched.
    I tried this way,
    Assigned the Manager name in the OSLP, memo field and tried to equate the employee name in the OHEM table by using a parameter and tried to fetch the fields but i am not able to view any of the fields from the OHEM table.
    How to fetch the fields from the OHEM table?
    Help me solving this issue.
    Regards,
    Jananisuba S

    hi.
    Janani..
    Fetching means what .
    i am not able to understood...
    linking you are not able to understood or any other.
    in crystal report are u getting the problem.
    First in sql it slef are u able to get the problem..what just explain...

  • Datetime from SQL server 2005 to Crystal Reports 11 subtracting 6 hours

    I have a view that I build a report from in crystal reports 11.  in the view in SQL server 2005 I have a date field that returns 2008-12-15 00:00:00.000 but when I view this in Crystal Reports it shows up as 12/14/08   6:00 pm.  Any suggestions why this is happening?

    never mind this post.  looks like it is the oledb provider we are using that has the issue.

  • Mapping relation from sap bw query to crystal report

    Hello Gurus,
            will you please describe mapping relation for following items from sap bw query to crystal report? it is better to provide a instance for each one.
               (1) character   (2) key figure  (3) navigation attribute  (4) display attribute (5) charater with hiararchy
    Many thanks

    This blog may be helpful:
    /people/ingo.hilgefort/blog/2008/10/03/businessobjects-and-sap-part-1-of-4--creating-a-xcelsius-dashboard-on-top-of-sap-bi

Maybe you are looking for

  • Indesign CS4 adds square boxes around images when exporting to PDF

    When I export a brochure created in InDesign to PDF, for some reason the .pdf file (only the PDF - the InDesign version doesn't show these) shows faint squares around images/graphics that have shadow effects applied. These appear around photos, as we

  • Activity monitor bug

    Along with others (refer this thread: http://discussions.apple.com/thread.jspa?messageID=7147587&tstart=0) I find that activity monitor stops updating. The quoted thread is showing that the problem is answered but it is not. Removing the activity mon

  • Maximum time during MIRO

    We are facing a problem during MIRO of  one party. It takes about 25 to 30min. to complete the total process. Surprisingly it happens only with one or two party.

  • Nach Update über Cloud: Absturz PS CC 2014 nach etwa 10 Sekunden

    Hallo Gemeinde, habe gerade mein neues Update über die Cloud bezogen. Leider stürzt PS nach ca. 10 Sekunden ab, mit der Meldung: Adobe PS CC 2014 funktioniert nicht mehr. Grafikkartentreiber habe ich schon aktualisiert. Hier die Systeminfo: Kann jema

  • Exporting video clip from FCE4 to Live Type.

    What is the correct way to save a video clip when exporting into Live Type so that you can access Live Type and place video clip in background to begin working? Thanks.