Show new Field from BP in a Service View

Hi All
We need to show 2 fields from the Business Partner in a Service View.
We need to show the BP Number because after it is entered is is OK this value is changed by the Name of the BP, and our client need to see the number all the time.
An also we need to show the Field Title also from the Busineed Partner.
What we have to do to show this values in the component BT116H_SRVO?
Best Regards

Hi Luis,
In order to achieve this you have to enhance components. Here are the steps:
1. Transaction SM34: Create Enhancement Set (only the 1st step-Enhancement Set definition)
View Cluster: bspwdvc_cmp_ext
2. Transaction SM30: Assign Enhancement to client
View:  BSPWDV_EHSET_ASG
3. Create Enhancement
Transaction: BSP_WD_CMPWB
Choose the component you want to enhance and your Enhancement Set.
Choose u201CDisplayu201D.
Press, Enhance Component.
In Application, enter the name of your Enhancement Set.
Enter package for development and request.
Now you are working for the Component you selected with your Enhancement Set.
4.Expand the Views (you will see that all are grey) and choose the View you want to create your Enhancement. Right click and choose u201CEnhanceu201D. Confirm Workbench request and package several times.
Now the view is active.
5. Double-clicking on the View.
On the tab u201CStructureu201D, select Context  Context Node. Now you have to search on which Context node the field you want to add is saved. Open the Context Node  Attributes.
Right click on the Attribute folder and choose u201CCreateu201D. The wizard is opened:
Go to the step u201CAttribute Definitionu201D:  give an Attribute Name and a BOL attribute. The BOL attribute is the field you want to enhance (Here for some fields you have to search a little more) and Complete.
6. Now your field is appearing on the Attributes folder.
7. Go to Configuration tab and add your enhancement.
Hope this helps!
Best regards,
Roula

