Report - Numeric Format Change

Dear Friends
Based on UOM i want the Qty format should change for ex
if UOM = PCS THEN QTY SHOULD BE ROUNDUP
IF UOM = KGS THEN QTY SHOULD BE WITH 2 DECIMAL.
Please suggest how to configure in Report.
Sandy

Hello,
There are two ways to accomplish this requirement.
1.
Create formula column (let say CF_1) in the same data model group where the qty exists and in the property use Datatype as NUMBER and use the code inside that formula column like this...
function CF_1Formula return Number is
  vRetVal NUMBER;
begin
  IF :UOM='PCS' THEN
    vRetVal:=ROUND(:QTY,2);
  ELSE
    vRetVal:=ROUND(:QTY);
  END IF;
   RETURN vRetVal;
end;And in the report where you are using QTY field as source use the CF_1 as source it will work as you asked.
2.
In the layout editor where the QTY field exists. Click on QTY field and call the PL/SQL Editor by pressing F11 key from keyboard and us the code inside like this...
begin
  IF :UOM='PCS' THEN
    SRW.SET_FIELD(0,ROUND(:QTY,2));
  ELSE
    SRW.SET_FIELD(0,ROUND(:QTY));
  END IF;
  RETURN TRUE;
end;-Ammad

Similar Messages

  • Numeric format changes depending on Driver Version

    Scenario: JAVA application accessing Oracle 8.1.6 with last Oracle 9.2.0 JDBC Driver (classes12.zip) JDK1.3.
    We have found numeric format changes using old oracle.zip and new classes12.zip.
    With oracle.zip value 0.346 is returned
    With classes12.zip value .346 is returned.
    Why the format change depending on the driver version?
    Is the new format the right one?
    Many thanks.

    If you're working in CMYK, "softproof" your colors by choosing View->Overprint Preview. Note the keyboard shortcut
    If you're working in RGB, make sure the Creative Suite color management is synced. This is done through Bridge. May I suggest looking that up in Adobe Help.

  • How can I change the numeric format of the cursor coordinates display in LV 8.2

    Since LV 8.0 or so the cursor display window of a graph indicator seems to be a tree control. I couldn't find where to change the numeric format of the numbers displayed in that control. What did I miss?

    lecroy wrote:
    Maybe I'm not clear on what your looking for but I just use a property node and route the raw cursor data out to what ever function I want to run on it, then display it in a seperate field.  The nice thing with the property node is you can have multiple graphs linked together by one set of cursors all with different readouts. 
    Yes, of course that's an option and I guess I'll have to do it that way.
    The point is that I converted a pre-LV-8.x program to LV 8.5. In the program I had used the coordinates display field in the cursor legend to display the position, just the was the cursor legend is supposed to be used, IMO. And in pre-LV-8.x days it was possible to customize the numeric format property of the cursor legend (either directly or by property nodes). It seems that with LV 8.x NI chose to use a treeview control for the cursor legend. With that 'improvement' the numeric formatting flexibility was lost since now the conversion to the string content in the cursor legend's treeview is happening somewhere 'under the hood'.
    <rant> Why do they (NI) always try to 'improve' things (where nothing needs be improved) and sacrifice functionality on the way....? </rant>

  • Format change when report open in report expert

    Hi all,
    I am using report builder 6i and I create invoice report I have attached it with oracle ebs 11i and run it from
    concurrent manager. Now I have to open my invoice report into report expert software.
    when it opens into report experts, It change our report builder fonts and format both.
    suppose if item are 1 then invoice total depens upon number of items. so invoice total position is changed
    according to the number of items. If 1 items total move up and if more than 1 item total moves down.
    In this way my invoice format become changed and total did not maintain in same position.
    Thanks

    The Format is changed due to sizes of Repeating frames in the report layout as well as the fixed frames.
    you can use the border color of the frames to design the report layout.
    when your fixed frame is not in lined with the repeating frame objects and the anchor is not applied then the report output in PDF will not be disturbed
    while in the Excel format it will be as per the no. of fixed frames/objects in the first line will come in first A1 column of the Excel file ans next in the second and so on...

  • Change numeric format type under edit limits from Labview

    Hello,
    is it possible to change under Edit Limits the numeric format type (Hex, Decimal, Real...) from LabView? 
    Is there any way to change this types from Labview. Because i can't found an variable like step.result.numeric or what ever.
    I hope somebody know what i mean.
    thank you and best reguards

    Hi Tumbler,
    Within the TestStand Sequence Editor for a step which has limits, then on the Edit Limits dialog should be a control which will allow you to change the format which is set to <default>. I think you might have to click on another button which will bring up another dialog which will allow you to change the format. ( I haven't got testStand to hand at the moment, so I am working from memory).
    Hope this helps
    Regards
    Ray Farmer
    Regards
    Ray Farmer

  • Changing Oracle Report Output Format at runtime

    Dear All,
    I've custom Oracle Report in Oracle Apps., and would like to give the users an option to select the output format (XML, TEXT, PDF, etc.) whilst submitting the request.
    As a SYSADMIN, we can modify the Output Format value of the concurrent program(Oracle Report in this case) to one we like.
    But I would like the user to select this output format option at runtime, rather then hard coding at SYSADMIN level. For that I've to create a Value Set with the desired report output format options, and attach this to the concurrent program.
    My question is, how we can make the desired output format to work at runtime?
    If any one can help?
    Thanks,
    Sandeep

    Hi Steve,
    I couldn't get it...???
    I'm running an Oracle Report in Oracle Apps. release 11.5.9
    The default output format of this report is TEXT, which is defined in its concurrent program.
    This report is submitted using standard request submission screen, and after successful completion we can view the output by pressing "View Output" button on "Requests" screen. This will open an another window and we can view the output page by page. Using "Tools>Copy File..." menu option, we can view the same output in IE window.
    Now, how does your resolution fits here and how can I view the same report in XML format?
    Many Thanks,
    Sandeep

  • How can I tell that a default numeric format has been applied to a numeric limit step?

    I am working on generating custom HTML code for our test systems in order to reduce the 'footprint' of the standard HTML entries for numeric limits, multiple-numeric limit steps etc....
    For a Numeric Limit step, I can set the Numeric Format via the 'Limits' tab and select the pulldown arrow to select any format.  Does TestStand actually save this information with the step so I could possibly use this later?   I ask this because my modifications are within the 'ModifyReportEntry' Callback.   When I am modifying the code to generate new HTML within this callback, I have no idea if the developer has selected a Numeric Format for a given step OR simply left it as DEFAULT.
    To make matters more confusing, here is some more information....
    When I pause the execution in the callback I notice the following:
    Case 1:  User has selected a Numeric Format ( this example I will say 3 digits of precision ) %.3f. for a numeric limit step.
    Parameters.Result.Limits.Low = 10.000
    Parameters.Result.Limits.High = 20.000
    Parameters.Result.Numeric = 15.657
    Notice the numeric data is ALREADY formatted! Great, I can simply use this to generate my custom HTML table for the numeric limit step.
    Case 2 : User has left the numeric format to <Default> for the step.
    Parameters.Result.Limits.Low = 10
    Paramters.Result.Limits.High = 20
    Parameters.Result.Numeric = 15.65713515155
    Numeric data is NOT formatted.  I know that TestStand will apply the Default Numeric Format that is configured in the report options when it writes the report but since I am doing a custom report I am stuck.
    My question is how can I possibly tell that the data has already been formatted by TestStand in the ModifyReportEntry callback?  Is there some flag that I could check or anything?
    I do notice that the Parameters.ReportEntry string contains TestStand's default HTML code for the step and this is already properly formatted.. so as a possible workaround I could 'pick out' the data from this string but this is slow and time consuming.
    Thanks
    PH

    PH,
    You can find out if the numeric format has changed using the TestStand API. I use the following statement in my step's post-expression to find out the numeric format that TestStand uses for the step.
    Step.Limits.Low.NumericFormat
    If the string returned is an empty string, then it is the default format, otherwise, it's the one specified in the string.
    Hope this helps.
    Raj
    National Instruments
    Applications Engineer

  • How to store numeric format data in a database

    In order to properly format a report generated from data stored in a database using a TestStand schema,
    I would like to add formating information for numeric values to the database.
    My intent was to store the numeric format string data in a separate column in the MEAS_NUMERICLIMIT table in the database.
    By using this format string I can then format the numeric values in my report.
    I have successfully retrieved the numeric format string by calling the 'NI TestStand API 3.0', using the ActiveX/COM adapter.
    In the 'PropertyObject' class there is an action called 'Get Property'.
    This action can retrive the 'NumericFormat' property for a given object reference.
    The problem is that I don´t know HOW to do this in the dat
    abase logging schema.
    Can I use this method in the API to retrive and store the numeric format string in the database??
    Or is there any other way of achieving this functionality?
    All ideas for solutions are appreciated.
    Thanks in advance!

    Yes you can. I think it would be helpful if you explain in more detail what you are trying to do.
    >>>> Basically I am trying to reproduce the data sheet created by test stand by using the data in the database.
    Are you using an NI default schema or have you already customized it?
    >>>> I already have a custom schema that I created many years ago, But if I have to start with a 'newer' default schema it wouldn't be to much of a problem to incorporate my changes into it. (I had added Model number and Comment to UUT result table and provided support for custom step types, the custom step types are based on the default NumericLimit step type )
    If default, what about the schema is insufficient for what you want to do?
    >>>> In order to generate a datasheet from the data in the database that replicates the datasheet produced by teststand, I need the Formatted values for the test results and the test limits. So I'm thinking it would be easier for me to query the database for the formatted numbers (as strings) instead of having to query the database for the 'numeric value' and the 'format string' and then creating the string for my datasheet.
    Is the data and limits that you are trying to log custom properties or or is this for the NI numeric or multi-numeric step type?
    >>>> No using custom properties, just dealing with 'NumericLimit' step types
    I had looked at how the 'SequentialModel.Seq' calls the modelsupport2.dll to  to produce the data sheet entries.
         ProcessModelPostResultListEntry >
         Process Step Result >
         Get Step Result Body (Sequence) >
         Add Flagged Values >
         modelsupport2.dll >
         GetFlaggedValuesForReport_Html
    But, alas, I don't understanding the whole traversing concept.

  • Default numeric format in steps

    Hello,
    In my sequence, I have a step which call a IV in which I display numeric value of properties in TestStand. Those properties have default numeric format. So I want to display rhe number of digit as defined in report options (the value of those properties have the rignt number of digit in the report)
    I tried to use the GetFormattedValue method, but I didn't succreed
    So what I think to do is to get the default report format in report option and use it with the GetFormattedValue method. But it seems so me a little bit complicated.
    Do anybody know how to do it, or another way to do what I want
    Thanks
    I use TestStand 2013 and LabView 2013

    Hi Dave,
    You can modifiy the ReportOptions, if you have available, via the Override Callback Sequence ReportOptions.
    The ReportOptions container is passed to this Sequence during the early execution of the process model sequence, before it calls MainSequence.
    Therefore, if you include the ReportOptions Sequence in your sequence file, you will beable to make the change as Scott suggested.
    Regards
    Ray Farmer
    Regards
    Ray Farmer

  • TestStand Numeric Format

    I have two questions regarding numeric format and precision in TS.
    1) I have the format, in report options, set to %.13g. When I return a 0 into TS, TS displays "0" in the report. Is there a way to set this "0" to "0.000..." ?
    2) Also, if a function returns a value like .020 seconds. Is there a way to display this in the report as "20" and then I can set the units to "ms"?

    TreyB wrote:
    So, for your (1) recommendation...would this effect the precision for other actual values display if I change it to "%#0.13g" ?
    I'm not sure what you are asking here.  When you set a format for changing to a string or a display, it is only good for that one setting.  The "#0" just says to fill with 0s.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • Format changing when IDCS3 file exported to PDF

    I am using Acrobat 8 version 8.1.2, and InDesign version 5.0.2.
    I am noticing a very specific problem when exporting some files to PDF from InDesign.
    We often have a format where we have a numbered list of right-aligned number, followed by some text, a leader line, and then another number at the end of the line. This is set up with a left indent and a first line left indent (rather than using the numbered list options, we are required to do it this way where I work), and then the necessary tabs later in the lines.
    I am finding since we switched to IDCS3, that when I export to PDF, lines containing this format change in the PDF. The text that appears after the number in the front of the line is pushed over on top of the leader line, leaving a huge white space. On rarer occasions, it will move things in lines that have no indents, but contain tabs that aren't being used.
    I have been able to get the files to export correctly by removing the left indent and first-line left indent and using tabs instead (or by removing unused tabs). But we have hundreds of files set up in this manner so going in and changing how they are all set up is problematic to say the least. Many of these are also multi-line and not using the indents means we have to manually tab lines over.
    Is this a known issue? Does anyone know why this might happen and how I can prevent it?
    I tried posting in the Acrobat forums and it was suggested since it's an export issue that I might get more help from the InDesign folks.

    Given that the file is being exported to PDF and not going via a driver route, there really is no reason why changing the default printer should make a difference whatsoever in this particular case. Changing default drivers in Microsoft Office applications, yes, but for this situation, no. And since Acrobat doesn't change formatting, the issue sounds like some problem associated with InDesign. Please report this problem directly to Adobe Tech Support and be prepared to send them sample files. Thanks!
    - Dov

  • Jbdc sender adapter: problem whit numeric format

    hello!
    i have a jdbc (sql server)->xi->RFC interface in my XI 3.0 .
    On the table i'm reading a double field and i map it into a string field.
    But numeric format are changed inside XI.
    So when on table i have a number like this: 12.12345 on monitor i'll find this: 12.1234499999999999999
    And later on rfc too...
    any suggestion?

    Hi,
    What SP level you have.
    Are you using any other step in between your Source & Target field mapping?
    Try to implement this...
    /people/thorsten.nordholmsbirk/blog/2006/08/25/new-arithmetic-and-statistical-functions-in-message-mappings-in-sp18
    Regards,
    Sarvesh

  • Format Changes In Chart Anlyzer Not Saved

    Post Author: Ray Brack
    CA Forum: Charts and Graphs
    I have created a vertical bar chart in CR v8.5 and have made several formatting changes using Chart Analyzer, changed the height of the graph, fonts, font rotation, etc.  However after saving the changes and previewing the report most of the changes are lost.  Furthermore those changes that did stick are limited to a single graph, the remaining graphs within the group retain the original settings.
    Does anyone have a solution to this problem or is charting in CR v8.5 as flaky as it seems?
    Thanks in advance...

    Post Author: Ray Brack
    CA Forum: Charts and Graphs
    In case anyone else comes across this problem:
    1) After making the changes right-click the chart in Analyzer and select "Apply changes to all charts"
    2) Right-click the chart again and select "Save as template"

  • Non-Interactive Report Break Formatting

    I have a non-interactive report that is very large and I am trying to use break formatting to provide subtotals. It works, but is quite ugly. Can anyone tell me where I might find a list of the various substitution strings that can be used for controlling the appearance of the breaks? For example, right now when it breaks for a change in "Payor Name", the subtotal row is labeled "Total for Payor Name". It would be much friendlier if the row label said "Total for Aetna" when Aetna is the Payor Name and "Total for Cigna" when the Payor Name is Cigna, etc. For example
    [Parent Name|http://ndhoast.tsh.mis.mckesson.com:7778/pls/apex/f?p=123:75:720425469268847:fsp_sort_1_desc::RP&fsp_region_id=27444927281350588|Sort by this column] [Payor Name|http://ndhoast.tsh.mis.mckesson.com:7778/pls/apex/f?p=123:75:720425469268847:fsp_sort_2::RP&fsp_region_id=27444927281350588|Sort by this column] ClaimType ST [RH Payor ID|http://ndhoast.tsh.mis.mckesson.com:7778/pls/apex/f?p=123:75:720425469268847:fsp_sort_5::RP&fsp_region_id=27444927281350588|Sort by this column] [Naic/EmdPayor Id|http://ndhoast.tsh.mis.mckesson.com:7778/pls/apex/f?p=123:75:720425469268847:fsp_sort_6::RP&fsp_region_id=27444927281350588|Sort by this column] LOC TRX [TRX Count|http://ndhoast.tsh.mis.mckesson.com:7778/pls/apex/f?p=123:75:720425469268847:fsp_sort_9::RP&fsp_region_id=27444927281350588|Sort by this column] [TRX Dollar Amt|http://ndhoast.tsh.mis.mckesson.com:7778/pls/apex/f?p=123:75:720425469268847:fsp_sort_10::RP&fsp_region_id=27444927281350588|Sort by this column]
    World Insurance Company World Insurance Company I - COMM085001 75276 DBQ CLM 18 $40,679.82
    Total for: ClaimType *18* *$40,679.82*
    P - COMM098401 75276 DBQ CLM 457 $129,959.38
    Total for: Payor Name *475* *$170,639.20*
    Total for: Parent Name *475* *$170,639.20*

    This has been an area in need of some attention for quite a while, in my opinion.
    Re: Formatting of Reporting Totals
    Re: Report Break Formatting
    I've just looked at 3.2, and the help messages are the same &ndash; not at all helpful &ndash; ones I remember from 1.6.
    I'm seem to recall this was raised on one of the enhancement request threads, but it doesn't seem to have been touched...

  • How to convert standard (Western) numerical format to Indian format?

    I have been doing a lot of research and while I've repeatedly found the function module to convert numerical amounts in to words (HR_IN_CHG_INR_WRDS) I haven't found a way to convert a standard numerical format, 121,212,123 in to the Indian format of 12,12,12,123 or 505,000 to 5,05,000 for example.
    I repeatedly saw in other threads people were suggesting to change the decimal format of the currency in OY01 however the Indian format option is not listed.  We only have the following options:
    X 1,234,567.89
    Y 1 234 567,89
        1.234.567,89
    Whereas I would need 12,34,567.89.
    Is there a Function Module we can use? Is there some CIN add-on we need to import to make the additonal decimal format available?
    Thanks in advance

    Check [this link>>>|http://www.xe.com/ucc/convert.cgi?Amount=10000000&From=USD&To=INR&image.x=62&image.y=20&image=Submit]
    else.. You might have to write a conversion routine...
    DATA: curr TYPE netwr,
          c(20) TYPE c.
    curr = '1234567890'.
    WRITE:/ 'before:', curr.
    WRITE curr TO c USING EDIT MASK '__,__,___.__'.
    WRITE:/ 'after:', c.

Maybe you are looking for