Splitting formula in transfer rules using sub string

Hi Friends,
I used function module in formula using posting date but again I need to split this to get appropriate answer using substring.
Now I am getting result as 20084. here 4 is fiscal quater.
But I need only 4.For that I have to use substring.
Anyone please help me to get output.
Thanks,
Devi

Reddy,
    Try dividing the number several times.
i.e divide the number by 10000 and store it in a result variable and then divide the result with 10000 again. Thsi should effectively divide the number by 100000000.
   Hope this helps....

Similar Messages

  • Filter data in transfer rules using start routine

    Hi all!
    I am an absolute newbie here, but I have a question regarding start routines and I noticed many questions get solved around here. My situation is the following: I have to create a start routine where the data to be transferred is filtered on an attribute "DESTINAT" in info object "0BILL_TYPE". DESTINAT can be 'M' or 'D' and depending on that letter, data must flow to a separate ODS.
    Well,I came up with the following:
    somewhere in my start routing I guess I'll have to put:
    loop at data_pak.
    DELETE DATAPAK Where DESTINAT = 'D'
    endloop.
    When I place this in my start routine of my transfer rules leading to the ODS where data must be of DESTINAT type 'M', will this do the trick?
    I want to put the following code in the transfer rules leading to my other ODS, where data must be of type DESTINAT = 'D':
    loop at data_pak.
    DELETE DATAPAK Where DESTINAT = 'M'
    endloop.
    I'm sorry that this is a very basic question, but like I said: I'm a newbie in SAP...

    hi Joris,
    have a lok at the foll  help docs.:
    http://help.sap.com/saphelp_nw04/helpdata/en/b3/0ef3e8396111d5b2e80050da4c74dc/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/21/894eeee0b911d4b2d90050da4c74dc/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/80/1a62bfe07211d2acb80000e829fbfe/content.htm
    http://help.sap.com/saphelp_nw04s/helpdata/en/e3/732c42be6fde2ce10000000a1550b0/content.htm
    cheers
    shameem

  • Problem in activating Transfer rules

    Hi Experts,
                          I could not able to activate transfer rules using program "RS_TRANSTRU_ACTIVATE_ALL" by giving source system name and Infosource in Quality system.I am getting success status "No Transfer Structure Selected" but still transfer rules are in inactivate.I tried replicating  data sources also still problem persists.
    Please provide any suggestion how can i go about it.
    Edited by: Sunilbm on Oct 30, 2009 12:16 PM

    Hi,
    Is there any error message when the transfer rules are transported from Dev to Quality?
    Are the transfer rules transported from Dev to Quality successfully.
    Post the message if any when the transport request is moved from Dev to Quality.
    Regards,
    Rama Murthy.

  • OEE Report: KPI formulas and aggregation rules?

    Hello,
    is there documentation about the formulas and aggregation rules used in the OEE Report? Customers will only trust the KPIs in this report if they can verify them.
    Formulas & Aggregation
    How are the KPIs calculated?
    How are the KPIs aggregated, if a work center or resource type is selected instead of a single resource?
    Data & Variables
    Which data is used? Where do the variables used in the formulas come from? E.g. which tables and columns or which SQL SELECT statements are used?
    There is just very little information about the OEE Report in the online help or in the "SAP ME for Discrete Industries" document. And the MII "OEE Report Action", where obviously all the magic happens, is a black box.
    Best Regards,
    Martin

    Hi Daniele,
    Is Saichand correct in assuming that you have SUM setup in the BMM layer? If so, follow Saichand's recommendation.
    If you are specifying the aggregation in the Answer Request itself, then try this.
    Let's say this is your situation:
    SELECT DIMENSION, MEASURE_1
    FROM CRITERIA1
    UNION ALL
    SELECT DIMENSION, MEASURE_2
    FROM CRITERIA2
    UNION ALL
    SELECT DIMENSION, MEASURE_3
    FROM CRITERIA3
    UNION ALL
    SELECT DIMENSION, MEASURE_4
    FROM CRITERIA4
    Change it to this:
    SELECT 'CRITERIA1' CRITERIA, DIMENSION, MEASURE_1 MEASURE
    FROM CRITERIA1
    UNION ALL
    SELECT 'CRITERIA2' CRITERIA, DIMENSION, MEASURE_2 MEASURE
    FROM CRITERIA2
    UNION ALL
    SELECT 'CRITERIA3' CRITERIA, DIMENSION, MEASURE_3 MEASURE
    FROM CRITERIA3
    UNION ALL
    SELECT 'CRITERIA4' CRITERIA, DIMENSION, MEASURE_4 MEASURE
    FROM CRITERIA4
    Then in the combined criteria, add two new measures:
    new_measnure1 = SUM(CASE WHEN CRITERIA in ('CRITIERA1','CRITIERA1') then MEASURE END
    new_measnure2 = AVG(CASE WHEN CRITERIA in ('CRITIERA3','CRITIERA4') then MEASURE END
    NOTE: The syntax for the new_measure* may need to reference the saw naming convention, ie. saw0 = CRITIERIA, saw1 = DIMENSION, saw2 = MEASURE.
    That should work out for you.
    Good luck and let me know if this helps.
    -Joe

  • Transfer Rules Deleted while recreating Source System

    Hi:
    We connected our QBW system to upgraded SAP ECC 6.0 QAT system. We needed to recreate the source system for ECC since that appeared inactive. After our Basis admin re-created the source system, all transfer rules were deleted. Now we can not extract data. We had done the same thing in BWD when the SAP Dev system was upgraded 3 weeks ago and we did not have this problem. Is it possible to activate all transfer rules in QAT again? Or do we have to restore a backup? Or do we have to collect them again from the Development and transport to QBW??
    Thanks

    Hi Sunil,
    yes when you delet the source system and recreate it evey thing will be vanished
    right click on the souce system click Replicate datasouce
    Then try with
    a) Right click on source system and click on Restore if it doesn't work
    b) Transport from Development to Quality
    and active all the transfer rules using the report RS_TRANSTRU_ACTIVATE_ALL
    hope this information helps you
    thanks
    kishore

  • Diff. bt update rules & transfer rules....,

    Hi all,
    wht is the diff. bt update rules & transfer ruls...,
    mainly i want to know that when we use for update & when for transfer rules we have to choose........,
    let me know from any one plzzzzzz...,
    Regards,
    Swetha.

    Hi Swetha
    Transfer rules :use the transfer rules to determine how you want the transfer structure fields to be assigned to the communication structure InfoObjects
    Update Rules :Update rules specify how the data (key figures, time characteristics, characteristics) is updated to data targets from the communication structure of an InfoSource. You are therefore connecting an InfoSource with a data target.
    Basically update rules are specific to Data Targets where as Transfer rules applies to InfoSource.When you want rule to apply to all the datatargets from a Infosource ,you write it in Transfer rules.
    Hope this helps.
    <i>Sudh</i>
    Assign points if this helps

  • Regarding sub string

    Hi i am geting an out put like this from given text "336 341 sunil" here can i get i prefix and post fix to the this string and highlight it.is this possible.can i use sub strings here
    vijay

    hi
    here this code is help full in getting the reslt what i am looking for....
    ie to get the searched result as hyper link
    selString=document.substring(annot.getBegin(),annot.getEnd());
         String preStr= "", postStr="";
         if(annot.getBegin()-20<0)
              preStr = document.substring(0,annot.getBegin());
         else
              preStr = document.substring(annot.getBegin()-20,annot.getBegin());
         if(annot.getEnd()+20>document.length())
              postStr = document.substring(annot.getEnd(),document.length());
         else
              postStr = document.substring(annot.getEnd(),annot.getEnd()+20);
         String outputStr =preStr+"<label style='background-color:yellow;'>"+selString+"</label>"+postStr;
         if(i==0){
              StrTemp=document.substring(0, annot.getBegin())+selString;
         }else{
              StrTemp=StrTemp+document.substring(intTemp, annot.getBegin())+selString;
         intTemp=annot.getEnd();
         out.println(outputStr+"<br><a href='OutputServlet?file="+aFile.getAbsolutePath()+"&begin="+annot.getBegin()+"&end="+annot.getEnd()+"'>"+aFile.getName()+"</a><br><br>");
         /* TestType annot = (TestType)itr.next();
         out.println("Test UIMA Servlet Begin::"+annot.getBegin()+"<br>");
         out.println("Test UIMA Servlet End::"+annot.getEnd()+"<br>");
         out.println("Test UIMA Servlet Content::"+annot.getCoveredText()+"<br>");
         out.println("Test UIMA Servlet End::"+annot.getType()+"<br>"); */
         i++;
    StrTemp=StrTemp+document.substring(intTemp,document.length());
    thnak u for ur replies

  • Current Date in Transfer Rules Formula Editor

    Hi!
    Anyone aware how to get todays' date in the Transfer Rules Formula Editor?
    Aim is to calculate ones actual age based on a given birthday-month-year using the dateDifference function.
    Cheers

    Hi,
    The summary of both posts:
    Use a formula
    DATE_DIFF( SYST-DATUM, BDAY)
    As you understand, the difference will be in days.
    Best regards,
    Eugene

  • Substring Function in formula builder of transfer rule

    Hi Gurus
    I want to get the domain name from Email address.
    For eg: if the email address is [email protected], i want to display only "yahoo.com" in the report.
    For that, shall i use Substring function in transfer rule.
    If so, please advice me how i can do this.
    Thanks
    Sansen

    Instead try using a routine using the SPLIT function...
    For example if you want to split the value of the field TEST whose value is [email protected] then try writing a code like below in the transfer routine...
    DATA: TEST1(30), TEST2(30) TYPE C.
    SPLIT TRAN_STRUCTURE-ZEMAILID AT '@' into TEST1 and TEST2.
    RESULT = TEST2.
    (value of TEST2 would be yahoo.com)
    Hope this helps...

  • How to make use of a global internal table in SAP BW during transfer rules

    HI friends,
    I am ABAP consultant working on some APO info cubes. I have an issue during the upload of planning area data into APO info cube.
    Please help.
    I am using a transfer routine to find the TECHWEEK from a data base table ZGC_CALWEEK based on the on the calender month and calender week.
    Code I am writing is like below.
    *       FORM COMPUTE_/BIC/ZCALWEEK
    * Compute value of InfoObject ZCALWEEK
    * in communication structure /BIC/CSZT6DPPA
    * Technical properties:
    *     field name      = /BIC/ZCALWEEK
    *     data element    = /BIC/OIZCALWEEK
    *     data type       = NUMC
    *     length          = 000006
    *     decimals        = 000000
    *     ABAP type       = N
    *     ABAP length     = 000006
    *     reference field =
    * Parameters:
    *  -->  RECORD_NO       Record number
    *  -->  TRAN_STRUCTURE  Transfer structure
    *  <--  RESULT          Return value of InfoObject
    *  <->  G_T_ERRORLOG    Error log
    *  <--  RETURNCODE      Return code (to skip one record)
    *  <--  ABORT           Abort code (to skip whole data package)
    FORM COMPUTE_/BIC/ZCALWEEK
      USING    RECORD_NO LIKE SY-TABIX
               TRAN_STRUCTURE TYPE TRANSFER_STRUCTURE
               G_S_MINFO TYPE RSSM_S_MINFO
      CHANGING RESULT TYPE /BIC/OIZCALWEEK
               G_T_ERRORLOG TYPE rssm_t_errorlog_int
               RETURNCODE LIKE SY-SUBRC
               ABORT LIKE SY-SUBRC. "set ABORT <> 0 to cancel datapackage
    *$*$ begin of routine - insert your code only below this line        *-*
    * DATA: l_s_errorlog TYPE rssm_s_errorlog_int.
    DATA: LV_WEEK         TYPE ZGC_CALWEEK-APOWEEK,
            LV_MONTH        TYPE ZGC_CALWEEK-APOMONTH,
            LV_TECH_WEEK    TYPE ZGC_CALWEEK-TECHWEEK.
      LV_WEEK   = TRAN_STRUCTURE-CALWEEK.
      LV_MONTH  = TRAN_STRUCTURE-CALMONTH.
      SELECT SINGLE TECHWEEK INTO LV_TECH_WEEK
        FROM ZGC_CALWEEK CLIENT SPECIFIED
        WHERE  MANDT = SY-MANDT
        AND  APOWEEK  = LV_WEEK
        AND   APOMONTH = LV_MONTH.
      IF SY-SUBRC IS INITIAL.
        RESULT = LV_TECH_WEEK.
      ELSE.
        RETURNCODE = 1.
        ENDIF.
    *$*$ end of routine - insert your code only before this line         *-*
    ENDFORM.
    There are more than 50-80 million records that wil be transferred from planning area to info cube. The select statment is giving pathetic performance as this has to run 50-80 million times.
    After adding the select statment to find the TECHWEEK it is taking 4 times the time that used to take before writing the select statment.
    Is there a way that I can first fetch the data from ZGC_CALWEEK to one internal table and that internal table can be used using read statment during the transfer routine instead of writing select statement here.
    Please help in this case?

    Hi Ashutosh,
    Thanks for the reply,
    The structure of the ZGC_CALWEEK is as below. I have already created a secondary index on the table for this table for the fields APO WEEK and APO MONTH. This didn't help much on the performance.
    I am also planning to keep the ZGC_CALWEEK database table to be fully buffered and this may definitely improve the performance but I need to reduce the data base hits as less as possible.
    MANDT                           MANDT                           CLNT     3     0     Client
    TECHWEEK                           ZTECHWEEK                           NUMC     6     0     Technical Week
    FROMDATE_TECH     DATUM                           DATS     8     0     Date
    TODATE_TECH     DATUM                           DATS     8     0     Date
    APOWEEK                           /BI0/OICALWEEK     NUMC     6     0     Calendar year / week
    FROMDATE_APO     DATUM                            DATS     8     0     Date
    TODATE_APO     DATUM                            DATS     8     0     Date
    APOMONTH                           /BI0/OICALMONTH     NUMC     6     0     Calendar year/month
    The table ZGC_CALWEEK is in APO system, where the transfer rules are being executed.
    As you mentioned START ROUTINE, In the start routine Can I create an internal table let's say GT_CALWEEK with structure ZGC_CALWEEK and pull all the records (I have a max of 2000 records in this table) from ZGC_CALWEEK to GT_CALWEEK and Can I used the same internal table GT_CALWEEK in the transfer routine to read the TECHWEEK from internal table.
    Thank you very much again for you reply. Any help regarding this would be greatly appreciated.
    Best regards,
    Siva

  • Question about how Cisco Unity Connections v 9.1.1 uses transfer rules

    I'm trying to understand how Unity hanldes calls using the transfer rules and greetings. I've got a subscriber whose standard greeting is set to send them to a call handler. Since the call is being transferred from the subscriber would it use the transfer rules vs the greetings? I've looked through the documentation but can't find a good explanation for how the system moves calls around. Thanks in advance.
    Billy

    Billy,
    It could use either one, transfer rule is matched first and can either point to greeting or another extension, if it points to greeting then you can simply play blank greeting and transfer to the call handler. Start by looking at the transfer rule and if it is set to transfer to greeting, look at greeting configuration. Notice there is alternate transfer rule and greeting as well, so make sure those are not enabled as they would take precedence.
    HTH,
    Chris

  • Error in creating RSDS using transfer rules for master data datasources

    Hi ,
    when i am creating the transfermations(RSDS) using transfer rules for master data datasources while i want to migrate datasource.it is giving the error message saying that INITIAL ERROR OCCURED DURING GENERATION OF THE TRANSFERMATION.AND in the taskbar it is giving the message LOG IS BEING LOADED.
    MY QUESTION IS HOW CAN WE SEE THE LOG? AND
    PLEASE GIVE ME THE STEPS TO MIGRATE MASTER DATASOURCES.
    THANKS IN ADVANCE .

    Hi Ankit,
                  Yoy have to load data to the cube.For that you need update rules.
    Steps to load data to the cube
    1.Replicate the datasource.
    2.Assign Infosource
    3.Create transfer rules
    4.Maintain the update rules to the cube.
    5.Right click on the datasource and schedule an infopackage for it.
    Execute the Infopackage and pull the data to the cube.
    Hope this helps
    Regards
    Karthik

  • Problem using java String.split() method

    Hi all, I have a problem regarding the usage of java regular expressions. I want to use the String.split() method to tokenize a string of text. Now the problem is that the delimiter which is to be used is determined only at runtime and it can itself be a string, and may contain the characters like *, ?, + etc. which are treated as regular expression constructs.
    Is there a way to tell the regular expression that it should not treat certain characters as quantifiers but the whole string should be treated as a delimiter? I know one solution is to use the StringTokenizer class but it's a legacy class & its use is not recommended in Javadocs. So, does there exist a way to get the above functionality using regular expressions.
    Please do respond if anyone has any idea. Thanx
    Hamid

    public class StringSplit {
    public static void main(String args[]) throws Exception{
    new StringSplit().doit();
    public void doit() {
    String s3 = "Dear <TitleNo> ABC Letter Details";
    String[] temp = s3.split("<>");
    dump(temp);
    public void dump(String []s) {
    System.out.println("------------");
    for (int i = 0 ; i < s.length ; i++) {
    System.out.println(s);
    System.out.println("------------");
    Want to extract only string between <>
    for example to extract <TitleNo> only.
    any suggestions please ?

  • Is there a split formula similar to what one uses in google docs or excel?

    I'm new to the Mac Word and Numbers. I'm quick with excel and am getting frustrated in trying to quickly split up a cell using a formula in numbers.
    Is there a formula to break up an address based on spaces that is in one cell? For example, a cell contains this information:
    1234 Main Street Anytown, VA 12345
    I'd like to take split up to in two different ways:
    First, I'd like the results to look like this in:
    Column 1: 1234 Main Street
    Column 2: Anytown, VA 12345
    Second, I'd like to results to look like this:
    Column 1: 1234
    Column 2: Main
    Column 3: Street
    Column 4: Anytown
    Column 5: VA
    Column 6: 12345
    Is there a simple formula or wizard to use besides the right and left formula's?
    I hope this makes sense. I've been struggling for an hour and know I could do it in minutes in an excel spreadsheet.
    Thanks for your help.

    No need to use extraneous applications.
    AppleScript is our friend for this kind of task.
    Here are two scrips, one for each case.
    --[SCRIPT expandAddress #1]
    Save the script as a Script, an Application or an Application Bundle: expandAdress.xxx
    Move the newly created application into the folder:
    <startup Volume>:Users:<yourAccount>:Library:Scripts:Applications:Numbers:
    Maybe you would have to create the folder Numbers and even the folder Applications by yourself.
    select the cell containing the original address
    menu Scripts > Numbers > expandAdress
    the script will insert the expanded address.
    --=====
    The Finder's Help explains:
    To make the Script menu appear:
    Open the AppleScript utility located in Applications/AppleScript.
    Select the "Show Script Menu in menu bar" checkbox.
    +++++++
    Yvan KOENIG (Vallauris, FRANCE)
    24 avril 2009
    on run
    tell application "Numbers"
    set {current_Range, current_table, current_Sheet, current_Doc} to my getSelection()
    set aRef to item 1 of my decoupe(current_Range, ":")
    set original to value of cell aRef of table current_table of sheet current_Sheet of document current_Doc
    end tell
    set l1 to my decoupe(original, ",")
    set l2 to my decoupe(item 1 of l1, space)
    set col1_1 to my recolle(items 1 thru -2 of l2, space)
    set col2_1 to item -1 of l2 & "," & item 2 of l1
    set result1 to col1_1 & tab & col2_1
    set the clipboard to result1
    set {col_num, row_num} to my decipher(aRef)
    set aRef2 to my refEnLettres(row_num, col_num + 1)
    tell application "Numbers"
    tell document current_Doc to tell sheet current_Sheet to tell table current_table
    set selection range to range (aRef & ":" & aRef2)
    end tell
    my shortCut(name, "v") (* paste the result *)
    end tell
    end run
    --=====
    on getSelection()
    local _, theRange, theTable, theSheet, theDoc, errMsg, errNum
    tell application "Numbers" to tell document 1
    repeat with i from 1 to the count of sheets
    tell sheet i
    set x to the count of tables
    if x > 0 then
    repeat with y from 1 to x
    try
    (selection range of table y) as text
    on error errMsg number errNum
    set {_, theRange, _, theTable, _, theSheet, _, theDoc} to my decoupe(errMsg, quote)
    return {theRange, theTable, theSheet, theDoc}
    end try
    end repeat -- y
    end if -- x>0
    end tell -- sheet
    end repeat -- i
    end tell -- document
    return {missing value, missing value, missing value, missing value}
    end getSelection
    --=====
    on decipher(n)
    local colnum, rowNum, letters
    set letters to "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
    if (character 2 of n) as text > "9" then
    set colnum to (offset of (character 1 of n) in letters) * 64 + (offset of (character 2 of n) in letters)
    set rowNum to (text 3 thru -1 of n) as integer
    else
    set colnum to offset of (character 1 of n) in letters
    set rowNum to (text 2 thru -1 of n) as integer
    end if
    return {colnum, rowNum}
    end decipher
    --=====
    on refEnLettres(rowNum, colnum)
    set letters to "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
    set seuil to 26
    if colnum > seuil then
    set n1 to colnum div seuil
    set n2 to colnum - (n1 * seuil)
    set enLettre to character n1 of letters & character n2 of letters & rowNum
    else
    set enLettre to character colnum of letters & rowNum
    end if
    return enLettre
    end refEnLettres
    --=====
    on decoupe(t, d)
    local l
    set AppleScript's text item delimiters to d
    set l to text items of t
    set AppleScript's text item delimiters to ""
    return l
    end decoupe
    --=====
    on recolle(l, d)
    local t
    set AppleScript's text item delimiters to d
    set t to l as text
    set AppleScript's text item delimiters to ""
    return t
    end recolle
    --=====
    on shortCut(a, t)
    tell application a to activate
    tell application "System Events" to tell application process a
    repeat with i from 1 to count of t
    keystroke ((character i of t) as text) using {command down}
    end repeat
    end tell
    end shortCut
    --=====
    --[/SCRIPT]
    --[SCRIPT expandAddress #2]
    Save the script as a Script, an Application or an Application Bundle: expandAdress.xxx
    Move the newly created application into the folder:
    <startup Volume>:Users:<yourAccount>:Library:Scripts:Applications:Numbers:
    Maybe you would have to create the folder Numbers and even the folder Applications by yourself.
    select the cell containing the original address
    menu Scripts > Numbers > expandAdress
    the script will insert the expanded address.
    --=====
    The Finder's Help explains:
    To make the Script menu appear:
    Open the AppleScript utility located in Applications/AppleScript.
    Select the "Show Script Menu in menu bar" checkbox.
    +++++++
    Yvan KOENIG (Vallauris, FRANCE)
    24 avril 2009
    on run
    tell application "Numbers"
    set {current_Range, current_table, current_Sheet, current_Doc} to my getSelection()
    set aRef to item 1 of my decoupe(current_Range, ":")
    set original to value of cell aRef of table current_table of sheet current_Sheet of document current_Doc
    end tell
    set l1 to my decoupe(original, ", ")
    set l2 to my decoupe(item 1 of l1, space)
    copy my decoupe(item 2 of l1, space) to end of l2
    set the clipboard to my recolle(l2, tab)
    set {col_num, row_num} to my decipher(aRef)
    set aRef2 to my refEnLettres(row_num, col_num + 6)
    tell application "Numbers"
    tell document current_Doc to tell sheet current_Sheet to tell table current_table
    set selection range to range (aRef & ":" & aRef2)
    end tell
    my shortCut(name, "v") (* paste the result *)
    end tell
    end run
    --=====
    on getSelection()
    local _, theRange, theTable, theSheet, theDoc, errMsg, errNum
    tell application "Numbers" to tell document 1
    repeat with i from 1 to the count of sheets
    tell sheet i
    set x to the count of tables
    if x > 0 then
    repeat with y from 1 to x
    try
    (selection range of table y) as text
    on error errMsg number errNum
    set {_, theRange, _, theTable, _, theSheet, _, theDoc} to my decoupe(errMsg, quote)
    return {theRange, theTable, theSheet, theDoc}
    end try
    end repeat -- y
    end if -- x>0
    end tell -- sheet
    end repeat -- i
    end tell -- document
    return {missing value, missing value, missing value, missing value}
    end getSelection
    --=====
    on decipher(n)
    local colnum, rowNum, letters
    set letters to "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
    if (character 2 of n) as text > "9" then
    set colnum to (offset of (character 1 of n) in letters) * 64 + (offset of (character 2 of n) in letters)
    set rowNum to (text 3 thru -1 of n) as integer
    else
    set colnum to offset of (character 1 of n) in letters
    set rowNum to (text 2 thru -1 of n) as integer
    end if
    return {colnum, rowNum}
    end decipher
    --=====
    on refEnLettres(rowNum, colnum)
    set letters to "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
    set seuil to 26
    if colnum > seuil then
    set n1 to colnum div seuil
    set n2 to colnum - (n1 * seuil)
    set enLettre to character n1 of letters & character n2 of letters & rowNum
    else
    set enLettre to character colnum of letters & rowNum
    end if
    return enLettre
    end refEnLettres
    --=====
    on decoupe(t, d)
    local l
    set AppleScript's text item delimiters to d
    set l to text items of t
    set AppleScript's text item delimiters to ""
    return l
    end decoupe
    --=====
    on recolle(l, d)
    local t
    set AppleScript's text item delimiters to d
    set t to l as text
    set AppleScript's text item delimiters to ""
    return t
    end recolle
    --=====
    on shortCut(a, t)
    tell application a to activate
    tell application "System Events" to tell application process a
    repeat with i from 1 to count of t
    keystroke ((character i of t) as text) using {command down}
    end repeat
    end tell
    end shortCut
    --=====
    --[/SCRIPT]
    Yvan KOENIG (from FRANCE vendredi 24 avril 2009 19:56:54)

  • Two formulas for a single field in Transfer Rules ?

    Hi friends ,
    I am learning BW  3.5 . I have got a problem could you please solve it ...
    My flatfile:           Empno     Empfirstname       Emplastname
                               1000         rajiv                     gandhi
    Expected Result: Empno     Empfirstname       Emplastname
                               1000         RAJIV                RAJIVGANDHI
    I need to concatenate and Convert it into capital letters for the same field (Emplastname)
    Points will be rewarded
    Thanking You

    Hi,
    then just create a routine in the transfer rules.
    routine for first name.
    result = tran_structure-empfirstname.
    translate result to upper case.
    routine for last name.
    concatenate tran_structure-empfirstname tran_structure-emplastname into result.
    translate result to upper case.
    kind regards
    Siggi

Maybe you are looking for

  • Lenovo SL510 suspend (S3 sleep) is not working

    Hi all, I bought a new Lenovo SL510 with T5870 2GHz CPU, 250GB HDD, no OS, (part No. NSLQ7MC). Installation of Ubuntu Karmic 32bit was without any problems, but I didn't get the suspend working. Hibernation works fine. When I click sleep button (or e

  • Output type FAX and Email

    Hi, I hace newly created email output type and it is working fine, that is mail is sent to the vendor with attachment. Issue is when the vendor is having fax number and also email id in his master data, Though I am using the email message type, outpu

  • Webutil and ORA-06508

    Sometimes, but not always I am getting ORA-06508 when using Webutil. But I am only getting this error when calling webutil_file_transfer.client_to_as_with_progress I aslo use webutil_clientinfo, and that works just fine. /Vidar

  • Displaying Employee Photo in smartform in SAP-HR

    hi all, how can i display employee photo in smartform which is not uploaded in the sytem with tcode se78 but throgh diff tcode (OAAD) by HR functional. There are mainly two parts: 1. Procedure to retrieve that photo from the system                   

  • Why appstore only show half on the screen on my iPad2 (IOS6)

    The AppStore only show half (left) on the screen