Similar Messages

  • Unable to show all fields from a table\view within a SSRS Report Model for user selection

    I recently added a new view with a simple SELECT (with 3 fields) statement to our existing Report Model DSV. I then went ahead to the report model (.smdl) file proceeded with the auto-generation of the new attributes which of course ran with no issues.
    I was seeing the three new fields as attributes. But when I went within the existing Perspective to add the newly added fields so that the users see them, one of the field is missing. It is just a VARCHAR field. What would it cause this field to not show up
    within a Perspective?
    Any help is greatly appreciated.Thanks,
    Nimesh
    NM

    Hi NM,
    I am trying to involve someone more familiar with this topic for a further look at this issue. Sometime delay might be expected from the job transferring. Your patience is greatly appreciated.
    Thank you for your understanding and support.
    Regards,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Added new field from RSA6

    I added a field to the datasource structure from RSA5 and RSA6.
    I replicated the source system.
    Would I have to delete the InfoSources and reassign the datasource to see the new field appear in the transfer rules?
    Is there a way to see the new field to show automatically after the replication in the transfer rules?

    Hi Yosemite,
        If you can't you find your new field in the extractor from RSA6 and 'Change DataSource', then check the following:
        1. Goto SE16 and enter 'ROOSFIELD' in the table name
        2. Enter your DataSource name in the 'OLTPSOURCE' and 'A' for the OBJVERS.
        3. Check the 'Selection' field value. If it is 'A' (Hidden by SAP) then Change it to 'P'. Then you should be able to see the new field in the Extractor.
    Thanks,
    Venkat.

  • 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

  • Add a new field(from transparent table) to the infoset

    Hi,
    I need to add a new field to the existing infoset in HR. I found that field exist in the CSKS table. in the infoset they are using PNP logical database. As per my understaning i have to link the CSKS-KOSTL with P0001-KOSTL.
    Could you tell me how to do this?
    Please do the needful.
    Thanks & Regards,
    Krishna.

    Hi,
    I have added that KOSAR in the additional fields and i added the code for that like
    clear kosar.
    select single kosar
      into kosar
      from csks
      where kokrs = p0001-kokrs
        and kostl = p0001-kostl.
    Is it will work now? One more help how to add this change to the transport?
    Please do the needful.
    Thanks & Regards,
    Krishna.

  • Modify DataSource to include new fields from view

    Hello all, I have been tasked to bring new fields into a DataSource from a view. The new required fields are in the table and view below the DataSource. How do I update the DataSource to recognize the new fields in the view?
    I am pretty sure I just need to have the DataSource extract structure ZOXDEV0038 regenerated and then unhide the fields in the DataSource, but I can't figure out how to get it to regenerate.
    Thanks in advance,
    Justin

    Hi,
    Example of a view
    Hope you have this joining condition in your view.
    Tbales
    VBAP
    VBAk
    Join Conditions
    VBAP MANDT = VBAK MANDT
    VBAP VBELN = VBAK VBELN
    and <b>InView Flds Tab</b>
    all field whihc you want see in datasourcelike
    MANDT
    VBELN
    <b>[Have to added this new fields in this tab]</b>
    and foe your error
    Re: Generic Extraction : Invalid Extract structure
    Hope i m clr.
    Regards,
    San!
    Message was edited by: San!

  • Requirement to add new field in Location Tab of Service order

    We have a requirement in which it is needed to add anew field in Location Tab of Equipment and Service order. For Equipment part , we have added the field via Enhancement ITOB0001 and activating the field via "Set View Profile for Technical Objects".
    But for Service order part, we are not able to add the new field in the Location tab , please suggest how can we achieve this.

    Hi Deepika,
    If you are not particular about having it in Location tab use Screen-Exit provided in the Enhancement IWO10018 to add an additional tab to host your custom fields. as under:
    ABAPer will be able to readily follow these steps
    Steps will be,
    1. Create a Data type to capture the your custom values. (SE11)
    2. Include your Zfield (with this datatype) through in the include structure CI_AUFK of the Order Header table (AUFK)
    3. Create a project with Tcode CMOD and assign the enhancement above (IWO10018)
    4. Go to Components and Click on Screen Exit
    5. Here Go to Screen-painter (Blue Arrow named Layout) , Create your Field screen-box, field Text field and field Input field. In the field input field Name you should use the above Zfield details (table-field)
    6.Activate the project CMOD and come-out.
    Run IW31, you will see an additional tab like shown above. But here the field is nothing.
    We haven''t told the system what is to be filled here.
    For this in continuation to the above steps between 5 and 6, insert this step.
    5a. Write your code in Function Exits : EXIT_SAPLCOIH_018 and  EXIT_SAPLCOIH_019  of the same enhancement (IWO10018.)
    Code to be written in exit 18:
    move-corresponding COCI_AUFK_IMP to AUFK.
    Code to be written in exit 19:
    move-corresponding aufk to COCI_AUFK_exp.
    After this exercise your Z-field will be visible in the Enhancement Tab as shown in the picture in the beginning. Now your values will be saving to AUFK table.
    So, this is completely an ABAPer job.
    Hope this information helps you.
    Jogeswara Rao K

  • DB connect datasource not showing new fields on proposal tab please help

    Hi Experts,
    We have a Datasource to a SQL view, we recently added new fields to the view, but they are not showing on the proposal tab, we can preview data (no new fields there either), we verified the connection and everything seems to be just fine but the new fields are nowhere to be found, we even created a new datasource for that view and the new fields are just not showing.
    Can someone please help me with this?
    Thanks in Advance.

    Not even sure if anyone is looking at this anymore - I have a similar issue and haven't solved it using SAP standard - instead I have been using the workaround as follows.
    Add the field(s) and details to table RSDSSEGFD Once done here reactivate the datasource.
    * Proceed at your own risk * *
    /MiB

  • Adding new field from BKPF to tcode FB01 appearing as on selection screen

    Hi all,
    Could u please let us know to add a field from table BKPF in tcode FB01 ?
    1.   We did BADI for 'FI_HEADER_SUB_1300 ' and added the required field in the layout.
    2.   After actiavting, the added field is not getting reflected in the tcode FB01.
    Please tel us , where are we going wrong.

    Looks like a similar requirement in this: How to Add XREF1_HD(Reference Key 1 internal for document Header) field to header level to  transaction FB01

  • No records when inputting new field from linked tables.

    I have linked two tables in a report.  If I use only fields from one table, no problem.  As soon as I add a field from the other table no records are pulled.  I am using the same filed "IncidentID" in both tables as a link.  If I attempt to pull the "IncidentID" from the second table no records are pulled.  There does not appear to be any key fields or indexes in either table if that helps.

    Here are the SQL queries.  The first string is without any fields from "WorkLog".  The second is after adding the field "WorkLog.Incident Number" to the form.
    SELECT "HPD_Help_Desk"."Incident Number", "HPD_Help_Desk"."Reported Date", "HPD_Help_Desk"."Direct Contact Site", "HPD_Help_Desk"."Assignee", "HPD_Help_Desk"."Status", "HPD_Help_Desk"."Last Modified Date", "HPD_Help_Desk"."Description", "HPD_Help_Desk"."Priority"
    FROM   "HPD:Help Desk" "HPD_Help_Desk"
    WHERE  "HPD_Help_Desk"."Status"='Pending' AND ("HPD_Help_Desk"."Assignee"='Debbie Kiolbasa' OR "HPD_Help_Desk"."Assignee"='John L King' OR "HPD_Help_Desk"."Assignee"='Ligaya Plumlee' OR "HPD_Help_Desk"."Assignee"='Ryan Keeler')
    ORDER BY "HPD_Help_Desk"."Assignee"
    SELECT "HPD_Help_Desk"."Incident Number", "HPD_Help_Desk"."Reported Date", "HPD_Help_Desk"."Direct Contact Site", "HPD_Help_Desk"."Assignee", "HPD_Help_Desk"."Status", "HPD_Help_Desk"."Last Modified Date", "HPD_Help_Desk"."Description", "HPD_Help_Desk"."Priority", "HPD_WorkLog"."Incident Number"
    FROM   "HPD:Help Desk" "HPD_Help_Desk" INNER JOIN "HPD:WorkLog" "HPD_WorkLog" ON ("HPD_Help_Desk"."Incident Number"="HPD_WorkLog"."Incident Number") AND ("HPD_Help_Desk"."InstanceId"="HPD_WorkLog"."InstanceId")
    WHERE  "HPD_Help_Desk"."Status"='Pending' AND ("HPD_Help_Desk"."Assignee"='Debbie Kiolbasa' OR "HPD_Help_Desk"."Assignee"='John L King' OR "HPD_Help_Desk"."Assignee"='Ligaya Plumlee' OR "HPD_Help_Desk"."Assignee"='Ryan Keeler')
    ORDER BY "HPD_Help_Desk"."Assignee"
    BTW - The "Left Outer Join" receives the errors noted in above post whereas the default "Inner Join" just comes back with empty records.
    Unable to use the third party tools due to restrictions on loading software.  Also we are unable to access the lower level database.
    Thanks

  • Adding new fields from CI Include to Standard SAP Screen

    Hi All,
    I am enhancing Infotype 0487. I have added new fields to the CI include and created the screen fields in subscreen 0200 with reference to the data dictionary fields. When I test the subscreen alone, the new fields are displaying correctly and F4 help is active. But when I view the whole screen(2000) in PA30, the new field is inactive and I am not able to enter data. Also F4 help option is present for the field but when it is selected, a message 'No Values Found'  is displayed. Please suggest some solution.
    Thanks in advance
    Regards,
    Sivasankari
    Edited by: Julynila on Oct 7, 2010 10:41 AM

    Hi,
    This might be the standard transaction, so there is a possibility of adding the fields using the Screen variants using SPRO, get in touch with your functional consultant. there you can copy an existing screen and add the required fields and rename the screen to different number, and in the config this new screen can be added.
    Thanks,
    Srini.

  • Form does not show "new" records from SQL Database

    I have a PDF form that pulls data from a SQL Server.  The fields in
    the PDF are populated from the database after selecting a specific
    record from a drop down and then clicking on a button labeled "Fill".
    The problem is that the dropdown does not display new records that
    have been recently added to the database.  I have to open the form up
    in designer then save it, (*note - I change nothing at this point.)
    Then when the form is opened back up in Adobe the dropdown show all
    the records including the new ones.  I even put a manual refresh on
    form to try and fix this an it did not help. Seriously stumped.
    Any help is greatly appreciated.
    Here is my code for the dropdown.
    ++++++++++++++++++++++++++++
    topmostSubform.Page1.JobSelect::initialize - (JavaScript, client)
    var sDataConnectionName = "BBCC"; // example - var sDataConnectionName
    = "Test";
    var sColHiddenValue = "ContractAdmin_Key"; // example - var
    sColHiddenValue = "Dept_ID";
    var sColDisplayText = "JobDescription"; // example - var
    sColDisplayText = "Dept_ID"
    // Search for sourceSet node which matchs the DataConnection name
    var nIndex = 0;
    while(xfa.sourceSet.nodes.item(nIndex).name != sDataConnectionName)
    nIndex++;
    var oDB = xfa.sourceSet.nodes.item(nIndex);
    oDB.open();
    oDB.first();
    // Search node with the class name "command"
    var nDBIndex = 0;
    while(oDB.nodes.item(nDBIndex).className != "command")
    nDBIndex++;
    // Backup the original settings before assigning BOF and EOF to stay
    var sBOFBackup =
    oDB.nodes.item(nDBIndex).query.recordSet.getAttribute("bofAction");
    var sEOFBackup =
    oDB.nodes.item(nDBIndex).query.recordSet.getAttribute("eofAction");
    oDB.nodes.item(nDBIndex).query.recordSet.setAttribute("stayBOF",
    "bofAction");
    oDB.nodes.item(nDBIndex).query.recordSet.setAttribute("stayEOF",
    "eofAction");
    // Clear the list
    this.clearItems();
    // Search for the record node with the matching Data Connection name
    nIndex = 0;
    while(xfa.record.nodes.item(nIndex).name != sDataConnectionName)
    nIndex++;
    var oRecord = xfa.record.nodes.item(nIndex);
    // Find the value node
    var oValueNode = null;
    var oTextNode = null;
    for(var nColIndex = 0; nColIndex < oRecord.nodes.length; nColIndex++)
    { if(oRecord.nodes.item(nColIndex).name == sColHiddenValue)
    { oValueNode = oRecord.nodes.item(nColIndex); } else
    if(oRecord.nodes.item(nColIndex).name == sColDisplayText) { oTextNode
    = oRecord.nodes.item(nColIndex); } }
    while(!oDB.isEOF())
      this.addItem(oTextNode.value, oValueNode.value);
       oDB.next();
    // Restore the original settings
    oDB.nodes.item(nDBIndex).query.recordSet.setAttribute(sBOFBackup,
    "bofAction");
    oDB.nodes.item(nDBIndex).query.recordSet.setAttribute(sEOFBackup,
    "eofAction");
    // Close connection
    oDB.close();
    ++++++++++++++++++++++
    Here is code for the refresh button
    +++++++++++++++++++++
    topmostSubform.Page1.Button27::click - (JavaScript, client)
    sourceSet.BBCC.requery();
    +++++++++++++++++++++

    pguerett wrote:
    The other thing that might be happening is a refresh issue on the DropDownList. Try adding the command xfa.layout.relayout() after the database connection has been closed.
    Paul
    Good catch Paul!  Would you believe that I have been trying to get this resolved for almost two years! Works perfect now.
    Thank you,
      - Eric

  • Problem in populating the new field from the extract structure. Kindly help

    my requirement a new text field is added on R/3 side and I have to populate
    the same field into BW.
    In the R/3 a new customization table 'AAA' is created which will have
    code - char 3 and
    text - char 30.
    The code field is added to a table BBB.
    The SAP standard generic data source exracts data from the table BBB where in the new code field have been added.
    Now I can the see the code field in the extract structure and not in the data source as the filed has selection value 'A' when checked in the ROOSFIELD table.
    To populate the value in BW, I will be creating a Generic Master Data text wherein I fetch the values from the table 'AAA' which the fields code and text  and replicate the same in BW.
    In the reporting level, the code InfoObject will be selected as display both KEY and TeXT, by doing I can populate the values of TEXT in the reporting.
    But to achieve the same I need to add the field code in the ODS but cannot do the same because I am not able to see the field code in the data source.
    Kindly let me know how to achieve the same.
    Also let me know if there is any alternate solution to populate the text field in BW.
    Any Inputs will be appreciated.
    Thanks

    > You should get the userdatasources bound to the
    > columns and assign the values of the recordset to
    > each one and after that use "setLineData" to write in
    > the matrix.
    >
    > hope it helps
    Hi all,
    i have created tables (non BO Tables) directly on the SQL-server and want to use recordset to populate a user form matrix.
    Is there any workaround to achieve this using non BO tables?
    Please provide some sample code since it is a very urgent matter.
    regards
    Daniel

  • A matrix column that shows a field from a linked table

    Hello,
    I'm creating a custom UI form for a UDO of type document.
    This UDO (say FATHER) has one child table (say CHILD). I show its data in a matrix.
    Every line in CHILD links to a sales order line (RDR1).
    In the matrix I'd like to show:
    A) some columns from CHILD (I succeded)
    B) a linked button column that links to ORDR using CHILD.U_OrderEntry (I succeded)
    C) a column that shows RDR1.DocDueDate (how?)
    D) a linked button column that shows RDR1.ItemCode and links to OITM (how?)
    Something similar is done by B1 in pick list standard form (id 85), for instance.
    Can you help me solving issues C and D?
    I guess I should link my CHILD.U_OrderEntry and U_OrderLine with RDR1.DocEntry and LineNum.
    Many thanks!

    Hi Simone,
    I agree, my explanation was partial.
    When I am creating a new form, I'm basing every single piece of the UI on DataTable (I never use DBDataSource and UserDataSources only for Folders). One for the header, one for each Matrix/grid, etc.
    By doing this, it allows me to have the correct layout and validate the UI with the project manager (or the Customer, when this is me the project manager ).
    Then, I am creating the queries, to extract data from the DB exactly as the previously defined DataTables are expecting these data (so, calculating the LineId from the query...).
    And finally, this is the beauty of the design, DataTables allows to to extract (since 2007PL47?) the data from a DataTable as an xml String and to import it in a different DataTable.
    So, to make the full picture, I have a specific DataTable to execute queries, from which I'm extracting the xml definition to load it in the "UI's DataTable". It ends with a matrix.LoadFromDataSource...
    Definitions are staying as defined, querying and loading is sub-second time (depending on your SQL expertise), layout doesn't flicker...
    If you need an excerpt of code (frankly, I'd prefer you to write it with this "how to"), just ask.
    Regards,
    Eric

  • How to add a new field from SQL to report

    Post Author: Auburn
    CA Forum: .NET
    The field I am wanting to add to my report is not an actual field in SQL.  The field is actually a calculation done in the Select statement like this:  SELECT (SUM(CASE KILSHEET.Contract WHEN 1 THEN ((TOT_CARC_WEIGHT / 100) * 1.75) ELSE 0 END)) AS LSS here is the actual full SELECT: SELECT Sum(KILSHEET.PAY) As Pay, Sum(KILSHEET.Dead_Pay) As Dead_Pay, Sum(KILSHEET.GRADE_PREM) As Grade_Prem, Sum(KILSHEET.SORT_ADJ) As Sort_Adj, Sum(KILSHEET.SLOWS_PAY) As Slows_Pay, Sum(KILSHEET.RESALES_PAY) As Resales_Pay, Sum(KILSHEET.PLANT_CHARGE) As Plant_Charge, Sum(KILSHEET.OTHER_PREM) As Other_Prem, Sum(KILSHEET.NPB) As NPB, Sum(KILSHEET.SLOW_NPB) AS Slow_NPB, Sum(KILSHEET.RESALE_NPB) AS RESALE_NPB, Sum(KILSHEET.NPPC) AS NPPC, Sum(KILSHEET.SLOW_NPPC) AS SLOW_NPPC, Sum(KILSHEET.RESALE_NPPC) AS RESALE_NPPC, Sum(KILSHEET.NUMB_HEAD) AS NUMB_HEAD, Sum(KILSHEET.WEIGHT_FEE) AS WEIGHT_FEE, Sum(KILSHEET.SLOW_WEIGHT_FEE) AS SLOW_WEIGHT_FEE, Sum(KILSHEET.RESALE_WEIGHT_FEE) AS RESALE_WEIGHT_FEE, Sum(KILSHEET.WEIGHT) AS WEIGHT, Avg(KILSHEET.PER_LEAN)AS PER_LEAN, AVG(KILSHEET.ACTUAL_YIELD_PER) AS ACTUAL_YIELD_PER, AVG(KILSHEET.AVG_BACKFAT) AS AVG_BACKFAT, Sum(KILSHEET.TOT_CARC_WEIGHT) AS TOT_CARC_WEIGHT, Sum(KILSHEET.DIY) AS DIY, Sum(KILSHEET.DEAD) AS DEAD, Sum(KILSHEET.SLOWS) AS SLOWS, Sum(KILSHEET.RESALES) AS RESALES, Sum(KILSHEET.CONDEMNED) AS CONDEMNED, Sum(KILSHEET.DEAD_WEIGHT) AS DEAD_WEIGHT, Sum(KILSHEET.CONDEMNED_WEIGHT) AS CONDEMNED_WEIGHT, Sum(KILSHEET.SLOWS_WEIGHT) AS SLOWS_WEIGHT, Sum(KILSHEET.RESALES_WEIGHT) AS RESALES_WEIGHT, SUM((Kilsheet.TOT_Carc_WEIGHT / 100) * MarketPrice.mkprice) As TotalPrice,(SUM(CASE KILSHEET.Contract WHEN 1 THEN ((TOT_CARC_WEIGHT / 100) * 1.75) ELSE 0 END)) AS LSS FROM KILSHEET LEFT OUTER JOIN marketprice ON KILSHEET.Contract = marketprice.contract AND DATEPART(week, KILSHEET.KILLDATE) = marketprice.mkweek AND DATEPART(year, KILSHEET.KILLDATE) = marketprice.mkyear " & condStr + " " + locStr The problem with this is that my report is a Summary report.  It has to summarize multiple fields and the LSS calculation only needs to be calculated for certain records, hence the CASE.  Is there a way to add the LSS field to the report without it being physically part of the database? I am really struggling with this and any help would be greatly appreciated.  I hope I described this ok.

    Post Author: blairwheadon
    CA Forum: .NET
    This is what SQL Expressions are for.  I suggest you try using those (visible in the Field Explorer) to capture custom SQL field logic.
    Alterantively you could use a SQL command with your hand-written SQL.
    Thanks, Blair

Maybe you are looking for

  • File name from a path

    hi , there is a path "c:\abc\abc\abc\abc\abc.doc", i have to get file name from it. but i had to write a dynamic code which can get the file name from any given path.

  • Having issues on macbook pro with maverick

    Am having issues after downloading Maverick  the system is becoming very slow. The pinwheel keeps spinning. Any suggestions how to deal with this issue

  • Dual display presentation?

    Is there a way to display a keynote presentation on a projector and iPad at the same time? When I lecture the screen is behind me, and instead of turning around to look at the screen after each transition, I would much rather look down at my iPad. Sa

  • Stacking by Filename - please add

    I would like to see you add the ability to auto stack by filename. When I import my photos they have a filename. When I go to edit in CS3 LR changes from Raw (or JPG) and coverts to a TIF or PSD file, but it still keeps the same basic file name. Even

  • Why won't Itunes get my album artwork? It just says could not be found when all the info is the same as Itunes.

    Out of no where suddenly Itunes refuses to get my album artwork. The info is exactly the same as Itunes but it refuses to get any artwork. I tried signing in and out, then back in. Nothing seems to work! Why won't it get my album artwork?