Relation between ra_customer_trx_lines_all with mtl_system_items_b

hi experts
i need to join mtl_system_items_b with ra_customer_trx_lines_all, and it seems very easy but problem is .. my ra_customer_trx_lines_all.inventory_item_id is null and doesnt record any code but description is there.. what is this??? is this a kind of implimentation error ??
can anybody tell me what to with that problem.
regards
anwer

There can be different sources from where invoices can be created e.g. OM, Project etc. Also there can be different types of invoices. For all invoices Item number is not a mandatory column and description can be a free text.
when creating a join between ra_customer_trx_lines and mtl_system_items make sure they have a outer join to get correct data.
http://sureshvaishya.blogspot.com

Similar Messages

  • Relation between BSEG with Asset Tables

    HI Guru's,
    how to find relation between BSEG with Asset Tables like ANLA and ANEP..
    regards
    JK

    Foreign keys
    - ANEP items are linked to ANLA via fields in common ANLN1 and ANLN2
    - ANEK header is linked to ANEP items via fields in common ANLN1, ANLN2, GJAHR and LNRAN
    - BKPF and BSEG are linked to ANEL ANEP via BUKRS, BELNR and GJAHR
    Optimization (as BSEG is behind a cluster table RFBLG)
    - Append BSIS (ZABSIS) and BSAS with ANLN1 and ANLN2, then create an index with these fields. As BSIS is filled via MOVE-CORRESPONDING statement, only a one-shot report to initially fill the new fields is to be developed. (look at old OSS [Note 62435 - F-03: Selection by purchasing documents|https://service.sap.com/sap/support/notes/62435] for optimization via purchase order)
    Regards

  • What is the relation between csi_item_instances and mtl_system_items_b?

    Hi ,
    I am involved in data conversion,' item conversion' and 'asset number' conversion , but i have this question in mind is that why item conversion inserts the records into mtl_system_items_b and asset number conversion inserts the record into csi_item_instances ? what is the functional difference between asset number and an item?
    This question has been disturbing for a long time, please reply soon if u have an answer , please dont ask me to refer to etrm becuase i did but couldnt answer to my question.
    Thanks

    MSI holds details of an item number. (say a desktop computer). e.g. description of the item, list price of the item, the weight of the item etc.
    But you could make 50 such computers and ship them to 10 different customers.
    Now, you want to track the status of these items at customer site.
    First of all, you need to have the Installed Base application installed and the item (desktop computer) needs to be enabled for Install base tracking.
    Once you have done it, upon shipment, Oracle will create one entry for each such item in CII table. This way, Oracle keeps track of when a Desktop computer was shipped, the customer name, if/when it was returned, the serial # etc.
    So in short, MSI keeps details of an item.
    CII keeps details of the item installations.
    Sandeep Gandhi

  • Relation between users with messages

    Hello,
    I have a table of Users:
    create table dbo.User
    Id int identity not null,
    Name nvarchar (400) null,
    // Other coluns as Login, Password, etc.
    create table dbo.Role
    Id int identity not null,
    Name nvarchar (20) null
    create table dbo.UserRole
    UserId int not null,
    RoleId int not null
    Each user has one or more roles.
    I need to relate users one to each other in periods of type.
    For example, one professor to its students during 4 months in 2015.
    And I also need to track messages between users.
    One of my ideas would be the following:
    create table dbo.UserToUser
    FirstUserId int not null,
    SecondUserId int not null,
    StartDate datetime not null,
    EndDate datetime not null
    Being both ProfessorId and StudentId FK's of Users table.
    create table dbo.Message
    ToId int not null,
    FromId int not null,
    Text nvarchar(max) not null,
    Created datetime not null
    Being both ToId and FromId FK's of Users table.
    Should this be done in another way?
    Thank You,

    Review the following design:
    create table dbo.Users
    Id int identity PRIMARY KEY,
    Name nvarchar (400)not null UNIQUE,
    -- // Other coluns as Login, Password, etc.
    create table dbo.Role
    Id int identity PRIMARY KEY,
    Name nvarchar (20) not null UNIQUE
    create table dbo.UserRole
    UserId int not null REFERENCES Users,
    RoleId int not null REFERENCES Role,
    PRIMARY KEY (UserId, RoleID)
    create table dbo.UserToUser
    FirstUserId int not null REFERENCES Users,
    SecondUserId int not null REFERENCES Users,
    StartDate datetime not null,
    EndDate datetime not null,
    PRIMARY KEY (StartDate, FirstUserID, SecondUserID)
    create table dbo.Message
    ToId int not null REFERENCES Users,
    FromId int not null REFERENCES Users,
    Text nvarchar(max) not null,
    Created datetime not null,
    PRIMARY KEY(ToId, FromId, Created)
    Kalman Toth Database & OLAP Architect
    SQL Server 2014 Database Design
    New Book / Kindle: Beginner Database Design & SQL Programming Using Microsoft SQL Server 2014

  • Relation between BP with Organization

    Hi,
    Can any one help me by giving reference of any function module or table name so that I can get Organization Unit for a particular BP Number?

    Hi,
    You can make use of the table CRMV_BUT_SET0140 to find out the corresponding Org Unit data for a BP.
    On the other hand, in FM CRM_BUPA_CONV_EI2BAPI, for Set 140, there is subroutine call to
    execute set. Exploring this sub routine you will be able to find exact FM which updates the Org Unit data for the particular BP.
    I hope this information helps.
    Venkat

  • Relation between ( BSEG or Bkpf) with Ska1

    Hi Everyone,
          I want to know the relation between the table  ( BSEG or Bkpf) with Ska1 , Am using BSEG and Bkpf table. I have to find out the account number. Please let me know the relation
    Thanks
    Imran

    Hello,
    BSEG-HKONT = SKA1-SAKNR.
    Suhas

  • What's the relation between Gain and transmitted power with coverage area?

    what's the relation between Gain and transmitted power with coverage area?
    if we want add coverage area, could we just add antenna's gain only or add transmitted power only?

    That information can be found at: http://www.cisco.com/warp/customer/cc/pd/witc/ao350ap/prodlit/agder_rg.htm

  • DBAdapter Creating Relations between tables not having PF-FK relationship

    I am writing a process which has to pull data from three tables.
    SELLER_HEADER (inv_Num is Primary Key)
    SELLER_LINE_ITEMS ( no PK but has inv_num and line_number which together are unique)
    BUYER_LINE_ITEMS (no PK but has cust_num, cust_PO_num and line_num that are unique)
    I want to create a DB Adapter which would take in an invoice number, customerNumber and customerPONumber
    and fetch me data whose XSD is roughly in this structure
    One Node of Type Header
    ---- Column 1 of the Header Table
    ---- Column 2 of the Header Table
    ---- Column 3 of the Header Table
    ... and so on
    Multiple Nodes of
    ---- Column 1 of the Seller Table
    ---- Column 2 of the Seller Table
    ---- Column 3 of the Seller Table
    and
    ---- Column 1 of the Buyer Table
    ---- Column 2 of the Buyer Table
    ---- Column 3 of the Buyer Table
    I tried some combinations and found that if you have a 1:M mapping for Header - Seller Line Item
    and a 1:1 mapping between Seller Line Item and Buyer Line Item then i get the desired XSD
    So, I created a 1:M relation between header and Seller lineItems. However i cannot create a one to one mapping between Seller Line Items and Buyer line items. Nor can i create a 1 :M mapping between Seller Header and Buyer Line Items. That is why the generated XSD shows
    <SomeCollectionName>
    <SellerHeader>
    <BuyerLineItems>
    <SellerLineItems>
    </SomeCollectionName>
    Any pointers for this? How do i make a relation based on the input values to the DBAdapter

    Does the CORE_BUSINESS schema have REFERENCES and SELECT privileges on the table you are trying to reference with the foreign key constraint?

  • Is there a relation between the Engineering Change Management and MM

    Hi SAP MM Gurus,
    Is there a relation between Engineering Change Management and Materials Management? I know we get the versions changes updated in Material Master. But do not know where is the origin for ECM. Step by step configuration is appreciable.
    Thanking in Advance.
    with regards
    Ravi Babu

    Hi ,
    I have created an application and have created end users also who will be using this application. For each of these users i have to give access to application in such a way that they will be able to see only their area a work. So how do i do this ..this needs to done based on the login user_name..my question now is how or from where will i get the current session details like user_name, current session id ,current session date and time?
    Thanks in advance,
    Bhargavi

  • How to make relation between  gl_je_lines  and wip_transaction_accounts

    I try to write script to make relation between GL and WIP, wip_transaction_accounts and mtl_material_transactions
    1.
    SELECT
    (SELECT meaning
    FROM mfg_lookups
    WHERE lookup_type = 'WIP_TRANSACTION_TYPE'
    AND lookup_code =
    (SELECT TRANSACTION_TYPE
    FROM wip_transactions
    WHERE transaction_id = wta.transaction_id
    ) "Transaction Type" ,
    gjb.NAME "Journal Batch Name" ,
    gjh.NAME "Journal Name" ,
    gjh.je_source "JE Source" ,
    gjh.je_category "JE Category" ,
    glp.period_num "GL Month" ,
    glp.period_year "GL Year" ,
    gjh.default_effective_date "GL Date" ,
    NVL(gje.accounted_dr,0) -NVL( gje.accounted_cr,0) "GL Line Amount" ,
    gje.description "GL Line Description" ,
    (SELECT organization_code
    FROM mtl_parameters
    WHERE organization_id = wta.organization_id
    ) "ORG Name" ,
    NULL "Vendor/Customer Name" ,
    NULL "SO/PO Number" ,
    NULL "Reference Number" ,
    NULL "AP/AR Invoice Number" ,
    NULL "Doc Sequence Value" ,
    NULL "Invoice Type Lookup Code" ,
    NULL "Check Number" ,
    NULL "Line Type" ,
    NULL "Category" ,
    NVL (wta.base_transaction_value, 0) "Transaction Amt" ,
    NULL "AR/PO Receipt Number" ,
    NULL "Applied Invoice Number" ,
    (SELECT a.segment1
    FROM mtl_system_items_b a ,
    wip_discrete_jobs b
    WHERE a.inventory_item_id = b.primary_item_id
    AND a.organization_id = b.organization_id
    AND b.wip_entity_id = wta.wip_entity_id
    AND b.organization_id = wta.organization_id
    ) "Item Name" ,
    gcc.segment1 "Company" ,
    gcc.segment2 "Department" ,
    gcc.segment3 "Account" ,
    (SELECT description
    FROM fnd_flex_values_vl fnd
    WHERE flex_value_set_id = 1009707
    AND TO_CHAR (fnd.flex_value) = gcc.segment3
    ) "Account Description" ,
    gcc.segment4 "Intercompany" ,
    NULL "JE Category Description" ,
    NULL "AP Invoice Line Description"
    TRUNC (wta.transaction_date) "JE Creation/Inv Trans Date" ,
    NULL "JE Created By" ,
    NULL "Reversal Flag" ,
    NULL "Reason Code" ,
    NULL "Subinventory Name" ,
    wta.primary_quantity "Quantity" ,
    NVL (wta.base_transaction_value, 0) "Value" ,
    gje.context ,
    gje.attribute1 ,
    gje.attribute2 ,
    gje.attribute3 ,
    gje.attribute4 ,
    gje.attribute5 ,
    DECODE(gjh.status,'P','Posted','U','Unposted','Error') "Post Status"
    FROM gl_je_lines gje ,
    gl_je_headers gjh ,
    gl_je_batches gjb ,
    wip_transaction_accounts wta ,
    gl_code_combinations gcc ,
    gl_periods glp
    WHERE 1 =1
    AND gje.je_header_id = gjh.je_header_id
    AND gjh.je_batch_id = gjb.je_batch_id
    AND UPPER (gjh.je_source) = 'INVENTORY'
    AND gcc.code_combination_id = gje.code_combination_id
    AND wta.reference_account = gje.code_combination_id
    AND TRUNC(wta.transaction_date) BETWEEN glp.START_DATE AND glp.END_DATE
    AND gje.reference_1 = wta.gl_batch_id
    AND gje.gl_sl_link_table = 'WTA'
    AND glp.period_name = gjh.period_name
    AND glp.period_set_name = 'OVT_US_CAL'
    ==
    2.
    SELECT mtt.transaction_type_name "Transaction Type" ,to_char(mmt.transaction_date,'mm/dd/yyyy hh:mi:ss') as teas, mta.transaction_id,mta.organization_id, mmt.organization_id,
    gjb.NAME "Journal Batch Name" ,
    gjh.NAME "Journal Name" ,
    gjh.je_source "JE Source" ,
    gjh.je_category "JE Category" ,
    glp.period_num "GL Month" ,
    glp.period_year "GL Year" ,
    gjh.default_effective_date "GL Date" ,
    NVL(gje.accounted_dr,0) - NVL(gje.accounted_cr,0) "GL Line Amount" ,
    gje.description "GL Line Description" ,
    (SELECT organization_code
    FROM mtl_parameters
    WHERE organization_id = mta.organization_id
    ) "ORG Name" ,
    NULL "Vendor/Customer Name" ,
    NULL "SO/PO Number" ,
    mmt.TRANSACTION_REFERENCE "Reference Number" ,
    NULL "AP/AR Invoice Number" ,
    NULL "Doc Sequence Value" ,
    NULL "Invoice Type Lookup Code" ,
    NULL "Check Number" ,
    NULL "Line Type" ,
    NULL "Category" ,
    NVL (mta.base_transaction_value, 0) "Transaction Amt" ,
    NULL "AR/PO Receipt Number" ,
    NULL "Applied Invoice Number" ,
    (SELECT segment1
    FROM mtl_system_items_b
    WHERE inventory_item_id = mmt.inventory_item_id
    AND organization_id = mmt.organization_id
    ) "Item Name" ,
    gcc.segment1 "Company" ,
    gcc.segment2 "Department" ,
    gcc.segment3 "Account" ,
    (SELECT description
    FROM fnd_flex_values_vl fnd
    WHERE flex_value_set_id = 1009707
    AND TO_CHAR (fnd.flex_value) = gcc.segment3
    ) "Account Description" ,
    gcc.segment4 "Intercompany" ,
    NULL "JE Category Description" ,
    NULL "AP Invoice Line Description"
    TRUNC (mta.transaction_date) "JE Creation/Inv Trans Date" ,
    NULL "JE Created By" ,
    NULL "Reversal Flag" ,
    (SELECT MGD.SEGMENT1
    FROM MTL_GENERIC_DISPOSITIONS MGD,
    MTL_MATERIAL_TRANSACTIONS MMTT
    WHERE MGD.DISPOSITION_ID = MMTT.TRANSACTION_SOURCE_ID
    AND MMTT.TRANSACTION_SOURCE_TYPE_ID = 6
    AND MGD.ORGANIZATION_ID = MMTT.ORGANIZATION_ID
    AND MMTT.TRANSACTION_ID = MMT.TRANSACTION_ID
    ) "Reason Code" ,
    mmt.SUBINVENTORY_CODE "Subinventory Name" ,
    mta.primary_quantity "Quantity" ,
    NVL (mta.base_transaction_value, 0) "Value" ,
    gje.context ,
    gje.attribute1 ,
    gje.attribute2 ,
    gje.attribute3 ,
    gje.attribute4 ,
    gje.attribute5 ,
    DECODE(gjh.status,'P','Posted','U','Unposted','Error') "Post Status" -
    FROM gl_je_lines gje ,
    gl_je_headers gjh ,
    gl_je_batches gjb ,
    mtl_transaction_accounts mta ,
    mtl_material_transactions mmt ,
    mtl_transaction_types mtt ,
    gl_code_combinations gcc ,
    gl_periods glp
    WHERE 1 =1
    AND mta.transaction_id = mmt.transaction_id
    AND gje.je_header_id = gjh.je_header_id
    AND gjh.je_batch_id = gjb.je_batch_id
    AND UPPER (gjh.je_source) = 'INVENTORY'
    AND gcc.code_combination_id = gje.code_combination_id
    AND mta.reference_account = gje.code_combination_id
    AND TRUNC(mta.transaction_date) BETWEEN glp.START_DATE AND glp.END_DATE
    and mta.request_id=mmt.request_id
    and mta.inventory_item_id=mmt.inventory_item_id
    AND gje.reference_1 = mta.gl_batch_id
    AND gje.gl_sl_link_table = 'MTA'
    AND mtt.transaction_type_id = mmt.transaction_type_id
    AND glp.period_name = gjh.period_name
    AND glp.period_set_name = 'OVT_US_CAL'
    When gl_je_lines have multiple line this script on the same transaction_id it will get wrong information. By setup all wip_transaction_accounts.GL_SL_Lind_id and mtl_transaction_accounts.GL_SL_Lind_id is null
    Anyone can help?

    Hello.
    How are you reaching the inconsistencies ? Are you comparing report's results?
    Octavio

  • Relation between GL Account and Invoice?

    Hi Experts,
    I am working with the FI reports for the first time and I do not have any idea on FI functional flow. I have some basic questions like
    What is the Relation between GL Account and Invoice?
    When will an Invoice be posted into BKPF, BSEG, BSAD, BSID, BSAK and BSIK? Is there any field in these tables which gives the Invoice number against which a GL Account is created?
    For example if I want to calculate " no of vendor invoices without PO how can I do that"? How can I know what are vendor invoices created against a PO or without PO?
    Thanks for any help in advance and I am bound to reward points.
    Sri

    <b>What is the Relation between GL Account and Invoice?</b>
    SAP's Glossary for GL Account is
    "A structure that records value movements in a company code and represents the G/L account items in a chart of accounts.
    A G/L account has transaction figures that record changes to the account during a posting period. These figures are totals that are used for G/L reporting."
    In accountancy, an account is a label used for recording and reporting a quantity of almost anything. For example when a company pays salary to its staff, They debit Salary account. This is to identify what is the nature of an expense.
    An invoice is a message to the buyer of goods or services that contains, among other things, Name of the goods or services, Quantity sent, & Remuneration due.
    Invoice is also a SD document used to charge a customer for a delivery of goods or for services rendered.
    <b>When will an Invoice be posted into BKPF, BSEG, BSAD, BSID, BSAK and BSIK? Is there any field in these tables which gives the Invoice number against which a GL Account is created?</b>
    If it were a vendor invoice. (i.e you purchase items or service and recieve invoice)
    Invoice get posted to the tables once someone makes a Logistics Invoice verification through t-code MIRO etc. The teble RBKP gets the first posting.
    If it were your own invoice to your customers, then VBAK and VBAP get the posting.  The connectivity of tables are available in http://www.erpgenie.com/abap/tables.htm As far as SAP is concerned an invoice is a document, so you can only trace invoice as a document number, field name is usually BELNR. Even if a vendor invoice arrive, an internal invoice number is generated where the vendor invoice is entered only as a reference field. This is because, each vendor can have inovices of different size and pattern.
    <b>How can I know what are vendor invoices created against a PO or without PO?</b>
    For a purchase order you can find in table EKBE for BEWTP = Q any invoice document.

  • Relation between oracle 8i and oracle7

    hi everybody
    i need to relation between two databases
    one of its is oracle8i(8.1.6) on nt
    and other is oracle7 on novell.
    i try to create a database link but i have got a fail,
    so try to find that database (on novell)
    by enterprise manager of oracle8i,but nothing,
    i dont know what is problem,
    only i guess,exist no way for relation between
    sqlnet ver 2 with net8,
    would you pease help me.
    regards
    mehran
    null

    Check your application(s), why so many connections are open. Is it possible connections are opened again and again ,but never closed by the application? That's not a fault of the database. I don't think it will help you ,when you simply reduce the PROCESSES parameter. You remedy the symptoms,but not the cause of the problem. Most likely users will now start to complain about unsuccessful connection requests.
    Werner

  • Displaying Relations Between Tables In Oracle 10.2.0.3

    Hi Everyone;
    I am in urgent need to display all the relations between tables of a Dbase in Oracle 10.2.0.3 version dbase. I use a server 2003 R2 machine and a developer tool TOAD for oracle v9.7 as ODT. If anyone have a clue please i need it.Sincerely
    Best Regards
    Ömer KAYA

    Hi Ömer
    You can with those tools read the configuration and get the actual ERD model from the database, so you will be able to see the relation in the tables.
    Please try that tool
    http://www.download32.com/modelright-3-for-oracle-i38008.html
    Product stands "Do you need to design, visualize or document your Oracle database?"
    In TOAD tool you are also able to do it: Reverse engineer already existing database structures and see the existing database structure in form of a diagram.
    Regards,
    Hubert
    P.S. looking forward to get your "precious" points ;-)
    Edited by: Hub on Oct 27, 2008 2:28 PM
    Edited by: Hub on Oct 27, 2008 2:35 PM
    Edited by: Hub on Oct 27, 2008 2:54 PM

  • Creating a master-detail relation between a view and a table

    Hi all,
    I have a problem with creating a master-detail relation between a database-view with lots of customer data and a small table with per customer a list of entities of our companies who may work for that customer.
    Somehow I seem to be unable to create a relation between these two. I can't find where I can make a foreign key using Toplink to implement the relationship. And neither can I get a Viewlink object doing the job using ADF Business Components.
    Somebody any suggestions on this problems?
    Regards,
    Birgit

    There is a key relationship between two fields which form the primary key in the main table of the view and two fields in the second table.
    I created a viewlink manually, but I still couldn't get the data correct i.e. a form with one record of a customer from the main view and a small table with all entities of our company who can make performances for that customer.
    I tried to find a manual or a how-to on this topic but I didn't find anything helpfull yet.
    Regards,
    Birgit
    After a couple more tries, I got the master-detail working. With all the fiddling I am not sure what caused the problem but I think the finally action was checking which fields of the view were marked as primary keys.
    Now everthing is up and running.
    Birgit
    Message was edited by:
    user492355

  • Relation between Maintenance Order No. and Operation Number

    Hi all,
    I have to make a module pool in which i want to display the following field
    Order No.                                               
    Operation no. | Operation Description |
    Now my problem is that i m not getting the tables from which i have to select data basically i want to extract the data on the basis of Maintenance Order No. and Operation Number.
    I have checked the following tables
    AFKO , AFVu , AFVC, CAUFV.
    But i m not able to find any relation between Maintenance Order No. and Operation Number.
    Please help!!!
    Thanks and regards,
    Rachit khanna

    Hello Rachit,
    The relation is as follows
    AFKO-AUFPL (Routing number is Order header)
    Use this routing number to get operations from AFVC
    AFVC-VORNR gives operation number
    AFVC-LTXA1 gives operation description
    For sub-operations, VORNR will be sub-operation number, and AFVC-SUMNR for this sub-operation corresponds to the respective superior operation(refers to AFVC-APLZL).
    AFVC-APLZL is a unique number for each operation.
    Hope this helps. You can check with some existing/new orders as well.
    let me know if you need anything about split operations as well.
    Best Regards,
    Subhakanth

Maybe you are looking for

  • New system with Neo4 Platinum doesn't work at all!!!

    Hi guys, I bought my new system: 1 - AMD Athlon 64 3200+ Core Venice 2 - MSI K8N Neo4 Platinum /BIOS 1.1 3 - RAM S3+ 1GB (2x512 MB) 4 - Western Digital Caviar SE 120 GB SATA WD1200JD 5 - Hitachi Deskstar 80 GB SATA II HDS728080PLA380 6 - NEC 3500AG D

  • Error deploying a .ear file - Urgent

    Hi, I am trying to deploy an .ear file on the SAP J2EE engine.  I am getting a NoClassDefFound exception even though the particular jar (xml-apis.jar) file containing the class is in the additional-lib directory.  Also, the jar file has been added to

  • Impact of Windows system cache to Essbase

    As we know that Windows OS has a system cache buffer to cache data files under OS environment. And Essbase also has its own cache mechanism to cache some data block into physical memory. If we have many physical memory left, Windows will utilize the

  • Defining entities using XML schema

    Hi, We have defined an XML schema for our data by converting a DTD, but I cannot figure out how to allow for entity definitions that are non-standard. e.g. we have a entity called "°", defined in the DTD as "°". How would I allow for such entries in

  • Listen to message from an outside line

    Have a quick question! How do I listen to my messages from an outside line.