Modifying a report

How to modify an existing report?

Turning confine mode off is very dangerous, but if you keep confine mode on you should be able to use flex mode to move things around, yet keep the integrity of the report structure.
Other tips:
1) When adding fields, review changes in the object navigator to make sure that changes have gone into the correct frame.
2) Use colour coding (i.e., set the fill colours in the frames that you're working on so that it's clear in the layout where the frame boundaries are).
3) Test often.
Hope this helps,
Danny

Similar Messages

  • How can i modify my report to print in duplex mode ?

    Hello, I have a report to print orders (i use vb6 and CR XI-R2 at runtime with CrystalActiveXReportViewer object) but now i must print the payment conditions on the back of each order. What is the way to modify my report to do that.
    (Is there somewhere examples of duplex printing report?).
    Thanks in advance.

    Hi Ludek,
    I have imported the reg key but i have the same problem: you must install SP2 or SP4 before.
    Here is my reg key :
    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{94FB0978-D094-40C7-91D7-834D39220D4A}]
    "AuthorizedCDFPrefix"=""
    "Comments"=""
    "Contact"=""
    "DisplayVersion"="11.5.8.82627"
    "HelpLink"=hex(2):68,00,74,00,74,00,70,00,3a,00,2f,00,2f,00,73,00,75,00,70,00,\
      70,00,6f,00,72,00,74,00,2e,00,62,00,75,00,73,00,69,00,6e,00,65,00,73,00,73,\
      00,6f,00,62,00,6a,00,65,00,63,00,74,00,73,00,2e,00,63,00,6f,00,6d,00,2f,00,\
      00,00
    "HelpTelephone"=""
    "InstallDate"="20080416"
    "InstallLocation"=""
    "InstallSource"="C:
    CRXIR2SP2Full
    win32
    "ModifyPath"=hex(2):4d,00,73,00,69,00,45,00,78,00,65,00,63,00,2e,00,65,00,78,\
      00,65,00,20,00,2f,00,49,00,7b,00,39,00,34,00,46,00,42,00,30,00,39,00,37,00,\
      38,00,2d,00,44,00,30,00,39,00,34,00,2d,00,34,00,30,00,43,00,37,00,2d,00,39,\
      00,31,00,44,00,37,00,2d,00,38,00,33,00,34,00,44,00,33,00,39,00,32,00,32,00,\
      30,00,44,00,34,00,41,00,7d,00,00,00
    "Publisher"="Business Objects"
    "Readme"=hex(2):68,00,74,00,74,00,70,00,3a,00,2f,00,2f,00,73,00,75,00,70,00,70,\
      00,6f,00,72,00,74,00,2e,00,62,00,75,00,73,00,69,00,6e,00,65,00,73,00,73,00,\
      6f,00,62,00,6a,00,65,00,63,00,74,00,73,00,2e,00,63,00,6f,00,6d,00,2f,00,00,\
      00
    "Size"=""
    "EstimatedSize"=dword:001bcc81
    "UninstallString"=hex(2):4d,00,73,00,69,00,45,00,78,00,65,00,63,00,2e,00,65,00,\
      78,00,65,00,20,00,2f,00,49,00,7b,00,39,00,34,00,46,00,42,00,30,00,39,00,37,\
      00,38,00,2d,00,44,00,30,00,39,00,34,00,2d,00,34,00,30,00,43,00,37,00,2d,00,\
      39,00,31,00,44,00,37,00,2d,00,38,00,33,00,34,00,44,00,33,00,39,00,32,00,32,\
      00,30,00,44,00,34,00,41,00,7d,00,00,00
    "URLInfoAbout"=""
    "URLUpdateInfo"=""
    "VersionMajor"=dword:0000000b
    "VersionMinor"=dword:00000005
    "WindowsInstaller"=dword:00000001
    "Version"=dword:0b050008
    "Language"=dword:00000000
    "DisplayName"="Crystal Reports XI Release 2"
    Hope this helps you.
    Just a precision : the message 'can't load data' not occures on all PC with runtime, At work i have installed runtime on 3 PC's (XP) and it works, problem occures when i 'm connecting to my customer's server (windows 2003 server SP2) via tse.

  • Error message when saving an modified XL Reporter in Microsoft Excel

    Dear all
    I have encountered an error message when I tried to save an modified XL report in Excel.
    The error message is:
    An error occurred while trying to save the report definition! Object variable or with Block variable not set.
    The user now is using 200B PL 42 with Microsoft Excel 2003.
    Thanks in advance for advices.
    Thank you.
    Regards,
    Catea k

    Hi Catea k ,
    for thies error Object variable or with Block variable not set
    Please evaluate if OSS notes ##559043, 571831 and 575434 are applicable to your situation
    also check SAP Note 1227475 - Object variable or With block variable not set (processing)
    Note 1132338 - Object variable or with block variable not set
    Note 1180272 - Object variable or with block variable not set
    Note 1100521 - Object variable or With block variable not set[Create Temp T
    refer this thread also
    Object variable not set - Run-time error 91
    Regards
    Abhishek

  • What are the methods available to modify standard reports?

    What are the methods available to modify standard reports?

    <b>Hi,
    I think you can copy those reports into Zreports</b>

  • Report hanging (when try to modify the report)

    Post Author: aneel
    CA Forum: WebIntelligence Reporting
    Hi All,
    This becomes a longlosting issue for me Please anyone look into this.
    I have created one report with 6 global and 3 local filters, 12 local variables.
    When I try to modify the webi report it strucks up and keeps on running continuously with out giving any kind of result.
    Please reply anyone !!!!!!!!!

    Post Author: jsanzone
    CA Forum: WebIntelligence Reporting
    Vinl,
    The WebI (and BOE XI server) is not completely tuned out of the box to support multiple data providers and large data sets.  There are tuning parameters that must be set (and which will cause more memory usage, etc, etc) and must be monitored to expand performance in order to resolve unwanted timeouts.  If you are not the administrator, then you'll have to work with him or her (and possibly open a trouble ticket with tech support for more help, if needed).
    The timeout aspect is frustrating.  We have three servers, development, testing, and production.  The development system is totally off-line and not under any security-lockdown influences.  Testing is our pre-stage and was built by our BI team.  And production is in the server farm built by the Sysadmins.  Of the three servers, only the production server suffers from a two-minute WebI timeout (and Infoview timeouts where the report just spins all day without a response, but in WebI at least we get an ugly "error notice" when the two-minute timeout occurs).  We think that some kind of lockdown was performed on our production server that causes the two-minute timeout for an executing report to occur.  On the one hand it keeps us sharp in not building reports that will make the user wait a long time, and to encourage them to schedule a report through scheduler when it will take longer than two minutes to execute.  On the other hand it can be troublesome to maintain a report that takes so long to run in terms of modifications and corrections.  At times I've had to go into the datawarehouse and rename a production table to something else, then create a mini-version of that production table in order to run the report and modify it (all done in the off-hours of course), and then when done modifying the report, delete the mini-version of the production table and rename the off-named production table back to its original name in order to press on.  The things we gotta do to press on with life....  Good luck, and hang in there Vinl.

  • Modify UUT report file name

    Hello,
    I use TesStand 3.1 in Batchmode with 4 Testsockets and generate a XML Testreport for every UUT with the serial number in the file name.
    I leave the "Enter UUT Serial Number" dialog boxes at the begin empty.
    After that i read out the Serial Number of my UUTs at the runtime via CAN and use the "PostUUT-Callback" to modify the "Parameters.UUT.SerialNumber".
    Because of that the UUT Serial Number appears in the Report Header.
    But the report filename is always "Report[NO_UUT_SERIAL_NUM0][date][time].xml".
    Is it possible to modify the "UUT Serial Number" in the Report File Name, too?
    Thanx for your answers!
    Greetz ALIEN

    We modify the report name to include error count, Model, build, etc. but it requires that the Report be complete at that point (file no longer locked by TestStand). 
    In order to do this, you'll need to create a Sequence (with no Process Model) to call the test sequence using Subsequence call with the "Run Sequence in a New Execution" selected in the "Specify Module", Multithreading selection ring.
    There may be other ways to do what you're attempting, but this gives you freedom to rename the file. 
    Mike

  • Modified WAD report does not reflect in Production even after transport

    Dear Friends,
    We are using BI7.00 with Nw2004S. One of my report had been created in WAD (Web application designer). I have transported this report to production from Quality as in our case the Quality client is the base client for WAD report development. I collected the objects from the transport connection in RSA1 and transported the request.
    After the above since user wanted changes in the report,i again modified the report and checked. Everything was fine in my Quality client but when i transported it to production, the new modifications are not appearing.
    I have done the transport more than 2 times but still not changes is shown.
    Experts kindly provide your helping hand.
    Regards,
    M.M

    Dear Arun,
    Thank you for your feedback. As per your guideline we executed the program RS_TEMPLATE_MAINTAIN_70 in both QAS and PRD clients and found that the html codes are same. Moreover we are still not able to get the modified web items in our PRD clients. All the caches were deleted and still no improvement. Following are the other activities and obeservations done by us.
    1) Deleted the web item again in QAS client, Saved the report, recreated the web item, saved and then collected it in the request and transported and found that it is still not reflecting.
    2) In our observation, we find that the objects are found collected in the transport request and the task of the transport request contains no element. We do not know whether it is right.
    3) Missing of authorisation was also checked and found that it is not the culprit.
    In the above context we are still groping in the dark. Kindly provide your expert comments.
    Regards,
    M.M

  • Process/stpes to modify the report painter reports...

    Hi,
        I want to modify the report painter report. Could anybody tell me how can we do this. Where can we do this and it would be helpful if any body advise with the steps.
    The requirement is to add one line in the current report painter report and remove one line from it.
    Regards....

    Hi,
    Modifying a report painter report is very similar to creating the report itself. Below mentioned are the steps in general, please use them as per your requirement.
    From the relevant application, choose Tools->Report Painter->Report->Create.
    The Report Painter: Create Report screen appears.
    You can also create Report Painter reports from any Report Writer screen. To do so, choose Report Writer->Report Painter-> Create report.
    Enter the name of the library the report is to use, and a name and description for the report. The report name can be a maximum of eight characters long. If you want to create your report using an existing Report Painter report as a basis, enter the name of the report that you want to copy under Copy from. Both reports must use the same library.
    Choose Create.The next screen displays an empty report containing four rows and four columns (this is the basic structure for a report). You define your report on this screen.
    Enter or change the description for the report by double-clicking the report description field.
    A dialog box appears in which you can enter a short, medium, and long text for the report description.
    Define the rows of your report.Rows contain a combination of characteristic values or formulas. Note the lead column at the first position of the rows. The Report Painter uses the lead column to access the rows. You can replace the description Lead column with a different term.
    Define the columns of your report. Columns contain a combination of a basic key figure and optional restricting characteristic values. You can also use predefined key figures to present key figures and characteristics that make business sense. For example, a number of predefined key figures are delivered for the libraries in Overhead Cost Controlling that can be copied directly into the reports, where they can be modified as required.
    Define general data selection criteria. The general data selection criteria restrict data selection for the report.
    Choose Save and then Execute to create the report. Assign the report to a report group.
    You have to display the report before you execute it, so that you can later change the report layout directly from the report list. Once you have defined a report, you can display and print out a table of contents with Extras->Overview.
    The overview contains the characteristics and characteristic values used in the individual sections, column blocks, and general data selection criteria. It also provides general information such as the user who last changed the report, the report name, and the standard layout assigned to the report, as well as details on the report formats.
    If you double-click an individual characteristic, you can see where this characteristic is used in the report definition.
    Hope this helps you. Let me know if you need an specific information.
    Rgds
    Manish

  • Modifying Default Report Templates

    Hi there,
    APEX v3.0.1.008
    I have created an application using Theme 12.Blue and am evaluating the different templates that are available out-of-the-box. The Default: Look 2 template best meets my needs in terms of layout but unfortunately has Sand colouring so I'd like to be able to customise this to change the Sand colours to Blue.
    When I navigate to Shared Components -> Templates -> Report I do not get the opportunity to Copy or Modify this Template. Can someone please explain why is this the case and any workarounds to be able to modify this Report Template?
    Many thanks,
    Gary.

    Hey Alistair,
    I'm not sure how your solution solves the problem. When I go to Themes, click on my theme and look at the template for that theme, I see a bunch of different items for each type, like button, region, etc. Most of my pages simply say look at the defaults in the template and I want to change those defaults. On the template page I see some are checked as the default and I'd like to change to a different one if possible.
    Thanks again,
    ~Chris

  • Modifying Dunning Report F150_DUNN_01 for Tcode F150

    Hi Guys,
           I need to modify the standard Dunning Report F150_DUNN_01. I copied the standard onw to Zform. I need to add windows. And am calling external subroutimes in that script. Is it possible to transfer internal table between script and external subroutine with using and changing parameters? And also please tell me how to proceed customizing.
    Thanks in Advance.
    Regards,
    Hemanth

    Hi Hemanth,
    Customizing:
    You can go the Transaction FBMP and add your Form name as well as the Print Program name.
    These would be call when ever you run the dunning Program.
    From the Layoutset yuo can use the  PERFORM subroutine using and changing parameters which would have the Structure ITCSY.
    The Form then needs to be present in the Driover Prpgram.
    Please let me know if this is useful.
    Regards,
    Deepak

  • How do I modify a report to show new fields in a stored procedure?

    The server uses Crystal Reports Embedded Server 2008 SP3 (running on Windows Server 2008 R2 / IIS 7.5), and I am using Crystal Reports Developer 2008 SP3 on my PC.
    Hello,
    I am a MSSQL database administrator with little experience with Crystal Reports.  At my job, we have a need to add a couple of fields to a report.  The report comes with an enterprise procurement web-based application and displays the details of a given purchase order.  They want me to add the supplieru2019s address below the supplieru2019s name on the report.  I was hoping there might be a fairly straight-forward, not overly complicated answer to my question.
    The report works with a stored procedure (OrderForm1) which creates a temp table called #ReportParameters.  It then executes another stored procedure (GetReportParameters), in which it uses 'sp_xml_preparedocument' and eventually 'sp_xml_removedocument'.  It then executes a stored procedure called  (OrderForm1Main) which contains the select statement that brings in the bulk of the fields and joining the pertinent tables.  I made a backup copy of OrderForm1Main and modified the original, to include the supplier address fields.
    Don't know if I'm on the right track, but hereu2019s what I tried so far:
    When I open the OrderForm1.rpt in Crystal Designer, I have found that I can go to Database > Set Datasource Location, create a connection (OLE DB (ADO)) to the database, highlight the name of the stored procedure under u2018Current Data Sourceu2019, then find the same stored procedure in the database in the section u2018Replace withu2019:
    http://i.imgur.com/KXBuf.png
    When I clicked the u2018Updateu2019 button, a u2018Enter Valuesu2019 for parameters window pops up:
    http://i.imgur.com/5uQ9V.png
    Iu2019m confused as to what to do at this part.  Whether I click u2018OKu2019 or u2018Cancelu2019, it then adds my database connection with stored procedure to the list in the u2018Current Data Sourceu2019 section:
    http://i.imgur.com/aD4KH.png
    After completing this data source change, in the Field Explorer under Database Fields > OrderForm1, it then includes the new fields I added to the stored procedure.  However, when dragging the new supplier address fields to the report layout, saving the report in this state, and trying to run it in the web application, the report window displays the message u2018Missing parameter valuesu2019 instead of the report:
    http://i.imgur.com/gz8S3.png
    In Field Explorer > Database Fields > Parameters, Iu2019m seeing a list of parameters that arenu2019t the exact ones in the stored procedure, which leads me to believe, they are somehow defined in the report itself.  Also, under u2018Parameter Fieldsu2019 in the Fields Explorer there is the @fParameters listing with a question mark icon, that appeared since the data source change:
    http://i.imgur.com/llkrk.png
    There does not seem to be an equivalent set of parameters in the database, as there were defined in the report.  I imagine that the actual parameter values come from the data held in the currently displayed purchase order (from which you can push a button 'Print PO' that will display the report in question).  I have read that when you change a data source in Crystal, you have to complete the task of resetting, or adding back in the parameters.  That would be easy if they were in the database somewhere.  Whenever I attempt to look at the properties of the u2018ReportInformationu2019 in u2018Set Datasource Locationu2019, or simply try Database > 'Verify Database' to refresh the datasource, an u2018ADO.NET (XML) windows pops up with a file path in it, something to the effect of:
    MyLoanerLaptop\ebo bk\orderform1.xml:
    http://i.imgur.com/SEVOE.png
    I did a search on the entire server for the file OrderForm1.XML and could not find it anywhere.  So Iu2019m thinking that the software companyu2019s development team used that file originally, to create the report (did they use a dataset to do this, or is the temporary XML file created during the process actually the schema here?).  I think Iu2019m basically trying to change the data source in the report, to an updated version of the original stored procedure referenced, while still somehow leaving the parameters list in the report alone and have them still work?
    Any and all help would be greatly appreciated.  I realize that this type of work most likely is routine stuff that can be learned by taking the time to do so.  My team is only interested in allowing me a certain amount of time and resources to delve into Crystal and we do not have a Crystal dev team.  So, hopefully you understand my dilemma here.
    Thank you,
    Mike
    Edited by: Mike_DBA on Jan 23, 2012 8:03 PM
    Edited by: Mike_DBA on Jan 23, 2012 8:05 PM
    Edited by: Mike_DBA on Jan 23, 2012 8:11 PM (2:12 pm EST)
    Edited by: Mike_DBA on Jan 23, 2012 8:13 PM
    Edited by: Mike_DBA on Jan 23, 2012 8:18 PM
    Edited by: Mike_DBA on Jan 23, 2012 8:30 PM
    Edited by: Mike_DBA on Jan 23, 2012 10:58 PM

    Hi Mike,
    CRSE is an OEM Product and for use with a custom application they have written. Unfortunately we don't their reports or how they are connecting, it would appear they were originally built off a SQL and then set to a Dataset in the app or they could be adding the data source at runtime. Lots of variations and without access to the source code to see what they are doing not much we can help you with.
    You need to contact the OEM Partner for help in resolving this and find out what you can and need to do to update your SP and work with their canned reports,
    Thank you
    Don

  • Custom report. I need to modify canned report

    Hello everyone,
    There is canned report for "All package and program deployments"
    I need to modify it to get the same data but for specific timelines so I can monitor how many software installs are going through SCCM.
    Has anyone completed something like that and could share some info?
    This is the query for canned report.
    SELECT v_Advertisement.AdvertisementName,
    v_Advertisement.PackageID,
    v_Advertisement.CollectionID,
    v_Advertisement.Comment,
    v_Package.Name AS C062,
    ProgramName,
    v_Advertisement.SourceSite,
    CASE WHEN AssignedScheduleEnabled != 0 or
    (AdvertFlags & 0x720) != 0
    THEN '*'
    ELSE ''
    END AS C063,
    v_Collection.Name as C064,
    AdvertisementID
    FROM v_Advertisement
    INNER JOIN v_Package ON v_Advertisement.PackageID = v_Package.PackageID
    INNER JOIN v_Collection ON v_Advertisement.CollectionID = v_Collection.CollectionID
    ORDER BY v_Advertisement.AdvertisementName

    Yes, I know this is an old post, I’m trying to clean them up, Did you figure this out, if so how?
    http://www.enhansoft.com/

  • Is it possible to use the JAVA Report Engine SDK to modify DESKI reports?

    Post Author: Nadine
    CA Forum: JAVA
    Hi, is it possible to add a complex filter to a DESKI report using the JAVA report engine sdk?
    In the developer tutorials for this API, I've only found references to WEBI in terms of modifying reports, though it seems to be possible to view DESKI reports with this sdk.
    I am a bit confused in terms of the scope of this API and how I would use it in regard to DESKI.
    Many thanks for any suggestions!
    Nadine

    Post Author: Ted Ueda
    CA Forum: JAVA
    Current (XI R2) version of ReportEngine API only supports refreshing/viewing functionality for Desktop Intelligence documents.  Document modification/creation is only supported with Web Intelligence documents.  Queries aren't modifiable for Deski using ReportEngine API - you can only do so using Desktop Intelligence Reporter SDK, which is COM based.Sincerely,Ted Ueda

  • Need help to modify a report written using Field-Groups Concept. - Part1

    Hello ABAP Experts,
    I need your help to modify the following report with following requirement as I have least knowledge
    about the field-group concept. Thats is the reason, I am pasting the whole code. As it is part of our
    production requirement. I really appreciate your help, If its sent modifying the code required.
    Modification required in the report.
    To allow the sales representatives to see billed shipments and open orders for the current month.
    1) Selection Screen Changes:
    u2022     Add selection by Sales group and Customer group
    u2022     Add sort by:     3. Ship-to / Material
    u2022     Add another selection box
    [ ] Open Orders and Shipments with the current month
    2)      For the new selection box, subtotal sales quantity and delivery quantity.
         If delivered, make the sales quantity zero in the subtotal
    Current report displays, in Selection Screen
    Sales org:
    Person Name:
    Material:
    Plant:
    Sales Office:
    Ship to Name:
    Ship to Number:
    Sorts Report by : 1. Person Name 2. Material
    Check Boxes : 1. Open Orders 2. Delayed Orders.
    report  zorder  LINE-SIZE 170
                      LINE-COUNT 58
                      MESSAGE-ID zv
                      NO STANDARD PAGE HEADING.
    TABLES:
    cdhdr,                                 "Change Doc Header
    cdpos,                                 "Change Doc Item
    kna1,                                  "Customer master
    likp,                                  "Delivery Header
    lips,                                  "Delivery Item
    *lips,                                 "Delivery Item
    zvbpa_lfa1,                            "Vendor Master
    makt,                                  "Material Desc
    t001w,                                 "Plant
    tvkbt,                                 "Sales Office
    tvko,                                  "Sales Organizations
    vbak,                                  "Sales Header
    vbap,                                  "Sales Item
    zvvbak,                                "Sales Hdr - Time calc
    vbup,                                  "Item status
    vbep,                                  "Sales Schedule Line
    vbfa,                                  "Flow documents
    vbpa,                                  "Partners
    vbrk,                                  "Billing Header
    vbrp.                                  "Billing Item
    SELECT-OPTIONS:
      s_vkorg FOR vbak-vkorg OBLIGATORY,
      s_ernam FOR vbak-ernam,
      s_matnr FOR vbap-matnr,
      s_werks FOR vbap-werks,
      s_vkbur FOR vbak-vkbur,
      s_name1 FOR kna1-name1,
      s_kunnr FOR kna1-kunnr.
    SELECTION-SCREEN ULINE.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(49) text-c20.
    PARAMETERS: p_sort TYPE n DEFAULT '1'.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 19(40) text-022.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 19(40) text-023.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 19(40) text-024.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN COMMENT 19(40) text-070.
    SELECTION-SCREEN ULINE.
    SELECTION-SCREEN BEGIN OF BLOCK b20 WITH FRAME.
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS:p_open AS CHECKBOX DEFAULT 'X'.
    SELECTION-SCREEN COMMENT 5(48) text-072.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS:p_delay AS CHECKBOX DEFAULT 'X'.
    SELECTION-SCREEN COMMENT 5(48) text-073.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN END OF BLOCK b20.
    DATA:
    vbeln(11),                             "Document number
    cancel_dt TYPE d,                      "Cancellation Date
    BEGIN OF tabkey,                       "Tabkey
    mandant LIKE sy-mandt,
    vbeln LIKE vbap-vbeln,
    posnr LIKE vbap-posnr,
    END OF tabkey,
    name1_sp1 LIKE lfa1-name1,             "Sales Carrier Name
    name1_sp2 LIKE lfa1-name1,             "Delivery Carrier Name
    datum-1 TYPE d,                        "Current Dt Less 1
    datum-14 TYPE d,                       "Current Dt Less 14
    datum-90 TYPE d,                       "Current Dt Less 90
    rpt_hdr1(170),                         "Report Header 1
    rpt_hdr2(170),                         "Report Header 2
    rpt_hdr3(170),                         "Report Header 3
    cb_hdr1(170),                          "Control Break Header 1
    line_pos1 TYPE i,                      "Line Print Position HDR1
    line_pos2 TYPE i,                      "Line Print Position HDR2
    line_pos3 TYPE i,                      "Line Print Position DET2
    status,                                "Order Status
    open,                                  "Open Order
    delayed VALUE 'D',                     "Delayed Order
    v_comp(30).                            "Company Text Field
    DATA: v_flagh2.  " Flag for header 2 & 3
    DATA: ls_comwa LIKE vbco6. "Structure for flow information
    DATA: t_vbfa_tab TYPE STANDARD TABLE OF vbfa WITH HEADER LINE."Itab
    for flow information
    data: g_trans_id type vttk-tdlnr. "get transport id from flow
      information
      data  v_sales_org_cpimex type vkorg value  '3300'.
      FIELD-GROUPS:
      header,
      order.
      INSERT
      status                                 "Status
      vbak-vkbur                             "Sales Office
      vbak-ernam                             "Created By
      kna1-kunnr                             "Customer
      kna1-name1                             "Customer Name
      vbap-matnr                             "Material
      vbap-werks                             "Plant
      vbep-lddat                             "Load Dt
      vbap-vbeln                             "Sales Document
      INTO header.
      INSERT
      kna1-ort01                             "City
      kna1-regio                             "Region
      likp-traid                             "Transport ID
      lips-vbeln                             "Delivery Document
      lips-ntgew                             "Net Wt
      lips-gewei                             "Unit of Weight
      vbap-kwmeng                            "Order Qty
      vbap-vrkme                             "Sales Unit
      vbak-bstnk                             "Customer PO
      vbak-erdat                             "Sales Create Dt
      vbak-ihrez                             "PO Release
      vbak-vdatu                            "Req Delivery Dt
      vbak-vzeit                            "Req Delivery Time
      vbfa-vbeln                             "Goods issue doc
      vbrk-vbeln                             "Billing Document
      name1_sp1                              "Sales Carrier
      name1_sp2                              "Delivery Carrier
      INTO order.
    INITIALIZATION.
    AT SELECTION-SCREEN.
      IF NOT p_sort BETWEEN 1 AND 2.
        MESSAGE e022 WITH p_sort.
      ENDIF.
    * Report 1 or more of cancelled, delayed or open
      IF p_open IS INITIAL AND
         p_delay IS INITIAL.
        MESSAGE e023.
      ENDIF.
    START-OF-SELECTION.
    * Load Company Name
      WRITE 'XYZ INC'(000) TO v_comp.
    * Calculate Date Range
      datum-1 = sy-datum - 1.
      datum-14 = sy-datum - 14.
      datum-90 = sy-datum - 90.
    * Compose Parameter Header
      PERFORM parm_hdr.
    ** Compose Report Header
      v_flagh2 = 1.
      PERFORM data_selection.
    END-OF-SELECTION.
    * Determine Sort
      CASE p_sort.
        WHEN 1.
          SORT BY status vbak-ernam kna1-name1 kna1-kunnr
                  vbep-lddat vbap-vbeln.
        WHEN 2.
          SORT BY status vbap-matnr vbap-werks vbep-lddat
                  vbap-vbeln.
      ENDCASE.
      LOOP.
        AT NEW status.
          CASE status.
            WHEN delayed.
              WRITE 'Delayed Orders'(061) TO rpt_hdr1.
            WHEN OTHERS.
              WRITE 'Open Orders'(062) TO rpt_hdr1.
          ENDCASE.
          NEW-PAGE.
        ENDAT.
        AT NEW vbak-ernam.
          IF p_sort = 1.
            CLEAR cb_hdr1.
            WRITE 'CAA:'(064) TO cb_hdr1.
            WRITE vbak-ernam TO cb_hdr1+5.
            NEW-PAGE.
          ENDIF.
        ENDAT.
        AT NEW vbap-matnr.
          IF p_sort = 2.
            CLEAR makt.
            SELECT SINGLE * FROM makt
                WHERE spras = sy-langu AND
                      matnr = vbap-matnr.
            CLEAR cb_hdr1.
            WRITE 'Material:'(042) TO cb_hdr1.
            WRITE vbap-matnr TO cb_hdr1+10.
            WRITE makt-maktx TO cb_hdr1+21.
            NEW-PAGE.
          ENDIF.
        ENDAT.
        AT NEW vbap-werks.
          AT order.
            RESERVE 3 LINES.
            SKIP 1.
            NEW-LINE.
    * Indicate new open item
            WRITE vbap-vbeln TO vbeln.
    * Find Transport ID
    * Fill the structure LS_COMWA
            ls_comwa-mandt = sy-mandt.
            ls_comwa-vbeln = vbap-vbeln.
            CALL FUNCTION 'RV_ORDER_FLOW_INFORMATION'
              EXPORTING
                comwa    = ls_comwa
              TABLES
                vbfa_tab = t_vbfa_tab.
            IF sy-subrc EQ 0.
              READ TABLE t_vbfa_tab WITH KEY vbtyp_n = '8'.
              IF sy-subrc EQ 0.
                SELECT SINGLE tdlnr INTO g_trans_id
                  FROM vttk WHERE tknum = t_vbfa_tab-vbeln.
                CONDENSE g_trans_id.
              ENDIF.
            ENDIF.
            IF vbak-erdat >= datum-1.
              vbeln+10 = 'N'.
            ENDIF.
            CASE p_sort.
              WHEN 1.
                WRITE 1 vbak-vkbur.
                WRITE 8 kna1-name1.
                WRITE 44 vbeln.
                WRITE 56 vbap-matnr.
                WRITE:
                    75 vbap-kwmeng LEFT-JUSTIFIED,
                     vbap-vrkme,
                    100 vbak-bstnk,
                     vbak-ihrez,
                    134 vbak-vdatu,
                        vbak-vzeit,
                    154 vbep-lddat.
                WRITE 166 vbap-werks.
                NEW-LINE.
                WRITE:
                  5  kna1-ort01,
                  41 kna1-regio.
                IF name1_sp2 IS INITIAL.
                  WRITE:
                    45 name1_sp1,
                ELSE.
                  WRITE 45 name1_sp2.
                  IF name1_sp1 = name1_sp2.
                    WRITE ' '.
                  ELSE.
                    WRITE '*'.
                  ENDIF.
                ENDIF.
                IF  vbak-vkorg =  v_sales_org_cpimex .
                  WRITE  81 g_trans_id.
                ELSE.
                  WRITE  81 likp-traid.
                ENDIF.
                WRITE:
                  102 lips-vbeln,
                  115 lips-ntgew NO-ZERO LEFT-JUSTIFIED,
                      lips-gewei,
                  140 vbfa-vbeln,
                  152 vbrk-vbeln.
              WHEN 2.
                WRITE 1 vbak-ernam.
                WRITE 14 vbak-vkbur.
                WRITE 21 kna1-name1.
                WRITE 57 vbeln.
                WRITE:
                    69 vbap-kwmeng LEFT-JUSTIFIED,
                        vbap-vrkme,
                    92 vbak-bstnk,
                        vbak-ihrez,
                    126 vbak-vdatu,
                      vbak-vzeit,
                    146 vbep-lddat.
                WRITE 162 vbap-werks.
                NEW-LINE.
                WRITE:
                  5  kna1-ort01,
                  41 kna1-regio.
                IF name1_sp2 IS INITIAL.
                  WRITE:
                    45 name1_sp1,
                ELSE.
                  WRITE 45 name1_sp2.
                  IF name1_sp1 = name1_sp2.
                    WRITE ' '.
                  ELSE.
                    WRITE '*'.
                  ENDIF.
                ENDIF.
                IF  vbak-vkorg =  v_sales_org_cpimex .
                  WRITE  81 g_trans_id.
                ELSE.
                  WRITE  81 likp-traid.
                ENDIF.
                WRITE:
                   102 lips-vbeln,
                   115 lips-ntgew NO-ZERO LEFT-JUSTIFIED,
                       lips-gewei,
                   140 vbfa-vbeln,
                   152 vbrk-vbeln.
            ENDCASE.
          ENDAT.
        ENDLOOP.
    *       FORM PARM_HDR                                                 *
    FORM parm_hdr.
      WRITE 'Program selections'(101) TO rpt_hdr1.
      WRITE 'Sign'(102) TO rpt_hdr1+29.
      WRITE 'Option'(103) TO rpt_hdr1+34.
      WRITE 'From'(104) TO rpt_hdr1+41.
      WRITE 'To'(105) TO rpt_hdr1+77.
    ENDFORM.                    "PARM_HDR
    *       FORM RPT_HDR                                                  *
    FORM rpt_hdr.
      CASE p_sort.
        WHEN 1.               "When sort by CAA
          WRITE 1'SOff'(066).
          WRITE 8'Customer'(009).
          WRITE 44'Sales Doc'(010).
          WRITE 56'Material'(031).
          WRITE 75'Sales Qty'(011).
          WRITE 100'Customer PO'(012).
          WRITE 134'Req.Del.Dt & Tm'(014).
          WRITE 154'Load Dt'(015).
          WRITE 166'Plnt'(016).
          NEW-LINE.
          WRITE 5'City'(017).
          WRITE 41'Reg'(069).
          WRITE 45'Carrier'(018).
          WRITE 81'Transport ID'(019).
          WRITE 102'Dlvry Doc'(021).
          WRITE 115'Dlvry Qty'(025).
          WRITE 140'PGI Doc'(026).
          WRITE 152'Billng Doc'(027).
        WHEN 2.               "When sort by Material
          WRITE 1'Created By'(008).
          WRITE 14'SOff'(066).
          WRITE 21'Customer'(009).
          WRITE 57'Sales Doc'(010).
          WRITE 69'Sales Qty'(011).
          WRITE 92'Customer PO'(012).
          WRITE 126'Req.Del.Dt & Tm'(014).
          WRITE 146'Load Dt'(015).
          WRITE 162'Plnt'(016).
          NEW-LINE.
          WRITE 5'City'(017).
          WRITE 41'Reg'(069).
          WRITE 45'Carrier'(018).
          WRITE 81'Transport ID'(019).
          WRITE 102'Dlvry Doc'(021).
          WRITE 115'Dlvry Qty'(025).
          WRITE 140'PGI Doc'(026).
          WRITE 152'Billng Doc'(027).
      ENDCASE.
    ENDFORM.                    "RPT_HDR
    INCLUDE zrpthdri.
    WRITE:
    / rpt_hdr1.
    ULINE.
    IF v_flagh2 <> 0.
      PERFORM rpt_hdr.  "Write secondary header
      ULINE.
    * Control Break Header
      WRITE / cb_hdr1.
    ENDIF.
    Continued in Part-2
    Thanks  a ton in advance.
    Mythili Sharma
    Edited by: Mythili sharma on Mar 30, 2009 3:32 AM
    Edited by: Rob Burbank on Mar 30, 2009 10:46 AM

    Hello ABAP Experts,
    I need your help to modify the following report with following requirement as I have least knowledge about the field-group concept. Thats is the reason, I am pasting the whole code. As it is part of our production requirement. I really appreciate your help, If its sent modifying the code required.
    Modification required in the report.
    To allow the sales representatives to see billed shipments and open orders for the current month.
    1) Selection Screen Changes:
    u2022     Add selection by Sales group and Customer group
    u2022     Add sort by:     5. Ship-to / Material
    u2022     Add another selection box
    [ ] Open Orders and Shipments with the current month
    2)      For the new selection box, subtotal sales quantity and delivery quantity.
         If delivered, make the sales quantity zero in the subtotal
    Current report displays, in Selection Screen
    Sales org:
    Person Name:
    Material:
    Plant:
    Sales Office:
    Ship to Name:
    Ship to Number:
    Sorts Report by :
    1. Person Name
    2. Material
    3. Plant
    4. Sales Office
    Check Boxes :
    1. Open Orders
    2. Delayed Orders
    3.Cancelled Orders
    PLEASE DOWNLOAD THE COMPLETE REPORT FROM THE FOLLOWING LINK
    << Link removed >>
    It would be a great help, If the program is modified according to the requirement and snd it back through send space and send link, even if u send the necessary changes to be done in the report is also appreciable.
    Thanks a ton in adanvce
    Mythili
    I wanted to close this thread as I could not put my question in a proper format. So please reply in the new thread which is posted.
    Edited by: Mythili sharma on Mar 30, 2009 2:16 PM
    Edited by: Rob Burbank on Mar 30, 2009 4:24 PM

  • Modifying customer report

    Hi,
       iam modifying one customer report.This report lists vendor and customer changes.This report to determine the number of creates/changes occuring on a daily basis for all vendor/customer account groups.We need to enhance the report to identify vendor/customer partner function area and add a unique transaction count.
    All creates for one vendor/customer(for different company codes,purchasing organization and sales organization) will be considered together as one unique count.
    All changes for one vendor/customer will be condisdered together as one unique count.
    All making/unmaking for deletion of one vendor/customer will be considered as one unique count.
    Please give me logic.How to conidered the unique count.
    Thanks,
    sairam

    Hi
    There may be Lot of creations for the same Vendor/Customer for different Company codes/SO's/Porgn etc but creation of a Customer/vendor is considereed as one unique record.
    So Customer No/Vendor number is Unique record.
    for a single customer or vendor there may be more number of creations/Changes/deletions, but only once they have to be considered.
    Reward points if useful
    Regards
    Anji

  • Modifying SBO reports

    Hi!
    What would be the simplest way to modify an SBO reprt?
    I have added a user field to OITM (item master data) and I want to modify the Sales Analysis report so that I have the field as one of the selections criteria for items.
    My idea is to put in some new items on the form for the user to enter their selection criteria for this field (which is pretty straight foreward)...
    ... but then how do i get the report generated to include the selection criteria for my user field?
    Can i somehow trap the query before it is executed and modify it using SQL?
    This is pretty urgent, any help is much appreciated.

    In the ItemEvent handler just capture the "OK":
        ' In the "Inactive Customers" report capture pressing the "OK" button:
    If pVal.FormTypeEx = "92" And _
      pVal.ItemUID = "1" And _
      pVal.EventType = SAPbouiCOM.BoEventTypes.et_ITEM_PRESSED And _
      pVal.BeforeAction Then
          ' Action!
          ' run your report here...
      ' suppress further handling through B1 application
      BubbleEvent = False
    End If
    If you would need further initial guidance, I recommend looking at the SDK E-learning:
    https://www.sdn.sap.com/irj/sdn/developerareas/businessone?rid=/webcontent/uuid/6207e283-0a01-0010-6c84-bacd2745c33f [original link is broken])
    + then (if necessary at all) ask more questions on SDN.
    For further documentation on SDK please consult the SDK Helpcenter package.
    You can download it through a link on the SAP Business One Developer Area on SDN as well.
    However, exporting the data to Excel - or running the reports from there (reading B1 data) may of course be another option - but I guess you were already aware of that and wanted to have a seamless integration?
    HTH though!
    Message was edited by: Frank Moebius

Maybe you are looking for

  • Are there any plans to fix Apple ID's? Please don't answer unless you work for Apple.

    The only reason I have 2 apple IDs is poor planning by Apple. Mobile Me users were assigned a me.com ID, despite the fact that I already had an Apple ID. Now the me.com ID has followed me to iCloud and I can't get rid of it. When I set up iCloud I at

  • Warning message on 6680! help!

    i keep getting an error message saying "not enough memory to recieve SIM messages. delete some data first." both my phone memory and memory card have plenty of space, and all my text messages go straight to my memory card anyway, but this message kee

  • Sales Order for Bulk quantity

    Hi, My client has a scenario like Order is created for bulk quantity, say 1000 MT for whole year for one sold to party. Now they create DI (Despatch Instruction) with reference to order for bulk quantity say 100 MT for particular one Ship to Party. N

  • Look for a free ora81.dll

    hello, i look for a ora81.dll to download this. exist a internet pages to download this ? carsten behr

  • Wait icon showing in boolean array to number

    Hi, Can anyone shed a little light on an extra little chunk of icon that I'm getting on a 'boolean array to number' function? I seem to be getting a small 'wait' icon superimposed in the corner. The context help entry seems the same and the functiona