ABAP in BW Tranformations Syntax Correction

Hi,
As i am beginner in ABAP please correct the Start/End routine which i have written in Transformations for the below requirement
DSO1------->DSO2
While load data to DSO1-->DSO2 in need a look that refer active table of DSO3 and perform if condition to fill value to a field in DSO2
DSO1 (SOURCE FIELDS)
Field X
Field Y (X,Y are Key fields)
Field Z
Field W
DSO2 (Result Field)
Field P (The field which i want to update with Value by routine)
DSO3 (Look up)
Field A
Field B (A,B are Key fields) (A=X,B=Y)
Field C
Requirement: While loading data from DSO1-->DSO2...We should read active table of DSO3 and pass it to Internal Table (A,B,C)with a key (A=X,B=Y) and in the end routine First check wether
if Field C is not initial...then Result Field P should be updated with E
ELSE CHECK SOURCE FIELD Field Z = 1..then Result Field P should be updated with F
ELSE CHECK SOURCE FIELD Field W = T..then Result Field P should be updated with G
else if all the above conditions are not met .then Result Field P should be updated with H
Syntax i wrote (Not working correctly)
Declaration-Global
TYPES: BEGIN OF ty_sou,
W TYPE /bi0/W,
Z TYPE /bi0/Z, END OF ty_sou,
BEGIN OF ZDSO_3,
A TYPE /bi0/oiA,
B TYPE /bi0/oiB,
C TYPE /bi0/oiC, END OF ZDSO_3.
DATA : ty_ZDSO_3_wa TYPE ZDSO_3,
ty_ZDSO_3_tab TYPE TABLE OF ZDSO_3,
ty_ZDSO_3_tab_temp TYPE TABLE OF ZDSO_3.
DATA : ty_sou_tab TYPE TABLE OF ty_sou,
ty_sou_wa TYPE ty_sou.
Routine Start
LOOP AT SOURCE_PACKAGE ASSIGNING .
IF -XIS NOT INITIAL AND -Y IS NOT INITIAL.
ty_ZDSO_3_wa-A = -X.
ty_ZDSO_3_wa-B = -Y.
ty_sou_wa-Z = -Z.
ty_sou_wa-W = -W.
COLLECT ty_sou_wa INTO ty_sou_tab.
COLLECT ty_ZDSO_3_wa INTO ty_ZDSO_3_tab.
ENDIF.
ENDLOOP.
*Select Statement to select values from ZDSO_3 Active Table
SELECT A B C FROM /bic/aZDSO_300 INTO TABLE ty_ZDSO_3_tab_temp FOR ALL ENTRIES IN ty_ZDSO_3_tab WHERE
A = ty_ZDSO_3_tab-A.
SORT ty_ZDSO_3_tab BY A B.
But this is not working...i tried to debug but as i am a learner in ABAP i am not familiar.... Please advise me where or what is wrong with my code and greatful if you can make changes

Routine End
LOOP AT RESULT_PACKAGE ASSIGNING<RESULT-FIELD>-/ .
Read table ty_ZDSO_3_tab_temp into ty_ZDSO_3_wa
with key A = -P B = -Q binary search.
If sy-subrc = 0.
IF ty_ZDSO_3_wa-C IS NOT INITIAL.
<RESULT-FIELD>-/BIC/P = 'E'.
ELSEIF ty_sou_wa-Z = 1.
<RESULT-FIELD>-/-/BIC/P = 'Fu2019.
ELSEIF ty_sou_wa-W= 'T'.
<RESULT-FIELD>-/-/BIC/P = 'G'.
ELSE.
<RESULT-FIELD>-/-/BIC/P = 'H'.
ENDIF.
Endif.

