SAP R/3 Tables without Date fields

I am trying to import data from SAP R/3 into MS SQL DWH.
There are tables which doesnot have posting date fields.
Can anyone tell me how to map them with those Table which will have posting date fields, so i can create view in SAP and then pull that view into SQL DWH restricting on date.
Following tables which doesnot have date fields i want to pull date for month of July 2007;
EKBE
EKKO
MAKT
MSEG
KSEG
AFPO
JEST
JCDS
MARA
AUFK
COEP
RESB
MARC
I am not a ABAP developer just trying to get my data from SAP, so please answer in detail.

BUDAT is the technical name for Posting Date field. This field is used many DB Tables/ Strucutres. Using where used option you can find the required tables.
I suggest you to look at BSEG table for Finace Document postings by Posting Date.

Similar Messages

  • How to compare table's date field with dropdown year field

    Hi All,
    I have one requirement to display the selected rows from a database table based on the selection of drop down.
    Here, I have one dropdown of year(like 2009,2010,....) and I have one database table which contains one field with "DATE".
    Now, I want to compare table's DATE field with my dropdown field.
    Problem is that table's DATE field is of type "DATS" and dropdown is of type INTEGER(or) STRING ...
    How to compare this fields?
    Can any one please give me solution for this...!
    Thanks in Advance!

    Hi  sreelakshmi.B,
    try the following:
    DATA lt_dats        TYPE TABLE OF dats.
    DATA l_dat_i        TYPE          i.
    DATA l_dat_c_4(4)   TYPE          c.
    DATA l_dat_c_12(12) TYPE          c.
    DATA l_dats_from    TYPE          dats.
    DATA l_dats_to      TYPE          dats.
    *Move Date from Integer to Char
    l_dat_c_4 = l_dat_i = 2005.
    *Create Date From use in WHERE-Clause
    CONCATENATE '01.01.' l_dat_c_4 INTO l_dat_c_12.
    CALL FUNCTION 'CONVERT_DATE_TO_INTERNAL'
         EXPORTING
              date_external            = l_dat_c_12
         IMPORTING
              date_internal            = l_dats_from
         EXCEPTIONS
              date_external_is_invalid = 1
              OTHERS                   = 2.
    IF sy-subrc <> 0.
    ENDIF.
    *Create Date To use in WHERE-Clause
    CONCATENATE '31.12.' l_dat_c_4 INTO l_dat_c_12.
    CALL FUNCTION 'CONVERT_DATE_TO_INTERNAL'
         EXPORTING
              date_external            = l_dat_c_12
         IMPORTING
              date_internal            = l_dats_to
         EXCEPTIONS
              date_external_is_invalid = 1
              OTHERS                   = 2.
    IF sy-subrc <> 0.
    ENDIF.
    * Select records in range
    SELECT *
           FROM [DBTAB]
           INTO TABLE [ITAB]
           WHERE [DATE] BETWEEN l_dats_from
                        AND     l_dats_to.
    Regards
    REA

  • Generic Extractor on DB Table without Date, Time stamp

    Hi all,
    We have requirement of creating a generic extractor on the table which doesnt have date or time stamp in the data field. The only option availabel is to extract from Document numbers.
    And we cant put the extractor mode to "Read from view" because the table contains Currency field which refers to external table for currency key.
    The moment we change the extractor mode from Extraction from view to Extraction from FM the option "Numeric pointer" gets hidden.
    What shall we do in this scenario ?? Pls advice.
    Thanks.
    Regards
    Nimesh

    Hello Tapan, Prakash
    Prakash : Currency key is needed in BW .
    Tapan : I was just trying diff. options i.e. extraction from view and FM . Problem with Generic Extractor is that i dont have any date fields getting updated in the table. The only field that can be used for delta is document number. And Generic extractor only allows date or time stamp option , its not allowing numeric pointer if one reads from FM.
    Regards
    Nimesh

  • Pass Date from Internal table to Date field of Deadline(in expression tab)

    Hello,
    I need to set deadline in workflow according to dates in Internal table. So please guide how to achieve this.

    Thanks Rick for taking interest in my issue.
    Business scenario:-
    --> when PO is created delivery date is given in PO.
    --> Now all materials in PO can be delivered on same date or on different dates.
    -->Their can be same delivery date or different delivery dates.
    --> So for example:- For a PO their are 4 materials-
            MATERIAL NAME     DELIVERY DATE
              Material1                   10.11.2011
              Material2                   20.11.2011
              Material3                   20.11.2011
              Material4                   10.11.2011
    Now Material2 and Material3 will be delivered on 20.11.2011  and Material1 and Material4 will be delivered on 10.11.2011.
    Now a reminder mail should go to Vendor of that PO before 2 days of delivery date mean on 08.11.2011 and 18.11.2011.
    So to store 2 dates I require internal table.
    Now I am able to trigger reminder mail for 2 dates by using multiline element in miscellaneous tab of activity.
    But as I discussed in previous post that if I add multiline element in Date field of Requested start deadline then it gives error(plz check prev. post to see exact error). So I tried to used internal table(container in workflow) in deadline which is filled from a task in activity, but it is also not working means mail is triggered as soon as worflow is executed.
    So the main problem is deadline is not created based on dates in internal table and other all the things are working perfectly.
    As I am very new to workflow area, I might be going wrong somewhere.
    So please guide how to set deadline for multiple dates(according to my scenario).
    Thanks in advance.
    Regards,
    Mihir

  • Using expdp to export a mix of tables with data and tables without data

    Hi,
    I would like to create a .dmp file using expdp, exporting a set of tables with data and another set without data. Is there a way to do this in a single .dmp file? For example, I want all the tables in a schema with data, but for the fact tables in that schema, I only want the fact table objects, not the data. I thought it might be easier to create two separate .dmp files, one for each scenario, but would be nice to have one .dmp file that satisfies my requirement. Any help is appreciated.
    Thanks,
    -Rodolfo
    Edited by: user6902559 on May 11, 2010 12:05 PM

    You could do this with where clauses. Let's say you have 10 tables to export, 5 with data and 5 without data. I would do it like this
    tab1_w_data
    tab2_w_data
    tab3_w_data
    tab4_w_data
    tab5_w_data
    tab1_wo_data
    tab2_wo_data
    tab3_wo_data
    tab4_wo_data
    tab5_wo_data
    I would make one generic query
    query="where rownum = 0"
    and I would make 5 specific queries
    query=tab1_w_data:"where rownum > 0"
    query=tab2_w_data:"where rownum > 0"
    query=tab3_w_data:"where rownum > 0"
    query=tab4_w_data:"where rownum > 0"
    query=tab5_w_data:"where rownum > 0"
    The first query will be applied to all tables that don't have their own specific query and it will export no rows, the next 5 will apply to each of the corresponding table.
    Dean

  • EXP tables without data in few tables.

    I want to export the database with EXP option.
    With following restricting condition.
    1. Want to export full database and among those 2 tables TAB1, TAB2 without data.
    What condition i need to add in EXP command?
    Thanks,
    Edited by: user618704 on Jan 12, 2009 2:25 AM

    Hi,
    With respect only two tables I don't think. Instead of that try to Exclude only two tables what you reffered from schema (Check the dependencies with respect to other tables, before hand) and later on export only those two tables with any data or create manually (In worst case)
    Can you specify the version
    - Pavan Kumar N

  • How to export Tables along with Data and also Tables without data

    Hi All,
    I have a strange situation here. I have a 2 existing schema's under one database. Now the client wants to have 4 more schema's to incorporate the new branches of his company.
    I want to know whether is it possible for me to run an expdp command by which i can have the data from the mentioned tables and only table structure of the remaining along with remaining database objects (procedure,functions,triggers,views,sequences etc).
    Since there are some 32 Master tables, whose data i need to capture in db dump in order to run the batch under new schema and the remaining tables will be populated with data from the new branch employees hence the need is for table’s structure only.

    Hi,
    you should run two different import comand.
    The first import with only metadata, just to recreate the structure.
    With the second import you will import data only for the tables you need.
    I think this is the simplier solution.
    Acr

  • Generic Delta without date field and without document number

    Hi Experts,
    I have created Funtion Module Extractor program, but my strcture not having any date field and document number fields.
    Please let me know how to maintain the delta for extractor program.
    Thanks in Advance.
    Chandra

    hi,
    it is not mandatory to have doc number or date fields for delta,
    u must have other fields which could change and try to find those fields and try, chk with the business for their delta requirement else go with full load.
    Ramesh

  • Combine two tables without common field

    Hi Experts,
    I have two database tables, DBSTATORA(stores inform about all the tables involved in infoproviders), and RSDODSO ( stores information about ODS Objects. I have to list the ods objects and its associated tables as the output, but there is no common field in these two tables how will i combine these two tables, can anyone please suggest me. Any help will be fine.
    thanks,
    Prabhu.

    Hi Everyone,
    I know the ods tables names are stored like /bix/a<ods_name>00 and /bix/a<ods_name>40 and for change log it is /bic/b*. But my requirement is I have to display the size of the tables belonging to a particular ods object. So for all the tables the size is stored in DBSTATTORA which gives information about
    DBSTATTORA
    fields of this tables are:
    TNAME --> Table Name
    ANDAT --> Analyzing Date
    AMETH --> Analysis method for collecting Statistics
    NROWS --> No of rows in a table
    OCCBL --> Used blk(size) of table in KB
    EMPBL --> Empty blk(size) of table in KB
    AFREE --> Avg Freespace in a used db block
    INDBS --> Used Blk(size) of an index kb
    This is a table which stores the statistics information.
    It displays all the tables of infocubes and ods objects, but does tell that this table belongs to this infoprovider.
    I have to display data from this table as well as the infoprovider to which it belongs. So there is no proper information of database tables where the infocube and its associated tables like the facttable, dimtables are stored together. Same for the ods objects also.
    There are for ods object RSDODSOTABL which give information about ods object and the table name is stored differently <ods_name>_0000. How do i map this table with the DBSTATTORA table, the tablenames doesn't match. Same problem with RSTSODS table which give informaiton about change log table.
    And also for infocubes, there is RSDCUBE which gives information about infocubes but not the associated tables. So does anyone know where all these information is stored in some database tables. It would be of great help.
    Thanks a lot.
    Prab

  • How can I export schema with all objects and few tables without data

    Hi all
    Verion 10g EE.
    I have to export schema with all objects but i need to ingnore some of the table data.
    There are 4 table those have huge data, we need not to export those tables data but structure should export.
    Thanks,
    Nr

    You can do this with a single command.  Run your export as normal and add query parameters for the 4 tables that you don't want any rows:
    expdp ...  query=schema1.table1:"where rownum = 0" query=schema2.table2:"where rownum = 0" ...
    It is best to put the query parameters in a parameter file so you don't have to worry about escaping any OS special characters.
    Dean

  • SELECT TABLES WITHOUT DATA

    I want a sql statement to selelct from user_tables all tables that do not contain data, how can dt be achieved?

    Thanks guys, This is what I did that finally worked.
    Thanks for all your help.
    CREATE OR REPLACE FUNCTION Tables_Post(table_name VARCHAR2) RETURN BOOLEAN IS
              MEE NUMBER;
              SQL_STR VARCHAR2(200);
         CURSOR C1 IS
              SELECT      TABLE_NAME FROM USER_TABLES;
    BEGIN
              FOR i IN C1 LOOP
              SQL_STR := 'SELECT COUNT(*) INTO '||MEE ||' FROM ' || i.TABLE_NAME;
                   IF MEE =0 THEN
                        dbms_output.put_line('Table name is - '||i.table_name);
                        INSERT INTO ERROR_TAB VALUES (i.table_name,i.table_name,MEE);
                   END IF;
              END LOOP;
    EXCEPTION
    WHEN OTHERS THEN
    NULL;
    END;
    /

  • Without data element can we create table

    without data element is it possible to create table
    if it is possible how ?
      could u plz expain steps.

    Hi,
    Yes u can create table without data element.
    In that case in place of Data element u need to specify the Predefined type.
    Enter the name of field and the press on Built-In type button. This will disable the data element entry fields and enable the Built-in type field where in u can put the predefined type like CHAR, INT1 etc.
    Regards,
    Himanshu

  • Change Log Table entries without Dates and How to Delete these entries !!

    Hello Experts,
    I was analyzing Change Log tables of some DSOs and figured out in some tables we don't have Date Column and some tables with date columns but many entries with "00/00/0000" date.
    Any ideas on this ? Any idea how records can get into the table without dates and if SAP provides a safe way to remove them (without dates) ?
    Many Thanks in advance, Please help.
    Regards,
    S. Patel

    Hi Sunil
    Date fileds 00/00/0000 means date are blank..that means either you did not get  them from source system or the transformation is not mapped.
    Do not delete change log selectively, that might affect your delta  loads.
    Rather delete  old change log ...
    From DSO administration ---use the main menu to choose Environment ® Delete Change Log Data.
    For more information you can check the log below.
    Cheers
    Anindya

  • DATE fields and LOG files  in context with external tables

    I am facing two problems when dealing with the external tables feature in Oracle 9i.
    I created an External Table with some fileds with the DATE data type . There were no issues during the creation part. But when i query the table, the DATE fields are not properly selected though the data is there in the files. Is there any ideas to deal with this ?
    My next question is regarding the log files. The contents in the log file seems to be growing when querying the external tables. Is there a way to control this behaviour?
    Suggestions / Advices on the above two issues are welcome.
    Thanks
    Lakshminarayanan

    Hi
    If you have date datatypes than:
    select
    greatest(TABCASER1.CASERRECIEVEDDATE, EVCASERS.FINALEVDATES, EVCASERS.PUBLICATIONDATE, EVCASERS.PUBLICATIONDATE, TABCASER.COMPAREACCEPDATE)
    from TABCASER, TABCASER1, EVCASERS
    where ...-- join and other conditions
    1. greatest is good enough
    2. to_date creates date dataype from string with the format of format string ('mm/dd/yyyy')
    3. decode(a, b, c, d) is a function: if a = b than return c else d. NULL means that there is no data in the cell of the table.
    6. to format the date for display use to_char function with format modell as in the to_date function.
    Ott Karesz
    http://www.trendo-kft.hu

  • Export and import tables with and without data

    I have few table which i want to take export with data and some without data, and import that in new db? Send me the command plz for this.

    exp and imp all have a flag
    ROWS import data rows (Y/N)
    but that flag apply to the whole export/import process.
    You will need do export twice,
    ROWS=Y first with list of tables that need data
    and ROWS=N with list of tables without data.

Maybe you are looking for

  • How to get the F4 help for a field in the selection screen

    Hi all, I am working on a report program. In the selection screen, I have the field 'Brand Node ID'(ZNODEID). The requirement is to have the F4 help for this field. This field is available in a 'Z' table ZNODETAB. There is no Value table maintained f

  • Need help with this assignment!!!!

    Please help me with this. I am having some troubles. below is the specification of this assignment: In geometry the ratio of the circumference of a circle to its diameter is known as �. The value of � can be estimated from an infinite series of the f

  • Variable size item Vs Stock item

    Hi Experts, I have a doubt regarding the use of variable size item over standard stock item. I will give an example as under. I have an item called cable which is to be added to a header material. This cable will be used in many header materials. I t

  • Movie artwork does not save on iTunes.

    I add the artwork but after I hit OK there is no artwork anymore.  This is on iTunes 11.1.3 (8).  I use to be able on older versions of iTunes to add artwork to my movies but I have not been able to for over a month.

  • How to set Query value in WAD w. parameters

    Hi Is it possible to set the queryname in the dataprovider using javascript. My scenario is that I want to fetch the queryname from the URL with the following javascript I have the script: function GetPara( name )      name = name.replace(/[\[]/," \[