BAM 11g Moving External Object Data to Internal Data Object

Hi
I'm working with external data objects in our dashboards, this objects are updated every 30 minutes.
It's posible to update Internal Data objects at same time using triggers in BAM schema for use Active Data?
I need to autorefresh the Dashboard every 15 minutes.
Thanks for your comments
Ricardo
Edited by: rzegarrape on Jun 26, 2010 10:06 AM

Hi
What is the use case. Are you trying to automate a refresh of the report view based on an External data object? Or is there another use case - i am confused about 'moving external dataobject to internal data object' comment.
Some basic questions:
Version of BAM in use
Version of IE in use
Do you see updates in the browser for the internal DOs. For example, run call center sample with the scripts in [soa_home]/bam/samples/bam/callcenter/bin and verify that you can see the updates on the call center dashboard in Active Viewer.
Can you describe the setup a little - where is the data you want to view & refresh in the dashboard?
Regards
Payal

Similar Messages

  • Best practice for exposing internal data to external world?

    Currently we have our Internet server sitting in our corporate DMZ taking website and web service requests from the outside world.  Class libraries with compiled connection strings exist on that server.  That server then has a connection through
    the firewall to the database server.  I'm told that this is no longer the secure/recommended best practice.
    I'm told to consider having that Internet server make requests of not the database server, but rather a layer in between (application server, intranet server, whatever) that has those same Web UI methods exposed.. and then THAT server (being inside the firewall)
    connects to the database server.
    Is this the current recommended best practice to have external users interact with internal data?  It seems like lots of hoops -- outside person app queries Web UI methods on Internet server which in-turn queries same method (duplicated) on Intranet
    server which then talks to the database.
    I'm just trying to determine the simples practice, but also what is appropriately secure for our ASP.NET applications and services.
    Thanks.

    IMO this has little to do with SOA and all about DMZs. What you're are trying to stop is the same comm protocol accessing the database as accessed the web site. As long as you fulfil that then great. WCF can help here because it helps with configuring
    the transport of calls. Another mechanism is to use identities but IMO it's easier to use firewalls and transports.
    http://pauliom.wordpress.com

  • Moving data in internal tables

    hi
    I have defined an internal table(say itab_master) and one of its field is table name which will store name of some other internal table(say itab2, itab3..etc).
    now i want to move data into the tables(itab2, itab3..etc) selected as per row of itab1_master.
    kindly suggest me way of doing it.
    thnks

    hi there,
    FIrst you declare :
    FIELD-SYMBOLS <fs> TYPE ANY TABLE.
    ASSIGN itab_temp <fs>.
    Note : If itab2 ,itab3..... are having the same structure there is now problem
    Else you have to use FIELD-GROUPS.
    Doc...
    Defining an Extract
    To define an extract, you must first declare the individual records and then define their structure.
    Declaring Extract Records as Field Groups
    An extract dataset consists of a sequence of records. These records may have different structures. All records with the same structure form a record type. You must define each record type of an extract dataset as a field group, using the FIELD-GROUPS statement.
    FIELD-GROUPS <fg>.
    This statement defines a field group <fg>. A field group combines several fields under one name. For clarity, you should declare your field groups at the end of the declaration part of your program.
    A field group does not reserve storage space for the fields, but contains pointers to existing fields. When filling the extract dataset with records, these pointers determine the contents of the stored records.
    You can also define a special field group called HEADER:
    FIELD-GROUPS HEADER.
    This group is automatically placed before any other field groups when you fill the extract. This means that a record of a field group <fg> always contains the fields of the field group HEADER. When sorting the extract dataset, the system uses these fields as the default sort key.
    Defining the Structure of a Field Group
    To define the structure of a record, use the following statement to add the required fields to a field group:
    INSERT <f1>... <f n> INTO <fg>.
    This statement defines the fields of field group <fg>. Before you can assign fields to a field group, you must define the field group <fg> using the FIELD-GROUPS statement. The fields in the field group must be global data objects in the ABAP program. You cannot assign a local data object defined in a procedure to a field group.
    The INSERT statement, just as the FIELD-GROUPS statement, neither reserves storage space nor transfers values. You use the INSERT statement to create pointers to the fields <f i > in the field group <fg>, thus defining the structures of the extract records.
    When you run the program, you can assign fields to a field group up to the point when you use this field group for the first time to fill an extract record. From this point on, the structure of the record is fixed and may no longer be changed. In short, as long as you have not used a field group yet, you can still extend it dynamically.
    The special field group HEADER is part of every extract record. Consequently, you may not change HEADER once you have filled the first extract record.
    A field may occur in several field groups; however, this means unnecessary data redundancy within the extract dataset. You do not need to define the structure of a field group explicitly with INSERT. If the field group HEADER is defined, an undefined field group consists implicitly of the fields in HEADER, otherwise, it is empty.
    NODES: SPFLI, SFLIGHT.
    FIELD-GROUPS: HEADER, FLIGHT_INFO, FLIGHT_DATE.
    INSERT: SPFLI-CARRID SPFLI-CONNID SFLIGHT-FLDATE
    INTO HEADER,
    SPFLI-CITYFROM SPFLI-CITYTO
    INTO FLIGHT_INFO.
    The program is linked to the logical database F1S. The NODES statement declares the corresponding interface work areas.
    There are three field groups. The INSERT statement assigns fields to two of the field groups.
    Filling an Extract with Data
    Once you have declared the possible record types as field groups and defined their structure, you can fill the extract dataset using the following statements:
    EXTRACT <fg>.
    When the first EXTRACT statement occurs in a program, the system creates the extract dataset and adds the first extract record to it. In each subsequent EXTRACT statement, the new extract record is added to the dataset.
    Each extract record contains exactly those fields that are contained in the field group <fg>, plus the fields of the field group HEADER (if one exists). The fields from HEADER occur as a sort key at the beginning of the record. If you do not explicitly specify a field group <fg>, the
    EXTRACT
    statement is a shortened form of the statement
    EXTRACT HEADER.
    When you extract the data, the record is filled with the current values of the corresponding fields.
    As soon as the system has processed the first EXTRACT statement for a field group <fg>, the structure of the corresponding extract record in the extract dataset is fixed. You can no longer insert new fields into the field groups <fg> and HEADER. If you try to modify one of the field groups afterwards and use it in another EXTRACT statement, a runtime error occurs.
    By processing EXTRACT statements several times using different field groups, you fill the extract dataset with records of different length and structure. Since you can modify field groups dynamically up to their first usage in an EXTRACT statement, extract datasets provide the advantage that you need not determine the structure at the beginning of the program.
    Assume the following program is linked to the logical database F1S.
    REPORT demo_extract_extract.
    NODES: spfli, sflight.
    FIELD-GROUPS: header, flight_info, flight_date.
    INSERT: spfli-carrid spfli-connid sflight-fldate
    INTO header,
    spfli-cityfrom spfli-cityto
    INTO flight_info.
    START-OF-SELECTION.
    GET spfli.
    EXTRACT flight_info.
    GET sflight.
    EXTRACT flight_date.
    There are three field groups. The INSERT statement assigns fields to two of the field groups. During the GET events, the system fills the extract dataset with two different record types. The records of the field group FLIGHT_INFO consist of five fields: SPFLI-CARRID, SPFLI-CONNID, SFLIGHT-FLDATE, SPFLI-CITYFROM, and SPFLI-CITYTO. The first three fields belong to the prefixed field group HEADER. The records of the field group FLIGHT_DATE consist only of the three fields of field group HEADER. The following figure shows the structure of the extract dataset:
    Reading an Extract
    Like internal tables, you can read the data in an extract dataset using a loop.
    LOOP.
    [AT FIRST | AT <fgi> WITH <fg j> | AT LAST.
    ENDAT.]
    ENDLOOP.
    When the LOOP statement occurs, the system stops creating the extract dataset, and starts a loop through the entries in the dataset. One record from the extract dataset is read in each loop pass. The values of the extracted fields are placed in the corresponding output fields within the loop. You can use several loops one after the other, but they cannot be nested. It is also no longer possible to use further EXTRACT statements within or after the loop. In both cases, a runtime error occurs.
    In contrast to internal tables, extract datasets do not require a special work area or field symbol as an interface. Instead, you can process each record of the dataset within the loop using its original field names.
    Loop control
    If you want to execute some statements for certain records of the dataset only, use the control statements AT and ENDAT.
    The system processes the statement blocks between the control statements for the different options of AT as follows:
    AT FIRST
    The system executes the statement block once for the first record of the dataset.
    AT <fgi> WITH <fgj>
    The system processes the statement block, if the record type of the currently read extract record was defined using the field group <fg i >. When using the WITH <fg j > option, in the extract dataset, the currently read record of field group <fg i > must be immediately followed by a record of field group <fg j >.
    AT LAST
    The system executes the statement block once for the last record of the dataset.
    You can also use the AT and ENDAT statements for control level processing.
    Assume the following program is linked to the logical database F1S.
    REPORT DEMO.
    NODES: SPFLI, SFLIGHT.
    FIELD-GROUPS: HEADER, FLIGHT_INFO, FLIGHT_DATE.
    INSERT: SPFLI-CARRID SPFLI-CONNID SFLIGHT-FLDATE
    INTO HEADER,
    SPFLI-CITYFROM SPFLI-CITYTO
    INTO FLIGHT_INFO.
    START-OF-SELECTION.
    GET SPFLI.
    EXTRACT FLIGHT_INFO.
    GET SFLIGHT.
    EXTRACT FLIGHT_DATE.
    END-OF-SELECTION.
    LOOP.
    AT FIRST.
    WRITE / 'Start of LOOP'.
    ULINE.
    ENDAT.
    AT FLIGHT_INFO WITH FLIGHT_DATE.
    WRITE: / 'Info:',
    SPFLI-CARRID, SPFLI-CONNID, SFLIGHT-FLDATE,
    SPFLI-CITYFROM, SPFLI-CITYTO.
    ENDAT.
    AT FLIGHT_DATE.
    WRITE: / 'Date:',
    SPFLI-CARRID, SPFLI-CONNID, SFLIGHT-FLDATE.
    ENDAT.
    AT LAST.
    ULINE.
    WRITE / 'End of LOOP'.
    ENDAT.
    ENDLOOP.
    The extract dataset is created and filled in the same way as shown in the example for Filling an Extract with Data. The data retrieval ends before the END-OF-SELECTION event, in which the dataset is read once using a loop.
    The control statements AT FIRST and AT LAST instruct the system to write one line and one underscore line in the list, once at the beginning of the loop and once at the end.
    The control statement AT <fg i > tells the system to output the fields corresponding to each of the two record types. The WITH FLIGHT_DATE option means that the system only displays the records of field group FLIGHT_INFO if at least one record of field group FLIGHT_DATE follows; that is, if the logical database passed at least one date for a flight.
    The beginning of the output list looks like this:
    The contents of the field SFLIGHT-FLDATE in the HEADER part of record type FLIGHT_INFO are displayed as pound signs (#). This is because the logical database fills all of the fields at that hierarchy level with the value HEX 00 when it finishes processing that level. This feature is important for sorting and for processing control levels in extract datasets.
    rewards would be appreciated.

  • External content type error: Business Data Connectivity object not found.

    Hello
    I have to change the external database (external system) for an external content type. The database view on the new database is exactly the same as on the old database.
    After changing the external system of the external content type, this happens:
    When I try to add a new item to the list, I get this error under the external data field:
    "Business Data Connectivity object not found. Administrators, see the server log for more information."
    Also, when I try to update the external data field, it is not possible because the buttons are grey.
    When I add a new external data field to the same list, I can use the external content type. For some reason the current external data field doesn't update.
    Any ideas?
    Any help would be much appreciated!

    Have you implemented both ‘Read List’ & ‘Read Item’ operations in your ECT?
    This may be helpful -
    https://sharepointcreations.wordpress.com/2014/03/13/business-data-connectivity-object-not-found/
    Thanks
    Ganesh Jat [My Blog |
    LinkedIn | Twitter ]
    Please click 'Mark As Answer' if a post solves your problem or 'Vote As Helpful' if it was useful.

  • Moving DATA from Internal Table to Ranges

    Hi All,
    I have an Internal table and a range variable both  contain one field. Internal table is having only one table. I am populating the table data from a select query. Now I want to transfer the data to a range field. The internal table is having thousands of records so I want to do this <b>without LOOP</b>. Can anybody suggest the efficient way to achieve this?
    Any help would be appreciated.
    Thanks so much.
    Jignesh.

    ... the sump with too big range tables is a pure oracle sickness. AFAIK the size limit for the select statement has been extended from 16k to 32k, so this danger is smaller than it used to be.
    Anyway you can use the FOR ALL ENTRIES IN clause and the ABAP-SQL-interface will handle the package size very efficienly. There was a time I believed that FOR ALL ENTRIES IN should not be used because it would slow down the data selection. I have learned that this is not true at all because of the package technique.
    And now for everyone who wants to built ranges of any size (no limit for internal tables):
    Call this like (just as an example for initializing select-options:
    PERFORM append_range USING:
      'IEQ' sy-datum(4) '' CHANGING s_gjahr[],
      'IBT' 1 'ZZZZZZZZZZ' CHANGING s_prctr[],
      'IBT' 1 16           CHANGING s_monat[].
    Note that SIGN and OPTION are combined into one parameter saving time and gaining overview (?).
    I created the FORM once and used it so many times...
    Actually you don't need so many "CHECK sy-subrc = 0" if you know how to use the form.
    *&      Form  append_range
          append selection range
    FORM append_range  USING    p_signopt     TYPE c
                                p_low         TYPE any
                                p_high        TYPE any
                       CHANGING pt_range      TYPE table.
      FIELD-SYMBOLS:
        <range>                               TYPE ANY,
        <sign>                                TYPE ANY,
        <option>                              TYPE ANY,
        <low>                                 TYPE ANY,
        <high>                                TYPE ANY.
      DATA:
        l_ref                                 TYPE REF TO data.
      CREATE DATA l_ref                       LIKE LINE OF pt_range.
      ASSIGN l_ref->* TO <range>.
      CHECK sy-subrc                          = 0.
      ASSIGN COMPONENT 'SIGN' OF STRUCTURE <range> TO <sign>.
      CHECK sy-subrc                          = 0.
      ASSIGN COMPONENT 'OPTION' OF STRUCTURE <range> TO <option>.
      CHECK sy-subrc                          = 0.
      ASSIGN COMPONENT 'LOW' OF STRUCTURE <range> TO <low>.
      CHECK sy-subrc                          = 0.
      ASSIGN COMPONENT 'HIGH' OF STRUCTURE <range> TO <high>.
      CHECK sy-subrc                          = 0.
      <sign>                                  = p_signopt(1).
      <option>                                = p_signopt+1(2).
      <low>                                   = p_low.
      <high>                                  = p_high.
      APPEND <range> TO pt_range.
    ENDFORM.                    " append_range
    Enjoy your ranges,
    Clemens

  • Oracle BAM 11g - Deployments and development questions

    Hi!
    I have few questions related to Oracle BAM 11g developement and deployment processes. We are going to use that together with Oracle SOA Suite 11g ( BPEL / BPM processes), and now my questions are related to development phase:
    1. If we have two or more Oracle BAM developers with their own Oracle BAM server instances, and we would like to share our development work, should/can we you same database repository to share the reports, data objects?
    2. How we can copy Oracle BAM Data Objects, Reports etc from one environment (dev) to other environments (test, accept test, integration test, production) ? In software deployment projects (like Spring or Grails web-projects) we have used version control system and CI to build packages to different environments etc. How is the Oracle BAM deployment process actually "planned to be" since it uses its database repository to store objects and reports ?
    3. The Oracle BAM itself has nice reports etc (Oracle BAM Client) that can be used using IE browser. How if we have to show/include those reports from Oracle WebCenter Spaces ? Is it possible and how?

    Hi,
    Were you able to find the answer to your questions? Especially the one, showing BAM reports in Webcenter Spaces?

  • Performance Tuning for BAM 11G

    Hi All
    Can anyone guide me for any documents or any tips realted to performance tuning for BAM 11G on on Linux

    It would help to know if you have any specific issue. There are number of tweaks all they way from DB to Browser.
    Few key things to follow:
    1. Make sure you create index on DO. If there are too much old data in the DO and not useful then periodically delete it. Similar to relational database indexes, defining indexes in Oracle BAM creates and maintains an ordered list of data object elements for fast retrieval.
    2. Ensure that IE setup to do automatic caching. This will help with reducing server round trips.
    3. Tune DB performance. This would typically require DBA. Identify the SQL statements most likely to be causing the waits by looking at
    the drilldown Top SQL Statements Ordered by Wait Time. Use SQL Analyze, EXPLAIN PLAN, or the tkprof utility to tune the queries that were identified.
    Check the Dataobject tables involved in the query for missing indexes.
    4. Use batching (this is on by default for most cases)
    5. Fast network
    6. Use profilers to look at machine load/cpu usage and distribute components on different boxes if needed.
    7. Use better server AND client hardware. BAM dashboard are heavy users of ajax/javascript logic on the client

  • BAM 11g - creating new report - More options not active

    I am creating new reports in BAM 11g. 11.1.1.3.0 Build 8553
    I can select the Data Object and Data Fields, but.... When I select any of the More options.... such as Create a filter or Create a calculated fied etc... I get the View Prompts screen and I cannot get out of it.
    The Properties object works, but as soon as I go back to the Data Objects - I am on the View prompts screen with several unlabelled tabs... and I can only OK, Cancel or Save.
    If I re-edit the reprt - I go straight to this View Prompts Screen... and can do nothing on the data objects.
    Rebooting makes no difference....
    Has anyone else seen this.
    I am using JDK 1.6.0_14... which i picked up from a post in the forum.... but this has made no difference.
    Thanks
    Cliff

    There must have been a typo or something when I reset the Java version.... re applying the copy of JDK 1.6.0_14 and restarting, Fixed the problem.

  • Multiple installs of causing Data provider internal error (-3000) on Open

    Hi,
    We have an application written against Oracle ODP 10.1.0.401 that's been deployed out on a web farm working great for some time now, however recently another area has asked to get ODP for 11g installed on that server. The install originally broke our application, but we were able to resolve most of the issues after following all of the appropriate "PATH" reordering and registering appropriate dlls. In fact, we finally got a server completely back up and running both versions with no issues.
    Unfortunately, it's a load-balanced server, and while one of the two servers is working correctly, the second seems to be having issues with specific parts of the install. We're trying to fix it on the second server now, and will be doing the same install shortly in our production environments.
    I was able to break the error out and create a very simple test app to eliminate as many variables as possible. It appears to be an issue with the driver when we enlist into a Distributed Transaction.
    The following code works fine:
    var connection = new Oracle.DataAccess.Client.OracleConnection(connectionStringBase + "Enlist=False");
    connection.Open();
    While this code does not:
    var connection = new Oracle.DataAccess.Client.OracleConnection(connectionStringBase);
    connection.Open();
    In both examples, connectionStringBase is Data Source=...;Validate Connection=true;User ID=...;Password=...; (where ... represents masked values). I've also tried "Enlist=True" in case the default was a problem, but it also fails.
    The exceptions we're getting on the server happen in the .Open() call. The stack trace is:
    [OracleException: Data provider internal error(-3000) [System.String]]
    Oracle.DataAccess.Client.OracleException.HandleErrorHelper(Int32 errCode, OracleConnection conn, IntPtr opsErrCtx, OpoSqlValCtx* pOpoSqlValCtx, Object src, String procedure) +779
    Oracle.DataAccess.Client.OracleException.HandleError(Int32 errCode, OracleConnection conn, IntPtr opsErrCtx, Object src) +41
    Oracle.DataAccess.Client.OracleConnection.Open() +3338
    Default.Page_Load(Object sender, EventArgs e) in C:\Code\Oracle11gTest\Oracle11gTest\Default.aspx.cs:13
    System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
    System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +43
    System.Web.UI.Control.OnLoad(EventArgs e) +91
    System.Web.UI.Control.LoadRecursive() +74
    System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2604
    I've read a few articles on this particular error and found that it's generally considered an ambiguous error with many potential causes, most of which I've been trying to test and rule out. While I don't have direct access to the server, I've been working with someone who does and they have compared registry settings and registered dlls, and have told me that the 2 servers match, and we've already re-installed the 10.1 drivers hoping it would help, but at this point we're stumped. I've read that it's possible that the COM+ install could have become corrupt, but what confuses me is that just prior to the 11g install, everything works great, and after doing no more than an ODP 11g install, it breaks. Do you have any advice or suggestions we could try?
    Thanks in advance for any insight you might have!
    ~Jeff

    If I read your post correctly that this is a "everything is equal as far as we know, but box A works and box B doesn't" type situation, my first suggestion would be to get Process Explorer from http://sysinternals.com, and compare the loaded modules between the working and non-working servers. You'll probably find that you're not using the software you think you're using, or have mismatched dlls across homes, or something to that effect. Once you figure out what the difference between the two is, correcting it will probably be the easy part.
    Hope it helps,
    Greg

  • Move Data from Converted Database Objects Successfully Finish ?

    I am using SQL Developer 3.2.20.09 try to migrate KSMMS database from SQL Server 2008 to Oracle 11g R2. After the migration process is done, the Captured Database Objects model, and Converted Database Objects model have been created in the Migration Projects Navigator panel on the left side, and the corresponding sql scripts has been generated in the project output directory. I run the sql scripts, it created all the tables, views, index and stored procedures in the oracle database, everything seems working perfectly. However when I try to Move Data (by right clicking Converted Database Objects) and try to move all the data from SQL Server to Oracle database, the Data moving process run less then 1 minute, and show me the result as Data Move successfully. I have about 1 GB data in the SQL Server database, it seems nothing has been moved into Oracle DB. Here are the detail structures of MS SQL Server Database which I am trying to migrate to Oracle:
    The SQL Server Database name is KSMMS, under that database there are 9 users (azteca, cwweb, dbo, guest, plladmin, pw, pwadmin, tbills, wsdadmin). All my application objects (tables, views, indexes, procedures) are under azteca user, during the migration process, Converted Database Objects creates user azteca_KSMMS and dob_KSMMS, all my application objects have been created under azteca_KSMMS user schema. The generated .sql scripts actually can create all the objects under azteca_KSMMS schema, however when I try to Move Data, nothing has been moved into Oracle database. I opened an SR#3-6708733861 last Friday, it seems Oracle Support can't find what cause the problem during the Data Move process. Any help regarding my questions will be highly appreciated. Thanks.
    Kevin

    I changed Data Move Mode to Online and run the Data Move again. Same Results: Migration action have completed successfully. However no records have been moved into Oracle tables.
    I am running SQL Developer under Windows 8 Operation system. There is no Oracle client software available for Windows 8, does that cause any problems?
    Kevin

  • Differences between DATA TYPE and DATA OBJECTS

    I am new to ABAP,I want to know the differences between DATA TYPE and DATA OBJECTS with some examples.
    please help me regarding this.

    Hi Ashish,
    Data Types:       Are pure descriptions.
                   No memory is associated with data types.
                   Describes the technical properties of data objects.
    EX.
    1.     C-CHARACTER
    2.     D-DATE
    3.     F-FLOAT
    4.     I-INTEGER
    5.     N-NUMERIC TEXT
    6.     T-TIME
    7.     P-PACKED NUMBER
    8.     X-HEXADECIMAL
    9.     STRING-Variable length string.
    10.     XSTRING-Variable length byte string.
    Data Objects: Are created during runtime.
                    They cannot exist without the data Types.
                    Occupies memory space.
    EX:
    1.     INTERNAL DATA OBJECT- Internal Data objects
         LITEERAL- A literal has a fixed value.Ex: WRITE:u201DWORK HARDu201D.
         VARIABLES: Data statement is used to create variables.
    EX.DATA: NUM TYPE I.
    NUM: VARIABLE defined by data statement.
    EX: DATA: PRICE LIKE NUM.
         CONSTANT-It is a data object, which contains a constant value throughout the program.
    Can be declared in program by using CONSTANT statement.
    EX:CONSTANT: INT TYPE I VALUE 15.
    2.     EXTERNAL DATA OBJECT: Are defined in tables i.e In ABAP/4 dictionary you can access this data from table.
             EX: TABLES: SFLIGHT
              DATA: SEATS LIKE SFLIGHT-SEATSMAX.
    3.     SYSTEM DEFINED DATA OBJECTS:Space & system variables like SY-UNAME,SY-DATUM, SY-REPID.
    4.     SPECIAL DATA  OBJECTS:
         PARAMETERS: Are Variables ,which can accept value from user.
          SELECTION SCREEN : Are special internal tables to accept value ranges from user.
    3 APPROACHES TO DEFINE DATA OBJECTS.
    1.     ELEMENTARY TYPES
    DATA: Customer _Name (25) TYPE C,
                   Vendor_Name (25) TYPE C.
    2.     REFRENCE TO AN EXISTING FIELD:
    DATA: Customer _Name2 (25) TYPE C,
                  Vendor_Name2 (25) LIKE Customer_Name2
    3.     REFRENCE TO NON-ELEMENTARY TYPE:
    TYPES: T_NAME (25) TYPE C
    DATA: CUSTOMER_NAME TYPE T_NAME
                   VENDOR_NAME  TYPE T_NAME
    4.     RECORD-Information in rows & columns.
    DATA: BEGIN OF BOOKING,
                                    ID (4) TYPE C,
                                    FLIGHT_DATE TYPE D,
                                    NAME LIKE CUSTOMER_NAME,
                                    END OF BOOKING.
    You can also look into SAP help for more information.
    Regards,
    Indu.

  • Difference b/w DATA TYPE and DATA OBJECT & differences b/w TYPE and LIKE

    hai
    can any one say the differences between Data type and Data Object.
    And also differences between TYPE and LIKE
    thanks
    Gani

    hi,
    _Data Types and Data Objects_
          Programs work with local program data – that is, with byte sequences in the working memory. Byte sequences that belong together are called fields and are characterized by a length, an identity (name), and – as a further attribute – by a data type. All programming languages have a concept that describes how the contents of a field are interpreted according to the data type.
          In the ABAP type concept, fields are called data objects. Each data object is thus an instance of an abstract data type. There are separate name spaces for data objects and data types. This means that a name can be the name of a data object as well as the name of a data type simultaneously.
    Data Types
       As well as occurring as attributes of a data object, data types can also be defined independently. You can then use them later on in conjunction with a data object. The definition of a user-defined data type is based on a set of predefined elementary data types. You can define data types either locally in the declaration part of a program using the TYPESstatement) or globally in the ABAP Dictionary. You can use your own data types to declare data objects or to check the types of parameters in generic operations.
         All programming languages distinguish between various types of data with various uses, such as ….. type data for storing or displaying values and numerical data for calculations. The attributes in question are described using data types. You can define, for example, how data is stored in the repository, and how the ABAP statements work with the data.
    Data types can be divided into elementary, reference, and complex types.
    a. Elementary Types
    These are data types of fixed or variable length that are not made up of other types.
    The difference between variable length data types and fixed length data types is that the length and the memory space required by data objects of variable length data types can change dynamically during runtime, and that these data types cannot be defined irreversibly while the data object is being declared.
    Predefined and User-Defined Elementary Data Types
    You can also define your own elementary data types in ABAP using the TYPES statement. You base these on the predefined data types. This determines all of the technical attributes of the new data type. For example, you could define a data type P_2 with two decimal places, based on the predefined data type P. You could then use this new type in your data declarations.
    b.  Reference Types
    Reference types are deep data types that describe reference variables, that is, data objects that contain references. A reference variable can be defined as a component of a complex data object such as a structure or internal table as well as a single field.
    c. Complex Data Types
    Complex data types are made up of other data types. A distinction is made here between structured types and table types.
    Data Objects
          Data objects are the physical units with which ABAP statements work at runtime. The contents of a data object occupy memory space in the program. ABAP statements access these contents by addressing the name of the data object and interpret them according to the data type.. For example, statements can write the contents of data objects in lists or in the database, they can pass them to and receive them from routines, they can change them by assigning new values, and they can compare them in logical expressions.
           Each ABAP data object has a set of technical attributes, which are fully defined at all times when an ABAP program is running (field length, number of decimal places, and data type). You declare data objects either statically in the declaration part of an ABAP program (the most important statement for this is DATA), or dynamically at runtime (for example, when you call procedures). As well as fields in the memory area of the program, the program also treats literals like data objects.
            A data object is a part of the repository whose content can be addressed and interpreted by the program. All data objects must be declared in the ABAP program and are not persistent, meaning that they only exist while the program is being executed. Before you can process persistent data (such as data from a database table or from a sequential file), you must read it into data objects first. Conversely, if you want to retain the contents of a data object beyond the end of the program, you must save it in a persistent form.
    Declaring Data Objects
          Apart from the interface parameters of procedures, you declare all of the data objects in an ABAP program or procedure in its declaration part. These declarative statements establish the data type of the object, along with any missing technical attributes. This takes place before the program is actually executed. The technical attributes can then be queried while the program is running.
         The interface parameters of procedures are generated as local data objects, but only when the procedure is actually called. You can define the technical attributes of the interface parameters in the procedure itself. If you do not, they adopt the attributes of the parameters from which they receive their values.
    ABAP contains the following kinds of data objects:
    a.  Literals
    Literals are not created by declarative statements. Instead, they exist in the program source code. Like all data objects, they have fixed technical attributes (field length, number of decimal places, data type), but no name. They are therefore referred to as unnamed data objects.
    b.  Named Data Objects
    Data objects that have a name that you can use to address the ABAP program are known as named objects. These can be objects of various types, including text symbols, variables and constants.
    Text symbols are pointers to texts in the text pool of the ABAP program. When the program starts, the corresponding data objects are generated from the texts stored in the text pool. They can be addressed using the name of the text symbol.
    Variables are data objects whose contents can be changed using ABAP statements. You declare variables using the DATA, CLASS-DATA, STATICS, PARAMETERS, SELECT-OPTIONS, and RANGESstatements.
    Constants are data objects whose contents cannot be changed. You declare constants using the CONSTANTSstatement.
    c.  Anonymous Data  Objects
    Data objects that cannot be addressed using a name are known as anonymous data objects. They are created using the CREATE DATAstatement and can be addressed using reference variables.
    d.  System-Defined Data Objects
    System-defined data objects do not have to be declared explicitly - they are always available at runtime.
    e.  Interface Work Areas
    Interface work areas are special variables that serve as interfaces between programs, screens, and logical databases. You declare interface work areas using the TABLES and NODESstatements.
    What is the difference between Type and Like?
    Answer1:
    TYPE, you assign datatype directly to the data object while declaring.
    LIKE,you assign the datatype of another object to the declaring data object. The datatype is referenced indirectly.
    Answer2:
    Type is a keyword used to refer to a data type whereas Like is a keyword used to copy the existing properties of already existing data object.
    Answer3:
    type refers the existing data type
    like refers the existing data object
    reward if useful
    thanks and regards
    suma sailaja pvn

  • No international data plan for one year-???

    Here is the background.  I moved over to Verizon about 4 months ago from Alltel.  I did this because I wanted to be able to have a blackberry with international BBm'ing.  I did not go with ATT because there coverage was spotty in my area.  Since the move, I would say my Alltel coverage was 3x better then the cuurent verizon in my house even with the network extender ( BB don't work well with network extender compare to droids, according to the VZW reps).  I did not stay with Alltel because they did not have the storm2.  I needed 6 lines and a mifi and the local verizon rep told me no problem that they could do one primary line and 5 additonal line plus the mifi but after I signed up they realized that I maxed out at 5 lines on one account and they made me make my 6th line a primary line and then added the mifi to the 2nd account.  More costs per month.  Within a month of having my VZW account, one of my kid went to China and we were able to add the international data plan for her trip so she could BBM us.  No problems.
    Here is the problem.  I am going abroad in 2 days and would like to put the international data plan on 2 phones for the trip.  The rep says he cannot do becaue the polciies have changed with the "xerox" buyout and they won't let me do it for the following reasons.
    1.  I have not had my phones for more than one year even though I paid a deposit on them
    2. I have 7 lines on one account- not true I have one account with 1 primary line and 4 additional lines and I have another account with one primary line and the mifi account.  they are all billed on the same statement.  If they are all "one account" then VZW owes me a refund on the 2nd account's primary line as they cannot have it both ways. 
     We came to verizon for the purpose of BBM’ing when going international and now we cannot use it.  I am paying over $500.00 a month and have not been late on any payments, paid a deposit on the phones, am paying for 2 primary lines and did this a few weeks ago for my daughter and now I cannot add the international option again for a week of vacation abroad?  This is really upsetting and pretty much the last straw if it does not get resolved before this trip.  I should have stayed at Alltel or went to ATT and got an I phone because this is no better.    The rep I talked too was bedeviled by this policy and went two levels up in supervisors and was denied.  They are supposed to call me to resolve this issue tonight or in the morning. 
    {word filter avoidance}

    Update:
    I got a call from my local rep at the store where I bought all the phones.  She said they called corporate and all blocks on my international data plan have been removed?  I will stop by this afternoon and confirm that it has all been done???? I still cannot believe how many hoops I will have had to jump through to get this done as it was done 2 months ago, if it actually gets done.
    If it does not get done then i will be requesting to be let out of my contract for breach of contract on Verizon's part as it was never told to me that I could not have international service for one year after signing up and we were able to do it within a month of signing up initially.  Will post updates

  • Error while downloading data from internal table into XML file

    hi all,
    i developed a program to download data from into internal table to xml file like this.
    tables: mara.
    parameters: p_matnr like mara-matnr.
    data: begin of itab_mara occurs 0,
                matnr like mara-matnr,
                ernam like mara-ernam,
                aenam like mara-aenam,
                vpsta like mara-vpsta,
          end of itab_mara.
    data: lv_field_seperator type c,     " value 'X',
          lv_xml_doc_name(30) type c,    " string value ‘my xml file’,
          lv_result type i.
          lv_field_seperator = 'x'.
          lv_xml_doc_name = 'my xml file'.
    types: begin of truxs_xml_line,
              data(256) type x,
          end of truxs_xml_line.
    types:truxs_xml_table type table of truxs_xml_line.
    data:lv_tab_converted_data type truxs_xml_line,
         lt_tab_converted_data type truxs_xml_table.
    data: lv_xml_file type rlgrap-filename value 'c:\simp.xml'.
    select matnr ernam aenam vpsta from mara into table itab_mara up to 5
           rows where matnr = p_matnr.
    CALL FUNCTION 'SAP_CONVERT_TO_XML_FORMAT'
    EXPORTING
       I_FIELD_SEPERATOR          = lv_field_seperator
      I_LINE_HEADER              =
      I_FILENAME                 =
      I_APPL_KEEP                = ' '
       I_XML_DOC_NAME             = lv_xml_doc_name
    IMPORTING
       PE_BIN_FILESIZE            = lv_result
      TABLES
        I_TAB_SAP_DATA             = itab_mara
    CHANGING
       I_TAB_CONVERTED_DATA       = lt_tab_converted_data
    EXCEPTIONS
      CONVERSION_FAILED          = 1
      OTHERS                     = 2
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    open dataset lv_xml_file for output in binary mode.
    loop at lt_tab_converted_data into lv_tab_converted_data.
    transfer lv_tab_converted_data to lv_xml_file.
    endloop.
    close dataset lv_xml_file.
    this program is syntactically correct and getting executed, but when i open the target xml file it is showing the following error.
    The XML page cannot be displayed
    Cannot view XML input using style sheet. Please correct the error and then click the Refresh button, or try again later.
    XML document must have a top level element. Error processing resource 'file:///C:/simp.xml'.
    will anyone show me the possible solution to rectify this error
    thanks and regards,
    anil.

    Hi,
    Here is a small sample program to convert data in an internal table into XML format and display it.
    DATA: itab  TYPE TABLE OF spfli,
          l_xml TYPE REF TO cl_xml_document.
    * Read data into a ITAB
    SELECT * FROM spfli INTO TABLE itab.
    * Create the XML Object
    CREATE OBJECT l_xml.
    * Convert data in ITAB to XML
    CALL METHOD l_xml->create_with_data( name = 'Test1'
                                         dataobject = t_goal[] ).
    * Display XML Document
    CALL METHOD l_xml->display.
    Here are some other sample SAP programs to handle XML in ABAP:
    BCCIIXMLT1, BCCIIXMLT2, and BCCIIXMLT3.
    Hope this helps,
    Sumant.

  • Enterprise Link in BAM 11G

    Hi , How to access Enterprise Link in BAM 11g ( Linux) ?I need to import plans from 10.1.3.4 Can anyone guide me how to access Design Studio in BAM 11G.

    The BAM 10g Enterprise Link is not supported in 11g. Instead there is native integration with JMS and native integration with Oracle Data Integrator.

Maybe you are looking for