Different Ways of Code

Can I build a query in a different way without using alias tables of position,physical Quantity in the WEBI report level.
(SELECT   DISTINCT pp2.trade subtrade,
                                         pq2.shipment subshipment,
                                         pp2.POSITION subposition,
                                         pq2.measure
                                    FROM counterparty cp,
                                         position pp,
                                         physicalquantity pq,
                                         physicalquantity pq2,
                                         position pp2
                                   WHERE pp.POSITION = pq.POSITION
                                     AND pq.quantitystatus = 'ACTUAL'
                                     AND pq.shipment = pq2.shipment
                                     AND pp2.POSITION = pq2.POSITION
                                     AND pq2.quantitystatus = 'ACTUAL'
                                     AND (pp.position <> pp2.position OR pp2.position IS NULL)
                                     AND pp.counterparty = cp.counterparty(+)) 

My questions:
Why are you using "position pp" and "position pp2"?
Why are you using "physicalquantity pq" and "physicalquantity pq2"?
Are you using custom SQL?   "Edit query" / SQL / use Custom SQL
If you really need this like it is, I think you can change this sentence a little
Other way of doing this is: In the "Edit Query"
- Create 2 queries, one for position and other for physicalquantity
- Select key figures and dimensions/caracteristics from tables then in the "Query filters" add attributes for selection, this way you will turn this code more simple.
Finally go to "Edit report" and select "Merge dimensions"
Hope this helps

