VA03 - Base tables & Logic  for structures

Hi,
In a data archiving project, I have to identify the tables & fields which are to be archived based on customers reports. When we try to find out tables & fields for the reports, there are lot of fields with structures. How to find out the base tables for these structures? In VA03 report, I need to find out the base tables & logic for the below structure-fields
CCDATA-CCINS
CCDATA-CCNUM
RV45A-DWERK
RV45A-BTGEW
RV45A-GEWEI
RV45A-VOLUM
RV45A-VOLEH
CCDATA-DATBI
VBAPD-EPMEH
RV45A-PRGBZ
KOMV-KSCHL
KOMV-KBETR
RV45A-KOEIN
RV45A-KFREL
RV45A-ABGESP
RV45A-DWERK
VBAPD-EPMEH
RV45A-PRGBZ
RV45A-KFREL
RV45A-KWMENG
RV45A-PRGBZ
RV45A-ETDAT
RV45A-EPMEH
RV45A-KFREL
RV45A-PSTYP
RV45A-KNTTP
VBEPD-RSETD
VBAPD-EPMEH
RV45A-GRETD
Could you please tell me the base tables & the logic for these fields.
Thanks,
Venkat

Hi
Venkat Rao
Just check the field in the tables given by  Jhon and also check the some of the tables below
VEPVG - Open Sals Order QTY.
VBUK - Open Sales Order
Use the transaction SE16  / SE11 and try to serach the field and find out base tables and logic.
RV45A-DWERK ---   Plant u will find this in VBAP
RV45A-PSTYP  ---  Document type and so on.....
Thx.

