Basic doubt about ITAB

Dear All,
techinicallly is there any difference between.
data : it_mara type standard table of mara.
          t_mara type mara occurs 0.
Which is better way to define. I know both are internal tables without header.
onemore thing, header that it is obsolete to use "occurs 0", is this right.
Please let me know.
Regards
madhu

Hi,
Yes...you should use only table declarations without the occurs clause. This improves performance a lot. And this kind of declarations has become mandatory with the ECC6.0 release.
Try practicing to declare without the occurs clause.
Thanks,
Subramanian

Similar Messages

  • Basic doubt about Primary Key/Foreign Key in Oracle Tables

    Hi,
    I have a doubt whether Primary Keys/Foreign Keys are allowed in Oracle. Some of the people I know are telling me that Oracle does not encourage having Primary Keys/Foreign keys in its database tables.
    However if I go to the ETRM and look for information about some of the Oracle Tables, I am informed that Primary Keys do exist. However I am being told that ETRM is not a reliable way of having correct information about table structure.
    It would be great if any one of you provides me with some insight in this. Any pointers to a document would be great.
    Thanks

    It is not that PK/FKs are disallowed in Oracle Apps (there are some on the standard Oracle Apps tables), but they are typically not used. I am not positive what the logic behind this is, but my guess is that it was party due to the earlier versions of Oracle Apps pre-dating declarative database referential integrity in Oracle DB and also on performance issues with the standard referential integrity with the earlier versions of declarative database referential integrity.
    As far as eTRM is concerned - I understood that the data is based on a design repository rather than a physical Oracle Apps DB. So all of the information in there is logically correct, but not necessarily enforced via the standard Oracle DB declarative referential integrity (rather by the application code or APIs).

  • Basic doubt about Primary Keys/Foreign Keys in Oracle Tables

    Hi,
    I have a doubt whether Primary Keys/Foreign Keys are allowed in Oracle or not. I have been informed that Oracle does not encourage having Primary Keys/Foreign keys in its database tables. Instead it urges users to have unique constraints on the requisite columns.
    However if I go to the ETRM and look for information about some of the Oracle Tables, I am informed that Primary Keys do exist. At the same time, I am being told that ETRM is not a reliable way of having correct information about table structure (at least the Primary Key information).
    It would be nice if any one of you provides me with some insight in this. Any pointers to a document would be welcome.
    Thanks

    FYI,
    There is seprate forum for Core Sql quieries
    PL/SQL
    Thanks

  • Few basic doubts about accessing AM from backing bean class

    Hi ADF experts,
    I have just started working in ADF Faces.I made a sample search page.My page is attached to a managed backing bean. I have attached command button on my page to a custom method in backing bean class.
    So on, click of button this method is called in backing bean.Now, i have few doubts:
    1)How to get values of various UI beans in this event code?
    2)I am accesing AM , in my method with this code:
    FacesContext facesContext = FacesContext.getCurrentInstance();
    ExternalContext extContext = facesContext.getExternalContext();
    Application app = facesContext.getApplication();
    DCBindingContainer binding = (DCBindingContainer)app.getVariableResolver().resolveVariable(facesContext, "bindings");
    //Accessing AM
    ApplicationModule am = binding.getDataControl().getApplicationModule();
    iS this correct ?
    3) After getting handle of am how to call my custom method in AM Class?there was "invokeMethod" API in application module class in OAF, is there any such method here?
    Please help me.
    --ADF learner.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    Thanks for ur response Frank, actually I am from OA Framework back ground.It would be great if help us a little with ur valuble thoughts.
    OA Framework also uses bc4j in model layer of framework. We have a requirement where our existing developers from OA Framework have to move to ADF to make a new application where time lines are quite strict.If this would not be possible we will switch to plain jsp and jdbc,but our tech experts say ADF Faces is the best tech.
    In OA Framework, Application Module is key class for all busiess logic and Controller is used for page navigation. So, I m just trying to find the same similarity , where we write we add all event codes in custom action methods in the backing bean class of page, which we consider equivalent to process form request method in Controller class of OAF.
    But there are two things, I still want to know:
    1)While page render, how to call specific AM methods(like setting where clause of certain VOs)
    2)In action methods, the way i described(I found that in one thread only)to access AM, what is wrong in that?Also, I went through
    http://radio.weblogs.com/0118231/stories/2004/09/23/notYetDocumentedAdfSampleApplications.html
    where coule of examples use similar approach to access AM from backing bean class and call custom methods of AM(Doing various, deletes etc from VOs).
    3)In these methods can we set any property of beans on the page, I am asking because in OAF, generally we use PPR for js alternatives.But all properties of beans cannot be set in post event.
    Thanks and Regards
    --ADF Learner                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Basic Doubt about security

    Dear All,
    I am trying to implement following functionality. Can you suggest how i should go about implementing this in actual code.
    I have an J2EE application consisting of swing client and server components deployed on J2EE complient server. Now whenever a client tries to log in to system the username and password info is transmitted to server for authentication. Here i need to introduce a functionality by which password and may be user name is encrypted to before it is sent to app server and then app serve at it's end will decrypt before authenticating the user.
    Now theoritically i am planning to do following : using public/private key encryption. Client will encrypt the required string using public key and send it to server. Server will now decrypt using the private key which is available at it's end. The client and the app server aer on physical different machines. Does this make sense ? And is it correct ?
    Now my questions :
    Is my mechenism correct ?
    How to generate public/private keys ? is it using keytool but what are steps?
    How should transfer of these key take place ?
    If keys are generated using API rather then keytool how to transmit these keys to server?
    If keys are generated using keytool still how to distribute these keys and use the same in the program while doing encyrption/decryption ?
    Kindly reply soon. This is urgent. Thank you in advance
    Sachin

    I would suggest making an SSL connection to the server which verifies the password (and if it is not too computationally intensive, then for data as well). Java 1.4 has SSL functionality built-in (you just need to do some key management on the server end -- if you get a certificate from a provider that is preloaded).

  • Basic doubt about XML file generation

    Hi,
    I am new to Java. I am facing some trouble designing and implementing a particular problem involving XML files.
    Problem:
    I have an XML file which contains a set of properties and their default value. What I need to do is to read another file/stream which will have name=value strings and then, for all the names that I find there, change default value to current value. These names can appear in any order. For example,
    <name1 value=default1/>
    <name2 value=default2/>
    <name3 value=default3/>
    And I will get something like "set name3=value3 name1=value1" (This data comes to me from a stream -usb device- and not from a file). Then I should change it to
    <name1 value=value1/>
    <name2 value=default2/>
    <name3 value=value3/>
    What is the best possible way to do this in Java? This has to go into an embedded system so it will be nice if it can be done with minimum memory and less processing power.
    I am currently reading J2EEtutorial (1.4). I have not read much. But I am confused if I should be using SAX, DOM or XSLT. To speak the truth, I don't even know the difference between all those. Any help will be greatly appreciated.
    Thanks & Regards,
    Suseelan

    Use a DOM parser to parse the original XML.
    DocumentBuilderFactory domFactory = DocumentBuilderFactory.newInstance();
    DocumentBuilder domBuilder = domFactory.newDocumentBuilder();
    Document document = domBuilder.parse( inputStreamToFile );Then read in the contents from your USB stream into say an array or Vector. Then go through each child node in the domBuilder class, get the nodes name and see if it's in the Vector of objects from the USB stream. If it is, then replace the "Value" attribute in the dom node with what is in the Vector.
    Make sense?
    Message was edited by:
    bryano

  • Sales order.. basic doubt about payment terms

    hello,
    I am trying to create a sales order with 2 materials,
    I am getting 2 different Payments Terms, why I am getting so, I belive terms of payments are copied from Customer Master data. My SP, SH, BP, Payer are all same.
    please let me know, what else should I check.
    thank you
    madhu.

    Hi Roberto,
    Thanks for quick reply, can you kindly let me know in more details. where should I look for these condition recordes. If I see the pricing condition types in pricing anlysis, Can I see them ..pls let me know
    thank you. awarded points.
    thank you once again.

  • Doubt about Select statement.

    Hi folks!!
                 I have a few doubts about the select statements, it may be a silly things but its useful for me.
    what is   difference between below statment.
    1)SELECT * FROM TABLE.
    2)SELECT SINGLE * FROM TABLE
    3)SELECT SINGLE FROM TABLE.
    Hope i will get answer,thanks in advance.
    Regards
    Richie..

    Hi,
    try this and if possible use sap help.i mean place the cursor on select and press F1.
                 Types of select statements:
    1.     select * from ztxlfa1 into table it.
                 This is simple select statement to fetch all the data of db table into internal table it.
       2.   select * from ztxlfa1 into table it where lifnr between 'V2' and 'V5'.
            Thisis using where condition between v2 and v5.
      4. select * from ztxlfa1 where land1 = 'DE'. "row goes into default table work Area
      5. select lifnr land1 from ztxlfa1
            into corresponding fields of it   "notice 'table' is omitted
             where land1 = 'DE'.
              append it.
               endselect.
         Now data will go into work area. and then u will add it to internal table by     
            append statement.
      6.   Table 13.2 contains a list of the various forms of select as it is used with internal tables and their relative efficiency. They are in descending order of most-to-least efficient.
    Table 13.2  Various Forms of SELECT when Filling an Internal Table
    Statement(s)                                   Writes To
    select into table it                                    Body
    select into corresponding fields of table it   Body
    select into it                                    Header line
    select into corresponding fields of it           Header line
    7. SELECT VBRK~VBELN
           VBRK~VKORG
           VBRK~FKDAT
           VBRK~NETWR
           VBRK~WAERK
           TVKOT~VTEXT
           T001~BUKRS
           T001~BUTXT
        INTO CORRESPONDING FIELDS OF TABLE IT_FINAL
        FROM VBRK
        INNER JOIN TVKOT ON VBRKVKORG = TVKOTVKORG
        INNER JOIN T001 ON VBRKBUKRS = T001BUKRS
        WHERE VBELN IN DOCNUM AND VBRK~FKSTO = ''
       AND VBRK~FKDAT in date.
    Select statement using inner joins for vbrk and t001 and tvkot table for this case based on the conditions
    8. SELECT T001W~NAME1 INTO  TABLE IT1_T001W
    FROM T001W INNER JOIN EKPO ON T001WWERKS = EKPOWERKS
    WHERE EKPO~EBELN = PURORD.
    here selecting a single field into table it1_t001winner join on ekpo.
    9. SELECT BUKRS LIFNR EBELN FROM EKKO INTO CORRESPONDING FIELDS OF IT_EKKO WHERE     EBELN IN P_O_NO.
    ENDSELECT.
    SELECT BUTXT   FROM T001 INTO  IT_T001 FOR ALL ENTRIES IN IT_EKKO WHERE BUKRS = IT_EKKO-BUKRS.
    ENDSELECT.
    APPEND IT_T001.
    here I am using for all entries statement with select statement. Both joins and for all entries used to fetch the data on condition but for all entries is the best one.
    10. SELECT AVBELN BVTEXT AFKDAT CBUTXT ANETWR AWAERK INTO TABLE ITAB
                 FROM  VBRK AS A
                 INNER JOIN TVKOT AS B ON
                 AVKORG EQ BVKORG
                 INNER JOIN T001 AS C ON
                 ABUKRS EQ CBUKRS
                 WHERE  AVBELN IN BDOCU AND AFKSTO EQ ' ' AND B~SPRAS EQ
                 SY-LANGU
                 AND AFKDAT IN BDATE AND AVBELN EQ ANY ( SELECT VBELN FROM
                VBRP WHERE VBRP~MATNR EQ ITEMS ).
        Here we are using sub query in inner join specified in brackets.
    Thanks,
    chandu.

  • Basic questions about SOLMAN

    SOLMAN gurues:
            Im an HCM consultant, and I dont know why ended up being responsible for creating a CHARM demo in our system. I have some initial doubts that I hope you can help me with:
           I need to customize a demo for a maintenance cycle (neither an upgrade nor a project):
    1) I dont get the idea of the "project cycle", lets suppose I create a project for maintenance of our live system, we have several modules which have little implementations every day. Lets suppose that the FI module is in testing phase and HR in customizing phase, which would be the real phase of the project cycle? Do I have to create a project everytime a change request is requested in the system? Im quite confussed about this!
    2) Is there any easy to follow step by step to make a simple customizing of CHARM for maintenancing?
    3) Which roadmap is recommended for maintenancing??
    Thank you very much!!
    Federico.
    Edited by: Federico on May 11, 2010 11:01 AM

    Hi
    I think you are confused because you are talkng about 2 diff functionalities
    1. moving and managining changes
    CHARMS or Change Request Management fucntionality
    2. Storing documentation
    Project Management
    Both are diff things and diff way is req to customization for it
    I recommend you to go for SAP training for solution manager
    as there are plenty of functionalities and all need lot of customization as you do in HCM area for using HCM functionalities via spro etc.
    Last but not the least it is not a simple tool like LSMW etc but it is a Technology which provides end to end solution management with help of several inbuilt feature and functionality and is pretty huge.
    hope it clarifies basic doubt.
    Regards
    Prakhar

  • Doubt about proxies implementation

    hi experts i have small doubt about proxies implementation
    1. if we r implementing client proxies, it means sap r/3(proxy)->>xi->>>file
         system.here where we have to execute the SPROXY  transaction. in sap r/3 or
         in the xi server.and the next thing is where we have to write the report program
         to trigger the interface.in sap r/3 or in the xi server.
    2. if we r implementing server proxies, it means File->>xi->>>sap r/3
        (proxy).here where we have to execute the SPROXY  transaction. in sap r/3 or
         in the xi server.
    please clear me
    Regards
    giri

    Sreeram,
    The Integration Server and the client on which you generate the proxies should not be the same. If they are different then yes, you can use another client in your XI box itself to generate proxies and trigger the call to XI.
    If you see this blog by Ravi ( incidentally he is my boss as well ) this is exactly what we have done as well.
    /people/ravikumar.allampallam/blog/2005/03/14/abap-proxies-in-xiclient-proxy
    When you say XI, you mean the Client on which the Integration Server is running! XI is basically a R3 instance with more functionality and its own Integration Engine.
    Regards
    Bhavesh

  • Doubt about how to extend 2LIS_08TRTLP.

    hello all!
    i have a doubt about 2LIS_08TRTLP extractor. I checked the Estructure Maintenance for this datasource and it has
    the follow BW communication structure: MCCOMVTRLK, MCCOMVTRLP, MCCOMVTSP, MCCOMVTTK e MCCOMVTTS. Searching for
    field UATBG, i found it in MCCOMVTTK and MCCOMVTTS.
    when i try to extend the 2LIS_08TRLP datasource with UATBG field, i just can do this with MCCOMVTTS-UATBG because i
    didn´t find the UATBG-MCCOMVTTK in field list. I need MCCOMVTTK-UATBG and not the MCCOMVTTS-UATBG.
    what is happening here friends?

    Hi,
       2LIS_08TRTLP gives the Delivery Item in Shipment. Therefore it mainly deals with the deliveries and the shipment stages. Therefore most of the fields come from the VTTS and LIPS.
    IF you need data from VTTK, then you need to use datasource 2LIS_08TRTK.
    Also refer sap note 440166. It gives the design using an ODS. Basically, you get to know what are the keys being used for fetching the data from the tables.
    Regards.

  • Doubt about preferred or available service.

    I have a doubt about preferred or available service.
    I have a Oracle RAC with 3 nodes.
    I created a service GL, but I didn't setup available instance, only preferred instances with 2 instances (PROD1,PROD2)
    srvctl add service -d PROD -s GL -r PROD1,PROD2
    My doubt is:
    If PROD1 instance dies, I would like to know if rac01 is restored automatically on rac02.
    Anybody can help me?
    Thanks in advance.
    Leonardo.

    There are different ways for configure failover... below just an example :
    mydatabase.us.com =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.100.124.91)(PORT = 1521))
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.100.124.93)(PORT = 1521))
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.100.124.95)(PORT = 1521))
    (LOAD_BALANCE = yes)
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = mydatabase.us.com)
    (FAILOVER_MODE =
    (TYPE = SELECT)
    (METHOD = BASIC)
    (RETRIES = 180)
    (DELAY = 5)
    Or... read the document :
    http://docs.oracle.com/cd/B19306_01/network.102/b14213/tnsnames.htm
    Regards,
    Alex Alvarenga.

  • Doubt about diference between SAPconsole and SAPmobile

    Hello,
         I have been many doubts about diference between sapconsole and sapmobile, if anyone could help me I appreciate.
    1) I have ECC6 instaled, the SAP Mobile is compatible with ECC6 or I need of Netweaver Instaled ?
    2) If Possible to Install Sap Mobile in ECC6 , I have to Buy a license of sap mobile ?
    3) in any product instaled Windows CE have possible to install sap mobile ?
    4) In sap console what is the requirement for to do this configuration?
    I Anybody to know about this informations please explain for me ?
    Thanks

    My apology, 
        The Basic Diference beteween SAPConsole and SAPMobile is :
    SAPConsole ==>  
    1 ) Don' t need a new Hardaware for to configurate
    2 ) Only need a Machine with the IIS service installed
    3 ) The SAPGui CD content the SAPCOnsole.exe for configuration
    4 ) The equipment like Pocket and datacolletor has been to configurated in a Network( but if to have a entrance in the SAPGUi indicate a SAProuter in another factory is possible to have acesses.. ) is a mandatory. Cause the SAPCOnsle folow the SAPGUI entrances and need a LAN or a WAN configurated.
    Advantage
    simple to congurated and chip.
    Easy to create to new window cause the SAPConsole only plubish this window in Browser.
    Disadvantage
    Need a lincense for each Poket or Datacolletor, wherever the equipment you will use.
    Doesn't have a Database  using through Browser (IE6 or IE7) this way , during the processes lost network you go to lost the information not saved.
    SAPMobile
    1 ) Need the a good Machine  with a instance of SAP configurate
    2 ) Have to found the EXE in the MarketPlace
    3 ) is not publish, and yes a client with the database configurate in equipment
    4 ) The equipment like Pocket and datacolletor has been to configurated in a Network
    Advantage
    Need only one SAP License, doesn't metter how many equipment  in use you have.
    As the SAPMobile has a Database in the client , if you lost the network it goes to save in the local database and when the network come back , it will to synchronize. This way you don't need to work online every moment, you get to synchronize after.
    Disadvantage
    You profit in license is your lost in the Machine cause the price of Machine is expensive.
    is configurate only in windows Mobile.
    The window only can be create for a Developement and not in the SAP, have been created in windows Mobile.
    A tip, the both is good but you can do a simple mathematics.
    In the SAPConsole how much money you go to spend is the least of the Machine s Price.
    If yes confurate the SAPConsole , if not configurate the SAPMobile

  • Doubtful about security of oracle's Wrap code!

    Dears
    I am little bit doubtful about security of oracle's own Wrap code like package "sys.utl_smtp" .
    Someone can easily Unwrap it without source code?
    How it possible? whats your opinion about this? please can anybody clear me.
    Regards
    Abdul Halim
    Edited by: Abdul Halim on May 31, 2013 8:14 PM

    Halm, you are operating under the mistaken belief that your code deserves hiding from the customer and competitors to begin with. Why? All you are doing in the code is performing DML. It is not like your application is the only one in the world that performs its function.
    If someone really wanted to they could figure out what your code is basically doing just by looking at the table and file data before and after running the code. By careful manipulation of the data and studying the results they can figure out what is being done and then develop their own specific of the how it is done. One can also look at Oracle's internals as the code is being processed both using Oracle provided views and direct peaking at Oracle's shared memory. Then there are tools like sql trace which will captute the SQL, waits, and binds for the process.
    But all of this is kind of mute in that most shops do not have the talent to write their own unwrapper nor has the shop purchased an unwrapper so if you wrap the code it is going to be secured from most users and competitiors. I would just recommend that potential customers not purchase your product becuase the customer is going to need access to the code either for debugging (bugs will exist in the code) or tuning. Likely both.
    IMHO -- Mark D Powell --

  • Oracle Apps - 9iAS : Basic doubts

    Hello,
    I am new to Oracle Apps and 9iAS
    I have few basic doubts regarding the integration of these
    Can anybody please clarify...
    The middle tier of Orcale Apps is the 9iAS Application Server.
    Read that Oracle9i AS Components are :
    - J2EE and Internet Applications (sub-components are Oracle HTTP Server, OC4J, Web services etc)
    - Portals
    - Wireless
    - Web cache
    - Business Intelligence
    - E-Business Integration
    Read that middle tier of Oracle Apps has following servers
    - Web server
    - Forms server
    - Concurrent Processing server
    - Reports server
    - Discoverer server (optional)
    - Admin server
    So, all the components of 9iAS are installed with Oracle Apps ?
    If only some, then which are those ?
    Where do Concurrent Processing server, Reports server etc come from as these are not the components of 9iAS ?
    Are these very specific to Oracle Apps only ?
    As the core database administration knowledge is required for Apps administration (for managing database tier), isn't the 9iAS knowledge required (for managing the middle tier) ?
    If yes, then upto what level ?
    Knowing about Oracle HTTP Server, Apache server, Web cache, OC4J etc etc is required ?
    Please suggest some links / documents related to all these ?
    I found a couple of them on metalink & OTN, but not very useful !
    Thanks

    9iAS consist of Apache and an Oracle database on the middle tier.
    The other components come from the developer suite.
    http://otn.oracle.com/software/products/forms/index.html

