How to break a number into pieces and get the sum or product of the numbers

on 10.2 I tried to use regular expression but TO_NUMBER function does not work with REGEXP_REPLACE as below;
SQL> SELECT regexp_replace(123456,
  2                        '(.)',
  3                        '\1+') || '0' RESULT
  4    FROM dual;
RESULT
1+2+3+4+5+6+0
SQL> SELECT 1+2+3+4+5+6+0 RESULT FROM dual;
    RESULT
        21
SQL> SELECT regexp_replace(123456,
  2                        '(.)',
  3                        '\1*') || '1' RESULT
  4    FROM dual;
RESULT
1*2*3*4*5*6*1
SQL> SELECT 1*2*3*4*5*6*1 RESULT FROM dual;
    RESULT
       720I recieve ORA-01722: invalid number as below;
SQL> SELECT to_number(regexp_replace(123456,
  2                        '(.)',
  3                        '\1+') || '0') RESULT
  4    FROM dual;
SELECT to_number(regexp_replace(123456,
                      '\1+') || '0') RESULT
  FROM dual
ORA-01722: invalid numberAny comments? Thank you.

On 11g you can use this:
SQL>  select level
  2        , regexp_replace(level,'(.)','\1+') || '0' sum
  3        , xmlquery(regexp_replace(level,'(.)','\1+') || '0' returning content).getNumberVal() sum_evaluated
  4        , regexp_replace(level,'(.)','\1*') || '1' product
  5        , xmlquery(regexp_replace(level,'(.)','\1*') || '1' returning content).getNumberVal() product_evaluated
  6     from dual
  7  connect by level <= 100
  8  /
LEVEL SUM                  SUM_EVALUATED PRODUCT              PRODUCT_EVALUATED
     1 1+0                              1 1*1                                  1
     2 2+0                              2 2*1                                  2
     3 3+0                              3 3*1                                  3
     4 4+0                              4 4*1                                  4
     5 5+0                              5 5*1                                  5
     6 6+0                              6 6*1                                  6
     7 7+0                              7 7*1                                  7
     8 8+0                              8 8*1                                  8
     9 9+0                              9 9*1                                  9
    10 1+0+0                            1 1*0*1                                0
    11 1+1+0                            2 1*1*1                                1
    12 1+2+0                            3 1*2*1                                2
    13 1+3+0                            4 1*3*1                                3
    14 1+4+0                            5 1*4*1                                4
    15 1+5+0                            6 1*5*1                                5
    16 1+6+0                            7 1*6*1                                6
    17 1+7+0                            8 1*7*1                                7
    18 1+8+0                            9 1*8*1                                8
    19 1+9+0                           10 1*9*1                                9
    20 2+0+0                            2 2*0*1                                0
    21 2+1+0                            3 2*1*1                                2
    22 2+2+0                            4 2*2*1                                4
    23 2+3+0                            5 2*3*1                                6
    24 2+4+0                            6 2*4*1                                8
    25 2+5+0                            7 2*5*1                               10
    26 2+6+0                            8 2*6*1                               12
    27 2+7+0                            9 2*7*1                               14
    28 2+8+0                           10 2*8*1                               16
    29 2+9+0                           11 2*9*1                               18
    30 3+0+0                            3 3*0*1                                0
    31 3+1+0                            4 3*1*1                                3
    32 3+2+0                            5 3*2*1                                6
    33 3+3+0                            6 3*3*1                                9
    34 3+4+0                            7 3*4*1                               12
    35 3+5+0                            8 3*5*1                               15
    36 3+6+0                            9 3*6*1                               18
    37 3+7+0                           10 3*7*1                               21
    38 3+8+0                           11 3*8*1                               24
    39 3+9+0                           12 3*9*1                               27
    40 4+0+0                            4 4*0*1                                0
    41 4+1+0                            5 4*1*1                                4
    42 4+2+0                            6 4*2*1                                8
    43 4+3+0                            7 4*3*1                               12
    44 4+4+0                            8 4*4*1                               16
    45 4+5+0                            9 4*5*1                               20
    46 4+6+0                           10 4*6*1                               24
    47 4+7+0                           11 4*7*1                               28
    48 4+8+0                           12 4*8*1                               32
    49 4+9+0                           13 4*9*1                               36
    50 5+0+0                            5 5*0*1                                0
    51 5+1+0                            6 5*1*1                                5
    52 5+2+0                            7 5*2*1                               10
    53 5+3+0                            8 5*3*1                               15
    54 5+4+0                            9 5*4*1                               20
    55 5+5+0                           10 5*5*1                               25
    56 5+6+0                           11 5*6*1                               30
    57 5+7+0                           12 5*7*1                               35
    58 5+8+0                           13 5*8*1                               40
    59 5+9+0                           14 5*9*1                               45
    60 6+0+0                            6 6*0*1                                0
    61 6+1+0                            7 6*1*1                                6
    62 6+2+0                            8 6*2*1                               12
    63 6+3+0                            9 6*3*1                               18
    64 6+4+0                           10 6*4*1                               24
    65 6+5+0                           11 6*5*1                               30
    66 6+6+0                           12 6*6*1                               36
    67 6+7+0                           13 6*7*1                               42
    68 6+8+0                           14 6*8*1                               48
    69 6+9+0                           15 6*9*1                               54
    70 7+0+0                            7 7*0*1                                0
    71 7+1+0                            8 7*1*1                                7
    72 7+2+0                            9 7*2*1                               14
    73 7+3+0                           10 7*3*1                               21
    74 7+4+0                           11 7*4*1                               28
    75 7+5+0                           12 7*5*1                               35
    76 7+6+0                           13 7*6*1                               42
    77 7+7+0                           14 7*7*1                               49
    78 7+8+0                           15 7*8*1                               56
    79 7+9+0                           16 7*9*1                               63
    80 8+0+0                            8 8*0*1                                0
    81 8+1+0                            9 8*1*1                                8
    82 8+2+0                           10 8*2*1                               16
    83 8+3+0                           11 8*3*1                               24
    84 8+4+0                           12 8*4*1                               32
    85 8+5+0                           13 8*5*1                               40
    86 8+6+0                           14 8*6*1                               48
    87 8+7+0                           15 8*7*1                               56
    88 8+8+0                           16 8*8*1                               64
    89 8+9+0                           17 8*9*1                               72
    90 9+0+0                            9 9*0*1                                0
    91 9+1+0                           10 9*1*1                                9
    92 9+2+0                           11 9*2*1                               18
    93 9+3+0                           12 9*3*1                               27
    94 9+4+0                           13 9*4*1                               36
    95 9+5+0                           14 9*5*1                               45
    96 9+6+0                           15 9*6*1                               54
    97 9+7+0                           16 9*7*1                               63
    98 9+8+0                           17 9*8*1                               72
    99 9+9+0                           18 9*9*1                               81
   100 1+0+0+0                          1 1*0*0*1                              0