Similar Messages

  • Base table name for fields from Material Master

    Hi All,
    I want base table name which holds all possible values of following column:
    1)Material Master : X-plant matl status from tab -basic data 1
    2)Material Master: X-distr.chain status from tab -sales org 1
    for example: Base table for Prod.hierarchy is T179/T179T.
    Many thanks to all
    Yogesh

    Thanks Mahesh but I know its value available in MARA table for eery material. But i want to know where all possible distinct values are stored?... In other word, when we click on button which is next to this field and from that list we normally select value and then assign to above fields. Where this list is stored for
    X-plant matl status
    X-distr.chain status

  • ABAP DDIC  table name for structure definition

    Hello,
      Can anybody tell me what is the name of DDIC table used for storing ABAP structure definition and also its related tables.
    Thanks&Regards,
    Prajesh

    Hi again,
    1. There is one more field
        in DD03L table.
    2. DEPTH
    3. Normally this field will be blank.
    4. In your case,
       u have 2 common fields.
      eg. F2
    5. Then
       it will be like this in table
       F2  - space
       F2  - 1
    6. The second entry is for DEPTH.
    regards,
    amit m.

  • What is the table name for structure field MUEBS???

    Hi...Experts...
        How can I know the table for a screen-field if i get structure from it F1 Technical settings....
    Ex: Here MUEBS is the screen field (Char. Display) in one of the subscreens of VA41. And it is from
          RV45A structure...
    Now how can I know the table name for this field MUEBS.
    I know some methods but they r not help ful.. please try it and get back to me.
    Thanks,
    Naveen.I

    Naveen,
    Table field                    Short Description                                                                               
    VBMUE            Sales Document: Characteristic Overview           
    MUEBS                          Characteristic display                                                                               
    VBMUEZ           Sales Document: Characteristic Overview Assignments
    MUEBS                          Characteristic display                                                                               
    VBMUET           Sales Document: Characteristic Overview Description
    MUEBS                          Characteristic display
    You can find same by SE15>Abap dictonary>fields>table fields.
    Amit.

  • Table name for structure KKBCS_OUT

    Hi all,
    We have a report for which we are getting data from a structure KKBCS_OUT.
    Can anyone please let me know the name of table related to this structure?
    Thanks & Regards,
    Kavitha

    Hi,
    Check the below tables
    cosp, coss, cosl, aufk, qmat .
    Try running sql trace to find out the same.
    Go to ST05 , click on active trace .... open another session , run ur transaction .... come to ST05, clikc on deactive the trace..... and click on display trace.....now u can able to see all tables and field names, which are used in ur transaction.
    Regards.

  • Internal Table - logic for Chunk

    Hi,
    I have an internal table with n records.
    I want to use at a time say max of 20 records .
    This is calling a BDC.
    i.e.
    loop at n record.
    take 20 records.
    call BDC.
    then next set of recrds.
    repeat process till all records processed.
    Thanks in Advance.
    Amit

    Hi,
    try this way.
    data: count type i.
    loop at table
      if count LE 20.
        add 1 to count.
      else.
        clear count.
        call bdc.
        "refresh all the concerned tables and variables for the next 20 records.
      endif.
    endloop.
    Or.
    loop ...
    WHILE count le 20.  
       ADD 1 TO count.
    ENDWHILE.                   
        clear count.
        call bdc.
        "refresh all the concerned tables and variables for the next 20 records.
    endloop
    Regards.
    Marcelo Ramos

  • How to Compare Data length of staging table with base table definition

    Hi,
    I've two tables :staging table and base table.
    I'm getting data from flatfiles into staging table, as per requirement structure of staging table and base table(length of each and every column in staging table is 25% more to dump data without any errors) are different for ex :if we've city column with varchar length 40 in staging table it has 25 in base table.Once data is dumped into staging table I want to compare actual data length of each and every column in staging table with definition of base table(data_length for each and every column from all_tab_columns) and if any column differs length I need to update the corresponding row in staging table which also has a flag called err_length.
    so for this I'm using cursor c1 is select length(a.id),length(a.name)... from staging_table;
    cursor c2(name varchar2) is select data_length from all_tab_columns where table_name='BASE_TABLE' and column_name=name;
    But we're getting data atonce in first query whereas in second cursor I need to get each and every column and then compare with first ?
    Can anyone tell me how to get desired results?
    Thanks,
    Mahender.

    This is a shot in the dark but, take a look at this example below:
    SQL> DROP TABLE STAGING;
    Table dropped.
    SQL> DROP TABLE BASE;
    Table dropped.
    SQL> CREATE TABLE STAGING
      2  (
      3          ID              NUMBER
      4  ,       A               VARCHAR2(40)
      5  ,       B               VARCHAR2(40)
      6  ,       ERR_LENGTH      VARCHAR2(1)
      7  );
    Table created.
    SQL> CREATE TABLE BASE
      2  (
      3          ID      NUMBER
      4  ,       A       VARCHAR2(25)
      5  ,       B       VARCHAR2(25)
      6  );
    Table created.
    SQL> INSERT INTO STAGING VALUES (1,RPAD('X',26,'X'),RPAD('X',25,'X'),NULL);
    1 row created.
    SQL> INSERT INTO STAGING VALUES (2,RPAD('X',25,'X'),RPAD('X',26,'X'),NULL);
    1 row created.
    SQL> INSERT INTO STAGING VALUES (3,RPAD('X',25,'X'),RPAD('X',25,'X'),NULL);
    1 row created.
    SQL> COMMIT;
    Commit complete.
    SQL> SELECT * FROM STAGING;
            ID A                                        B                                        E
             1 XXXXXXXXXXXXXXXXXXXXXXXXXX               XXXXXXXXXXXXXXXXXXXXXXXXX
             2 XXXXXXXXXXXXXXXXXXXXXXXXX                XXXXXXXXXXXXXXXXXXXXXXXXXX
             3 XXXXXXXXXXXXXXXXXXXXXXXXX                XXXXXXXXXXXXXXXXXXXXXXXXX
    SQL> UPDATE  STAGING ST
      2  SET     ERR_LENGTH = 'Y'
      3  WHERE   EXISTS
      4          (
      5                  WITH    columns_in_staging AS
      6                  (
      7                          /* Retrieve all the columns names for the staging table with the exception of the primary key column
      8                           * and order them alphabetically.
      9                           */
    10                          SELECT  COLUMN_NAME
    11                          ,       ROW_NUMBER() OVER (ORDER BY COLUMN_NAME) RN
    12                          FROM    ALL_TAB_COLUMNS
    13                          WHERE   TABLE_NAME='STAGING'
    14                          AND     COLUMN_NAME != 'ID'
    15                          ORDER BY 1
    16                  ),      staging_unpivot AS
    17                  (
    18                          /* Using the columns_in_staging above UNPIVOT the result set so you get a record for each COLUMN value
    19                           * for each record. The DECODE performs the unpivot and it works if the decode specifies the columns
    20                           * in the same order as the ROW_NUMBER() function in columns_in_staging
    21                           */
    22                          SELECT  ID
    23                          ,       COLUMN_NAME
    24                          ,       DECODE
    25                                  (
    26                                          RN
    27                                  ,       1,A
    28                                  ,       2,B
    29                                  )  AS VAL
    30                          FROM            STAGING
    31                          CROSS JOIN      COLUMNS_IN_STAGING
    32                  )
    33                  /*      Only return IDs for records that have at least one column value that exceeds the length. */
    34                  SELECT  ID
    35                  FROM
    36                  (
    37                          /* Join the unpivoted staging table to the ALL_TAB_COLUMNS table on the column names. Here we perform
    38                           * the check to see if there are any differences in the length if so set a flag.
    39                           */
    40                          SELECT  STAGING_UNPIVOT.ID
    41                          ,       (CASE WHEN ATC.DATA_LENGTH < LENGTH(STAGING_UNPIVOT.VAL) THEN 'Y' END) AS ERR_LENGTH_A
    42                          ,       (CASE WHEN ATC.DATA_LENGTH < LENGTH(STAGING_UNPIVOT.VAL) THEN 'Y' END) AS ERR_LENGTH_B
    43                          FROM    STAGING_UNPIVOT
    44                          JOIN    ALL_TAB_COLUMNS ATC     ON ATC.COLUMN_NAME = STAGING_UNPIVOT.COLUMN_NAME
    45                          WHERE   ATC.TABLE_NAME='BASE'
    46                  )       A
    47                  WHERE   COALESCE(ERR_LENGTH_A,ERR_LENGTH_B) IS NOT NULL
    48                  AND     ST.ID = A.ID
    49          )
    50  /
    2 rows updated.
    SQL> SELECT * FROM STAGING;
            ID A                                        B                                        E
             1 XXXXXXXXXXXXXXXXXXXXXXXXXX               XXXXXXXXXXXXXXXXXXXXXXXXX                Y
             2 XXXXXXXXXXXXXXXXXXXXXXXXX                XXXXXXXXXXXXXXXXXXXXXXXXXX               Y
             3 XXXXXXXXXXXXXXXXXXXXXXXXX                XXXXXXXXXXXXXXXXXXXXXXXXXHopefully the comments make sense. If you have any questions please let me know.
    This assumes the column names are the same between the staging and base tables. In addition as you add more columns to this table you'll have to add more CASE statements to check the length and update the COALESCE check as necessary.
    Thanks!

  • How to run through a table in a structure?

    Hey,
    following structure is send by a BAPI:
    import (structure)
    |- payload (structure)
    ...|- client (data element)
    ...|- order (structure)
    ......|- date (data element)
    ......|- orderitems (table)
    .........|- position (table column)
    .........|- price (table column)
    How to access the fields in structure and table with ABAP?
    For example export would look like this:
    export (structure)
    |- client (data elemen)
    |- items (table)
    ...|- position (table column)
    For structure items is it no problem:
    export-client = import-payload-client.
    How to copy column position?  Do I have to use a loop over tabel orderitems?
    Can you give me a hint?
    Thanks
    chris
    Edited by: Christian Riekenberg on Jun 4, 2008 4:37 PM

    hey,
    tryinig this, I've got an error:
    import (structure)
    |- payload (structure)
    ...|- client (data element)
    ...|- order (structure)
    ......|- date (data element)
    ......|- orderitems (table)
    .........|- title (table column)
    .........|- price (table column)
    export (structure)
    |- client (data elemen)
    |- items (table)
    ...|- position (table column)
    .......|- title (column)
    DATA: wa_books like ZLISTOFBOOKS.
    loop at IMPORT-PAYLOAD-order-orderitems into wa_books.
    export-items-positon-titles = wa_books-titles.
    append export.
    endloop.
    He says that export-client-items doesn't got a component called position-title.
    I checked spelling and seems ok.
    Ideas?

  • Fields comming from which data base tables

    Hi Experts,
    Every extractor should fetch data from some data base table. For generic data source and LO data source I know to see but could you please tell me, how I can find for business content (ex: 0FI_GL_4) data source which field data coming from which data base table. 
    Regards
    Lokanatha.

    Hi,
      We can get from SAP help about the tables being used in each business content extractor.
    For Eg-0fi_gl_4, data coming from BKPF,BSEG tables.
    Go thru this link which tells the table for the above extractor..
    http://help.sap.com/saphelp_nw70/helpdata/en/8b/02f93abb013b0de10000000a114084/content.htm
    Hope this helps..
    Thanks & Regards,
    Pradeep

  • Finding base table for a field in a structure !! urgent

    i need to find out where is BUDAT field being populated in the 2lis_04_p_arbpl extractor. When i see where this field is coming from it shows MCAFVG which is a structure. i need to use this field in user exit and need to know which table is it coming from. I am actually looking for last confirmation date on an order.
    my query is that if a field is shown as a part of a structure then how can we find out where is it being populated from ? like where can we find the base tables for this structure ?
    Please help. Points will be assigned to all helpful answers.
    thanks
    Laura.

    HI..
    well yes... go to ROOSOURCE and find the name of the program for that structure. go to se38 and check out the tables used in that program.
    let me know if that helped... what structure are u trying to find the tables for ?
    thanks
    Laura.

  • Need Tables for structures

    Hi,
    These are 4 fields are from different structure.We are unable to find tables for these structures.
    All field and structures are from VA03 transaction in ECC.
    *Name :Production Order Status    Structure : CAUFVD          FieldSTTXT*
    *Name:Sales Order header Status    Structure VBSTT                 Field  GBSTA_BEZ*
    *Name:Material Style (in SO).T(from Sales order)                  Field     ATWRT*
    *Name; Sales Order line item Status*  
    Please anyone can help us
    Thanks,
    Sridhar

    Hi
    It seems that you want test of the describ fields, for which you need to find relevant test table.
    For Production order status use--->
    Goto CAUFV
    get the field - CAUFV-OBJNR
    Pass this in JEST in field = OBJNR, object number and INACT = space
    you will get severail entries for field STAT.
    pass this field entries STAT to tabel TJ02T and field - ISTAT, language = EN
    you will get status in the field TJ02T-TXT04 and text in field - TJ02T-TXT30.
    or simply use FM- STATUS_TEXT_EDIT
    Thank-You.
    Regards,
    Vinod

  • Data Source for BSEG Data base table

    Hi Every one,
    I need to create a data source for the data base table BSEG (Function Module Extraction).
    I have followed below steps.
    I have created extarct structure which contains all the fields of BSEG Data base table.If I save the data source I am getting error.
    If I remove all the currecy fields from extract structure, I am able to activate the data sorce.
    So Could you please explain me how to extract currency fields.

    Hi,
    Firstly, can you explain why you need a generic extractor for BSEG? There are already 2 datasources for BSEG, they are:
    0FI_GL_4
    http://help.sap.com/saphelp_nw70/helpdata/en/0c/b4973c115a6f3ae10000000a114084/frameset.htm
    0FI_GL_14
    http://help.sap.com/saphelp_nw70/helpdata/en/49/5700570223413085021a8b4ef1087a/frameset.htm
    To use 0FI_GL_14, you should use the new GL in ECC side.
    On the other hand, for your problem, your problem may occur if you did not give the reference unit field of your currency field in your extraction structure. when you double click the  the currency field, you will see the ref. field, give the reference unit field in this area.
    Regards.

  • Aggregation table - Diffrent agg levels for base table and agg table

    Is it possible to have Different aggregation level for base table and Aggregation. Say sum on a column in AGG table and Count for the same column in Fact table.
    Example
    Region,Day_product,sales person, customer are dimensions and Call is a fact measure
    FACT_TABLE has columns Region, Day, Product, Sales person,Customer, Call
    AGG_TABLE has columns Region, Month,Product, call
    We already have a Logical Table definition for the fact table say FACT_CALL
    We have a Logical column called No of customers.
    For the Data source as FACT_TABLE Formula for the column is "Customer" and Aggregation level is count distinct.
    But agg table we already have a calculated column call TOT_CUSTOMERS. which is been calculated and aggregated in the ETL.
    IF we map this to the logical column we have to set the formula as TOT_CUSTOMERS and we need to define aggregation type as SUM as this is at REGION, MONTH AND Product level. But OBI does not allow to do so.
    Is there a work around for this? Can you please let us know.
    Regard
    Arun D

    The way BI server picks up the table that would satisfy the query is through column mappings and contents levels. You have set the column mappings to TOT_CUSTOMER, which is right. When it comes to aggregation, since its already precalculated through ETL, you want to set the aggregation to SUM. Which I would say - is not correct, you can set the aggregation to COUNT DISTIMCT which is same as that of the detailed fact. But set the content levels to month in date table, and appropriate levels in region etc., So now BI Server will be aware of how to aggregate the rows when it chooses the agg table.

  • Base table for 0CRM_SALES_CONTR_I(CRM Sales Contracts: Item)

    Hi experts,
    Im looking for the base tables for 0CRM_SALES_CONTR_I(CRM Sales Contracts: Item).if there is a base table for the datasource how do we find it.
    Thanks,
    sivarama landa

    Hello Siva,
    This is the way to find in the system:
    From RSA2>Extraction Tab-> Extract Structure-->Components Tab->Component Column( You will see .INCLUDE)  with its Corresponding Description in the column---> Short Description ( FOR EX : ORDERADM_H Data for BW DataSources), usually the CRM system table will be CRMD_******** or CRM_******.
    Here you will not find the lbwe( way to find tables in the ECC ).
    The Best and easiest way to find is as said by Martin.
    Regards,
    Adhvi

  • Required to create a script for base table update using XMLSTORE package.

    Hi can anybody provide me some help full suggestion on how to update base table using XMLSTORE package.
    I created a simple script for Employee table and can able to do the basic operation like Insert and update on the table.
    Query is as follow's
    DECLARE
    insCtx DBMS_XMLSTORE.ctxType;
    rows NUMBER;
    xmlDoc CLOB :=
    '<ROWSET>
    <ROW num="1">
    <EMPLOYEE_ID>922</EMPLOYEE_ID>
    <SALARY>1801</SALARY>
    <HIRE_DATE>17-DEC-2007</HIRE_DATE>
    <JOB_ID>ST_CLERK</JOB_ID>
    <EMAIL>RAUSSJACK</EMAIL>
    <LAST_NAME>JACK</LAST_NAME>
    <DEPARTMENT_ID>20</DEPARTMENT_ID>
    </ROW>
    <ROW>
    <EMPLOYEE_ID>923</EMPLOYEE_ID>
    <SALARY>2001</SALARY>
    <HIRE_DATE>31-DEC-2005</HIRE_DATE>
    <JOB_ID>ST_CLERK</JOB_ID>
    <EMAIL>PATHAK</EMAIL>
    <LAST_NAME>PRATIK</LAST_NAME>
    <DEPARTMENT_ID>20</DEPARTMENT_ID>
    </ROW>
    </ROWSET>';
    BEGIN
    insCtx := DBMS_XMLSTORE.newContext('EMPLOYEES'); -- Get saved context
    DBMS_XMLSTORE.clearUpdateColumnList(insCtx); -- Clear the update settings
    -- Set the columns to be updated as a list of values
    DBMS_XMLSTORE.setUpdateColumn(insCtx, 'EMPLOYEE_ID');
    DBMS_XMLSTORE.setUpdateColumn(insCtx, 'SALARY');
    DBMS_XMLSTORE.setUpdateColumn(insCtx, 'HIRE_DATE');
    DBMS_XMLSTORE.setUpdateColumn(insCtx, 'JOB_ID');
    DBMS_XMLSTORE.setUpdateColumn(insCtx, 'EMAIL');
    DBMS_XMLSTORE.setUpdateColumn(insCtx, 'LAST_NAME');
    DBMS_XMLSTORE.setUpdateColumn(insCtx, 'DEPARTMENT_ID');
    -- Insert the doc.
    rows := DBMS_XMLSTORE.insertXML(insCtx, xmlDoc);
    --COMMIT;
    DBMS_OUTPUT.put_line(rows || ' rows inserted.');
    -- Close the context
    DBMS_XMLSTORE.closeContext(insCtx);
    END;
    SELECT employee_id, LAST_name FROM employees WHERE employee_id = 114;
    DECLARE
    updCtx DBMS_XMLSTORE.ctxType;
    rows NUMBER;
    xmlDoc CLOB :=
    '<ROWSET>
    <ROW>
    <EMPLOYEE_ID>114</EMPLOYEE_ID>
    <LAST_NAME>PRABHU</LAST_NAME>
    </ROW>
    </ROWSET>';
    BEGIN
    updCtx := DBMS_XMLSTORE.newContext('EMPLOYEES'); -- get the context
    DBMS_XMLSTORE.clearUpdateColumnList(updCtx); -- clear update settings
    -- Specify that column employee_id is a "key" to identify the row to update.
    DBMS_XMLSTORE.setKeyColumn(updCtx, 'EMPLOYEE_ID');
    rows := DBMS_XMLSTORE.updateXML(updCtx, xmlDoc); -- update the table
    DBMS_XMLSTORE.closeContext(updCtx); -- close the context
    commit;
    END;
    Nowi want little modification on this above query like as i am passing static XML tags and i want it to pick the dynamic XML from web and use the XMLSTORE for the update.
    and also for complex XML having 2-3 levels how this query needs to be changed.As i am new to this Oracle utillity any help from xepert will be a great help for me.
    Thanks

    Nowi want little modification on this above query like as i am passing static XML tags and i want it to pick the dynamic XML from webFrom a Web Service?
    You'll need UTL_HTTP or HttpUriType interface to send the request and receive the XML response.
    Search in the forum, there are already a lot of useful examples available.
    and also for complex XML having 2-3 levels how this query needs to be changed.DBMS_XMLStore is OK for readily processing a canonical XML format (/ROWSET/ROW/COLUMN structure or alike).
    However, if you have to deal with a more complex structure, you either have to :
    - use a target object table that matches the XML structure
    - preprocess the input document using XSLT to transform it to canonical format
    That's why DBMS_XMLStore is not appropriate for multilevel documents, especially if they contain nested repeating groups.
    In this case, XMLTable is a more flexible way of parsing the XML and process it relationally at the same time.
    Depending on the size of the document, performance may be improved with schema-based object-relational storage.
    For more help, please post a new thread in the {forum:id=34} forum, with the following information :
    - database version (select * from v$version)
    - a sample XML document (the complex one)
    - DDL of your target table
    - mapping between XML elements and columns (ie which tag goes to which column?)
    - an XML schema (if you have one)

Maybe you are looking for

  • Table name for Open purchase requisition / Purchase Order Number's

    Hi, I want to delete some Asset Number's. When i m deleting those, system give a error message You cannot delete. Open purchase requisition exists.. From where i can found those Purchase Requisition / Purchase Order Number's. Is there any table, wher

  • Do I need to OK?

    When I look at the Lightroom tutorial I se the instructors manulating the photos but in the end they never seam to OK or press Done? I am perhaps so fixed to other type of programs that i am allways looking where to press the "I've  done this" button

  • CLAD sample exam - windows dialog button mimic

    Hello, While preparing for the CLAD exam, I don't seem to agree with the given answer: What mechanical action of a Boolean would you use to mimic a button on a Windows dialog? The given answer is "Switch When Released". Maybe it depends on which butt

  • Reg Bulk Load of Data

    Hi all, In company visibility setting in company administration, there is an option of checking "Allow Bulk Load of Data by Customer care,.. in documents i learned that it its used to allow customer care to bulk load the data to siebel crm on demand,

  • Session member variable usage

    I want to keep client-specific information for each incoming connection, but i heard it cannot be done with session variable. i read in a book that session variables in a servlet (or scriptlet section of a jsp page) are shared among all incoming thre