Similar Messages

  • ABAP Routine in Transformations Syntax Correction

    Hi,
    As i am beginner in ABAP please correct the Start/End routine which i have written in Transformations for the below requirement
    DSO1------->DSO2
    While load data to DSO1-->DSO2 in need a look that refer active table of DSO3 and perform if condition to fill value to a field in DSO2
    DSO1 (SOURCE FIELDS)
    Field X
    Field Y (X,Y are Key fields)
    Field Z
    Field W
    DSO2 (Result Field)
    Field P (The field which i want to update with Value by routine)
    DSO3 (Look up)
    Field A
    Field B (A,B are Key fields) (A=X,B=Y)
    Field C
    Requirement: While loading data from DSO1-->DSO2...We should read active table of DSO3 and pass it to Internal Table (A,B,C)with a key (A=X,B=Y) and in the end routine First check wether
    if Field C is not initial...then Result Field P should be updated with E
    ELSE CHECK SOURCE FIELD Field Z = 1..then Result Field P should be updated with F
    ELSE CHECK SOURCE FIELD Field W = T..then Result Field P should be updated with G
    else if all the above conditions are not met .then Result Field P should be updated with H 
    Syntax i wrote (Not working correctly) 
         Declaration-Global
    TYPES: BEGIN OF ty_sou,
                   W TYPE /bi0/W,
                   Z TYPE /bi0/Z, END OF ty_sou,
    BEGIN OF ZDSO_3,
    A TYPE /bi0/oiA,
    B TYPE /bi0/oiB,
    C TYPE /bi0/oiC, END OF ZDSO_3. 
    DATA : ty_ZDSO_3_wa TYPE ZDSO_3,
    ty_ZDSO_3_tab TYPE TABLE OF ZDSO_3,
    ty_ZDSO_3_tab_temp TYPE TABLE OF ZDSO_3. 
    DATA : ty_sou_tab TYPE TABLE OF ty_sou,
                 ty_sou_wa TYPE ty_sou. 
    Routine Start
    LOOP AT SOURCE_PACKAGE ASSIGNING .
    IF -XIS NOT INITIAL AND -Y IS NOT INITIAL.
         ty_ZDSO_3_wa-A = -X.
         ty_ZDSO_3_wa-B = -Y.
      ty_sou_wa-Z = -Z.
      ty_sou_wa-W = -W. 
    COLLECT ty_sou_wa INTO ty_sou_tab.
    COLLECT ty_ZDSO_3_wa INTO ty_ZDSO_3_tab.
    ENDIF.
    ENDLOOP. 
    *Select Statement to select values from ZDSO_3 Active Table 
    SELECT A B C FROM /bic/aZDSO_300 INTO TABLE ty_ZDSO_3_tab_temp FOR ALL ENTRIES IN ty_ZDSO_3_tab WHERE
    A = ty_ZDSO_3_tab-A. 
    SORT ty_ZDSO_3_tab BY A B. 
    Routine End
    But this is not working...i tried to debug but as i am a learner in ABAP i am not familiar.... Please advise me where or what is wrong with my code and greatful if you can make changes
    Edited by: SAP7593 on Jan 21, 2010 7:56 AM
    Edited by: SAP7593 on Jan 21, 2010 7:56 AM

    Routine End
    LOOP AT RESULT_PACKAGE ASSIGNING<RESULT-FIELD>-/ . 
    Read table ty_ZDSO_3_tab_temp into ty_ZDSO_3_wa
    with key A = -P B = -Q binary search. 
    If sy-subrc = 0. 
    IF ty_ZDSO_3_wa-C IS NOT INITIAL.
    <RESULT-FIELD>-/BIC/P = 'E'.
    ELSEIF ty_sou_wa-Z = 1.
    <RESULT-FIELD>-/-/BIC/P = 'Fu2019.
    ELSEIF ty_sou_wa-W= 'T'.
    <RESULT-FIELD>-/-/BIC/P = 'G'.
    ELSE. 
    <RESULT-FIELD>-/-/BIC/P = 'H'.
    ENDIF.
    Endif.
    ENDLOOP.

  • Is this Join Query Syntax Correct???

    Is this syntax correct for this query question?  Would "used Vista cards" reflect the OrderDate Column in the where clause.  The table is from Adventureworks2012.
    How many Sales Orders (Headers) used Vista credit cards in October 2002 
    SELECT C.CardType, COUNT(*)
    FROM Sales.SalesOrderHeader S 
    JOIN Sales.CreditCard
      C
    ON S.CreditCardID=c.CreditCardID
    WHERE C.CardType = 'Vista'
    AND S.OrderDate  between '10/1/2002' and '10/31/2002'
    GROUP BY c.CardType
      

    That is correct, but be careful when writing queries where a datetime column is compared to a period of time.  In this case it looks like the time portions of OrderDate are all set to the beginning of day (00:00:00.000) so your query works as long as
    that assumption is correct.  The better way is to use an upper boundary of the next day (which means you cannot use between).  E.g., 
    select ... where S.OrderDate >= '20021001' and S.OrderDate < '20021101' 
    group by ...
    order by ...;
    If you search for the forum for "Tibor" you should be able to find a link to his website where he goes into much more detail about the tricky usage of the datetime datatype. 

  • Is the syntax correct to export tables using shell script

    can you please tell me the syntax to plaxce the exp utility in shelle script.
    Appreciate your help
    Is the syntax correct for export.
    It is throwing errors
    vi test.sh
    echo migrating data...
    echo Exporting ADDRESS_COUNTRY_CODE ...
    exp userid=scott/tiger@orcl file=address_country_code log=exp_address_country_code tables=ADDRESS_COUNTRY_CODE compress=n indexes=n constraints=n grants=n triggers=n statistics=none consistent=y query='where org_grp_i in ( 66 )' > /dev/null
    echo Exporting ASSUMPTION_DETAIL_SUMMARY ...
    exp userid=scott/tiger@orcl file=assumption_detail_summary log=exp_assumption_detail_summary tables=ASSUMPTION_DETAIL_SUMMARY compress=n indexes=n constraints=n grants=n triggers=n statistics=none consistent=y query='where org_grp_i in ( 66 )' > /dev/null

    Just follow the notes and the example in the utilities guide
    http://download-uk.oracle.com/docs/cd/B10501_01/server.920/a96652/ch01.htm#1005843
    exp scott/tiger TABLES=emp QUERY=\"WHERE job=\'SALESMAN\' and sal \<1600\"

  • ABAP routine in Transformations syntax fix

    Hi
    As i am beginner in ABAP please correct the Start/End routine which i have written in Transformations for the below requirment
    DSO1------->DSO2
    While load data to DSO1-->DSO2 in need a look that refer active table of DSO3 and perform if condition to fill value to a field in DSO2
    DSO1 (SOURCE FIELDS)
    Field X
    Field Y (X,Y are Key fields)
    Field Z
    Field W
    DSO2 (Result Field)
    Field P (The field which i want to update with Value by routine)
    DSO3 (Look up)
    Field A
    Field B (A,B are Key fields) (A=X,B=Y)
    Field C
    Requirement:
    While loading data from DSO1-->DSO2...We should read active table of DSO3 and pass it to Internal Table (A,B,C)with a key (A=X,B=Y)
    and in the end routine
    First check wether if Field C is not initial...then Result Field P should be updated with E
    ELSE CHECK SOURCE FIELD Field Z = 1..then Result Field P should be updated with F
    ELSE CHECK SOURCE FIELD Field W = T..then Result Field P should be updated with G
    else if all the above conditions are not met .then Result Field P should be updated with H
    Syntax i wrote (Not working correctly)
    GLOBAL DECLARATION:
    TYPES:
    BEGIN OF ty_sou,
    W           TYPE /bi0/W,
    Z            TYPE /bi0/Z,
    END OF ty_sou,
    BEGIN OF ZDSO_3,
    A          TYPE     /bi0/oiA,
    B          TYPE     /bi0/oiB,
    C          TYPE     /bi0/oiC,
    END OF ZDSO_3.
    DATA : ty_ZDSO_3_wa           TYPE   ZDSO_3,
                 ty_ZDSO_3_tab          TYPE   TABLE OF ZDSO_3,
                 ty_ZDSO_3_tab_temp     TYPE   TABLE OF ZDSO_3.
    DATA : ty_sou_tab            TYPE   TABLE OF ty_sou,
                ty_sou_wa             TYPE   ty_sou.
    START ROUTINE
    $$ begin of routine - insert your code only below this line        -
        LOOP AT SOURCE_PACKAGE ASSIGNING <source_fields>.
          IF  <source_fields>-XIS NOT INITIAL AND
              <source_fields>-Y  IS NOT INITIAL.
            ty_ZDSO_3_wa-A = <source_fields>-X.
            ty_ZDSO_3_wa-B = <source_fields>-Y.
            ty_sou_wa-Z =  <source_fields>-Z.
            ty_sou_wa-W  =  <source_fields>-W.
            COLLECT ty_sou_wa INTO ty_sou_tab.
            COLLECT ty_ZDSO_3_wa INTO ty_ZDSO_3_tab.
          ENDIF.
        ENDLOOP.
    *Select Statement to select values from ZDSO_3 Active Table
        SELECT A B C
        FROM /bic/aZDSO_300 INTO TABLE ty_ZDSO_3_tab_temp   FOR ALL
        ENTRIES IN
             ty_ZDSO_3_tab WHERE A = ty_ZDSO_3_tab-A.
        SORT ty_ZDSO_3_tab BY A B.
    END ROUTINE
    LOOP AT RESULT_PACKAGE ASSIGNING <result_fields> .
    Read table ty_ZDSO_3_tab_temp into ty_ZDSO_3_wa with key
    A = <result_fields>-P
    B = <result_fields>-Q
    binary search.
    If sy-subrc = 0.
    IF ty_ZDSO_3_wa-C IS NOT INITIAL.
    <result_fields>-/BIC/P = 'E'.
    ELSEIF
    ty_sou_wa-Z = 1.
    <result_fields>-/BIC/P = 'Fu2019.
    ELSEIF ty_sou_wa-W= 'T'.
    <result_fields>-/BIC/P = 'G'.
    ELSE.
    <result_fields>-/BIC/P = 'H'.
    ENDIF.
    Endif.
    ENDLOOP.
    But this is not working...i tried to debug but as i am a learner in ABAP i am not familiar....
    Please advise me where or what is wrong with my code and greatful if you can make changes

    Routine End
    LOOP AT RESULT_PACKAGE ASSIGNING<RESULT-FIELD>-/ . 
    Read table ty_ZDSO_3_tab_temp into ty_ZDSO_3_wa
    with key A = -P B = -Q binary search. 
    If sy-subrc = 0. 
    IF ty_ZDSO_3_wa-C IS NOT INITIAL.
    <RESULT-FIELD>-/BIC/P = 'E'.
    ELSEIF ty_sou_wa-Z = 1.
    <RESULT-FIELD>-/-/BIC/P = 'Fu2019.
    ELSEIF ty_sou_wa-W= 'T'.
    <RESULT-FIELD>-/-/BIC/P = 'G'.
    ELSE. 
    <RESULT-FIELD>-/-/BIC/P = 'H'.
    ENDIF.
    Endif.
    ENDLOOP.

  • ABAP Query ... syntax error ...... short dump

    Hi,
    I am getting dump when executing ABAP Query..
    Error in the ABAP Application Program
    The current ABAP program "AQL4LA==========ZTST_DATA=====" had to be terminated
    because it has
    come across a statement that unfortunately cannot be executed.
    The following syntax error occurred in program "/1BCDWB/SAPLIQ000000000486 " in
    include "/1BCDWB/LIQ000000000486$04 " in
    line 5:
    "A FUNCTION already exists with the name "/1BCDWB/IQ000000000486SSCR"."
    Any help ?
    Giri

    Hello,
    Please refer to SAP note 723577 and implement the recommendations within and regenerate the query.
    Hope this helps.
    Regards,
    David

  • Upgrading a kernel in ABAP or Java - what is correct for 7.01 and 7.1

    There are a couple ways to upgrade a kernel  depending on ABAP or Java.
    I want to know what is the best safest and approved way to upgrade an ABAP kernel based on 7.01 and 7.1
    I don't want to miss with temporary softlinks because our consultant did that and forgot abut it, which cause a huge problem.
    This is a UNIX 64 bit OS.
    Thanks
    Weyland Yutani

    Hi,
    For doing ABAP kernel upgrade there plenty of resources available. You can refer the following guide for a comprehensive overview with step by step instruction of Kernel upgrade process :-
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/70d8838d-cb8f-2c10-7ab8-d1504670fbb8?quicklink=index&overridelayout=true
    Just make sure to check the following points before starting the upgrade :-
    1) Take full backup of existing Kernel directory
       After taking full backup of old kernel directory, check the total no. of files in the backup kernel directory by #ls -al|wc -l & cross check same files exist in the orginal kernel directory. This should be done before starting actual kernel upgrade - just to ensure that after wiping out current kernel dir and then after applying new kernel if there is any issue & you have restore the old kernel then you are not missing any files.
    2) Check the softlinks in the existing kernel directory & keep a screenshot so that after kernel upgrade you can create those links.
    Use #ln -s <remote filesystems to be linked> <local file at Kernel directory>
        e.g :  3> ln -s a b
         sapsys 1 Aug 26 09:34 b -> a
        Thus if you wish then you can create those softlinks manually. This may be required for brtools, TSM etc related softlink depending on your scenario you can recreate the links.

  • Message to SAP -not possible to enter FMS syntax correctly into this forum

    Please do something about this.
    If I try to enter something like this:
    SELECT CASE WHEN $[$13.10.Number]>0 THEN 'OK' ELSE NULL END
    it is corrupted when I post. You can see what it is supposed to read, but presumably the square brackets are translated as a Link by your editor. This is not very useful, and very annoying when trying to help other users. Square brackets are an integral part of B1 queries so please, either give us a workaround or remove this function. Or ditch the editor. The forum is littered with examples of this.
    Does this annoy anybody else? Make your feelings known.

    Bruce,
    Quick tip to avoid the Forum interface corrupting your script is to use the Code Tag shown next to the Bold, Italics and Underline tag on top of this area with a less than..greater than symbol.
    or use backslash as shown below
    '[%0\]'    $\[OCRD.CardCode]
    Backslash after the first dollar sign and backslash before the last ] (square bracket)
    Suda

  • Query syntax corrections.

    How can i  define fdate & tdate as input variables  instead of static data in  this query?
    declare @FDate nvarchar(8)='20120201'
    declare @TDate nvarchar(8)='20140331'
    select OACT.AcctCode,OACT.AcctName,SUM(JDT1.Debit-JDT1.Credit)[Purchase Amount] from JDT1
    inner join oact on JDT1.Account=OACT.AcctCode
    --where TransType in ('18','19','20','21')
    --and JDT1.RefDate between @FDate and @TDate
    INNER JOIN (
    select OPCH.TransId, OPCH.DocType, OPCH.ObjType FROM OPCH WHERE OPCH.DocDate BETWEEN @FDate and @TDate AND OPCH.DocType='I'
    UNION ALL
    select OPDN.TransId, OPDN.DocType, OPDN.ObjType FROM OPDN WHERE OPDN.DocDate BETWEEN @FDate and @TDate AND OPDN.DocType='I'
    UNION ALL
    select ORPD.TransId, ORPD.DocType, ORPD.ObjType FROM ORPD WHERE ORPD.DocDate BETWEEN @FDate and @TDate AND ORPD.DocType='I'
    UNION ALL
    select ORPC.TransId, ORPC.DocType, ORPC.ObjType FROM ORPC WHERE ORPC.DocDate BETWEEN @FDate and @TDate AND ORPC.DocType='I'
    )TRANS ON JDT1.TransId=TRANS.TransId
    group by OACT.AcctCode,OACT.AcctName

    Nagarajan,
    Im forgot to post my entire code in my previous reply.Please have a look in the following  code this report, contains  several sub queries for financial auditing purposes .For every execution i need to change the date range dynamically. Im always execute this query directly in sql.But i want to change this query and let everyone to access  and execute this from within SAP BI.Please help.
    declare @FDate nvarchar(8)='20110101'
    declare @TDate nvarchar(8)='20110131'
    select OACT.AcctCode,OACT.AcctName,SUM(JDT1.Debit-JDT1.Credit)[Purchase Amount] from JDT1
    inner join oact on JDT1.Account=OACT.AcctCode
    --where TransType in ('18','19','20','21')
    --and JDT1.RefDate between @FDate and @TDate
    INNER JOIN (
    select OPCH.TransId, OPCH.DocType, OPCH.ObjType FROM OPCH WHERE OPCH.DocDate BETWEEN @FDate and @TDate AND OPCH.DocType='I'
    UNION ALL
    select OPDN.TransId, OPDN.DocType, OPDN.ObjType FROM OPDN WHERE OPDN.DocDate BETWEEN @FDate and @TDate AND OPDN.DocType='I'
    UNION ALL
    select ORPD.TransId, ORPD.DocType, ORPD.ObjType FROM ORPD WHERE ORPD.DocDate BETWEEN @FDate and @TDate AND ORPD.DocType='I'
    UNION ALL
    select ORPC.TransId, ORPC.DocType, ORPC.ObjType FROM ORPC WHERE ORPC.DocDate BETWEEN @FDate and @TDate AND ORPC.DocType='I'
    )TRANS ON JDT1.TransId=TRANS.TransId
    group by OACT.AcctCode,OACT.AcctName
    select OACT.AcctCode,OACT.AcctName,SUM(JDT1.Debit-JDT1.Credit)[Sales Amount] from JDT1
    inner join oact on JDT1.Account=OACT.AcctCode
    --where TransType in ('13','14','15','16')
    --and JDT1.RefDate between @FDate and @TDate
    INNER JOIN (
    select ODLN.TransId, ODLN.DocType, ODLN.ObjType FROM ODLN WHERE ODLN.DocDate BETWEEN @FDate and @TDate AND ODLN.DocType='I'
    UNION ALL
    select ORDN.TransId, ORDN.DocType, ORDN.ObjType FROM ORDN WHERE ORDN.DocDate BETWEEN @FDate and @TDate AND ORDN.DocType='I'
    UNION ALL
    select OINV.TransId, OINV.DocType, OINV.ObjType FROM OINV WHERE OINV.DocDate BETWEEN @FDate and @TDate AND OINV.DocType='I'
    UNION ALL
    select ORIN.TransId, ORIN.DocType, ORIN.ObjType FROM ORIN WHERE ORIN.DocDate BETWEEN @FDate and @TDate AND ORIN.DocType='I'
    )TRANS ON JDT1.TransId=TRANS.TransId
    group by OACT.AcctCode,OACT.AcctName
    select OACT.AcctCode,OACT.AcctName,SUM(JDT1.Debit-JDT1.Credit)[Stock Taking Amount] from JDT1
    inner join oact on JDT1.Account=OACT.AcctCode where TransType in ('58')
    and JDT1.RefDate between @FDate and @TDate
    group by OACT.AcctCode,OACT.AcctName
    select OACT.AcctCode,OACT.AcctName,SUM(JDT1.Debit-JDT1.Credit)[SO/SIAmount] from JDT1
    inner join oact on JDT1.Account=OACT.AcctCode where TransType in ('59','60')
    and JDT1.RefDate between @FDate and @TDate
    group by OACT.AcctCode,OACT.AcctName
    select OACT.AcctCode,OACT.AcctName,SUM(JDT1.Debit-JDT1.Credit)[Inventory Amount] from JDT1
    inner join oact on JDT1.Account=OACT.AcctCode where TransType in ('67')
    and JDT1.RefDate between @FDate and @TDate
    group by OACT.AcctCode,OACT.AcctName
    select OACT.AcctCode,OACT.AcctName,SUM(JDT1.Debit-JDT1.Credit)[ Inventory Revaluation Amount] from JDT1
    inner join oact on JDT1.Account=OACT.AcctCode where TransType in ('162')
    and JDT1.RefDate between @FDate and @TDate
    group by OACT.AcctCode,OACT.AcctName
    select OACT.AcctCode,OACT.AcctName,SUM(JDT1.Debit-JDT1.Credit)[ Landed cost Amount] from JDT1
    inner join oact on JDT1.Account=OACT.AcctCode where TransType in ('69')
    and JDT1.RefDate between @FDate and @TDate
    group by OACT.AcctCode,OACT.AcctName

  • Syntax is not correctly checked while using keep dense_rank

    Hi,
    Looks like Oracle doesn't check the syntax correctly, "order" is not required to write before "by" in keep (dense_rank...).
    DB version 11.1.0.6
    SQL> with t as (select 5 val, 2 val2 from dual union all
      2  select 1 val, 9 val2 from dual union all
      3  select 2 val, 9 val2 from dual)
      4  select sum(val) keep (dense_rank last blabla by val2) total_9 from t;
       TOTAL_9
             3Looks like a bug or what?

    Did you get any error in 10g?
    It is running in my 10g, too.
    I've to modify your query as i'm running this in Oracle 8 client. ;)
    satyaki>
    satyaki>select * from v$version;
    BANNER
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Prod
    PL/SQL Release 10.2.0.1.0 - Production
    CORE    10.2.0.1.0      Production
    TNS for 32-bit Windows: Version 10.2.0.1.0 - Production
    NLSRTL Version 10.2.0.1.0 - Production
    real: 30
    satyaki>
    satyaki>
    satyaki>
    satyaki>select sum(val) keep (dense_rank last blabla by val2) total_9
      2  from (
      3         select 5 val, 2 val2 from dual union all
      4         select 1 val, 9 val2 from dual union all
      5         select 2 val, 9 val2 from dual
      6     );
      TOTAL_9
            3
    real: 11
    satyaki>
    satyaki>
    satyaki>with tt
    unknown command "with tt" - rest of line ignored.
    satyaki>as (
    unknown command "as (" - rest of line ignored.
    satyaki>       select 5 val, 2 val2 from dual union all
      2         select 1 val, 9 val2 from dual union all
      3         select 2 val, 9 val2 from dual
      4     )
      5  select sum(val) keep (dense_rank last blabla by val2) total_9
      6  from tt;
    ERROR at line 4:
    ORA-00933: SQL command not properly ended
    real: 70
    satyaki>Regards.
    Satyaki De.

  • What needs to be corrected in UCCHECK ?

    Hello,
    We need to pass unicode soon so we are executing transaction UCCHECK in our system.
    We don't know really what to put in the selection screen so we put * in all parameters and set checkboxes in order to take the maximum objetcs possible.
    We saw the documentation but it is not clear for us.
    We obtain a very long list of programs in error or in warning, and some other correct.
    Could you tell me if :
    - We need to execute uccheck with the selection I describe you ?
    - Do we need to correct only the errors ? or also the warnings ?
    Thank you for your answers.
    Vanessa Roulier

    Hi,
    The are many documents which are available for how to make the programs Unicode compatible.
    Step 1
    In non-Unicode system
    Adapt all ABAP programs to Unicode syntax and runtime restrictions
    Set attribute "Unicode enabled" for all programs
    Step 2
    Set up a Unicode system
    Unicode kernel + Unicode database
    Only ABAP programs with the Unicode attribute are executable
    Do runtime tests in Unicode system
    Check for runtime errors
    Look for sematic errors
    Check ABAP list layout with former double byte characters
    Use UCCHECK to analyze your applications:
    Remove errors
    Inspect statically not analyzable places (optional)
    Untyped field symbols
    Offset with variable length
    Generic access to database tables
    Set unicode program attribute
    using UCCHECK or SE38 / SE24 / ...
    Do additional checks with SLIN (e.g. matching of actual and formal parameters in function modules)
    Refer following links for more details.
    http://service.sap.com/unicode@sap
    http://www.unicode.org
    Hope this will help you, do revert if you need any more info.
    Best Regards,
    Sachin.

  • "Casting" in ABAP

    Hello,
    We all know there is casting in Java, i.e., we can convert a certain data type to something that has a certain inheritance relationship with it. Is there such conversion in ABAP? Say for exaple, if I have a variable that is defined as type Fileextern and I would like to convert it to String, how can I do it in ABAP? Thanks!

    Syntax for casting in OO, is like this.
    * References to the objects
      data: r_account type ref to lcl_account.
      data: r_checking type ref to lcl_checking.
    * Is the account, a checking account?
       r_checking ?= r_account.
    You will learn this when you get to ABAP OO. 
    Regards,
    Rich Heilman

  • Status of Abap program in process chain

    Hi,
    Is there a way to create process chain of type abap program that determine what the status of the process? In other words, to decide what the status color of the process (red/ green) according to some conditions in the code?
    Thanks,
    Mohamad

    Hi,
    look at this how to
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/509f3ae6-e36e-2910-48a8-ab43dc167dd9
    also:
    1.create a custom defined abap process type which ends correct or invalid
    2. create an abap whith 'E' message command (ends incorrect/red) or 'I' message tpye (ends correct/green)
    /manfred

  • How to select - Who did create ABAP user? Why Provisioning was started?

    Dear Guru,
    Could you please help me to understand how to find the person who created ABAP user via SAP IDM (7.2 SP9, Win2012R2, Oracle11g)?
    The story was following:
    1. User in IDM had role
    2. Administrator add privileges to this user's role, one of privileges was PRIV:<SIDCLNT>:ONLY
    3. IDM run Provisioning tasks and created user in ABAP system.
    All was correct.
    Now after some time I need to know who created ABAP user in SAP.
    I try to find what tasks were processed  the user with mskeyvalue='104622':
    select A.auditid, A.AuditRoot, A.RefAudit auditParent , A.userid , A.StartedBy, A.taskid,t.taskname, A.mskey, A.PostedDate, A.StatusDate, A.provstatus, A.LastAction , A.msg
    from MXP_AUDIt A, MXP_tasks t where A.taskId = t.taskID
    and A.msKey in (select mcmskey from idmv_entry_simple where mcmskeyvalue='104622' and MCentrytype='MX_PERSON')
    and posteddate between to_date('17.03.2014 15:47','dd.mm.yyyy hh24:mi') and to_date('17.03.2014 15:50','dd.mm.yyyy hh24:mi')
    order by auditroot,RefAudit
    and see result:
    So I have auditid=159626 and auditroot=159625 for task "1. Create HR ABAP User".
    That's all that I can find about it.
    In this concrete situation I know that administrator change the user's role and as result user was created.
    If I check MXP_AUDIt for previous AUDITID values (159624,159623,159622,159621) I will really know that it's auditsid for role changing with same fererenced value refaudit=159621:
    select * from mxp_audit where refaudit=159621
    My question is:
    how to connect these events: role change (auditid=159621) and Provisioning started (auditid=159625) ?
    Best regards,
    Natalia.

    Hi Simona,
    I tried your select, but it's not clear for me where is the answer:
    mcthismskey,mcothermskey,mcchangenumber,mcmodifyaudit,mcauditid,mcauditid,mclastaudit,MCADDAUDIT  FROM mxi_link WHERE mcthismskey=56327
    mcmodifytime between to_date('17.03.2014 15:47','dd.mm.yyyy hh24:mi') and to_date('17.03.2014 15:50','dd.mm.yyyy hh24:mi') order by mcmodifytime
    And then
    select * from mcmv_audit where auditref=159625
    I got the result:
    But I don't see connection between Provisioning audit and "Change role" task.
    best regards,
    Natalia.

  • Syntax higlighting (php inside html docs)

    Hi.
    Instead of .php I use .html to parse my php files. But DW
    shows the syntax highlighting of html even between <?php ?>.
    This is pretty uncomfortable when writing php. Is there a way I can
    render the syntax correctly? Perhabs there is an extension (I can't
    find anything).
    Hope for some help.
    Thanks.

    suntrop wrote:
    > Is there a way I can render the syntax correctly?
    Yes. I haven't done it myself, but I believe the following
    technote
    contains the relevant information:
    http://www.adobe.com/go/tn_16410
    David Powers, Adobe Community Expert
    Author, "The Essential Guide to Dreamweaver CS3" (friends of
    ED)
    Author, "PHP Solutions" (friends of ED)
    http://foundationphp.com/

Maybe you are looking for

  • Error in invoking target ntcontab.o of makefile ../../../ins_net_client.mk

    Hi, please help me on this installation problem as i facing an error. I suppose my make.log file is the same as written on Note:234898.1. The next solution i suppose is fix and install a C++ compiler. Please help/advice/suggest me on C++ compiler. My

  • Broadcast safe and Text

    When I use title 3d or the regular text in FCP I get the red broadcast safe warnings. Do I have to render eveything out to QT and import it back and apply the broadcast safe filter? Or is there a way to do it in the text settings?

  • Inter Company STO Invoice verification

    Hi, I have few doubts in Invoice verification for Cross company scenario 1.Is there any reference or link between the Billing (VF01) document with LIV (MIRO)  ?    i.e When we create LIV can we refer the Billing document.? 2. In the SD document Flow

  • Objects disappeared

    Post Author: yoav CA Forum: Administration Hi all, All the objects in my CMC have disappeared although I can see them in the Webi and I the Object Repository Helper I can also see under cmc >hom>folders: total folders:6 but I can't actually see themu

  • What is the parallel command to select in Java?

    I mean if 2 or more process try to connect me how can I accept them all?