100 rijen zijn geselecteerd.which doesn't work on 10.2 unfortunately. And I'm not aware of any other method to do a dynamic evaluation in SQL in that version.
Regards,
Rob.

Similar Messages

  • How to populate listbox on a screen and get the selected record.

    I have place a edit box and converted to listbox .
    It should diplay T001-Bukrs values.
    When the user selects a value I should get the selected value ...
    How can I do that?
    The screen is a '0100'.  not the normal 1000 selection screen.
    Regards.
    Erkan.

    Hi
    You can try something like this to populate the listbox
    type-pools: VRM.
      data: l_t_values  type  vrm_values with header line,
            l_wa_ce_conc type  pa0001.
      clear: l_wa_ce_conc,
             l_t_values.
      refresh: l_t_values.
      select  cod_ce_conc
              des_ce_conc
              into    corresponding fields of l_wa_ce_conc
              from    pa0001
        l_t_values-key         = l_wa_ce_conc-cod_ce_conc.
        l_t_values-text        = l_wa_ce_conc-des_ce_conc.
        append l_t_values.
      endselect.
      call function 'VRM_SET_VALUES'
           exporting
                id              = 'p0061-cod_ce_conc' <=== Your Dynpro field
                values          = l_t_values[]
           exceptions
                id_illegal_name = 1
                others          = 2.
      if sy-subrc <> 0.
        message e398(00) with text-001.
      endif.

  • I would like to upgrade my school version of CS5 to the newest media, how do I do a purchase upgrade and get the media? I change PC's regularly so need media.

    I would like to upgrade my CS5 version Web Premium and Acrobat Pro 9 to the newest version. I have a Student License and am looking for an upgrade. Suggestions? Not sure I want to pay monthly for the cloud version.

    There is no physical media, but of course you can always put the installers on an USB stick or whatever. Otherwise there are no upgrades for S&T versions. if you are still eligible you simply buy a fresh license of CS6 with the student discount.
    Mylenium

  • Version 10 doesn't work with a web site I use constantly. How can I download a lower version and have the app appear on my phone?

    Have been using a lower version of firefox on my samsung galaxy phone to access [email protected] for quite some time. Since the upgrade to 10.0, I receive a server error everytime I try to access. Want to download a lower version, but app doesn't appear on my phone. How can I download a lower version and get the app to show up on my phone?

    Mandel is referring to what is called a "User Agent Faker' which tricks the website into thinking it is a different browser or version than it actually is. I sometimes would use this on my iPhone when I wanted to visit the full website of a site I was attempting to go to & it would only take me to the mobile version or state it was only compatible with say Internet Explorer, simply turn it on & select the browser and details you want it to report and it will spoof that browser & you'll be on your way.

  • How Do I Break a Photo Into Pieces

    I have a photo which I would like to break into pieces. At the end, I would like a separate file for all four quadrants of the picture. When I print out the four new pics, I should be able to physically lay them together so they form one large pic, like a jigsaw puzzle. Is there a way to do this?
    I don't think I should crop, because cropping changes the picture. I don't think they would line up correctly (or look correct) when I try to reassemble them.
    Any advice?

    Deckard7777
    Welcome to the Apple Discussions.
    You'll need an external editor to do this:
    Photoshop Elements
    Graphic Coverter
    Acorn
    are some but there are many others. Search on MacUpdate.
    Regards
    TD

  • I need to know how to break my page into two pages so i can send it

    I need to know how to break my page into two pages so i can send it

    Hi,
    You can add new form fields via the add item bar.  For example if you want them to fill in their name, you'd add perhaps 2 text fields, one for first name, one for last name.  Text field is the first icon on the add item bar.  Each field allows you to specify a custom label, you can click it to edit the label.  Are you seeing the add item bar?
    Once you've added all your form fields, you can test your form by clicking the "Test" tab, and then clicking the "Test Web Form" button.  That will open a browser to your form, that you can test filling it out.  When you've filled it out, you click the submit button.  The response will be saved to our service.  You can view the submissions, by going to the "View Responses" tab.
    Once you've finished testing your form, and want to distribute to your users, go to the "Distribute" tab, click the "Open" button. This will make sure your form is open and accepting repsonses.  Then copy the URL by clicking the "Copy Link" button.  You can then email that URL to your users, so they can fill in your form.
    Does this help?
    Thanks,
    Todd

  • In this report i have marked one line..if this width 30,i need to multiply by a number 0.3 and if the width =30,it multiplies by 0.37...how to use this logic here..??? anyone can help??

    In this report i have marked one line..if this width < 30,i need to multiply by a number 0.3 and if the width >=30,it multiplies by 0.37...how to use this logic here..??? anyone can help??
    Declare @FromDate Datetime
    Declare @ToDate Datetime
    Declare @SCCode nvarchar(30)
    select @FromDate = min(S0.Docdate) from dbo.OINM S0 where S0.Docdate >='[%0]'
    select @ToDate = max(S1.Docdate) from dbo.OINM s1 where S1.Docdate <='[%1]'
    --Rcpt from PRDN (Condition checked for Return component exclusion also)
    SELECT T2.U_STKNO as 'PRN No', T2.PostDate as Date,
    T2.DocNum AS 'WorkOrderNo',
    b.DocNum as 'Issue Doc No',
    ISNULL(d.DocNum,'') as 'Receipt Doc No',
    b.U_IssPSCName as 'SubContractor Name',
    T2.ItemCode as 'FG Item Code',
    T3.ItemName as 'FG Item Name',
    T2.PlannedQty as 'FG Planned Qty',
    T2.U_OD as 'OD',
    T2.U_ID as 'ID',
    T2.U_OD/25.4 as 'Inches',
    (T2.U_OD-T2.U_ID)/2 as 'Width',
    0 as 'FG Pending Qty',
    0 as 'FG Receipt Qty',
    '' as 'Issue Item Code',
    '' as 'Issue Item Name',
    Sum(ISNULL(a.Quantity,0)) as 'Total Issue Quantity',
    0 as 'Issue Item - Return Quantity',
    '' as 'Return Doc No',
    SUM(ISNULL(a.U_IssPTotWeight,0)) as 'Total Issue Weight',
    SUM(ISNULL(c.U_Quantity,0)) as 'Total Receipt Weight'
    from OWOR T2 inner join WOR1 T4 on T2.DocEntry = T4.DocEntry
    INNER JOIN OITM T1 ON T1.ItemCode = T4.ItemCode inner join OITM T3 on T3.ItemCode = T2.ItemCode
    LEFT join IGE1 a on T2.DocNum = a.BaseRef Inner JOIN OIGE b on a.DocEntry = b.DocEntry and T4.ItemCode not in (a.ItemCode)
    LEFT JOIN IGN1 c ON c.BaseRef = T2.DocNum and T2.ItemCode = c.ItemCode INNER JOIN OIGN d on c.DocEntry = d.DocEntry
    WHERE b.Series in('101','20') and T2.PostDate >= @FromDate and T2.PostDate <= @ToDate and b.U_IssPSCName = '[%2]'
    GROUP BY T2.U_STKNO, T2.PostDate, T2.DocNum, b.DocNum, d.DocNum, b.U_IssPSCName,T2.ItemCode,T3.ItemName,T2.PlannedQty,T2.U_OD,T2.U_ID, T2.U_OD/25.4,(T2.U_OD-T2.U_ID)/2
    UNION ALL
    SELECT T2.U_STKNO as 'PRN No', T2.PostDate as Date,
    T2.DocNum AS 'WorkOrderNo',
    b.DocNum as 'Issue Doc No',
    ISNULL(d.DocNum,'') as 'Receipt Doc No',
    b.U_IssPSCName as 'SubContractor Name',
    T2.ItemCode as 'Item Code',
    T3.ItemName as 'Item Name',
    T2.PlannedQty as 'Planned Qty',
    T2.U_OD as 'OD',
    T2.U_ID as 'ID',
    T2.U_OD/25.4 as 'Inches',
    (T2.U_OD-T2.U_ID)/2 as 'Width',
    (Select (T2.PlannedQty - (Select ISNULL(sum(a1.Quantity),0) from IGN1 a1 inner join OWOR b1 on a1.BaseRef = b1.DocNum and a1.ItemCode in (b1.itemcode) where b1.DocNum = t2.DocNum))) as 'Pending Qty',
    (Select ISNULL(sum(a1.Quantity),0) from IGN1 a1 inner join OWOR b1 on a1.BaseRef = b1.DocNum and a1.ItemCode in (b1.itemcode) where b1.DocNum = t2.DocNum) as 'Receipt Qty',
    a.ItemCode as 'Issued Item Code',
    a.Dscription as 'Issued Item Name',
    Sum(ISNULL(a.Quantity,0)) as 'Total Issue Quantity',
    (Select (Select ISNULL(sum(a1.Quantity),0) from IGN1 a1 inner join OWOR b1 on a1.BaseRef = b1.DocNum inner join WOR1 b2 on b1.DocEntry = b2.DocEntry where b1.DocNum = t2.DocNum and a1.ItemCode in (b2.itemcode))) as 'Issue Item - Return Quantity',
    (ISNULL((Select (Select a2.DocNum from OIGN a2 where a2.DocEntry = a1.DocEntry) from IGN1 a1 inner join OWOR b1 on a1.BaseRef = b1.DocNum inner join WOR1 b2 on b1.DocEntry = b2.DocEntry where b1.DocNum = t2.DocNum and a1.ItemCode in (b2.itemcode)),'')) as 'Return Doc No',
    SUM(ISNULL(a.U_IssPTotWeight,0)) as 'Total Issue Weight',
    SUM(ISNULL(c.U_Quantity,0)) as 'Total Receipt Weight'
    from OWOR T2 inner join WOR1 T4 on T2.DocEntry = T4.DocEntry
    INNER JOIN OITM T1 ON T1.ItemCode = T4.ItemCode inner join OITM T3 on T3.ItemCode = T2.ItemCode
    LEFT join IGE1 a on T2.DocNum = a.BaseRef Inner JOIN OIGE b on a.DocEntry = b.DocEntry and T4.ItemCode in (a.ItemCode)
    LEFT JOIN IGN1 c ON c.BaseRef = T2.DocNum and T2.ItemCode = c.ItemCode LEFT JOIN OIGN d on c.DocEntry = d.DocEntry 
    WHERE b.Series in('101','20') and T2.PostDate >= @FromDate and T2.PostDate <= @ToDate and b.U_IssPSCName = '[%2]'
    GROUP BY T2.U_STKNO, T2.PostDate, T2.DocNum, b.DocNum, d.DocNum, b.U_IssPSCName,T2.ItemCode,T3.ItemName,T2.PlannedQty,T2.U_OD,T2.U_ID,T2.U_OD/25.4,(T2.U_OD-T2.U_ID)/2,a.ItemCode,a.Dscription    order by T2.DocNum desc

    Hi,
    Try this:
    Declare @FromDate Datetime
    Declare @ToDate Datetime
    Declare @SCCode nvarchar(30)
    select @FromDate = min(S0.Docdate) from dbo.OINM S0 where S0.Docdate >='[%0]'
    select @ToDate = max(S1.Docdate) from dbo.OINM s1 where S1.Docdate <='[%1]'
    --Rcpt from PRDN (Condition checked for Return component exclusion also)
    SELECT T2.U_STKNO as 'PRN No', T2.PostDate as Date,
    T2.DocNum AS 'WorkOrderNo',
    b.DocNum as 'Issue Doc No',
    ISNULL(d.DocNum,'') as 'Receipt Doc No',
    b.U_IssPSCName as 'SubContractor Name',
    T2.ItemCode as 'FG Item Code',T3.ItemName as 'FG Item Name',T2.PlannedQty as 'FG Planned Qty',T2.U_OD as 'OD',T2.U_ID as 'ID',T2.U_OD/25.4 as 'Inches',(T2.U_OD-T2.U_ID)/2 as 'Width',case when ((T2.U_OD-T2.U_ID)/2) <30 then ((T2.U_OD-T2.U_ID)/2) *0.3 end, 0 as 'FG Pending Qty',0 as 'FG Receipt Qty','' as 'Issue Item Code','' as 'Issue Item Name',Sum(ISNULL(a.Quantity,0)) as 'Total Issue Quantity',0 as 'Issue Item - Return Quantity','' as 'Return Doc No',SUM(ISNULL(a.U_IssPTotWeight,0)) as 'Total Issue Weight',SUM(ISNULL(c.U_Quantity,0)) as 'Total Receipt Weight'from OWOR T2 inner join WOR1 T4 on T2.DocEntry = T4.DocEntryINNER JOIN OITM T1 ON T1.ItemCode = T4.ItemCode inner join OITM T3 on T3.ItemCode = T2.ItemCodeLEFT join IGE1 a on T2.DocNum = a.BaseRef Inner JOIN OIGE b on a.DocEntry = b.DocEntry and T4.ItemCode not in (a.ItemCode)LEFT JOIN IGN1 c ON c.BaseRef = T2.DocNum and T2.ItemCode = c.ItemCode INNER JOIN OIGN d on c.DocEntry = d.DocEntryWHERE b.Series in('101','20') and T2.PostDate >= @FromDate and T2.PostDate <= @ToDate and b.U_IssPSCName = '[%2]'GROUP BY T2.U_STKNO, T2.PostDate, T2.DocNum, b.DocNum, d.DocNum, b.U_IssPSCName,T2.ItemCode,T3.ItemName,T2.PlannedQty,T2.U_OD,T2.U_ID, T2.U_OD/25.4,(T2.U_OD-T2.U_ID)/2UNION ALL SELECT T2.U_STKNO as 'PRN No', T2.PostDate as Date,T2.DocNum AS 'WorkOrderNo',
    b.DocNum as 'Issue Doc No',
    ISNULL(d.DocNum,'') as 'Receipt Doc No',
    b.U_IssPSCName as 'SubContractor Name',
    T2.ItemCode as 'Item Code',T3.ItemName as 'Item Name',T2.PlannedQty as 'Planned Qty',T2.U_OD as 'OD',T2.U_ID as 'ID',T2.U_OD/25.4 as 'Inches',(T2.U_OD-T2.U_ID)/2 as 'Width',case when ((T2.U_OD-T2.U_ID)/2) >=30 then ((T2.U_OD-T2.U_ID)/2) *0.37 end, (Select (T2.PlannedQty - (Select ISNULL(sum(a1.Quantity),0) from IGN1 a1 inner join OWOR b1 on a1.BaseRef = b1.DocNum and a1.ItemCode in (b1.itemcode) where b1.DocNum = t2.DocNum))) as 'Pending Qty',(Select ISNULL(sum(a1.Quantity),0) from IGN1 a1 inner join OWOR b1 on a1.BaseRef = b1.DocNum and a1.ItemCode in (b1.itemcode) where b1.DocNum = t2.DocNum) as 'Receipt Qty',
    a.ItemCode as 'Issued Item Code',
    a.Dscription as 'Issued Item Name',
    Sum(ISNULL(a.Quantity,0)) as 'Total Issue Quantity',
    (Select (Select ISNULL(sum(a1.Quantity),0) from IGN1 a1 inner join OWOR b1 on a1.BaseRef = b1.DocNum inner join WOR1 b2 on b1.DocEntry = b2.DocEntry
    where b1.DocNum = t2.DocNum and a1.ItemCode in (b2.itemcode))) as 'Issue Item - Return Quantity',
    (ISNULL((Select (Select a2.DocNum from OIGN a2 where a2.DocEntry = a1.DocEntry) from IGN1 a1 inner join OWOR b1 on a1.BaseRef = b1.DocNum inner join WOR1 b2 on b1.DocEntry = b2.DocEntry where b1.DocNum = t2.DocNum and a1.ItemCode in (b2.itemcode)),'')) as 'Return Doc No',
    SUM(ISNULL(a.U_IssPTotWeight,0)) as 'Total Issue Weight',
    SUM(ISNULL(c.U_Quantity,0)) as 'Total Receipt Weight'
    from OWOR T2 inner join WOR1 T4 on T2.DocEntry = T4.DocEntry
    INNER JOIN OITM T1 ON T1.ItemCode = T4.ItemCode inner join OITM T3 on T3.ItemCode = T2.ItemCode
    LEFT join IGE1 a on T2.DocNum = a.BaseRef Inner JOIN OIGE b on a.DocEntry = b.DocEntry and T4.ItemCode in (a.ItemCode)
    LEFT JOIN IGN1 c ON c.BaseRef = T2.DocNum and T2.ItemCode = c.ItemCode LEFT JOIN OIGN d on c.DocEntry = d.DocEntry
    WHERE b.Series in('101','20') and T2.PostDate >= @FromDate and T2.PostDate <= @ToDate and b.U_IssPSCName = '[%2]'
    GROUP BY T2.U_STKNO, T2.PostDate, T2.DocNum, b.DocNum, d.DocNum, b.U_IssPSCName,T2.ItemCode,T3.ItemName,
    T2.PlannedQty,T2.U_OD,
    T2.U_ID,T2.U_OD/25.4,(T2.U_OD-T2.U_ID)/2,a.ItemCode,a.Dscription  
    order by T2.DocNum desc
    Thanks & Regards,
    Nagarajan

  • How do I combine all my calendars into one and delete the others?

    I have a work computer, a home desktop, and Apple air laptop and an 1phone 4s.
    I use Outlook calendar for all my appointments and only need one calendar.
    When I get notifications of my upcoming events on the Oulook page and on my iphone, I get multiple notifications, sometimes as many as 6 times.
    How can I combine all my calendars into one and delete the others?

    Your old account is the one you migrated, but it has been renamed because the new account had the same name. "Fixing" this is a bit complicated. It is possible to transfer data from one account to the other. See Transferring files from one User Account to another.
    A cleaner solution is to do this:
    Create a temporary new admin user account with a completely different username.
    Log into this new account.
    Delete the new account you created before migrating.
    Delete the old account you migrated that has the changed name.
    Re-migrate your old account from the Mini.
    Log into the newly migrated account and delete the temporary account.
    And, the simplest solution is to use the migrated account as-is and delete the account you originally made on the new computer.

  • How to insert line number into APPLIED_CUSTOMER_TRX_LINE_ID?

    Hi All,
    I am working on the table of receivable AR_RECEIVABLE_APPLICATIONS_ALL.
    I get some information about APPLIED_CUSTOMER_TRX_LINE_ID form TRM.
    APPLIED_CUSTOMER_TRX_LINE_ID     NUMBER     (15)     
    The line number of the debit item or credit memo to which a payment or credit memo is applied
    So, I want to use APPLIED_CUSTOMER_TRX_LINE_ID to join with transaction's line (RA_CUSTOMER_TRX_LINES_ALL).
    But after applied the credit memo, the APPLIED_CUSTOMER_TRX_LINE_ID is NULL.
    How to insert line number into APPLIED_CUSTOMER_TRX_LINE_ID?

    Hi Eric,
    The application is already at the AR Invoice (header) level. Oracle doesn't give you privilege to apply the invoice at invoice line or distribution level. You need to match the applied_customer_trx_id to customer_trx_id of ra_customer_trx_all to get the applied invoice/debit memo number. Hope my comments are helpful to you.
    KG

  • HT2480 I have a new Iphone 5. I have email set up on the exchange. Every morning it asks for my password and doe not recognize it. I have to go into setting and retype the password in order for it to recognize it. How do I fix it?

    I have an Iphone 5. Email is set up on exchange. Every morning it asks for my password and then does not recognize it. I have to go into settings and retype the password in order for it to recognize it. On our other iphone it does not ask for a password. How do I fix this issue?

    Have you looked at this?
    http://www.att.com/esupport/article.jsp?sid=KB80510#fbid=fKZuZmJwiKV

  • How to read spool file and get the spool file number

    Hey everyone.
    I created a program ztemp that is calling another program ztemp2 within, ztemp2 creates a spool file. Now the requirement is I need to write a code within ztemp to download that spool request and then convert it to the pdf file. I know I can use program rstxpdft4 to convert the spool file to the PDF but for this I need to give the spool number, so can you please tell me how can I get the spool number and then fetch it to the program rstxpdft4 .
    Thank you.
    Rhul goel

    Hi,
       Please check the [link|Convert ABAP List to PDF and display without downloading first; (Rich's reply) and get the spool similarly.
    Or read from table TSP01 to get the latest spool using sy-uname.
    Regards,
    Srini.

  • I bought the HD season version of breaking bad, however I only need the regular @ 19.95. How can I change this and get the difference refunded?

    bought the HD season version of breaking bad, however I only need the regular @ 19.95. How can I change this and get the difference refunded?

    When you purchase an HD video on a supported device or computer, only HD video will be downloaded. To download the SD version, you need to download the video again from your Purchased page. Conversely, if you purchase an HD video on an unsupported device, the SD version will be downloaded. Then, you will need to download the HD version from your Purchased page. Learn more about downloading previous purchases."
    iTunes: Purchasing and viewing HD videos

  • How do i upgrade my hard drive and get it to boot in Mountain Lion?

    I have a Late 2009 Macbook 6,1 and want to install a new, larger capacity hard drive. Currently I am running Mountain Lion and don't have any install disks, so the question is, what is the process to change out the drive and get the Mac to boot after the new drive is installed. Since it is a new drive it won't have a recovery partition or any operating system files. My plan is to migrate my data using my Time Machine backup, but I worry that when I try to boot after the new drive is installed, all I will be greeted with will be a flashing question mark. I'm really having a hard time finding a step-by-step set of instructions for someone attempting what I'm trying to do. I do have an external enclosure I could put the new drive into before I put it into the Mac. Would I try using something like Migration Assistant to transfer all of the files to the new drive and then just swap out drives afterward? Would the OS migrate as well, or would I still not have a bootable drive? Or is there some kind of minimal boot disk I could burn onto a CD or flash drive and then once the machine boots go with a restore from Time Machine Backup? I'm open to any ideas anyone may have on the least painful way to go about this process. Maybe use some (hopefully free) software of some sort to clone the current drive onto the new drive while it's still in the external enclosure? Any help or ideas would be greatly appreciated!

    How to replace or upgrade a drive in a laptop
    Step One: Repair the Hard Drive and Permissions
    Boot to the Recovery HD:
    Restart the computer and after the chime press and hold down the COMMAND and R keys until the menu screen appears. Alternatively, restart the computer and after the chime press and hold down the OPTION key until the boot manager screen appears. Select the Recovery HD and click on the downward pointing arrow button.
    Repair
    When the recovery menu appears select Disk Utility. After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list.  In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive.  If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported then click on the Repair Permissions button. When the process is completed, then quit DU and return to the main menu. Select Restart from the Apple menu.
    Step Two: Remove the old drive and install the new drive.  Place the old drive in an external USB enclosure.  You can buy one at OWC who is also a good vendor for drives.
    Step Three: Boot from the external drive.  Restart the computer and after the chime press and hold down the OPTION key until the boot manager appears.  Select the icon for the external drive then click on the downward pointing arrow button.
    Step Four: New Hard Drive Preparation
      1. Open Disk Utility in your Utilities folder.
      2. After DU loads select your new hard drive (this is the entry with the
          mfgr.'s ID and size) from the left side list. Note the SMART status of
          the drive in DU's status area.  If it does not say "Verified" then the drive
          is failing or has failed and will need replacing.  Otherwise, click on the
          Partition tab in the DU main window.
      3. Under the Volume Scheme heading set the number of partitions from
          the drop down menu to one. Set the format type to Mac OS Extended
          (Journaled.) Click on the Options button, set the partition scheme to
          GUID  then click on the OK button. Click on the Partition button and
          wait until the process has completed.
      4. Select the volume you just created (this is the sub-entry under the
          drive entry) from the left side list. Click on the Erase tab in the DU main
          window.
      5. Set the format type to Mac OS Extended (Journaled.) Click on the
          Options button, check the button for Zero Data and click on OK to
          return to the Erase window.
      6. Click on the Erase button. The format process can take up to several
          hours depending upon the drive size.
    Step Five: Clone the old drive to the new drive
    Boot to the Recovery HD:
    Restart the computer and after the chime press and hold down the COMMAND and R keys until the menu screen appears. Alternatively, restart the computer and after the chime press and hold down the OPTION key until the boot manager screen appears. Select the Recovery HD and click on the downward pointing arrow button.
         1. Select Disk Utility from the main menu then press the Continue
             button.
         2. Select the destination volume from the left side list.
         3. Click on the Restore tab in the DU main window.
         4. Select the destination volume from the left side list and drag it
             to the Destination entry field.
         5. Select the source volume from the left side list and drag it to
             the Source entry field.
         6. Double-check you got it right, then click on the Restore button.
    Destination means the external backup drive. Source means the internal startup drive.
    Step Six: Open the Startup Disk preferences and select the new internal volume.  Click on the Restart button.  You should boot from the new drive.  Eject the external drive and disconnect it from the computer.

  • I have iMovie 8.0.6 and an iPhone 4S.  I took hours of videos on vacation (Australia and New Zealand) and want to make a movie.  I've imported the first batch into iMovie and started the project.  I just realized that I shot both horizontally and vertical

    I have iMovie 8.0.6 and an iPhone 4S.  I took hours of videos on vacation (Australia and New Zealand) and want to make a movie.  I've imported the first batch into iMovie and started the project.  I just realized that I shot both horizontally and vertically and when I preview (on full-screen) what I've combined, first it's wide-screen, then it's tall, narrow with wide black sides. 
    The film looks choppy, no flow, since it alternates horizontally and vertically.
    I can import the vertical clips two ways:  "Full-Original Size", or "Large 960x540."  But the vertical clips have very short, fat people.
    This didn't happen with my Flip HD; the movies are smooth and terrific.  My heart is breaking.....please, how can I make the videos match?

    Yes, I'd like to use all the video I shot, put it together with music, titles, etc. and make it consistant.  when it goes from full screen to this vertical, narrow clip, it's very awkward.....and it's so narrow, it's hard to see what I'm looking at; my eyes don't make the adjustment quickly.

  • How to increase brightness in Windows 7 and for the Option sceen?

    I have an 15" early 2011 MBP with Snow Leopard and reccently installed 64-bit Windows 7 Pro using an upgrade disk I had. Apparently the backup/upgrade disk would allow me to do a clean install despite not having a previous version of windows to base it off of now that XP is no longer supported.
    I had no initial problems installing Windows and getting the bootcamp software fully updated (3.2 I believe,) but while I was in the process of updating all of my windows software things started getting messy. I managed to update some windows functions, but eventually I ran into a real problem after downloading what I believe to be a service pack (not sure which one) that was recommended by the windows updater. After downloading the update, the computer needed to be reset.
    Upon resetting the laptop, I found that the option screen that lets you choose which partition to boot into is completely black. I can tell that the display is on because the screen is somewhat brighter than when the laptop is off, but I can't see anything.
    For grins, I tried seeing if hitting the right arrow key and then enter would take me to my windows partion, which it did. The loading screen (with the windows icon approaching and illuminating) is completely fine; however, after that loading screen, the screen appears to turn off (nothing, zilch, nada.) I let it sit there for about 5 minutes or so and still had nothing. Upon hard-resetting my computer, I found that when I tried booting windows again it gave me the options to boot into safe mode. Safe mode works and gives full brightness, normal mode does not.
    I looked on the forums and saw that deleting C:\WINDOWS\SYSTEM32\DRIVERS\ATIKMDAG.SYS could fix the issue. I downloaded Paragon, mounted the bootcamp partition and removed the offending file from my mac partition.
    The option screen was still black, but the login screen appeared after the computer tried to finish patching (the service pack patch failed.) The problem then was that the screen was incredibly dim at full brightness. I had control of the brightness settings via fn+f1/f2. All it took was dimming the screen 3 notches in order to make it go completely black. I logged in and tried updating the radeon video card, reset the computer and found myself back at the off screen issue mentioned earlier after the windows loading screen.
    I have yet to check, as this process has been extremely tiring and annoying, but I think I can fix the completely dead screen by removing the driver again. I gave this long story to show what I have done so hopefully I cam get a response I
    My burning questions are:
    What do I need to do to get the screen back to full brightness when I do get my laptop to boot into windows successfully?
    How do I fix my option screen to actually show up again instead of blindly picking the partition I want to boot into?
    Are there any windows updates that I need to avoid for 64-bit windows 7? I'm guessing whatever service pack it was I downloaded is one of them.

    I don't use the search engine, so I'm afriad I don't have direct experience here.
    What I'd probably do is modify the app so that it looks at the Host data to determine which directory it should point to for graphics, formatting, etc. You could also use the obj.conf with variables to pull graphics from directories appropriately branded. Something like:
    1) Create "additional doc directory" for images
    2) Find the entry in the obj.conf that points to the new directory
    3) Modify the path to something like /path/to/$host/images
    4) Make sure you create directories like:
    /path/to/foobar.com/images/
    /path/to/www.foobar.com/images/
    /path/to/baz.com/images/
    /path/to/www.baz.com/images/

