Searching for Calculation function like "@TONUMBER()" (Business Rules)

Hello,
I am searching for a calculation function like "@TO_NUMBER()" or a workaround.
My current problem is as follows:
@CONCATENATE("AAA_",(@SUBSTRING("BBB_2010",4) - 1) doesnt work --> SUBSTRING function returns "2010" (as STRING value, but then I cannot substract 1).
Besides I am missing another function like @TO_STRING(), too, because @CONCATENATE("AAA_",2010) doesnt work - @CONCATENATE expects STRING and not NUMBER.
Can anybody help?
Thanks & kind regards
André

Hi Krish,
thanks, but I would like to avoid using cdfs...
I have another idea, but it doesnt work, too (I opened another thread):
calculating with temporary variables doesnt work - does anybody knows the reason (and have a workaround for me)?
Herewith my code:
VAR varLoopAmount = 15;
VAR varShiftValue = 1;
LOOP(varLoopAmount)
"Schadenquote BOZ" = "Schadenquote BOZ" + @SHIFT(&GCS_SchwaRue_Historie,varShiftValue,@ICHILDREN(&GCS_SchwaRue_Historie));
varShiftValue = varShiftValue + 1;
ENDLOOP;
error message: Detail:(1012004): Invalid member name [varShiftValue]
Thanks for help
André
Edited by: user10660408 on 04.06.2010 12:25

Similar Messages

  • Search for a function module for deleting document originals (DMS)

    Hi,
    I'm searching for a function module to delete originals in documents (like manually with transaction cv02n). I'm only able to set an delete mark with the module 'BAPI_DOCUMENT_DELETE'.
    The module 'BAPI_DOCUMENT_CHANGE2' can only add new originals to an existing document. I need a possibility to delete all originals in an document without deleting the document itself.
    Has anyone an idea?
    Thanks.
    Jan-Christian Treusch

    Many thanks!
    That's especially the method I've searched for so long....
    best regards.
    Jan-Christian Treusch

  • How can I search for a string like a partial IP address in the global search

    When searching for a string like "10.255." the global search finds messages containing "255" or "10" and both.
    This happens no matter whether quotation is used or not.
    When quotation is used it probably will match on the given order as well, but beeing in the timezone '+0100' the string "10" is always found first (in the email headers...).
    Is there a way to tell the global search not to use '.' or any other character as whitespace?

    When searching for a string like "10.255." the global search finds messages containing "255" or "10" and both.
    This happens no matter whether quotation is used or not.
    When quotation is used it probably will match on the given order as well, but beeing in the timezone '+0100' the string "10" is always found first (in the email headers...).
    Is there a way to tell the global search not to use '.' or any other character as whitespace?

  • TS1424 when I search for an artist like Paul weller for example I get an error. then i tunes closes. whats happening?

    hi, when i search for an artist like for example Paul weller, I get an error and then i tunes closes.  whats happening??

    Sorry, but it doesn't help JTANNA.
    What is your definition of "more efficiently"? If it's limitation of search results, branded search, and limitation of styling your results then google search is more efficient. Real developers rely on their own developments. For example: how can google search display results from a password-protected site? They can't.
    best,
    Shocker

  • Is there a System Menu for special Functions, like WIPE CACHE?

    On my DX, there was a method of pressing and holding the Menu button & Power up button to get to special "Systems" functions like WIPE CACHE & FACTORY RESET. Does such a procedure exist for the Razr ?  I know about SAFE MODE and was able to see that work. (Although my finger hurt having to press the up/down Volume buttons for so ling. )

    While I have done this quite a few times (and this has made my phone a bit more responsive when it gets sluggish) you should be careful and watch what you are doing. If you select the wrong menu option you may end up having to contact Verizon for support.
    Wiping the cache partition
    Power the phone off
    Press and hold the volume down, volume up and power button until the recovery screen appears.
    Use the volume down button to select "Recovery" and then press the volume up to confirm the selection.
    The phone will do a little reboot thing, display the dual core logo thing and then an Android next to a triangle with a yellow exclamation point will appear. At this point press the volume up and volume down buttons at the same time.
    If you did everything correctly you are now at the Android System Recovery Screen. To clear the cache press the volume down button until you have selected "wipe cache partition". Press the power button to confirm the selection and it will wipe the cache partition.
    Once the cache is cleared press the volume up button to select "Reboot System Now" and press the power button to confirm the selection. If the "Reboot System Now" is already selected then just press the power button to confirm the selection and the phone will reboot.

  • Search for document function in Ipad Reader

    It seems that there's no such function.
    I refer to the possibility of searching for title or part of it.
    Am I wrong ?
    Thanks
    Livio

    Hi Livio,
    1. You can search in documents list for file names. Go to documents tab from, pull down the list in right pane and it will give a search bar. Just type in it and it will search through the list.
    2. You can search in the document for text in file. Tap on find icon in top toolbar (search icon). Just type your search text in it and press search.
    -Charu 

  • When I search for a website like Star Bucks in google, it comes up in the search with that being my #1 choice but when I click on it, it takes me to an advertisement. Why is this doing this and how can I stop it?

    See above.

    Sounds like search re-direct Malware.
    Install, update, and run these programs in this order. They are listed in order of efficacy.<br />'''''(Not all programs detect the same Malware, so you may need to run them all to solve your problem.)''''' <br />These programs are all free for personal use, but some have limited functionality in the "free mode" - but those are features you really don't need to find and remove the problem that you have.<br />
    ''Note: If your Malware infection is bad enough and you are mis-directed to URL's other than what is posted, you may have to use a different PC to download these programs and use a USB stick to transfer them to the afflicted PC.''
    Malwarebytes' Anti-Malware - [http://www.malwarebytes.org/mbam.php] <br />
    SuperAntispyware - [http://www.superantispyware.com/] <br />
    AdAware - [http://www.lavasoftusa.com/software/adaware/] <br />
    Spybot Search & Destroy - [http://www.safer-networking.org/en/index.html] <br />
    Windows Defender: Home Page - [http://www.microsoft.com/windows/products/winfamily/defender/default.mspx]<br />
    Also, if you have a search engine re-direct problem, see this:<br />
    http://deletemalware.blogspot.com/2010/02/remove-google-redirect-virus.html
    If these don't find it or can't clear it, post in one of these forums for specialized malware removal help: <br />
    [http://www.spywarewarrior.com/index.php] <br />
    [http://forum.aumha.org/] <br />
    [http://www.spywareinfoforum.com/] <br />
    [http://bleepingcomputer.com]

  • Searching for deailed info on code formatting rules

    SQL Developer 3.2.20.09
    Am looking for some detailed explanation of the various options for the SQL Formatting rules. The help, under 'Database: SQL Formatter' is pretty thin. I'd like to see something that explains the behavior of each discreet formatting option. While some may seem self-evident, not all are and even those that appear to be don't seem to behave the way someone might think or want. It would be nice if there were some detailed document to help with "that's not what I wanted" types of questions.

    Hi EdStevens,
    There is currently an option to put in newlines *"Line Breaks->More Newlines"* after the format (around blocks/loops)
    (and after the formatter has stripped the users original newlines). (The option is off by default)
    I added newlines where it seemed best and achievable in the time available.
    See the example below for formatted output
    I have not received any feedback on this - it is off by default.
    The code below(1) shows output before and after this option is applied uses the test PLSQL code already in the screens for setting the formatter options.
    -Turloch
    SQLDeveloper Team
    (1)Code after and before formatting follows:
    After:
    /* Comment... embedded in double quotes "select embedded_double_query from mytable" */
    /* Embedded in single quotes 'select embedded_single_query from mytable' */
    CREATE OR REPLACE
    PACKAGE BODY test1
    IS
      g_column1               VARCHAR2(17) := NULL;
      g_column2               VARCHAR2(52) := NULL;
      g_column3_from_column22 VARCHAR2(25) := NULL;
      g_column_4711           VARCHAR2(11) := NULL;
    FUNCTION testfunction(
        p_column12 IN VARCHAR2)
      RETURN VARCHAR2
    IS
    BEGIN
      IF NVL(g_emplid1,'X') <> p_emplid THEN
        BEGIN
          FOR emp_rec IN c_empl
          LOOP
            --Align on comments example
            SELECT 1
            INTO var
            WHERE EXISTS
              (SELECT col1, -- first field
                longcol2,   --second field
                midcol3,    -- 3rd field
              FROM tble1
              WHERE ((1 +1)=2)
              AND (22222*3 = 44)
            -- align || at end of line example
            SELECT 1
            INTO var
            WHERE EXISTS
              (SELECT col1 || longcol2 || midcol3 || col4 , col1 FROM tbl
            IF emp_rec.empl_rcd# > 0 THEN
              INSERT
              INTO table1
                  col1,
                  col2,
                  col3,
                  col4,
                  col5,
                  col6,
                  col7
              SELECT price.col1 AS col1,
                price.col2      AS col2,
                price.col3      AS col3,
                MAX(price.col4) AS col4,
                MAX(price.col5) AS col5,
                MAX(price.col6) AS col6, -- comment1
                MAX(price.col7) AS col7
                /*  comment2 */
              FROM
                (SELECT store.column1,
                  -- =========================================
                  -- =========================================
                  CAST (store.column2 AS INTEGER) AS column2,
                  store.column3,
                  store.column4,
                  store.column5,
                  SUBSTR(store.column6,11,1) AS column6,
                  store.column7              AS column7
                FROM
                  (SELECT library.column1,
                    library.column2,
                    library.column3,
                    CASE library.column4
                      WHEN cheap
                      THEN digits(library.column27) concat library.column28
                      ELSE 123456
                    END AS column4,
                    CASE library.column5
                      WHEN expensive
                      THEN digits(library.column27) concat library.column28
                      ELSE 123456
                    END AS library.column6,
                    CASE column7
                      WHEN free
                      THEN digits(library.column27) concat library.column28
                      ELSE 123456
                    END AS column7
                  FROM
                    (SELECT INTEGER(SUBSTR(onelibrarysales.column1,11,10)) AS column1,
                      SUBSTR(onelibrarysales.column2,21,10)                AS column2 ,
                      onelibrarysales.column3,
                      onelibrarysales.column4,
                      SUBSTR(onelibrarysales.column5,31,6) AS column5,
                      SUBSTR(onelibrarysales.column6,37,2) AS column6,
                      SUBSTR(onelibrarysales.column7,39,6) AS column7
                    FROM
                      (SELECT alllibrarysales.column1,
                        alllibrarysales.column2,
                        MAX(alllibrarysales.column3)                                                                                                                            AS alllibrarysales.column3 ,
                        MAX(CHAR(alllibrarysales.column4,iso) concat CHAR(alllibrarysales.column5,iso) concat digits(alllibrarysales.column6) concat (alllibrarysales.column7)) AS column5
                      FROM
                        (SELECT libraryprod.column1,
                          libraryprod.column2,
                          libraryprod.column3,
                          libraryprod.column4,
                          libraryprod.column5,
                          libraryprod.column6,
                          libraryprod.column7
                        FROM
                          (SELECT tv.column1,
                            tv.column2,
                            MAX(digits(tv.column3) concat digits(tv.column4) ) AS librarymax
                          FROM db1.v_table1 tv
                          WHERE tv.column1 <> 'Y'
                          AND tv.column1   IN ( 'a' , '1' , '12' , '123' , ' 1234' , '12345' , '123456' , '1234567' , '12345678' , '123456789' , '1234567890' , '1 12 123 1234 12345 123456 1234567 12345678' , 'b' , 'c' )
                          AND tv.column2   >= DATE(tv.column4)
                          AND tv.column3    < DATE(tv.column15)
                          GROUP BY tv.column1,
                            tv.column2
                          ) AS libraryprod,
                          db1.table2 th
                        WHERE th.column1 =libraryprod.column1
                        AND th.column2   =libraryprod.column2
                        ) AS alllibrarysales
                      GROUP BY alllibrarysales.column1,
                        alllibrarysales.column2
                      ) AS onelibrarysales
                    ) AS library
                  LEFT OUTER JOIN db1.v_table3 librarystat
                  ON librarystat.column1    = library.column1
                  AND librarystat.column2   = library.column2
                  OR ( librarystat.column4  = library.column4
                  AND librarystat.column5   = library.column5 )
                  AND ( librarystat.column5 = 'I'
                  OR librarystat.column4    = 'Gold'
                  OR librarystat.column5    = 'Bold' )
                  AND librarystat.column6  <= 'Z74'
                  ) AS x
                ) AS price
              WHERE price.column1 < 'R45'
              OR ( price.column2  = 'R46'
              AND price.column3   = 6 )
              GROUP BY price.column1,
                price.column2,
                price.column3,
                price.column4,
                price.column5,
                price.column6,
                price.column7 ;
            END IF;
          END LOOP;
        END;
      END IF;
    END testfunction;
    /*  Multi line comment */
    -- ** Several single line comments -
    END
    PACKAGE;
    Before:
    /* Comment... embedded in double quotes "select embedded_double_query from mytable" */
    /* Embedded in single quotes 'select embedded_single_query from mytable' */
    CREATE OR REPLACE
    PACKAGE BODY test1
    IS
      g_column1               VARCHAR2(17) := NULL;
      g_column2               VARCHAR2(52) := NULL;
      g_column3_from_column22 VARCHAR2(25) := NULL;
      g_column_4711           VARCHAR2(11) := NULL;
    FUNCTION testfunction(
        p_column12 IN VARCHAR2)
      RETURN VARCHAR2
    IS
    BEGIN
      IF NVL(g_emplid1,'X') <> p_emplid THEN
        BEGIN
          FOR emp_rec IN c_empl
          LOOP
            --Align on comments example
            SELECT 1
            INTO var
            WHERE EXISTS
              (SELECT col1, -- first field
                longcol2,   --second field
                midcol3,    -- 3rd field
              FROM tble1
              WHERE ((1 +1)=2)
              AND (22222*3 = 44)
            -- align || at end of line example
            SELECT 1
            INTO var
            WHERE EXISTS
              (SELECT col1 || longcol2 || midcol3 || col4 , col1 FROM tbl
            IF emp_rec.empl_rcd# > 0 THEN
              INSERT
              INTO table1
                  col1,
                  col2,
                  col3,
                  col4,
                  col5,
                  col6,
                  col7
              SELECT price.col1 AS col1,
                price.col2      AS col2,
                price.col3      AS col3,
                MAX(price.col4) AS col4,
                MAX(price.col5) AS col5,
                MAX(price.col6) AS col6, -- comment1
                MAX(price.col7) AS col7
                /*  comment2 */
              FROM
                (SELECT store.column1,
                  -- =========================================
                  -- =========================================
                  CAST (store.column2 AS INTEGER) AS column2,
                  store.column3,
                  store.column4,
                  store.column5,
                  SUBSTR(store.column6,11,1) AS column6,
                  store.column7              AS column7
                FROM
                  (SELECT library.column1,
                    library.column2,
                    library.column3,
                    CASE library.column4
                      WHEN cheap
                      THEN digits(library.column27) concat library.column28
                      ELSE 123456
                    END AS column4,
                    CASE library.column5
                      WHEN expensive
                      THEN digits(library.column27) concat library.column28
                      ELSE 123456
                    END AS library.column6,
                    CASE column7
                      WHEN free
                      THEN digits(library.column27) concat library.column28
                      ELSE 123456
                    END AS column7
                  FROM
                    (SELECT INTEGER(SUBSTR(onelibrarysales.column1,11,10)) AS column1,
                      SUBSTR(onelibrarysales.column2,21,10)                AS column2 ,
                      onelibrarysales.column3,
                      onelibrarysales.column4,
                      SUBSTR(onelibrarysales.column5,31,6) AS column5,
                      SUBSTR(onelibrarysales.column6,37,2) AS column6,
                      SUBSTR(onelibrarysales.column7,39,6) AS column7
                    FROM
                      (SELECT alllibrarysales.column1,
                        alllibrarysales.column2,
                        MAX(alllibrarysales.column3)                                                                                                                            AS alllibrarysales.column3 ,
                        MAX(CHAR(alllibrarysales.column4,iso) concat CHAR(alllibrarysales.column5,iso) concat digits(alllibrarysales.column6) concat (alllibrarysales.column7)) AS column5
                      FROM
                        (SELECT libraryprod.column1,
                          libraryprod.column2,
                          libraryprod.column3,
                          libraryprod.column4,
                          libraryprod.column5,
                          libraryprod.column6,
                          libraryprod.column7
                        FROM
                          (SELECT tv.column1,
                            tv.column2,
                            MAX(digits(tv.column3) concat digits(tv.column4) ) AS librarymax
                          FROM db1.v_table1 tv
                          WHERE tv.column1 <> 'Y'
                          AND tv.column1   IN ( 'a' , '1' , '12' , '123' , ' 1234' , '12345' , '123456' , '1234567' , '12345678' , '123456789' , '1234567890' , '1 12 123 1234 12345 123456 1234567 12345678' , 'b' , 'c' )
                          AND tv.column2   >= DATE(tv.column4)
                          AND tv.column3    < DATE(tv.column15)
                          GROUP BY tv.column1,
                            tv.column2
                          ) AS libraryprod,
                          db1.table2 th
                        WHERE th.column1 =libraryprod.column1
                        AND th.column2   =libraryprod.column2
                        ) AS alllibrarysales
                      GROUP BY alllibrarysales.column1,
                        alllibrarysales.column2
                      ) AS onelibrarysales
                    ) AS library
                  LEFT OUTER JOIN db1.v_table3 librarystat
                  ON librarystat.column1    = library.column1
                  AND librarystat.column2   = library.column2
                  OR ( librarystat.column4  = library.column4
                  AND librarystat.column5   = library.column5 )
                  AND ( librarystat.column5 = 'I'
                  OR librarystat.column4    = 'Gold'
                  OR librarystat.column5    = 'Bold' )
                  AND librarystat.column6  <= 'Z74'
                  ) AS x
                ) AS price
              WHERE price.column1 < 'R45'
              OR ( price.column2  = 'R46'
              AND price.column3   = 6 )
              GROUP BY price.column1,
                price.column2,
                price.column3,
                price.column4,
                price.column5,
                price.column6,
                price.column7 ;
            END IF;
          END LOOP;
        END;
      END IF;
    END testfunction;
    /*  Multi line comment */
    -- ** Several single line comments -
    END
    PACKAGE;

  • Search for username (SU01 ID) from Business Partner in SRM

    Hi experts,
    We are working on implementing a change in BADI BBP_ECS_PO_OUT_BADI  for transferring Goods recepient field from SRM PO to ECC PO . However in SRM we ahev teh Business Partner in teh Goods recepient and we need to populate the userid in ECC. Do we have a quick way of getting teh username for the relevant Business Partner.
    Thanks for your help.
    regards,
    Pawan

    Hi Pawan,
    Alternatively you can use FM BUP_PARTNER_GET.
    Give the business partner number as input and it provides username in the XUBNAME field of table T_BUT000
    Regards,
    Nikhil

  • How to search for pictures from 1000 named business catalouge that is in my photo library?I normally send these to my clients via bbm or whats app or mms but searching for it from the 1000 photos is such a pain.I need a search option but how to search ?

    Please help, i use to be able to reply coustomers inquiries just by searching photos by name and sending them on my Blackberry device ,these photos are catalogs that have details and price on them ,they save me a lot of time instead of explaining one by one to a client.I need your help to please advice me how to search from my photo album instead of going one by one through a 1000 pictures.Its frustrating.I am using an Iphone 5
    Thank you

    Please help, i use to be able to reply coustomers inquiries just by searching photos by name and sending them on my Blackberry device ,these photos are catalogs that have details and price on them ,they save me a lot of time instead of explaining one by one to a client.I need your help to please advice me how to search from my photo album instead of going one by one through a 1000 pictures.Its frustrating.I am using an Iphone 5
    Thank you

  • Searching for a program like "Printfolder" for PCs

    Hi there,
    coming from the PC world and being converted to a Black MacBook only for two week, I'm missing a little freeware utility called "Printfolder" (http://no-nonsense-software.com/freeware/).
    Basically, it lets you "print or save a list of files located in any folder. Right-click any folder in Windows Explorer and select "PrintFolder" in the popup menu"...
    Is there any similar program for the Mac world? Or maybe the same task can be achieved straightly in OSX?
    Thanks in advance
    Sergio

    Just found it! That's what I was looking for
    Thanks!
    Sergio

  • Searching for bapi/function module for uploading assent numbers.

    hi all,
    i have a senario where in for a sinle PO there will be many assent nos.
    Example :if i have a single purchase order of 100 chairs.each chair will have a unique asset no for maintianence.
    i want to find a bapi or any FM to help me upload the details through XL-sheet, other than doing it manually,
    plz help ,points will be rewareded.
    regards,
    johnson

    Hi Try using the BAPI
    BAPI_PO_CHANGE, if you want to add the Asset numbers to the PO.
    BAPI_PO_CREATE1 - if you want to create

  • Business Rules functionality

    Does anybody know about plan to include Business Rules into SAP NetWeaver?
    I mean functionality like Oracle Business Rules 
    http://www.oracle.com/technology/products/ias/business_rules/pdf/businessPresentation.pdf

    Shame on me/SAP that we did not give you an answer earlier.
    Pls see the blogs of me and Rajagopalan Narayanan for details.

  • Search for member name in WebForms and Business Rules - 11.1.2.1

    Hi,
    Client has a hierarchy with two parents (Owned and Managed) within a dimension. The 'Managed' parent is no longer valid. Thus they want to eliminate it and move it's children under the 'Owned' member. However there could be ramifications in Business Rules and/or WebForms. Is there a way to search all Business Rules and WebForms for 'Managed' to see which Business Rules and/or WebForms would be affected?
    Or is best way to extract all the WebForms and Business Rules to xml files via LCM and then write custom script to search the files? Not sure if this functionality is already there or not.
    They are on 11.1.2.1

    I don't think "Show Usage" picks up Business Rules that are in the Calculation Manger.
    Also check the Member Formulas - easiest to do in the EAS (view the Outline, and the member formulas are displayed. Otherwise, in Planning, you would need to go into each member individually, and that would take forever). And if you're using Partitions or MRAs, you should check them, too.
    I'm assuming you're doing all of this in a copy of the application, and not on a "live" app, right? So you can make the change and then validate the Business Rules and Outline, and the error messages will tell you where "Managed" was being used.
    -Matt Varner

  • Business rules and calculation manager

    Hi ,
    Could anyone pls tell me the difference between the calculation manager and business rules?

    Calculation manager is a web component that is designed to manage business rules from a web interface. It is enabled to build calculations also using a graphic interface, although this mode is more suitable for simple calculations than for complex ones. Calculation manager allows you also to use complex templates that you can customize with prompts in order to adapt them to each rule without being force to change the code. Basically it is an evolution of the essbase business rules macro function. Once a business rule is created it has to be deployed in order to be used with planning applications. The deploy activity copies the rule on the database, both in the calculation manager tables in and the planning tables.
    Business rules are instead essbase artifacts. They aren't available any more from version 11.1.2.2 on.
    In versions older than the 11.1.2.2 you were forced to use calculation manager for epma applications, while essbase business rules were used in classic applications. In terms of calculations there is no difference between the two technologies, they behave exactly in the same way. There is only a small difference in the prompts syntax, {} in calculation manager and [] in essbase business rules.
    Although i find the calculation manager web editor quite slow and imprecise to use, I anyway advice to use it in order to make eventual release upgrades easier.

Maybe you are looking for

  • Promt from user to proceed in case of error in sql script in sqlplus

    I am using Oracle 10g on Linux platform. I am executing a control.sql script from sqlplus from where i cam calling three *.sql scripts: control.sql SPOOL test.log SELECT 'Start of Control File at:'||systimestamp from dual; @00_create_table_scripts.sq

  • Not able to import business system in Integration Directory

    Dear all, Currently i involved in XI system copy. As per the standard documetn i have finsihed the initial activites like EXPORT and import of abap and java files is succedded. Now in the post instalaltion activites. I have changed the exchange profi

  • Is there a plugin available to open a UFO file?

    I used to use photoimpact until I discovered the joy of Photoshop. Many of my old files are formatted as UFO files, however, and I would like to be able to open them in CS2. Is this possible? or do I have to manually change each one of my files... Th

  • Calculate Relation within Query Results

    I am currently stuck with a Resultset which Looks as follows: | Month    | LastWeekForMonth | ValueForLastWeekOfMonth | | 2013-09 |     2013-40            |      981408,27                   | | 2013-10 |     2013-44            |      931209,12       

  • How can I use the setup utility with my gaming adapter?

    How can I use this program (the cd that came with my netgear wireless game adapter) to setup my gaming adapter? I want to configure my gaming adapter but it seems like i cannot do so? How can I achieve this?