Regarding liniking of table

hello sir,
HOW TO LINK PURCHASE ORDER AND A/P INVOICE  BECAUSE I LINK THIS TABLE THROUGH OCRD but one A/P Invoice display many times how to developed query as below.
selection criteria
date range of a/p invoice.
to display those invoice in that range with base document purchase order created.
pls help me.
regards,
vishal

Hi Vishal!
try this query
SELECT * FROM
OPOR T0
inner join POR1 T1
on t0.docentry=t1.DocEntry
inner join PCH1 T2
on t1.docentry=t2.baseentry
inner join OPCH T3
on t2.docentry=t3.docentry
WHERE
t2.BaseType=22
AND
t3.DocDate>='22.01.2000'
AND
t3.DocDate<='01.08.2007'
Matthias
Message was edited by:
        Matthias Bergen

Similar Messages

  • Facing some issue regarding Requisition interface table

    I am facing some issue regarding Requisition interface table..
    Purpose: we have to massage data & create massage data & create Requisitions.
    Issue Detail:
    Before:
    Previously it was Auto Create Purchase Requisition
    On the move transaction form step 10 to 20, this step will trigger creation of requisition.
    and Creating Requisition successfully.
    After:     
    After stopping Auto Create Purchase Requisition functionality the Requisition interface data is not getting populated in the Requisition Interface tables as well.
    Please provide your inputs.

    It's standard functionality not to populate the req interface while you don't want to autocreate.
    Thanks,
    PS.

  • Query regarding creation of tables using AET

    Hi Experts,
    First of all is it advisable to create a assignment block (table view/ form view) using AET?
    We are going to implement an upgrade project from  CRM 5.0 to CRM 7.0. In CRM 5.0 there was a two custom tables which needs to implemented in CRM 7.0 as an assignment block. One view will be form view and the other table view. The custom tables has data. What is the best way to go about it?
    If we create assignment block using AET by using the option 'CREATE TABLE' a new database table is created which has three fields 'RECORD_ID' 'OBJECT_ID' and 'PARENT_ID'. Object ID stores the External ID of the campaign as GUID (RAW 16). Parent ID stores the Campaign GUID value. How is the Record ID generated?
    Now the challenge is to move the data from the custom table to the table created using AET. Is there a standard function module to take care of it or we have to write a one time report?
    Thanks in advance.
    Regards,
    Sayan
    Edited by: jana6586 on Nov 23, 2011 12:14 PM

    Hi Sayan,
    I had to do the same story with the aet and the data we need to transfer into the Z table.
    I have been looking for a function that takes care of it, but unfortunately i didnt found one.
    If you didnt found one until now, i higherly recommand you to right a report that handles the transfer between the two tables in a generic way, and mabye even to share it
    The Recoed id is simply a guid that is generetad behind the scenes, in order to keep a PK for each and each row of the Z table.
    I hope that the answer helped you !
    Regards,
    mapatz.

  • Regarding passing internal table data to D.B Table&DELETE statement in ABAP

    Hi All,
    Can anybody tell me what is the exact syntax for following statement.
    <b>Get all records from table zppe0169_01 into an internal table-I_PO and delete duplicates for unique EBELN and EBELP</b>
    Can any body give syntax for the above.
    Thanks in advance.
    Thanks & Regards,
    Rayeez.

    Hi All,
    Thanks for those replies.
    Actually <b>zppe0169_01[Datbase table]</b> and I_PO structures are diffrent.
    They are as follows
    <b>For I_PO
    BEGIN OF i_po OCCURS 0,
       ebeln           LIKE ekpo-ebeln,
       ebelp           LIKE ekpo-ebelp,
       matnr           LIKE ekpo-matnr,
       werks           LIKE ekko-reswk,
       eindt           LIKE eket-eindt,
       ps_psp_pnr      LIKE ekkn-ps_psp_pnr,
       ptype(3)        TYPE c,
       techs           LIKE ekpo-techs,
       mesg(50)        TYPE c,
    END OF i_po.</b>
    For zppe0169_01 fields are as follows.
    <b>EBELN
    EBELP
    MATNR
    WERKS
    EINDT
    PS_PSP_PNR
    PTYPE</b>
    as I_PO is having 2 more fields than actual database table will the following SELECT statement fetch the data correctly.
    <b>  SELECT *
             FROM zppe0169_01
             INTO TABLE i_po.</b>
    If <b>No</b> - can anybody tell me what change i have make to above SELECT to make it work perfectly.
    Thanks & Regards,
    Rayeez.

  • Re: URGENT: - REGARDING FIELD IN TABLES

    HI
    I am using transaction code MB5B and i am getting d data but i want to search d field among d tables where amount in currency field(dmbtr) present in bsim or bseg table ,but i want to have dat field which use to display d calculation of d field (dbmtr),plz hel me out its urgent... he or sh will be rewarded...

    Hi,
    Please verify these internal tables in the program.
    DATA: BEGIN OF MAT_SUM OCCURS 100,                
            DMBTR(09)            type p    decimals 3,
    DATA: BEGIN OF MAT_SUM_BUK OCCURS 100,            
            DMBTR(09)            type p    decimals 3,
    DATA: BEGIN OF MAT_WEG OCCURS 100,                
            DMBTR(09)            type p    decimals 3,
    DATA: BEGIN OF MAT_WEG_BUK OCCURS 100,            
            DMBTR(09)            type p    decimals 3,
    types : begin of stype_bsim_lean,                 
              dmbtr like bsim-dmbtr,                  
    TYPES : BEGIN OF STYPE_MSEG_LEAN,                 
               DMBTR             LIKE      MSEG-DMBTR,
    DATA: BEGIN OF IMSWEG OCCURS 1000,                
            DMBTR LIKE MSEG-DMBTR,                 
    I think these are the tables used to sum up the dmbtr.
    I think dmbtr is taken from bsim and mseg.Dmbtr id taken from bsim because of the adjustments in finance module..
    <b>Reward points if helpful,</b>
    Regards,
    jinesh.

  • Doubts regarding registering a table using AD_DD Package

    Dear Members,
    Please give me some information on the following points:
    1/ Parameter 'P_Nullable' in AD_DD.REGISTER_COLUMN
    I have defined a custom table and in this table there are some primary columns and nullable columns.
    Here my understanding is if the column is primary or not null then we should pass value 'N' to the parameter 'P_Nullable'.If it is a nullable column then we should pass value 'Y' to the parameter 'P_Nullable'.
    Can any one please tell me is this right or wrong?
    2/ Parameter 'P_Col_Width' in AD_DD.REGISTER_COLUMN
    In my custom table I have some date columns defined.In some of the date columns iam storing the date as DD/MM/YYYY and in some of the columns iam storing the date format as DD/MM/YYYY HI:MM:SS.
    For these date columns what width i should mention for the parameter P_Col_Width.
    Your inputs will be of great help to me.
    Thanks in advance.
    Best Regards,
    Arun Reddy.

    Hi, here's a script that queries the rdbms data dictionary to use that information to register the table in oracle apps data dictionary. Regarding your concerns, it takes the adequate value for nullable parameter according to column definition, and for date columns, it doesn't matter the format used, the information is stored internally the same. For the lenght of this column data type what I use is 9 as this is used for seeded information on this type of columns.
    Regarding the script, change the name of the table to the one to register or add more than one in the tablas_tab table variable. For the schema owner of the table, change XXAMX for the custom schema you defined.
    A more "readeable" version is available on http://oracle.am0x.com/2008/02/script-para-registro-de-tablas-en-la.html , a blog I have on oracle applications development topics but is spanish.
    prompt -- ======================================================================
    prompt -- Registrando tablas en el diccionario de datos de la aplicación
    prompt -- ======================================================================
    declare
    type tablas_t is table of varchar2(30) index by binary_integer ;
    tablas_tab tablas_t ;
    cursor columnas_cur(
    b_table_name in varchar2 ) is
    select atc.column_name col_name
    , atc.column_id col_seq
    , atc.data_type col_type
    , decode( atc.data_type
    , 'NUMBER', 38
    , 'DATE', 9, atc.data_length ) col_width
    , atc.nullable nullable
    , 'N' translate
    , data_scale scale
    , data_precision precision
    from all_tab_columns atc
    where table_name = b_table_name ;
    begin
    -- Llenar la tabla con las tablas a registrar
    tablas_tab(1) := 'XXAMX_TABLA_PERSONALIZADA' ;
    for tabs in 1..tablas_tab.count() loop
    ad_dd.register_table(
    p_appl_short_name => 'XXAMX'
    , p_tab_name => tablas_tab( tabs )
    , p_tab_type => 'T' ) ;
    for cols in columnas_cur(
    b_table_name => tablas_tab( tabs )) loop
    ad_dd.register_column(
    p_appl_short_name => 'XXAMX'
    , p_tab_name => tablas_tab( tabs )
    , p_col_name => cols.col_name
    , p_col_seq => cols.col_seq
    , p_col_type => cols.col_type
    , p_col_width => cols.col_width
    , p_nullable => cols.nullable
    , p_translate => cols.translate
    , p_scale => cols.scale
    , p_precision => cols.precision ) ;
    end loop ;
    end loop ;
    end ;
    Message was edited by:
    user651494

  • Issue regarding update rules--Table RSUPDKEY

    Hi Friends..
    Can anyone please tell me something about the table RSUPDKEY?
    I knw the use of this table.......but how the fields are getting updated.......how the value in the filed BOOLEAN getting populated?
    I am facing a strange problem...
    In Production system.....For one keyfigure....one characteristic is not mapped...initial value option is selected.But in the field Source Characteristic that charecteristic name is selected but that option is not selected.......it means the field is not blank......
    For Prod......in the table RSUPDKEY.........for this rule......in the Source Infoobject field that infoobject name is coming and Boolean field = X
    When I am trying to do the same thing in the development box............i.e. in the Source Characteristic field I have selected the infoobject and i have selected the Initial value option............after that when I am saving it.......the Source characteristic field remains blank......
    In Dev box in this table both the fields are blank.
    Thanks and Regards,
    Debjani.....

    Hi,
    You can check End Routine .
    An end routine is a routine with a table in the target structure format as input and output parameters. You can use an end routine to postprocess data after transformation on a package-by-package basis
    http://help.sap.com/saphelp_nw70/helpdata/EN/43/bcdc6001344defe10000000a422035/content.htm.
    Below is the lSAP help link for migration of 3.x update rules & transfer rules.
    http://help.sap.com/saphelp_nw70/helpdata/EN/43/f00e2696d24c5fe10000000a155369/frameset.htm
    Hope this helps!
    Edited by: Meera Murali on Mar 4, 2009 9:52 AM

  • Regarding BAPI Return Table

    Hi all,
    I am having an issues, when the user enters the correct value into an input field then i am getting the output properly. But if he enters any wrong value a message is populated into the BAPI return table. So how do I check if the BAPI return table is empty or not. If it is empty then it has to open the output table and if it is not empty it has to show the error message as an pop-up or table format.
    Please reply, points will be rewarded.
    Thanks & Regards,
    M.Ramana Murthy

    Hi Ramana,
    If you want to capture the message returning from the BAPI which you are using then do the following:
    1.> Drag the line from the BAPI return port and link it to a form or to a table.
    2.> Then go to the form/table click the UIelement and in properties of that assign the default value which you want to display. It may be a message coming out of the BAPI.Through this way you can capture the values coming out of the BAPI
    Regards,
    Nutan

  • Regarding the internal table data by using read table it_mard into wa_mard

    hi,
    i am reading the internal table it_mard with key matnr .
    my code is like this.
    *loop at it_final into wa_final.*
    *wa_second-matnr  = wa_final-matnr.*
      wa_second-bwart = wa_final-bwart.
    wa_second-bwtar = wa_final-bwtar.
    *read table it_mard into wa_mard with key matnr = wa_final-matnr*
                                                                              *binary search.*
    *if sy-subrc = 0.*
    *wa_second-labst = wa_mard-labst.*
    *endif.*
    *append wa_second to it_second.*
    clear :wa_final.
    *endloop.*
    final internal table haveing duplicate values because this table it_final having movement types
    so that i am not using delete statement .
    is there any logic for handling the duplicate values inside the loop statement
    by using read table statement.
    could u plz explain clearly  \[removed by moderator\]
    Edited by: Jan Stallkamp on Jul 11, 2008 2:11 PM

    this is my code could u plz explain  regarding duplicate material number .
    LOOP AT IT_MSEG INTO WA_MSEG.
        WA_FINAL-MBLNR = WA_MSEG-MBLNR.
        WA_FINAL-MATNR = WA_MSEG-MATNR.
        WA_FINAL-BWART = WA_MSEG-BWART.
        WA_FINAL-BWTAR = WA_MSEG-BWTAR.
        WA_FINAL-MENGE = WA_MSEG-MENGE.
        WA_FINAL-SOBKZ = WA_MSEG-SOBKZ.
        COLLECT WA_FINAL INTO IT_FINAL.
        CLEAR WA_FINAL.
      ENDLOOP.
      LOOP AT IT_FINAL INTO WA_FINAL.
        READ TABLE IT_MARD INTO WA_MARD WITH KEY MATNR = WA_FINAL-MATNR
                                                                                    BINARY SEARCH.
    this is reading the duplicate records i need to control duplicate records here .
    the   labst       value is repeating the number of times because of the meterial number duplication
    how can i restrict plz explain
        IF SY-SUBRC = 0.
          WA_FINAL-LABST = WA_MARD-LABST.
        ENDIF.
        READ TABLE IT_MKPF INTO WA_MKPF WITH KEY MBLNR = WA_FINAL-MBLNR
                                                                                    BINARY SEARCH.
        IF SY-SUBRC = 0.
          WA_FINAL-BUDAT = WA_MKPF-BUDAT.
        ENDIF.
        MODIFY IT_FINAL FROM WA_FINAL.
        CLEAR WA_FINAL.
      ENDLOOP.
      LOOP AT IT_FINAL INTO WA_FINAL.
        WA_SECOND-BWTAR = WA_FINAL-BWTAR.
        IF WA_FINAL-BWART = '101' OR WA_FINAL-BWART = '501' OR WA_FINAL-BWART = '561'.
          WA_SECOND-MENGE11 = WA_FINAL-MENGE.
        ENDIF.
        IF WA_FINAL-BWART = '201'.
          WA_SECOND-MENGE12 = WA_FINAL-MENGE.
        ENDIF.
        IF WA_FINAL-BWART = '541' AND WA_FINAL-SOBKZ = 'O' .
          WA_SECOND-MENGE13 = WA_FINAL-MENGE.
        ENDIF.
        IF WA_FINAL-BWART = '601'.
          WA_SECOND-MENGE14 = WA_FINAL-MENGE.
        ENDIF.
        IF WA_FINAL-BWART = '543'.
          WA_SECOND-MENGE15 = WA_FINAL-MENGE.
        ENDIF.
        IF WA_FINAL-BWART = '702'.
          WA_SECOND-MENGE16 = WA_FINAL-MENGE.
        ENDIF.
        IF WA_FINAL-BWART = '313'.
          WA_SECOND-MENGE17 = WA_FINAL-MENGE.
        ENDIF.
        IF WA_FINAL-BWART = '315'.
          WA_SECOND-MENGE18 = WA_FINAL-MENGE.
        ENDIF.
        IF WA_FINAL-BWART = '122' OR WA_FINAL-BWART = '161'.
          WA_SECOND-MENGE19 = WA_FINAL-MENGE.
        ENDIF.
        COLLECT WA_SECOND INTO IT_SECOND.
        CLEAR WA_SECOND.
      ENDLOOP.

  • Regarding wd abap table

    Hi all,
    I am working on a wd abap component in which i have to populate a table in which each row has a different value which are fetched from database table.i want that in each row i want different values .like suppose my table has two coloumn and in first row of first coloumn i want to display the text  "gender" and in the same row in second column i want to fetch a "value  of gender" from database table.
    similarly in second row of first coloumn i want to display a text " date of birth" and in the same row  of second column i want to get its corresponding values.so please tell me how to do itin detail that is how to bind for each and every row and how to get the particular values.
    send me the code along with proper commenting which will be easy for me to understand.
    thanking you all in advance.

    hi,
    It is possible.
    If u keep a nested node structure. Like
    First node<parent node in context>
      --->1st node under First node <bind this node to a column>
                             This node contains the header value
    >2nd node under First node<bind this node to rest of the column in table>
                                This node contains table value.Which will be displayed in table.
    I hope this will solve your problem.
    Please have a look at this
    Re: Row / line number as first column in table
    This link may solve your doubt.
    Regards,
    Ramanan
    Edited by: Ramanan Panchabakesan on Sep 2, 2008 10:08 AM

  • Regarding Outside database table acess from SAP R/3.

    dear all,
    is it possible to access or call outside (thiird party) databse table from SAP R/3??
    if it is then pls send me any useful link or any help regarding the same.
    i will be so thankful.
    regards,
    jigar

    Hi jigar,
    1. for this u will also require help of basis team.
    2. these are the steps.
    a) make an entry in DBCON
    b) make connection string
    (on the physical application server,
    so that it can connect to secondary database)
    (this will be done by basis team,
    in which, they will specify the
    IP address of the secondary database server,
    the DATABASE ID, and the port number)
    c) then using open sql / native sql,
    we can use the secondary database connection,
    just like normal.
    d) if we use open sql,
    then there must be Y/Z table on
    sap as well as secondary database,
    and the field names , their type all should be identical.
    regards,
    amit m.

  • Regards source code table

    Hi Friends
               I know TRDIR is a table, which holds the all ABAP Program names. Even through if the program created by user. Likewise any table holds the source code. If it is can you plz let me know.
    Regards
    Saravanan

    Hi Saravanan,
    SAP does not store ABAP codes in transparent tables, but in cluster tables.
    You can read the code using READ REPORT as a direct query method is not possible.
    I hope this helps.
    Hafeez

  • Regarding SET UP table filling

    Hi All
    I have a small doubt,
    Why do we need to fill the set up table when there is not user activity in the source system?
    Is this going to lock the application tables like vbak, vbap, vbuk etc,.,?
    what happends if i run the statistical run when the users are active in the system?
    I want to do set up fill for orders starting from 2005 to July 2009.
    When is the best time?
    regards
    Janardhan KUmar K

    Hi,
    Prod system will be busy during your set up tables filling time.
    Try to check ECC system load burden and fill set up tables data when system have required free application servers(SM50/51). Even try to fill set up tables in background.
    if possible, use selections and fill set up tables.
    Thanks.

  • Information regarding AEOI Link Tables

    Hello Experts,
    I am ABAP consultant, I have a requirement where in after creation of WBS BOM items With respect to Change Number for a material, through Tcode cs71 and upon SAVING it, a field available in Tcode CC02 ( Lock check box ) which is AEOI-CCLCK must be updated. I mean CCLCK ( Lock in CC02 ) field of AEOI table must be set to 'X' or BLANK.
    I am clear that I need to update the CCLCK field of AEOI table for that I require key field values of the specified table ( AEOI ) which are AETYP and OBJKT in the TCODE CS71 if I write an enhancement in it.
    Kindly tell me how to retrieve the corresponding values of AETYP and OBJKT from AENNR value available in the Tcode cs71.
    Regards,
    Murthy.

    > Please see the list of tables below and let me know whether these tables contain any Data which might e useful to the customer or is it just some metadata used by SAP and nothing else...
    Well - you can check the content of the tables in SE11 and SE16. Whether the data is used or not depends on the customizing of the system and the applications/modules used. Whether this is "only" metadata can only be determined by the customer himself.
    Markus

  • Regarding dynamic internal table

    Hi ,
    I have a requirement where in my date is present in an internal table which is created dynamically . now based on some inputs i need to narrow down the records ,presently I'am deleting the records in  a loop which causes performance problem, Please let me know if there is any other way to do this.
    I have also tried declaring another field sybol of the same type that of the dynamic internal table and tried moving all the successful records to this table but these records were getting updated in the initial table also.
    Any pointers to this would be of a great help
    thanks in advance.
    Reagards,
    Chaitanya

    Hi Andrew ,
    Here is my code.
    LOOP AT <int_dyn>
           ASSIGNING <wa_dyn>.
    check for date.
        ASSIGN COMPONENT 'DATAB' OF STRUCTURE <wa_dyn> TO <fs>.
        IF sy-subrc = 0.
          IF <fs> > p_valid. ( selection screen parameter)
            DELETE <int_dyn> FROM <wa_dyn>.
            UNASSIGN <fs>.
          ENDIF.
        ENDIF.
    ENDLOOP.
    Regards,
    Chaitanya

Maybe you are looking for

  • Do I build my site in Edge or Muse?

    I am new at this and don't know anything about writing code. I am using PhotoShop CS6, Edge, and Muse to build a website. I have built a 60 second, interactive home page but I don't know how to make the navigation buttons work for other pages that I

  • Update Lot Number using API

    Hi Gurus, We get ship confirm details from an outside warehouse for our sales order and we use shipping APIs to automatically ship confirm it in Oracle. Going forward we want to get Lot number from the warehouse and we want to add it to our existing

  • Apple Mail Application for OS X 10.5.8

    Why can't I download this application? I can only get an alias.

  • RPTARQEMAIL and "blind" carbon copy sending (bcc email)

    Hello everyone, In our fairly-standard Employee Services and workflow, we use RPTARQEMAIL run as a batch job nightly to bundled up and send email notifications to all Requestors whose leave has been approved that day. However, when the user receives

  • Query with F1 help

    Hi experts, my requirement is to provide a documentation if user press F1 help on a text label created on a screen. Please provide me a solution. Points will be rewarded for the solution. Thanks & Regards.