Maybe you are looking for

  • What's the report to see the result after we run KSUB ?

    Dear All, Could you kindly help me ? I'm new for FI-CO . If i'd like to run assessment, and in the cycle I use Receiver Rule: Variable portion and type is Plan SKF . The sender will be cost center and receiver is WBS Group. Afterward, I run KSUB to r

  • How do i change iphone color scheme?

    Does anyone know how to change the color scheme for the icons on the iphone?  I would love to get rid of the awful green and blue colors on ios7.  The new release is awesome, but there should be a different color palette?  Apple has discovered the ug

  • RME - CLI reboot after IOS upgrade?

    Hi, Is there any way for RME to invoke a CLI reboot after an image upgrade job?  I maintain a network without SNMP RW permissions. LMS 3.2 RME 4.3.1 network devices - switches -  mainly 3750(regular/g/e), 3560(regular/g), and a few 2950's.

  • Problem when upload a image

    i have to upload an image in #WORKSPACE_IMAGES# , but when i choose my file, the browser view a blank page and i can't upload my image....how can i do?

  • Ios 5.1 imessage issues

    I have 3 iphones (4S models) that all have had the same appleID.  This hasn't been an issue up to this point, and allowed easy sharing of apps, movies and music.  After the latest 5.1 update, imessage is very erradic.  Prior to the update, iMessages