Similar Messages

  • Challenge: Different ways to crash the JVM.

    This is a challenge to find different ways to crash the JVM with code written in Java.
    For starters: Mis-use of the Unsafe class.
    Field field = Unsafe.class.getDeclaredField("theUnsafe");
    field.setAccessible(true);
    Unsafe unsafe = (Unsafe) field.get(null);
    unsafe.getObject(null, 0L); // or many variations on methods in this class.

    Although I presume you mean the latest JVM (6u11), I can reproduce a crash with 1.5.0_05 fairly frequently using the SQL tool "squirrel" ( [http://squirrel-sql.sourceforge.net/]) during startup (while the splash screen is visible):
    # An unexpected error has been detected by HotSpot Virtual Machine:
    #  SIGSEGV (0xb) at pc=0xb7a02c41, pid=9019, tid=2651868080
    # Java VM: Java HotSpot(TM) Server VM (1.5.0_05-b05 mixed mode)
    # Problematic frame:
    # V  [libjvm.so+0x39ec41]The crash is not reproducible on 6u10 (haven't tried it with 6u11), so I don't know how relevant this tidbit actually is but would be glad to check into it with a few other JVMs. For what it's worth, the above happens on RH Enterprise Linux (2.6.9 kernel, smt, Xeon CPU).

  • Different ways to find Customer exit, User Exit & Badi

    Dear All,
    What are the different ways by which we can find  Customer Exit, User Exit & Badi for a given transaction code
    Thanks
    Ravindra suvarna

    <b>use  this report  u  can  find associate badi and  user exit both for  perticular transaction</b>&----
    *& Report  ZNEGI16                                                     *
    REPORT  ZNEGI16                                 .
    TABLES : TSTC,
    TADIR,
    MODSAPT,
    MODACT,
    TRDIR,
    TFDIR,
    ENLFDIR,
    SXS_ATTRT ,
    TSTCT.
    DATA : JTAB LIKE TADIR OCCURS 0 WITH HEADER LINE.
    DATA : FIELD1(30).
    DATA : V_DEVCLASS LIKE TADIR-DEVCLASS.
    PARAMETERS : P_TCODE LIKE TSTC-TCODE,
    P_PGMNA LIKE TSTC-PGMNA .
    DATA wa_tadir type tadir.
    START-OF-SELECTION.
    IF NOT P_TCODE IS INITIAL.
    SELECT SINGLE * FROM TSTC WHERE TCODE EQ P_TCODE.
    ELSEIF NOT P_PGMNA IS INITIAL.
    TSTC-PGMNA = P_PGMNA.
    ENDIF.
    IF SY-SUBRC EQ 0.
    SELECT SINGLE * FROM TADIR
    WHERE PGMID = 'R3TR'
    AND OBJECT = 'PROG'
    AND OBJ_NAME = TSTC-PGMNA.
    MOVE : TADIR-DEVCLASS TO V_DEVCLASS.
    IF SY-SUBRC NE 0.
    SELECT SINGLE * FROM TRDIR
    WHERE NAME = TSTC-PGMNA.
    IF TRDIR-SUBC EQ 'F'.
    SELECT SINGLE * FROM TFDIR
    WHERE PNAME = TSTC-PGMNA.
    SELECT SINGLE * FROM ENLFDIR
    WHERE FUNCNAME = TFDIR-FUNCNAME.
    SELECT SINGLE * FROM TADIR
    WHERE PGMID = 'R3TR'
    AND OBJECT = 'FUGR'
    AND OBJ_NAME EQ ENLFDIR-AREA.
    MOVE : TADIR-DEVCLASS TO V_DEVCLASS.
    ENDIF.
    ENDIF.
    SELECT * FROM TADIR INTO TABLE JTAB
    WHERE PGMID = 'R3TR'
    AND OBJECT in ('SMOD', 'SXSD')
    AND DEVCLASS = V_DEVCLASS.
    SELECT SINGLE * FROM TSTCT
    WHERE SPRSL EQ SY-LANGU
    AND TCODE EQ P_TCODE.
    FORMAT COLOR COL_POSITIVE INTENSIFIED OFF.
    WRITE:/(19) 'Transaction Code - ',
    20(20) P_TCODE,
    45(50) TSTCT-TTEXT.
    SKIP.
    IF NOT JTAB[] IS INITIAL.
    WRITE:/(105) SY-ULINE.
    FORMAT COLOR COL_HEADING INTENSIFIED ON.
    Sorting the internal Table
    sort jtab by OBJECT.
    data : wf_txt(60) type c,
    wf_smod type i ,
    wf_badi type i ,
    wf_object2(30) type C.
    clear : wf_smod, wf_badi , wf_object2.
    Get the total SMOD.
    LOOP AT JTAB into wa_tadir.
    at first.
    FORMAT COLOR COL_HEADING INTENSIFIED ON.
    WRITE:/1 SY-VLINE,
    2 'Enhancement/ Business Add-in',
    41 SY-VLINE ,
    42 'Description',
    105 SY-VLINE.
    WRITE:/(105) SY-ULINE.
    endat.
    clear wf_txt.
    at new object.
    if wa_tadir-object = 'SMOD'.
    wf_object2 = 'Enhancement' .
    elseif wa_tadir-object = 'SXSD'.
    wf_object2 = ' Business Add-in'.
    endif.
    FORMAT COLOR COL_GROUP INTENSIFIED ON.
    WRITE:/1 SY-VLINE,
    2 wf_object2,
    105 SY-VLINE.
    endat.
    case wa_tadir-object.
    when 'SMOD'.
    wf_smod = wf_smod + 1.
    SELECT SINGLE MODTEXT into wf_txt
    FROM MODSAPT
    WHERE SPRSL = SY-LANGU
    AND NAME = wa_tadir-OBJ_NAME.
    FORMAT COLOR COL_NORMAL INTENSIFIED OFF.
    when 'SXSD'.
    For BADis
    wf_badi = wf_badi + 1 .
    select single TEXT into wf_txt
    from SXS_ATTRT
    where sprsl = sy-langu
    and EXIT_NAME = wa_tadir-OBJ_NAME.
    FORMAT COLOR COL_NORMAL INTENSIFIED ON.
    endcase.
    WRITE:/1 SY-VLINE,
    2 wa_tadir-OBJ_NAME hotspot on,
    41 SY-VLINE ,
    42 wf_txt,
    105 SY-VLINE.
    AT END OF object.
    write : /(105) sy-ULINE.
    ENDAT.
    ENDLOOP.
    WRITE:/(105) SY-ULINE.
    SKIP.
    FORMAT COLOR COL_TOTAL INTENSIFIED ON.
    WRITE:/ 'No.of Exits:' , wf_smod.
    WRITE:/ 'No.of BADis:' , wf_badi.
    ELSE.
    FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
    WRITE:/(105) 'No userexits or BADis exist'.
    ENDIF.
    ELSE.
    FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
    WRITE:/(105) 'Transaction does not exist'.
    ENDIF.
    AT LINE-SELECTION.
    data : wf_object type tadir-object.
    clear wf_object.
    GET CURSOR FIELD FIELD1.
    CHECK FIELD1(8) EQ 'WA_TADIR'.
    read table jtab with key obj_name = sy-lisel+1(20).
    move jtab-object to wf_object.
    case wf_object.
    when 'SMOD'.
    SET PARAMETER ID 'MON' FIELD SY-LISEL+1(10).
    CALL TRANSACTION 'SMOD' AND SKIP FIRST SCREEN.
    when 'SXSD'.
    SET PARAMETER ID 'EXN' FIELD SY-LISEL+1(20).
    CALL TRANSACTION 'SE18' AND SKIP FIRST SCREEN.
    endcase.

  • Different ways to implement OM Module

    Hi All,
    I am new to this, Please let me know all the 5 different ways to implement OM and PA module in HCM

    Basics of OM
    OM is mainly used to perform numerous business and human resources processes. As the first step an organizational plan is created. The organizational plan is a functional structure representing the enterprise. In OM, the current organizational plan can be created and additional organizational plans are created as archives (this provides a clear picture of the organization at any point in time:past, present or future). Organizational Management is the basis for additional Human Resources components and functions as well as for SAP Business Workflow.
    OM is installed before Personnel Development(PD), Recruitment, Compensation Management (CM/ECM), Workflow, Time Management, Security, ESS/MSS etc. OM structure provides the foundation for these modules and streamlines business processes. For example MSS setup can be such that the manager will be able to view only the details of those working under him/her - the details of persons working under the manager are picked up from OM. Similarly data from OM is used when WF has to route the work of approving the leave of an employee to his/her manager.
    OM is based on the objects and their relationships. Jobs, tasks, positions, etc are the objects. These objects are created in OM. The relationship between various objects is also stored in OM.
    Transaction codes
    PPOM - Change org Unit
    PO03 - Maintain Jobs
    P013 - Maintain Position
    PO10 - Maintain Organizational Unit
    PP01 - Maintain Plan Data (menu-guided)
    PP02 - Maintain Plan Data (Open)
    PP03 - Maintain Plan Data (Event-guided)
    PP05 - Number Ranges
    PP06 - Number Ranges Maintenance HR Data
    PP07 - Tasks/Descriptions
    PP69 - Choose Text for Organizational Unit
    PP90 - Setup Organization
    PP01 - Change Cost Center Assignment
    PP02 - Display Cost Center Assignment
    PP03 - Change Reporting Structure
    PP04 - Display Reporting Structure
    PP05 - Change Object indicators (O/S)
    PP06 - Change Object indicators OS
    PPOA - Display Menu Interface (with dyn.)
    PPOC - Create Organizational Unit
    PPOM - Maintain Organizational Plan
    PPOS - Display Organizational Plan
    PQ01 - Events for Work Center
    PQ02 - Events for Training Program
    PQ03 - Events for Job
    PQ04 - Events for Business Event Type
    PQ06 - Local Events
    PQ07 - Resource Events
    PQ08 - Events for External Person
    PQ09 - Events for Business Event Group
    PQ10 - Events for Organizational Unit
    PQ11 - Events for Qualification
    PQ12 - Resource Type Events
    PQ13 - Events for Position
    PQ14 - Events for Task
    PQ15 - Events for Company
    PSO5 - PD : Administration Tool
    PSOA - Work Center Reporting
    PSOC - Job Reporting
    PSOG - Org Mgmt General Reporting
    PSO1 - Tools Integration PA-PD
    PSOO - Organizational Unit Reporting
    PSOS - Position Reporting
    PSOT - Task Reporting
    Configuration steps apart from steps which were given by Teja
    IMGPersonnel management Organizational management  Basic settings  Maintain number ranges  set up number assignment for all plan versions
    Maintain object type:
    IMGPersonnel management  Organizational management  Basic settings  Data model enhancement  maintain object type
    Maintain infotypes
    IMGPersonnel management Organizational management  Basic settings  Data model enhancementu2014infotype maintenance  maintain infotypes
    Relationaship maintenance:
    IMGPersonnel management Organisational management  Basic settings  Data model enhancement  Relationship maintenance  maintain relationships
    Maintain evaluation paths:
    IMGPersonnel management Organisational management  Basic settings Maintain evaluation paths
    Maintain personnel actions:
    IMGPersonnel management Organisational management  Basic settings Maintain personnel actions
    Activate inheritance of account assignment features
    IMGPersonnel management Organisational management  Basic settings Activate inheritance of account assignment features
    Setup integration with Personnel Administration
    IMGPersonnel management Organisational management  Basic settings Integration  Setup integration with PA
    Transfer data from Pa
    IMGPersonnel management Organisational management  Basic settings integration  transfer data from PA
    Perepare integration with Pa
    MGPersonnel management Organisational management  Basic settings integration Prepare integration with PA
    Transfer data to PA
    IMGPersonnel management Organisational management  Basic settings integration Transfer data to PA
    Check integration consistency
    IMGPersonnel management Organisational management  Basic settings integration Check integration consistency

  • Wt are different ways to find enhancement spots(User Exits) in ECC 6.0??

    Hi Friends,
    How are you all doing??
    Friends relevant  answers are awarded points. Pls give solutions..
    What are the different ways to find the enhancement spots (i mean user exit points) in ECC 6.0??
    I want to find the enhancement spot in sale order transaction (va01/va02) after save happening or else after commit happen. In that i need to call the badi method on_costing_component. So friends could you give solution for this.

    Hi
    You can see this document for knowing the Userexits for a given Trxn.
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/abap/abap-code-samples/userexits%20in%20a%20transaction.doc">Listing UserExits in Transactions</a>
    Regards
    Raj

  • 2 different ways to setup IPSec ?

    Hello,
    I am currently trying to setup IPSec tunnel between a pfSense router and a Windows Server 2008R2 (The windows server is located behind a router with NAT enable).
    First of all, I found two different ways to configure IPsec on Windows :
    1) Through Windows Firewall with advanced Security
    2) Through IPSec snap-in into MMC.
    Which one should I use ?
    Well, anyhow I got some troubles to negotiate  phase1. By analyzing packets, it turns out that Windows server always return a NO_PROPOSAL_CHOSEN error code.
    My settings for phase1 (on both sides):
    Authentication  method: PSK
    Negotiation mode: main
    Encryption: 3DES
    Hash: SHA1
    DH Key group : 2 (1024)
    Lifetime: 28800
    (NAT-T Enabled on pfSense)
    Finally, I noticed that it is possible to define peer identifiers on pfSense. Is it possible to do the same on the windows server or does it automatically use the IP addresses as peer identifiers ?
    Any help would be greatly appreciated.
    Best regards,

    Hi bibibubu1,
    The 2008r2 can’t establish an IPsec tunnel behind NAT-T have a known issue, please confirm the following KB meet your environment then install the hotfix. Another possible
    is you have select the matching Encryption schemes.
    You cannot establish an IPsec tunnel to a computer that is running Windows 7 or Windows Server 2008 R2 through a NAT device
    http://support.microsoft.com/kb/2523881
    I’m glad to be of help to you!
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • URGENT Different ways of creating portals (Daniel & subbu Have a look and answer)

    Hi all,
         My primary aim is to run an existing application in a portal server.
    My application is running in weblogic6.1. I need to provide a link to that application
    from a portlet.
    I was going thro' the newsgroups and I found out the following responses for my
    requirement,
    I am not clear with these answers.
    1) I need to know what is an IFRAME and some more steps to execute the answer
    given by
    Daniel selman.
    2) Can I convert an URL into portlet?
         This URL content should be shown as it, without has to write any code from the
    side of developer.
    Plz give me some detailed steps to execute this.
    If you guyz can give me some good reference document probably a cook book sort
    of thing, then I will feel more comfortable.
    Thanx in advance,
    Prasanna
    Different ways of creating portlets
    Answered By Daniel selman.
    You can also use an IFRAME inside a Portlet to "include" an external URL within
    a Portlet page.
    I have attached an example of doing this (content.jsp for the portlet uses an
    IFRAME to include www.google.com).
    Can I convert an URL into portlet?
    Answered By Subbu Allamaraju <subbuATBeaDOTCom>
    This URL content should be shown as it, without has to write any code from the
    side of developer. The example provided in portal installation needs demonstrates
    this feature to some extent. But the developer is supposed to extract HTML content
    he/she wants to see and put it in the JSP.
    If the URL is pointing to a page in the same web app, it is straight forward
    to make it a portlet.
    I have few JSPs running in a machine that is remote to the portal node, and which
    is accessible through a proxy from portal. Can I convert these applications into
    portlets?
    Answered By Subbu Allamaraju <subbuATBeaDOTCom>
    The easiest approach is make those remote apps available as web services. Please
    look at the portal wizard that can create portlets to talk to web services. The
    same wizard will also help convering remote
    URLs to portlets.
    I have a full fledged webapplication running on weblogic server. But for some
    additional features (commercial services) I need to used portal server. How do
    i modify the existing site for the desired
    change?
    Answered By Subbu Allamaraju <subbuATBeaDOTCom>
    This will involve some amount of redesign since you're converint a regular web
    site into a portal (the domain/portal wizards will help you do this). You'll then
    need to create a new portal app, and convert those web apps into portlets, and
    add these portlets to the new portal app.

    Prasanna,
    It is impossible to answer this question is a general way, it all depends on
    what the other web application is doing. If it is just returning static HTML
    then a home-grown solution (scrape taglib / IFRAME) and some URL rewriting
    will suffice. If the remote application requires authentication, uses SSL,
    cookies, Javascript, displays pop-ups etc. then things can get complicated
    extremely quickly. At that point you probably need to use a 3rd-party web
    scraping engine (Kapow for example. Peter Laird posted a list of many
    others.)
    There are network throughput, single sign-on, and performance issues to
    consider. Obviously the most performant solution entails converting your
    exisitng WLS application into a Portal application, by refactoring its JSPs,
    deploying its EJBs etc. Alternatively making remote calls into your business
    objects (EJBs) or deploying WebServices to extract the DATA from the remote
    application independent of the presentation may be an option for well
    architected applications.
    So, sorry, I'm afraid it is very hard to generalize these things into much
    more than a list of issues that you should consider as you work through the
    possible solutions.
    FYI: IFRAME is supported by IE 5+ and Netscape 6.x:
    http://www.webreview.com/browsers/browser_implementation.shtml
    Sincerely,
    Daniel Selman
    "Prasanna" <[email protected]> wrote in message
    news:[email protected]...
    >
    Hi all,
    My primary aim is to run an existing application in a portal server.
    My application is running in weblogic6.1. I need to provide a link tothat application
    from a portlet.
    I was going thro' the newsgroups and I found out the following responsesfor my
    requirement,
    I am not clear with these answers.
    1) I need to know what is an IFRAME and some more steps to execute theanswer
    given by
    Daniel selman.
    2) Can I convert an URL into portlet?
    This URL content should be shown as it, without has to write any code fromthe
    side of developer.
    Plz give me some detailed steps to execute this.
    If you guyz can give me some good reference document probably a cook booksort
    of thing, then I will feel more comfortable.
    Thanx in advance,
    Prasanna
    Different ways of creating portlets
    Answered By Daniel selman.
    You can also use an IFRAME inside a Portlet to "include" an external URLwithin
    a Portlet page.
    I have attached an example of doing this (content.jsp for the portlet usesan
    IFRAME to include www.google.com).
    Can I convert an URL into portlet?
    Answered By Subbu Allamaraju <subbuATBeaDOTCom>
    This URL content should be shown as it, without has to write any code fromthe
    side of developer. The example provided in portal installation needsdemonstrates
    this feature to some extent. But the developer is supposed to extract HTMLcontent
    he/she wants to see and put it in the JSP.
    If the URL is pointing to a page in the same web app, it isstraight forward
    to make it a portlet.
    I have few JSPs running in a machine that is remote to the portal node,and which
    is accessible through a proxy from portal. Can I convert theseapplications into
    portlets?
    Answered By Subbu Allamaraju <subbuATBeaDOTCom>
    The easiest approach is make those remote apps available as web services.Please
    look at the portal wizard that can create portlets to talk to webservices. The
    same wizard will also help converingremote
    URLs to portlets.
    I have a full fledged webapplication running on weblogic server. But forsome
    additional features (commercial services) I need to used portal server.How do
    i modify the existing site for thedesired
    change?
    Answered By Subbu Allamaraju <subbuATBeaDOTCom>
    This will involve some amount of redesign since you're converint a regularweb
    site into a portal (the domain/portal wizards will help you do this).You'll then
    need to create a new portal app, and convert those web apps into portlets,and
    add these portlets to the new portal app.

  • Is there a different way to open a cursor for a ref cursor procedure?

    hello everybody
    i have two cursors, cur_a and cur_b, declared somewhere else in my application.
    These two cursors have the same fields, in the same order, and i have to treat both in the same way. So i wrote a routine that gets as input a ref cursor based on the cur_a rowtype, and i am trying to use this routine for both.
    The problem is that i am not able to open outside the routine the cursor in a different way than usual...
    the common method is :
    declare curs ref cursor ...
    begin
    open curs for (select *...)
    end;
    instead i would like to obtain something different
    declare curs ref cursor ...
    begin
    open curs for cur_a
    end;

    hi
    thanks for answering
    i wanted just to give a better idea, anyway you were near to get it.
    the only difference is that the two cursors are not written in dynamic sql, just like strings, but are real cursors.
    anyway, this is the version of the package i need, but i am not able to compile
    (your original code is commented and immediately below there is my code)
    CREATE OR REPLACE PACKAGE BODY mytest
    IS
    --cur_a VARCHAR2(200) := 'SELECT dummy FROM DUAL';
    CURSOR cur_a
    IS
    SELECT dummy
    FROM DUAL;
    --cur_b VARCHAR2(200) := 'SELECT ''fred'' FROM DUAL';
    CURSOR cur_b
    IS
    SELECT 'fred' fred
    FROM DUAL;
    TYPE t_cur_a IS REF CURSOR
    RETURN cur_a%ROWTYPE
    --PROCEDURE routine_a_b (p_cur SYS_REFCURSOR) IS
    PROCEDURE routine_a_b (p_cur t_cur_a)
    IS
    v_x VARCHAR2 (10);
    BEGIN
    LOOP
    FETCH p_cur
    INTO v_x;
    EXIT WHEN p_cur%NOTFOUND;
    DBMS_OUTPUT.put_line (v_x);
    END LOOP;
    END;
    PROCEDURE doit
    IS
    --v_curs SYS_REFCURSOR;
    v_curs t_cur_a;
    BEGIN
    NULL;
    -- open v_curs FOR cur_a;
    OPEN v_curs FOR cur_a;
    routine_a_b (v_curs);
    CLOSE v_curs;
    -- open v_curs FOR cur_b;
    -- routine_a_b(v_curs);
    -- close v_curs;
    END;
    END;
    the error is:
    cursor 'V_CURS' cannot be used in dynamic SQL OPEN statement
    i did read that if use weak ref cursor, it could work, so i declare the ref cursor type in this way:
    TYPE t_cur_a IS REF CURSOR;
    instead than
    TYPE t_cur_a IS REF CURSOR
    RETURN cur_a%ROWTYPE
    what i get is another error (in the open cursor command)
    PLS-00382: expression is of wrong type....
    but if i replace
    OPEN v_curs FOR cur_a;
    with
    OPEN v_curs for select dummy from dual;
    it works... but i already knew it.. :-)
    anyway, i used a work around to resolve it, so it's just philosophy

  • Building SM30 form in a different way.

    Good morning every one,
    I'm looking for a solution similiar to a SM30 transaction ( to edit tables ), but in a different way.
    I was analysing a way in wich the transaction looked more like the table view it self.
    When we generaly create a SM30, SAP generates a terrible screen, with lack of space, horizontal roll bar, and other un-necessary stuff.
    The main problem with those SM30 transactions is that i'm unable to edit the screen with screen painter, because of the auto code generate scheme. (I can change it, but if some one adds a fields or something like that, and than runs se54 to regenerate the code, it's lost).
    So do you guys now a way a can afford that?
    Here is the SM30 view:
    [http://www.2shared.com/photo/OlKh4K-n/SM30.html]
    Here is the table view ( similar to what i want ):
    [http://www.2shared.com/photo/38o6Hpl4/table_view.html]
    The SM30 would be like a normal table view, with "&sap_edit"  on, if you guys understand what i ment to say if this exemplification.
    Regards,
    Daniel Marchena
    Edited by: Rob Burbank on Jun 3, 2011 10:49 AM

    > I'm looking for an automatizated way, such as the SM30.
    Hi.,
    Nothing comes automatically right..!!!  we cannot do any magics..!!
    We have to design(code) or customize as per our requirement.,!!
    AS suggested Create a table control with same buttons as in SM30., or Use Editable ALV with Insert row, Delete Row and other functionalities you want.,
    OR you mean automized in the sense for  any table..?
    For this Use RTTI and RTTS  and using Field Symbols you can achieve this..
    hope this helps u.,
    Thanks & Regards,
    Kiran

  • Different ways in Creating BP

    Hi,
      Can somebody brief me the different ways for Creating BP in cProjects?
    If i create a BP in SAP R/3 which BP role do i need to use for creating an external resource as Business Partner?
    With path for creation will be appriciated
    Rgds
    Sudhir Reddy

    Hi,
    We had this scenario where we had a separate ERP system and a standalone CRPXRPM system. The replication was done via ALE.
    The report RHALEINI (T-Code - PFAL) was used to move the HR Master data to the cProjects sytem.
    The BPs are created with 'Employee' role. Not very sure, but I think its BUP0003. However, you need to maintain these BPs in the 'Resource' role if you want to maintain their cost/revenue rates.
    We used the field 'BP Type' to differentiate external employees.
    Let me know if you found this helpful.
    Regards,
    Vivek

  • BI server generating  query in a different way between two instances

    Hi All,
    We have executed a report in dev,test instances,BI server generated query in a different way in two instances where as dev BI server is on AIX operating system(recently we migrated from windows),test instance is on still on Windows environment.
    For a report below are the queries
    DEV(AIX)
    WITH
    SAWITH0 AS (select sum(T316025.SALES_QUOTA) as c1,
    T329697.DIVISION_DESC as c2,
    T329697.AREA_DESC as c3,
    T329697.TERRITORY_DESC as c4,
    case when T329697.ACCOUNT_NUM is null then T329697.BILL_TO_PARTY_NAME else concat(concat(concat(T329697.BILL_TO_PARTY_NAME, '('), T329697.ACCOUNT_NUM), ')') end as c5,
    T150993.X_CONS_MAJOR_GROUP as c6,
    T66755.PER_NAME_ENT_YEAR as c7
    from
    W_DAY_D T66755 /* Dim_W_DAY_D_Common */ ,
    W_PRODUCT_D T67704 /* Dim_W_PRODUCT_D */ ,
    WC_SLX_DATA_F T316025 /* Fact_WC_SLX_DATA_F */ ,
    WC_CUSTOMER_HIERARCHY_D T329697 /* Dim_WC_Customer_Hierarchy_D_With_Error */ ,
    OBIEE_SECURITY_LOCATION_SALES T339204,
    W_PROD_CAT_DH T150993 /* Dim_W_PROD_CAT_DH_General */
    where ( T66755.ROW_WID = T316025.DAY_WID and T316025.CUSTOMER_HIERARCHY_WID = T329697.ROW_WID and T67704.ROW_WID = T316025.PRODUCT_WID and T67704.PROD_CAT2_WID = T150993.ROW_WID and T329697.TERRITORY_CODE = nvl(T339204.LOCATION , T329697.TERRITORY_CODE) and T329697.AREA_DESC = 'GROCERY AREA - EAST' and T329697.DIVISION_DESC = 'DOMESTIC SALES DIVISION' and T339204.USER_NAME = upper('Administrator') and case when T329697.ACCOUNT_NUM is null then T329697.BILL_TO_PARTY_NAME else concat(concat(concat(T329697.BILL_TO_PARTY_NAME, '('), T329697.ACCOUNT_NUM), ')') end = 'JETRO CASH AND CARRY ENTERPRISES INC(10313)' and (T66755.PER_NAME_ENT_YEAR in ('2011', '2012')) and (T329697.TERRITORY_DESC in ('BOSTON', 'CHARLOTTE', 'FLORIDA', 'GREAT LAKES', 'MID-SOUTH', 'NEW YORK', 'WHITE ROSE')) )
    group by T66755.PER_NAME_ENT_YEAR, T150993.X_CONS_MAJOR_GROUP, T329697.TERRITORY_DESC, T329697.AREA_DESC, T329697.DIVISION_DESC, case when T329697.ACCOUNT_NUM is null then T329697.BILL_TO_PARTY_NAME else concat(concat(concat(T329697.BILL_TO_PARTY_NAME, '('), T329697.ACCOUNT_NUM), ')') end )
    select distinct SAWITH0.c2 as c1,
    SAWITH0.c3 as c2,
    SAWITH0.c4 as c3,
    SAWITH0.c5 as c4,
    SAWITH0.c5 as c5,
    SAWITH0.c6 as c6,
    SAWITH0.c7 as c7,
    SAWITH0.c1 as c8
    from
    SAWITH0
    order by c1, c6
    Test(Windows)
    select distinct D1.c2 as c1,
    D1.c3 as c2,
    D1.c4 as c3,
    D1.c5 as c4,
    D1.c5 as c5,
    D1.c6 as c6,
    D1.c7 as c7,
    D1.c1 as c8
    from
    (select sum(T316025.SALES_QUOTA) as c1,
    T329697.DIVISION_DESC as c2,
    T329697.AREA_DESC as c3,
    T329697.TERRITORY_DESC as c4,
    case when T329697.ACCOUNT_NUM is null then T329697.BILL_TO_PARTY_NAME else concat(concat(concat(T329697.BILL_TO_PARTY_NAME, '('), T329697.ACCOUNT_NUM), ')') end as c5,
    T150993.X_CONS_MAJOR_GROUP as c6,
    T66755.PER_NAME_ENT_YEAR as c7
    from
    W_DAY_D T66755 /* Dim_W_DAY_D_Common */ ,
    W_PRODUCT_D T67704 /* Dim_W_PRODUCT_D */ ,
    WC_SLX_DATA_F T316025 /* Fact_WC_SLX_DATA_F */ ,
    WC_CUSTOMER_HIERARCHY_D T329697 /* Dim_WC_Customer_Hierarchy_D_With_Error */ ,
    OBIEE_SECURITY_LOCATION_SALES T339204,
    W_PROD_CAT_DH T150993 /* Dim_W_PROD_CAT_DH_General */
    where ( T66755.ROW_WID = T316025.DAY_WID and T316025.CUSTOMER_HIERARCHY_WID = T329697.ROW_WID and T67704.ROW_WID = T316025.PRODUCT_WID and T67704.PROD_CAT2_WID = T150993.ROW_WID and T329697.TERRITORY_CODE = nvl(T339204.LOCATION , T329697.TERRITORY_CODE) and T329697.AREA_DESC = 'GROCERY AREA - EAST' and T329697.DIVISION_DESC = 'DOMESTIC SALES DIVISION' and T339204.USER_NAME = upper('Administrator') and case when T329697.ACCOUNT_NUM is null then T329697.BILL_TO_PARTY_NAME else concat(concat(concat(T329697.BILL_TO_PARTY_NAME, '('), T329697.ACCOUNT_NUM), ')') end = 'JETRO CASH AND CARRY ENTERPRISES INC(10313)' and (T66755.PER_NAME_ENT_YEAR in ('2011', '2012')) and (T329697.TERRITORY_DESC in ('BOSTON', 'CHARLOTTE', 'FLORIDA', 'GREAT LAKES', 'MID-SOUTH', 'NEW YORK', 'WHITE ROSE')) )
    group by T66755.PER_NAME_ENT_YEAR, T150993.X_CONS_MAJOR_GROUP, T329697.TERRITORY_DESC, T329697.AREA_DESC, T329697.DIVISION_DESC, case when T329697.ACCOUNT_NUM is null then T329697.BILL_TO_PARTY_NAME else concat(concat(concat(T329697.BILL_TO_PARTY_NAME, '('), T329697.ACCOUNT_NUM), ')') end
    ) D1
    order by c1, c6
    If we observe test query is very simple and easy to back track but in Dev it is appending like sawwith0,sawwith1 etc..looking difficult.
    Is there in any configuration to change to generate query like Test(with out SAWWITH0).
    NOTE:Any how results are same in both instances.
    Please help me to resolve this issue.
    Thank You,
    Anil Kumar.

    Anil,
    Are your database settings the same in both of the rpds dev and test?
    Check wether you didn't change anything to the default. Open your RDP double click on the Database in the physical layer and go to Feature you can check all the settings there
    Adil

  • Different ways to setup applets... what's best?

    Alright. I need some help deciding how to setup an applet. I'm a high school student and I'm going to be in a competition on Saturday that will be using Java applets. I've been trying to get my hands on as much info about it as I can, but I've seen so many different ways of displaying things on an applet that I'm not sure what to do anymore.
    So here's the deal. In a book I have, they set up applets like this:
    import javax.swing.*;
    public class Example extends JApplet
       public void init()
          getContentPane().add(new ExamplePanel ());
          set size (300, 300)
    }And the other class:
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class ExamplePanel extends JPanel
       private vars
       public ExamplePanel ()
          set up listeners and set background
       public void paintComponent (Graphics page)
          super.paintComponent (page);
          paint stuff
       event methods
    }I'm pretty sure this works fine, but while on the Java website, looking for examples, I noticed that sun sets up applets like this:
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.event.*;
    public class Example extends JPanel implements listener interfaces
       protected and private vars
       public Example ()
          set up panels, labels, basically any JComponent stuff
          create listeners
          use add(...) to put stuff on applet
       event methods
       private static void createAndShowGUI()
            JFrame frame = new JFrame ("Example");
            frame.setDefaultCloseOperation (JFrame.EXIT_ON_CLOSE);
            JComponent newContentPane = new Example();
            newContentPane.setOpaque (true);
            frame.setContentPane (newContentPane);
            frame.pack();
            frame.setVisible(true);
        public static void main()
            javax.swing.SwingUtilities.invokeLater(new Runnable()
                public void run()
                    createAndShowGUI();
    }I don't know which way is better, but we don't have much time so I need something that's easy. The problem with the second one is that I don't know how to draw shapes on the second one and I might need to do that. I tried using paintComponent in it and things just got screwy. If anyone knows of a better way, please let me know. And since that one was developed directly from Sun, I'm guessing it's more efficient, so I would like to use that one if I can just learn how to use it as easily as the first.
    Also, if anyone knows a completely different way to do this that's better, please let me know.

    The second Example class shows an important issue: swing is not thread safe, and thus all GUI operations, including creating the GUI itself, must be done in the event dispatch thread. Read more about it at http://java.sun.com/docs/books/tutorial/uiswing/misc/threads.html#EDT.
    The second class Example does also not seem to be an applet, that is why main() is used instead of init(). But even in init() you are not guaranteed that the current thread is the EDT - it is choosen by the browser you are using - and you should thus use invokeLater() there as well.
    Appart from that, a component should not care if it is displayed in an applet or in an application.

  • A different way to deal with "unknown" user after upgrade from Tiger.

    It's a known issue that doing upgrade and install or archive and install from Tiger to Leopard, produces a lot of folders with "unknown" group in their "get info" panel. This has to do with a different group structure in Tiger and Leopard.
    In Tiger, every user has their own private group with the same name as the username. That group is set to be user's primary group.
    In leopard, every new user with an account is a member of the group staff (gid=20) which is not present in Tiger. Leopard doesn't fully understand Tiger's private group structure, hence the "unknown" group. This causes various problems such as Finder crashes when trying to change the permissions and ownership in the get info window.
    Apple's proposed way of dealing with this is described [here|http://docs.info.apple.com/article.html?artnum=307128].
    However, this method doesn't change the existing group structure and doesn't resolve all the problems.
    I'd like to suggest a different way of dealing with it.
    1. create a new admin user (if you don't have one already), log out of your primary account and log into the new one.
    2. enter the following in terminal:
    *sudo dscl . delete /users/"username"*
    where username is the short name of the user on the main account (not the one you are currently logged into).
    This will delete that user.
    3. Log out/in.
    4. go to system preferences->accounts and create a new user with the name and short name exactly as the one you've deleted in step 2.
    You'll be get a popup saying that a home directory by this name already exists and asking if you want to use it. Say "Yes".
    That's it. Your main user will be recreated using the native group structure of Leopard with gid=20(staff). Permissions on your home directory will be reset with correct group and ownership.
    I tested the process on my powerbook after an upgrade and install from Tiger to leopard and it worked without a hitch.
    I like this method better than Apple's because it completely gets rid of Tiger's group structure which was creating all the confusion. The only downside as far as I can see is that you might have to manually change the group ownership on some files belonging to the main user that sit outside your home directory.
    I would appreciate any comments on this.

    hmm, I confess, I did this before installing 10.5.2 so i can't say for sure. However, I've dealt with a few people (see e.g. this [thread|http://discussions.apple.com/thread.jspa?messageID=7012957]) who are running 10.5.2 and still have this issue. I don't know what if anything 10.5.2 did about this but I'm quite sure that it didn't change the group structure inherited from Tiger.
    Message was edited by: V.K.

  • Two separate versions of the same file corrupted in different ways...

    I was working on a Photoshop CS4 file last night that was created in CS4 and has only been opened on this machine in CS4. I saved the file and closed Photoshop. When I open the file today, all my layers are gone, flattened into one Background layer, and the image looks like colored TV static. On top of that, the separate, older version of this file with a different name (created earlier in the week on the same machine in the same CS4) will not open at all - I get the error message, "Could not complete your request because the file is empty" and the file size has mysteriously shrunk to 76 KB from 20+ MB. What happened?! I'm guessing these files are corrupted beyond recovery, but why and how did this happen? Has anyone had this or a similar problem? I want to know how to prevent this from happening in the future. Please help! Thank you. =)

    Thanks for the suggestion, Chris.
    Same issue, new question - don't ask me why I did this, but while both Photoshop and the now corrupted file were open, I changed the name of the folder containing the file, then continued to save the open version of the file without first closing it and reopening it from the newly renamed folder. Could this have caused both files in that folder to become corrupted in different ways? The other file that gives me the "file is empty" error was not open at the time, but it was in that folder. I'm thinking maybe by changing the path to the files while Photoshop was running, that could have triggered this. ?? I have 3 1TB internal drives raided to read as 1 drive, so I'm really hoping that one of these disks is not dying on me as you suggested. I was also backing up an external drive using BackBlaze when this all occurred - any possible connection? How can I find out if one of my three raided drives (and which one) might be going bad?
    Thanks!!

  • Multiple iPhoto libraries to manage photostreams in different ways

    My wife and I both have iPhone's. I have a 5s and she a 5. We share an iCloud account so that all photos she takes and ones I take go into one photostream and then automatically get loaded on my iMac hard drive. This way we are sure to not lose any photos.
    This works great for that purpose. However, I would like to create an iPhoto library that will only upload photos taken with my iPhone.
    I know I can create multiple iPhoto libraries, but I would like to have the ability to manage preferences for each so that they manage photos in different ways.
    Is there a way to do this?
    Thanks in advance for any suggestions you may offer.
    Keith

    I know I can create multiple iPhoto libraries, but I would like to have the ability to manage preferences for each so that they manage photos in different ways.
    Keith, the problem is, that only one iPhoto ibrary can be associated with the photo stream on any device, see e.g.  http://documentation.apple.com/en/aperture/usermanual/index.html#chapter=14%26se ction=2%26tasks=true
    Photo Stream is designed to work with one Aperture or iPhoto library at a time. However, it’s easy to switch the library Photo Stream uses to upload and download photos.
    If you enable the photo stream in a different library, the photo stream will be removed from the earlier library. You would continually have to reanable the photo straem when switching between libraries, and each time the stream would be reset. This way, auto matic import will not work reliably, because the photo stream would only be seeing the current ly stored photos in iCloud.
    Have you considered to use the Shared Photo Streams for specific purposes? I am using the Shared Photo Streams as thematic iCloud albums, for wildlife photos, family photos, etc.
    iCloud: Using and troubleshooting Shared Photo Streams
    -- Léonie

Maybe you are looking for

  • Auto-adjust on Compaq WF1907 LCD Monitor

    Auto-adjust on Compaq WF1907 LCD Monitor I have a vision problem and need to adjust the brightness on my Compaq WF1907 LCD Monitor to 30%. However, every time I turn the monitor 'ON' it performs an auto-adjustment which resets the brightness to 100%.

  • Windows Frustration

    Greetings. About a year ago we did an interactive sales piece in flash that loads and unloads different FLV files contained within SWFs for each section. It was recently brought to our attention that you can only watch each video one time on Windows

  • Captivate file sizes

    Using Captivate 8, have noticed that as you work on files they get bigger, even cutting EVERYTHING out down to a simple slide does not reduce the file size (I've removed everything from the library too). It seems that Captivate is hanging onto things

  • Audio for my Compaq Presario CQ42-263tu

    How can I benefit the features of Dolby for my Compaq Presario CQ42-263tu? Is it possible to have it installed in my PC. If not, are there any softwares that improves the audio quality of my PC (aside from the audio driver in my laptop)? 

  • Want to insert multiple rows in table using EO

    Hi, I have one requirement where I need to insert multiple rows at once in table lets say Previous Employers. What I am trying to do is I have created few textinputboxes and getting there values and putting in HashMap. And manually inserting the rows