Is is possible to join Invoice Distribution tables to GL or SLA ?

Hi,
We want to get the Sub Ledger (AP) Distribution Information and GL Details in one query. Is it possible to join GL/SLA Tables to AP Distribution Tables without using XLA_DISTRIBUTION_LINKS Table?.
Thanks,
Sunny

Hi Vamsi,
We are trying to populate all these following fields into one staging table.
AP_INVOICE_DISTRIBUTIONS_ALL.EXEPENDITURE_TYPE
AP_INVOICES_ALL.INVOICE_NUM
AP_INVOICE_DISTRIBUTIONS_ALL.PROJECT_ID
AP_INVOICE_DISTRIBUTIONS_ALL.TASK_ID
JE_HEADER_ID
ACCOUNTED_DR
ACCOUNTED_CR
GL_SL_LINK_ID
CODE_COMBINATION_ID.
Requirement is that SUM(ACCOUNTED_DR) and SUM(ACCOUNTED_CR) in the staging table for any particular JE_HEADER_ID should match with the JE HEADER AMOUNT.
This is an GL Outbound Interface and we are picking the posted journals for AP Subledger and Sending the Subledger Information along with the GL Information.
Can you please help me with this?
THanks,
Sunny

Similar Messages

  • Possible to join multiple internal tables ?

    Is it possible to join internal tables like this:
    itab1:
    fields are matnr f1 f2
    itab2:
    fields are matnr f3 f4
    itab3:
    fields are matnr f5 f6
    required final-itab:
    fields are - matnr f1 f2 f3 f4 f5 f6
    (which are joined by matnr)
    Thanks.

    Ok, then we need to take all three ITABs and get all of the MATNRs into another internal table, then loop at this internal table and read the records for ITAB1, ITAB2, and ITAB3.
    data: begin of imatnr occurs 0,
          matnr type mara-matnr,
          end of imatnr.
    loop at itab1.
      imatnr-matnr = itab1-matnr.
      collect imatnr.
    endloop.
    loop at itab2.
      imatnr-matnr = itab2-matnr.
      collect imatnr.
    endloop.
    loop at itab3.
      imatnr-matnr = itab3-matnr.
      collect imatnr.
    endloop.
    Loop at imatnr.
    clear final_itab.
    final_itab-matnr = imatnr-matnr.
    clear itab1.
    read table itab1 with key matnr = imatnr-matnr.
    if sy-subrc = 0.
    final_itab-f1 = itab1-f1.
    final_itab-f2 = itab1-f2.
    endif.
    clear itab2.
    read table itab2 with key matnr = imatnr-matnr.
    if sy-subrc = 0.
    final_itab-f3 = itab2-f3.
    final_itab-f4 = itab2-f4.
    endif.
    clear itab3.
    read table itab3 with key matnr = imatnr-matnr.
    if sy-subrc = 0.
    final_itab-f5 = itab3-f5.
    final_itab-f6 = itab3-f6.
    endif.
    append final_itab.
    endloop.
    REgards,
    Rich Heilman

  • Join 2 internal tables

    Hello,
    i have to join the whole content of a table with the content of a aggregated table. i "moved" the content of the 2 dictionary tables into 2 internal tables and i want to join these 2 internal tables now.
    first of all, is it generally possible to join 2 internal tables, for example with a read or loop statement?!
    at second, i know how i would solve the problem in oracle 10g, but it looks like that open-sql supports not the same features like orcale. knows anyone of you how i can rebuild the following oracle statement in abap.
    select a.id, a.col1, b.col2
    from table_a as a, (select id, sum(col2) as col2 from table_c group by id) as b where a.id = b.id order by 1
    thx

    Hello Markus
    ABAP open sql ahould be something like
    select aid acol1 sum( b~col2 )
    from table_a as a
    join table_c as b
      on aid = bid
      group by b~id
    not sure abour the order by; don't know oracle syntax exactly.
    Try!
    Regards,
    Clemens

  • Can  a cost distribution line have multiple invoice distributions?

    I have a functional question. Is is possible to have multiple invoice distribution for a single cost distribution line?
    I mean, if we join PA.PA_COST_DISTRIBUTION_LINES_ALL AND AP.AP_INVOICE_DISTRIBUTIONS_ALL, will we get multiple invoice distributin lines for a cost distribution line.
    Thanks,
    Upendra

    Hi,
    It is technically not possible for one CDL to map to multiple invoice distributions. In 11i the joins are: cdl.system_referece2 = apd.invoice_id, and cdl.system_reference_3 = apd.distribution_line_num, and a combination of (invoice_id, distributioncd_line_number) would always give you only one AP Invoice distribution. In R12, the mapping is EI.document_header_id = APD.invoice_distribution_id and one invoice_distribution_id can point to only one AP Invoice Distribution.
    Multiple CDLs for a single AP Invoice Distribution: Yes, this is possible.
    1. When an AP Invoice distribution is imported into Projects and adjustments are carried out in Projects for the imported line and then the PRC: Distribute Supplier Adjustments process, then at this point of time multilple CDLs map to a particular AP distribution. Now, when PRC: Interface Supplier Adjustments to Payables is run, the adjusted transactions create new AP distributions.
    2. For a CDL, there can be 'C' and 'D' lines, which would carry the same attributes as the 'R' line, hence we can say there are multiple CDLs for a single AP distribution.
    Thanks,
    Prabhjeet

  • SRKIM:R12:AP: IMPORT 를 수행 하여 INVOICE 생성 시 DISTRIBUTION LEVEL 의 DFF 값이 생성 안됨

    PROBLEM
    R12.0.5:
    Payables Module 에서 Payables Open Interface Import Process (APXIIMPT) 를 통해 invoice 생성 시 distribution level 의 DFF 정보를 interface table 에 load 하였으나 실제 invoice 생성 시에는 해당 값들이 invoice table 로 넘어 오지 않았다.
    SOLUTION
    해당 ISSUE 는 Bug 6837035 R12 : CANNOT TRANSFER DFF FROM AP INTERFACE INTO AP THEN INTO PROJECT 에 의한 것으로 아래와 같이 작업 하여야 한다.
    1. Patch 6837035 를 DOWNLOAD 받아 TEST INSTANCE 에 적용 한다. PATCH DOWNLOAD 시 요구 되는 PASSWORD 는 Oracle Support engineer 로 부터 전달 받는다.
    2. File version 이 patch 로 인해 정상적으로 upgrade 되었는지 확인 한다.
    strings -a $XX_TOP/filename |grep '$Header'
    위의 명령어를 써서 다음 files version 을 확인 하면 된다.
    ap patch/115/import/US ap12apc.ldt 120.1.12000000.4
    ap patch/115/sql apamtpob.pls 120.43.12000000.8
    ap patch/115/sql apamtrcb.pls 120.45.12000000.7
    ap patch/115/sql apiindib.pls 120.59.12000000.13
    ap patch/115/sql apmatchb.pls 120.54.12000000.16
    ap patch/115/sql apothmtb.pls 120.19.12000000.3
    ap patch/115/sql aprcvmtb.pls 120.59.12000000.8
    3. Patch 가 정상적으로 적용 된 것이 확인 되면 System Administrator Responsibility >Applications >Profile> System 화면에서 AP: Copy Invoice Lines DFF Profile 을 조회 하여 Value 를 Distributions 으로 설정 한다.
    4. Profile 설정 후 다시 Import program 을 수행 하여 DFF값이 정상적으로 생성되는지 확인 한다.
    Reference
    Note. 784615.1 - Imported Invoices Are Not Created with DFF Information At Distribution Level

  • Join two source tables and replicat into a target table with BLOB

    Hi,
    I am working on an integration to source transaction data from legacy application to ESB using GG.
    What I need to do is join two source tables (to de-normalize the area_id) to form the transaction detail, then transform by concatenate the transaction detail fields into a value only CSV, replicate it on the target ESB IN_DATA table's BLOB content field.
    Based on what I had researched, lookup by join two source tables require SQLEXEC, which doesn't support BLOB.
    What alternatives are there and what GG recommend in such use case?
    Any helpful advice is much appreciated.
    thanks,
    Xiaocun

    Xiaocun,
    Not sure what you're data looks like but it's possible the the comma separated value (CSV) requirement may be solved by something like this in your MAP statement:
    colmap (usedefaults,
    my_blob = @STRCAT (col02, ",", col03, ",", col04)
    Since this is not 1:1 you'll be using a sourcedefs file, which is nice because it will do the datatype conversion for you under the covers (also a nice trick when migrating long raws to blobs). So col02 can be varchar2, col03 a number, and col04 a clob and they'll convert in real-time.
    Mapping two tables to one is simple enough with two MAP statements, the harder challenge is joining operations from separate transactions because OGG is operation based and doesn't work on aggregates. It's possible you could end up using a combination of built in parameters and funcations with SQLEXEC and SQL/PL/SQL for more complicated scenarios, all depending on the design of the target table. But you have several scenarios to address.
    For example, is the target table really a history table or are you actually going to delete from it? If just the child is deleted but you don't want to delete the whole row yet, you may want to use NOCOMPRESSDELETES & UPDATEDELETES and COLMAP a new flag column to denote it was deleted. It's likely that the insert on the child may really mean an update to the target (see UPDATEINSERTS).
    If you need to update the LOB by appending or prepending new data then that's going to require some custom work, staging tables and a looping script, or a user exit.
    Some parameters you may want to become familiar with if not already:
    COLS | COLSEXCEPT
    COLMAP
    OVERRIDEDUPS
    INSERTDELETES
    INSERTMISSINGUPDATES
    INSERTUPDATES
    GETDELETES | IGNOREDELETES
    GETINSERTS | IGNOREINSERTS
    GETUPDATES | IGNOREUPDATES
    Good luck,
    -joe

  • Help in join of two tables

    Hi,
    I have following 2 tables
    CREATE TABLE a
    sr_no INT
    CREATE TABLE b
    sr_no INT,
    startdate DATE,
    remark VARCHAR2(30)
    One to many mapping relationship exists between the two tables.
    for each sr_no in table a ther exists multiple/no record in table b.
    If there are multiple entries in table b for a single entry in table a,
    then i want remark data which is corresponding to minimum of the startdate in table b
    Example data of table b
    1     10/15/2009     one
    1     10/29/2009     one1
    2     10/28/2009     two
    3     10/27/2009     three
    4     10/26/2009     four
    minimum date of the first 2 records is 10/15/2009.so i want remark as "one" when i join the 2 tables.
    How do we achieve that ?

    Something like this?
    SELECT  SUB.SR_NO
    ,       SUB.STARTDATE
    ,       B.REMARK
    FROM
            SELECT  SR_NO
            ,       MIN(STARTDATE) AS STARTDATE
            FROM   B
            GROUP BY SR_NO
    )       SUB
    JOIN    B       ON B.SR_NO = SUB.SR_NO AND B.STARTDATE = SUB.STARTDATEThat is one possibility. There are many, many ways to achieve this kind of result.

  • Joining to remote table

    - I have two databases A and B
    - A has a db link to B
    I want to execute a select query in A which joins to a table in B using db link.
    select * from a_table where id in ( select id from b_table@B )
    Now the problem is, even though the local 'a_table' is very small, the remote table in B is really huge and hence the query is very slow.
    It seems like the join operation brings the whole remote data to A for performing the join.
    My question is, is it possible to do the other way? That is is, take the small 'a_table' to the remote database, perform the join there and then bring back the data.
    Any other hints/thoughts to solve this also is greatly appreciated.

    I am really sorry. The sample query was the other way round. A mistake in my description.
    I want to select data from B which joins to a table in A using db link.
    select * from b_table@B where id in ( select id from a_table )
    Arun, Thanks for the reply. But I am not sure if it will solve problem of transporting data from one db to another for performing the join.

  • SQL join with Nested tables

    Please look at this tables and help me how i do get result in "Result tbl" tables ..

    try that !
    select a.*, case
    when a.item_type = 1 then b.inv_date
    when a.item_type = 3 then c.deb_date
    end as item_date
    from receipt_item a
    left join invoice b on a.item_id = b.invvi_id and a.item_type = 1
    left join Debit c on a.item_id = c.deb_id and a.item_type = 3

  • How to Transfer iExpense Line Level DFF Information to AP Invoices Distribution DFF?

    Hi All,
    I have defined iExpense Line Level DFF and i want to transfer that DFF Information automatically to AP Invoices Distribution in 11i?
    Is it possible ?
    Thanks
    Vipul Maheshwari

    HI Vipul,
    Yes, it is possible. Make sure you set the profile option OIE:Enable DescFlex to "Yes" in addition to seting up the DFF. This is described in the Oracle® Internet Expenses Implementation and Administration Guide, Release 11i, Part No. A80831-08.
    Cheryl

  • ACS Proxy Distribution Table - Logs ?

    Hello,
    I have setup a proxy distribution table in my Cisco ACS v4.2 (patch 6).
    I have two type of users: Suppliers (external) and TI user (internal). They connect to our Internal Network by a VPN SSL connection (AEP Netilla box).
    This box have 2 realms. One for suppliers, another for TI users.
    The aim is that:
    * For the suppliers connect trought the Netilla box which forwards the authentication (RADIUS Authentication) to the ACS which forwards the request to an RSA server.
    * For TI User, they connect trought the Netilla Box which forwards the request (RADIUS Authentication) to the ACS which check the Active Directory.
    => It's working perfectly.
    The problem is that I have no logs from the ACS box about the suppliers which are forwarded to the RSA server. If possible, I want to know which users try to connect, if they are permit (or not) and eventually how many times they are connected.
    The problem is the Netilla box doesn't have Radius Accouting.
    I was hoping that the ACS logs these kinds of connections. (It's working for users, TI users, authenticated by the Active Directory).
    Is-it possible that the ACS forwards only the request without taking attention of what it is forwared (except remove the Character String).
    Is there another way to do what I'm talking about ?
    See my VISIO attachement.
    Thanks in advance for your attention,

    I really hate draggin up old posts, but I have the same exact question.  In my scenario, I am proxying requests for eduroam (basically any user name that ends in .uk, .com, .ca or any other country suffix) off to our national server(s).  I would like to know if/when these requests get proxied over.  smahbub's suggestion only directs where to find the settings for loggin.  I have these enabled, but cannot seem to locate any setting that applies to the proxy distribution table.  If anyone has any idea, it would be greatly appreciated.
    Thanks,

  • How to join multiple source tables and do lookup?

    I have a requirement to load a target table by joining 4 source tables. Also I have to do a lookup on a domain table to transform codes and check for nulls. What will be the best approach to load the target table?
    Is it possible to do it in one interface or do I need to build multiple interfaces to achive this?
    My source and target database both are oracle and I am planing to use Oracle Incremental Update Merge.
    Thank you

    You are in the right direction by creating one interface for this transformation.
    You will need to drag drop 4 source tables + the lookup table on the Sources window of Interface and then make appropriate joins.
    Also, check for NULLS in the transformation. Depends what you want to do with the NULLS. If you want to ignore them, use a filter.
    If you want them to error out, use a constraint.
    If you want to convert them, use NVL
    Start with Oracle Incremental Update and once successful, use Oracle Incremental Update MERGE.

  • Defaulting Segment Values at Invoice Distribution using personalization

    Hi,
    My requirement is to default segment3 and segment4 values at invoice distribution gl account for manual invoices. Defualt values will be captured at DFF in user creation form.
    Can any one suggest how to proceed or whether this is possible through form personalization, if so please post in breif how to acheive this.
    Thanks,
    Kumar.

    Hi Khan
    You are further than me! I can't work oput how to create a personalisation on the Distribution screen as the invoice screen defaults into the personalise name at the top and is greyed out so I'm not sure how you got far. Can you help?
    thnaks for anything you are able to provide to point me in the right direction.
    Beth

  • Invoice Distribution Line DFF Attribute1

    We are on 12.0.6.
    I have setup the Invoice distribution Line DFF in Attribute1. (Stored in Attribute1 column of AP_INVOICE_DISTRIBUTIONS_ALL table)
    In which XLA (SLA) table this DFF attribute1 value will be stored or transferred to after we do the 'create accounting' event.
    Thanks,
    Munna

    I see all the Invoice distribution details in xla_ae_headers and xla_ae_lines. Can we get the Invoice distribution DFF attribute 1 information in any of the xla tables? Please assist.
    Thanks,

  • CV04N: Is it possible to JOIN TREX fulltext search with other data ?

    Dear DMS gurus.
    ...in CV04N.
    Is it possible to JOIN a TREX fulltext search with other data (e.g. document data, classification characteristics, object links,...) ?

    Dear Erik
    Thanks for the good piece of Information you have shared.
    Regarding the OSS note 1332745 it clearly says that
    "SAP PLM Consulting integrated the TREX technology into the central search components of SAP DMS.
    Searchable content:
    - Main DMS attributes (e.g. document number, status or descriptions)
    - Long texts
    - Classification Data
    - Originals (e.g. full text search on PDF, Excel or Word documents)
    - Customer-specific content (e.g. append fields of DRAW, own tables, ...)"
    In Think you should check this link
    "https://www.sdn.sap.com/irj/scn/wiki?path=/display/plmcs/sapPLMConsultingSolutionsII"

Maybe you are looking for

  • M4v to mp4 converter

    whats the best FREE m4v to mp4 converter for mac osx? I have some m4v's that i want to put in iDVD.

  • Embedding Fonts in PostScript and/or PDF

    Under 10.3 the Print dialogue had a Save As File option which allowed the embedding of fonts in PostScript. Choices were All, All but Standard 13 and such. This made sure that the PostScript (and generated PDF) files would render properly on systems

  • User did Not respond issues!! Please help, tried everything...

    Hi, I'm having some problems with the whole Audio/Video chat option on Ichat. I'm trying to connect to my girlfriend who also is running on Mac. When we try to connect, it says, "USER NAME, did not respond". I've read almost every post on this thing,

  • Serious security flaw found in IE

    *Important Information* A  serious  security flaw is found in Internet Explorer today and everybody is  been  advised  by  'MICROSOFT'  not  to  use  Internet Explorer for any confidential banking transactions until the new patch is released. The  ne

  • How can I remove redundant entries it the "Open With" pull down?

    In Mountain Lion, now, when I right click on a document or image and move down to "Open With" I get a triple redundant (long) list of applications that might do the task. How can I purge the list of all the duplicates?  Part of the problem COULD be t