Maybe you are looking for

  • How do I transfer video from camera to MacBook?

    I took some video for a friend and want to transfer it from my camera to her MacBook.  My camera manual says I need to use a DV cable to do so, but the Mac Book does not have the correct jack to accept my DV cable.  (I've done this before on my deskt

  • PhotoShop Elements 4.0 works on MacBook Pro but does not on iMac (same OSX10.6.8)?

    Photshop elements 4.0 worked fine on my MacBook Pro (same OSX 10.6.8) but when I installed it on my new iMac, it continually freezes and crashes.  Any suggestions? Also, how do I uninstall this program on the Mac?  Used to "Remove Programs" on Window

  • Odd startup icon and issue

    When I started my relatively new MacBook tonight, instead of the usual happy Apple icon, the computer stopped at an image of my hard disk with an arrow pointing to it, which I discovered I had to click to get the computer to start fully. Once I click

  • Skipping Reords based on infoobject attributes

    I need help on skipping a record based on some infoobject attribute while loading master data from bw. how can this be achieved? e.g. Product type (zprdtype) is attribute of product. I want to skip all records from product infoobject if product type

  • Creating Subtitles in Premiere Pro CS6

    I'm editing a Documentary right now and most of the footage (Interviews) were recorded in Spanish, so I need to create English subtitles. I have never done subtitling before and have spent hours looking for software or a method that will help transla