How to select the correct formula ?

Hi all,
I intend to do one report which will allow user to select from parameter for one field, either is "QTY" or "AMOUNT/VALUE".
If the user select "QTY" then, the report will call the formula defined say cf_1q, if the user select "AMOUNT/VALUE" then it will call formula say cf_1v.
Btw, this two selection will display only one.
How should I do that ?
Rgds
Lim

There are several options:
- You could have only one format trigger that checks the user parameter and returns the correct value.
- You could have a third formula column that checks the user parameter and returns the appropriate formula column
- You could have two fields on top of each other and put a format trigger against each to show only the relevent one.
- You could have one field and a format trigger against that does an srw.set_field_number() call with the appropriate value.
- ...

Similar Messages

  • How to select the correct routing for production order?

    In table PLPO i have 4 different group numbers for a particular routing. I'm wondering how a production order, created in CO01, selects which one to use. Our base quantity is dz/hr. When I create an order for a particular material, it shows up as 290 as the base quantity. The group 1 is 400dz/hr, not 200. Why does the order choose this group number and not the group number 1.
       Here is a screen from PLPO table.
       Here is a screen showing the material master.
       This is an image of the order details within the created order.

    PLPO contains operations
    The planselection would be based on PLKO entries.
    Please check online help to first get a better understanding on how routings are selected.
    Routing Selection - Production Orders (PP-SFC) - SAP Library   
    Automatically Selecting a Routing - Production Orders (PP-SFC) - SAP Library
    Definition of Base Quantity for Operation:
    "Quantity of the material to be produced to which the standard values of the
    operation refer"

  • How to select the correct size

    I know how to export a project from imovie10 but I am not sure what size to select. I want to burn a DVD to playback on a 50inch plasma Panasonic HDTV, Can anyone help please?

    Which formats are supported by your TV depend on the TV. I have a recent TV that plays the 1080p MP4 files created by iMovie without problem. My parents have a bit older TV that doesn't play the 1080p MP4 files, but it does play the 720p MP4 created by iMovie. So you might do a test using the 720p export in iMovie. Otherwise, you can look up in the manual of your TV what formats are supported by your TV and use MPEG Streamclip to convert the 1080p MP4 to one of the supported formats.

  • How do I select the correct ram for upgrade to iMac 8,1?

    How do I select the correct ram for upgrade on my iMac 8,1? When I look up information online, I believe that I have SO-DIMM ram. Do I need to purchase SO DiMM? I want to upgrade to Maverick and I think I was told that I need DDR2 or SDRAM. My model # is A1224, if that helps.

    Welcome to Apple Support Communities
    OS X Mavericks requires 2 GB of RAM at least, but I recommend at least 4 GB of RAM.
    You have got an Early 2008 iMac. You can buy more RAM at OWC or Crucial. Your Mac supports 6 GB of RAM

  • How to extract the Fast Formula Body through database?

    Hi All
    The Oracle fast formulas are stored in the ff_formulas_f table under the column formula_text having the datatype long. I want to extract the formula text through back end. When I use the statement, Select formula_text from ff_formulas_f, I am getting only the first line.
    How to extract the full formula text?
    Regards
    Rahman

    Here's a unix shell script to do it for you based on the info given by the other posters.
    #!/bin/sh
    if \[ "$1" == "" \]; then
    echo Syntax: $0 FAST_FORMULA_NAME
    exit 1
    fi
    ffname=`echo $1|tr \[:lower:\] \[:upper:\]`; export ffname
    sqlplus -silent $ORAUSER/$ORAPASSWD <<END
    set define off serveroutput on format wrapped linesize 512 pagesize 0 feedback off verify off heading off echo off pause off long 100000
    column formula_text format a512;
    select formula_text from ff_formulas_f where formula_name = '$ffname';
    exit;
    END
    Also this will list the formula names given a substring:
    #!/bin/sh
    if \[ "$1" == "" \]; then
    echo Syntax: $0 FAST_FORMULA_NAME
    exit 1
    fi
    ffname=`echo $1|tr \[:lower:\] \[:upper:\]`; export ffname
    sqlplus -silent $ORAUSER/$ORAPASSWD <<END
    set define off serveroutput on format wrapped linesize 512 pagesize 0 feedback off verify off heading off echo off pause off long 5000
    select formula_name from ff_formulas_f where formula_name like '%$ffname%';
    exit;
    END

  • How to locate the correct image file before reading/saving it

    Hi,
    I would like to find out how to copy/save/read image files from certain website in Java, particularly to locate the right one from various relative URL links on the same website. Below is an example to look at:
    On the main web page
    By selecting (http://www.abc.com/Public/Details.aspx?adid=2007103609) on a tiny camera icon that consist of source code (<td class="even"><a target="_blank" href="http://www.abc.com/Public/Details.aspx?adid=2007135110"><img src="/images/camera.gif" width="19" ...></a></td>) directed me to another page with the actual photo.
    The source code of this secondary page where the photo is located are as follows:
    <script language="JavaScript" type="text/javascript"><!--
    </script>
    <style type="text/css">@import url("http://fdimages.def.com.au/cui/netstrip-20050427.css");</style>
    <div id="networkStripTop">
    <a href="http://www.def.com.au/" onclick="linktop(this);" target="_top"><img src="http://fdimages.def.com.au/cui/digital.gif" height="17" width="95" class="logo" alt="DEF Digital" /></a>
    <div class="links">Any suggestion would be much appreciated.
    Many thanks,
    Jack

    Hi All,
    Could someone give me a hand with suggesting on how to locate the correct links (from multiple web pages) of the image file? I still could not proceed further on this issue.
    There is no problem with saving/reading the file once it is accurately identified.
    Please move it to the Java Technology & XML forum if it is not already in it.
    Many thanks,
    Jack

  • Data types used in a sub VI - selecting the correct input and output types?

    data types used in a sub VI - selecting the correct input and output types?
    I can never work out how to choose an input or output format for Subvi's.
    I want to create a SubVI for the code in red. I needs an VI Server Reference compatible input and an output that goes to  a waveform.
    Thanks in advance.
    Attachments:
    data types.PNG ‏11 KB

    GerdW,
    I realise now I have taken us in the wrong direction. apologies for that.
    History, this is not my code and I do not own the process and NOT my preferred method of using it. I was looking for a simple way to make subtle changes.
    What we do - We use these programs to collect data from typically 6 pressures and 6 temperature probes and capture RS232 / USB VISA strings from sensors.
    So every few weeks / months or up to a year we rearrange each sensor location to suit the new process. I did not write the code. I cannot change the procedure too much without resistance.
    So headers in the CSV file have the DaqMX string passed through the code. Great.
    Other data to the CSV file comes from calculations or extracted from the VISA string. Hence why we have headers with "Untitled 1 ()". These values also go to a History Chart.
    So I was looking for a simple way to read the the local variable label as it is always linked to the front page indicator. People can cope with editing the indicator label, save the VI and hit run.
    TL;DR - GerdW is now a psychologist.
    Attachments:
    data to csv and history chart.png ‏1043 KB

  • Selecting the correct membership type

    Hello,
    I am wondering if I selected the correct type of Creative Cloud membership a couple of months ago upon signup.
    I am a photographer and use only Lightroom and Photoshop. Upon switching over to Creative Cloud, I selected the "Creative Cloud for Teams" but now I am thinking that this may not have been the best option. I work alone and only need the two apps.
    Can I switch my membership to something that makes more sense for my business?
    Thanks!

    Cancel what you don't want and buy what you do want
    Cancel http://helpx.adobe.com/x-productkb/policy-pricing/return-cancel-or-change-order.html
    -or by telephone http://helpx.adobe.com/x-productkb/global/phone-support-orders.html
    Special Photography Plan (includes Photoshop & Lightroom & Bridge & Mobile Lightroom)
    http://helpx.adobe.com/creative-cloud/faq/mobileapps.html
    http://helpx.adobe.com/photoshop/kb/differences-photoshop-creative-cloud-photography.html
    Contact Adobe to find out how to do this without paying a penalty
    Adobe contact information - http://helpx.adobe.com/contact.html

  • Selecting the correct iPhone model

    How do I select the correct model (A1429 GSM) when I purchase it online on Apple Canada? I did not see any option till the payment page, so I did not finish the purchase.

    Only the A1428 is sold in Canada.
    <http://www.apple.com/iphone/LTE/>

  • How to select the first record?

    Hi,
    Could anyone tell me how to select the first record of every
    group?
    ex, I want to find out every customer their first purcaseDate.
    CustomerID PurcaseDate Region
    A00000001 2001/01/01 AA
    A00000001 2001/02/02 AA
    A00000002 2001/03/01 AC
    A00000002 2001/05/07 AC
    A00000003 2001/03/05 DD
    result:
    A00000001 2001/01/01 AA
    A00000002 2001/03/01 AC
    A00000003 2001/03/05 DD
    Thanks

    Vincent,
    You could do it as Carl suggested, with a couple of
    corrections.  You would need to include the CustomNo column in
    the order by clause of your cursor.  You would also need to add
    a where clause to your update statement, otherwise everywhere
    Region in the table would be updated with the same value of the
    last CustomNo in the cursor, regardless of the CustomNo in the
    table.  See corrected code below:
    DECLARE
      CURSOR     cust
      IS
      SELECT     DISTINCT CustomNo, Region, Purchase_Date
      FROM       my_table
      ORDER BY   CustomNo, Purchase_Date, Region;
      c_customer VARCHAR2 (9) := '...';
      c_region   VARCHAR2 (2) := '..';
      cntr       NUMBER := 0;
    BEGIN
      FOR x IN cust
      LOOP
        IF x.CustomNo != c_customer
        THEN
          c_customer := x.CustomNo;
          c_region := x.Region;
        ELSE
          UPDATE my_table
          SET    Region = c_region
          WHERE  CustomNo = c_customer;
          cntr := cntr + 1;
          IF cntr = 25
          THEN
            COMMIT;
            cntr := 0;
          END IF;
        END IF;
      END LOOP;
      COMMIT;
    EXCEPTION
      WHEN OTHERS THEN 
        NULL;
    END;
    Another option is that you could just use one update statement,
    like this:
    UPDATE my_table a
    SET    Region =
           (SELECT DISTINCT Region
            FROM   my_table b
            WHERE  (CustomNo, Purchase_Date) IN
                   (SELECT   CustomNo, MIN (Purchase_Date)
                    FROM     my_table
                    GROUP BY CustomNo)
            AND    a.CustomNo = b.CustomNo)
    Barbara

  • How to select the data from a Maintainance View into an internal table

    Hi All,
    Can anybody tell me how to select the data from a Maintainance View into an internal table.
    Thanks,
    srinivas.

    HI,
    You can not retrieve data from A mentenance view.
    For detail check this link,
    http://help.sap.com/saphelp_nw2004s/helpdata/en/cf/21ed2d446011d189700000e8322d00/content.htm
    Regards,
    Anirban

  • How to select the download location? its automatically downloading to users folder in c drive. i wanna change it..plz help me out......

    how to select the download location? its automatically downloading to users folder in c drive.. i wanna change to my desktop...plz help me out...

    Tools -> Options -> Save files to -> Click browse button and browse for folder where you want to save the file.

  • How to select the all object at a time while installing business content

    Hi All,
    how to select the all object at a time while installing business content Please let me know if nay document is there
    Thanks Ahmed Pasha

    Hi,
    Please check out the below links
    [Business content Installation|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/102906a4-f13d-2e10-7199-ce316ff254b8?QuickLink=index&overridelayout=true ]
    [BI Content|http://wiki.sdn.sap.com/wiki/display/BI/InstallingBusinessContent]
    Hope it helps.
    Regards,
    AL

  • How to select the Alt BOM in the Sub-Contract PO

    Dear All,
    please tell me how to select the alternative BOM in the sub -contracting purchase order.
    for the above said requirement i have cretaed production versions and the BOMselction method also i have selcted in the material master data as "2" means BOM by produ ction version.
    so how can i select the alt BOm in theSub-contracting PO.
    Thanx in advanvce
    regards
    Srinivas

    Hi,
    SAP help says you have to write the production version in the subcontracting info record:
    http://help.sap.com/saphelp_46c/helpdata/en/b2/fa1ed4d51d11d1a69e0000e83235d4/frameset.htm
    http://help.sap.com/saphelp_46c/helpdata/en/35/b0e96787a62488e10000009b38f9b7/frameset.htm
    (I've checked a subcon-info record but sorrowfully I havent found a field for this...if you can find please let me know)
    BR
    Csaba

  • How to select the vendor from the source list in the PO(me21n) screen ??

    Hi
    How to select the vendor from the source list in the PO(me21n) screen.
    Is there any Sources of Supply tab in the PO just like we have in the PR.
    I don't want a PO raised from a PR which has got the Vendor assigned to it already.
    Or the SAP doesnot provide the option of Source list/Assign source/Sources of Supply .....in the PO.
    Kindly reply

    There is not any facility available for Source Determination in PO. Only you can select the line item and click Menu Environment > Source List and view the list of sources available for the material but you can not chooss and assign. If you wan to assign the vendor then change the vendor already entered in PO and put the desired vendor.

Maybe you are looking for

  • Using Variables in ODI

    I am attempting to insert 20 years of data into our Data Warehouse using ODI. The Problem is that the query to retrieve the data takes upwards of 48+ hours. That is just the query running in a query tool. So what i would like to do is to run the quer

  • Scroll with mouse

    Hi all .. Just an other question ... i'd like to scroll with he mouse wheel a list box as in windows programms. How can i do that, in a easy way ? thanks for your answers

  • There is a little red circle with a 2 in it over my iWeb icon

    Hi There, I have a rather strange problem and I am a bit embarrassed by it, because I don't know what it means. Anyway when I open iWeb 09, there is a little red circle with a little number 2 in it appears over the iWeb launch-bar icon. See this scre

  • Query Generator Variable Alias

    Hi, How can I create an alias for variables in scripts made with query generator? For example, if i include where clauses such as begin date and end date using greater/less than, they will be both shown in the criteria selection box as "Posting Date.

  • My gmail says I cannot recieve mail because my user name or password sure not correct they are correct what should I do

    Subject My gmail says I cannot recieve mail because my user name or password sure not correct they are correct what should I do