Item Preferred Vendor Name with OINM OITM and OMRC

Hi all
How to add Item Preferred Vendor Name to this Query?
SELECT T0.[ItemCode],T1.CardCode, T1.FirmCode, T2.FirmName, T1.ItemName, sum(T0.[InQty])[In Quantity], sum(T0.[OutQty])[Out Quantity],sum(T0.[InQty]) - sum(T0.[OutQty])[Balance Quantity],  T0.[Warehouse], sum(T0.[TransValue])[TransValue] FROM OINM T0 INNER JOIN OITM T1 ON T0.ItemCode = T1.ItemCode INNER JOIN OMRC T2 ON T1.FirmCode = T2.FirmCode WHERE T0.[Warehouse]  between [%0] and [%1] and  T0.[DocDate]  <=[%2] GROUP BY T0.[ItemCode], T1.CardCode, T1.FirmCode, T2.FirmName, T1.ItemName, T0.[Warehouse]
Kedalene

Hi,
Try this:
SELECT T0.[ItemCode],T1.CardCode, T0.[CardName],T1.FirmCode, T2.FirmName, T1.ItemName, sum(T0.[InQty])[In Quantity], sum(T0.[OutQty])[Out Quantity],sum(T0.[InQty]) - sum(T0.[OutQty])[Balance Quantity],  T0.[Warehouse], sum(T0.[TransValue])[TransValue]
FROM OINM T0 INNER JOIN OITM T1 ON T0.ItemCode = T1.ItemCode and T0.[CardCode] = T1.[CardCode] INNER JOIN OMRC T2 ON T1.FirmCode = T2.FirmCode left join OCRD T3 on T1.cardcode = T3.cardcode
WHERE T0.[Warehouse]  between [%0] and [%1] and  T0.[DocDate]  <=[%2]
GROUP BY T0.[ItemCode], T1.CardCode, T1.FirmCode, T2.FirmName, T1.ItemName, T0.[Warehouse], T0.[CardName]
Thanks & Regards,
Nagarajan

Similar Messages

  • Balance the item 1 - Vendor invoice with two expense items for two co codes

    Hi
    In our case document splitting is active with profit centre balancing.
    When I am posting a FI vendor invoice with two expenditure items to two difference company codes & cost centres, the system is generating the clearing line items but it is not posting and giving an error message that "balance profit centre data is not there in line item".  Since this is a vendor item and no profit centre information cannot be given manually, system has to split the item with relevant profit centre information, right ?  But that is not happening, please help me out.

    Hi,
       Document splitting configuration is done at client level and assigned at company code level.
    Document split is done based on the item categories and base item categories configured.
    This can be done only for the entities inside a company code and not for the company code and it is done to have a Zero balance check in the entities.
    Document splitting is done mainly for reporting purposes.(eg: Segment reporting, Profit center reporting etc.,)
    you are posting for two different company codes in a single transaction means it will be cross company code transaction.
    System will generate two different document numbers for eac line item and a single cross company code transaction number for the entire transaction.

  • Creating computer Names with small letters and they appear as capitals in Active Directory Domain

    Hello,
    When I try to create computer objects in Active Directory - namely when i change computer name with small letters, in active directory users and computers they appear as capital letters and in DNS console as well.
    I know that it's not a problematic issue and technically all goes fine but, i want to know the reason.
    Is it possible to change computer name with small letters while joining in the domain and than in AD it appear with small letters also ?
    Thanks in advance,

    If you are asking about during the client join process, I believe the machines do all caps and you have to accept that as default.  I'm guessing it is a legacy issue for older clients that has hung on such as possibly related to WINS.
    Paul Bergson
    MVP - Directory Services
    MCITP: Enterprise Administrator
    MCTS, MCT, MCSE, MCSA, Security, BS CSci
    2012, 2008, Vista, 2003, 2000 (Early Achiever), NT4
    Twitter @pbbergs http://blogs.dirteam.com/blogs/paulbergson
    Please no e-mails, any questions should be posted in the NewsGroup.
    This posting is provided AS IS with no warranties, and confers no rights.

  • Automator- create file names with creation date and time

    I have photo files that I want to rename with a base name, plus a sequential number, based on the creation date (and ideally time). It appears that Automator does not honor the time of the source file when date stamping a new set of files. If there is anyway to use date + time so I can recreate a date_timestamp in addition to a base filename, that would be great.

    Hi Nikhil_BI_Dev,
    According to your description, you find your report runs properly in BIDS but shows blank after deploying onto report server. Right?
    In this scenario, it might be the issue on retrieving data in SQL 2005. Here is a thread with same issue, please refer to the link below:
    Detail report is blank after deploying
    Reference:
    Using SQL Server 2005 Reporting Services with SQL Server 2005 Express Edition
    If you have any question, please feel fee to ask.
    Best Regards,
    Simon Hou

  • Block Line items in sales order with no confirmation and auth check

    Hi.
    We have a requirement to block some line items ( hold for review ) in a sales order while allowing other line items to be delivered.  In the standard SAP system, a schedule line block is possible, but it does not remove the confirmation for the line item. Also, we would like only some authorized people to be able to remove the block.
    Would appreciate suggestions from the forum
    Thanks and regards
    Rohit Zalani

    Hi,
    Thank you for your responses. We could do a reason for rejection, but would not like to go down that path since the item is not classically rejected and it may show up in the rejection reports or give wrong information. We wanted to use a delivery block and remove confirmations for the line item. Standard SAP does not operate this, but would appreciate inputs from the esteemed members if anyone has done this before.
    Thanks and regards
    Rohit Zalani

  • Vendor Return - with Excise duty and VAT

    All SAP Gurus,
    We want to make vendor return the excise invoice should contain Excise duties as well as VAT.
    Can it be done through MM (122 movement type and then J1IS) or it need to done through SD (as VAT is coming into the picture).
    Regards,

    It can be done thro' J1IS by which excise duties get reversed to that extent at the time of monthly utilization.
    regarding VAT, it will be done at the time of MIRO.
    regards
    prasad

  • Getting ORA-00903:invalid table name with both system and table owner

    Hi All,
    Oracle version 9.2
    I'm trying to retrieve some information from a few tables and import them to Excel. I haven't got much idea about ORACLE, but I'm not able to do anything.
    I open SQL PLus, and use CONNECT SYSTEM/[email protected] AS SYSDBA
    The console shows connected.
    I use select table_name,owner from dba_tables where owner='USER1';
    I can see the tables I want to access in the output.
    I do select * from USER1.TABLE1 and also tried with select * from TABLE1, both return ORA-00903:invalid table
    I also tried to connect with "CONNECT USER1/[email protected]" also shows connected, but then same error ORA-00903:invalid table
    Could anyone guide me so I can find out whats going on wrong??
    Thanks.. Best regards!

    Great! this worked! At least now I know I can read the data.
    Now I would like to get the data from this table into Excel 2007, but I can't install Office in the ORACLE server, so I have setup my client computer (Windows 2003 server with Excel 2007).
    I installed the ORACLE ODBC driver, and put the TNSName.ora file into the network admin folder.
    I successfully create the ODBC connector, and try connection is successfull. However, when I try to get the data, Excel send an error saying that it cannot list the tables!
    Anyway, any simple solution will do. If there is an easy way of making ORACLE create for example a CSV file with all the data from the table it will be good as well. What would be the easiest way?

  • Yosemite server email accounts name with only domain and extension

    Hello Again,
    Yosemite Server 10.10.1
    Domain name, static IP
    What are the tricks to get email in and out to use username example.com instead of [email protected]?
    François

    Hello Again,
    I'm sending from :  username @ xyz.example.com
    and receiving to :  username @ example.com
    Suggestions please?

  • Supress Vendor name in std report S_ALR_87012103 - Vendors: Items

    Hi ,
    I am using report 'S_ALR_87012103 - Vendors: Items -> List of Vendor Line Items' to list the vendor open items and in the output the vendor name with address is displayed, I want to supress name and address so that when I download to excel it will easier for me to change the columns.
    Than

    Try using FBL1N instead of this report, which does not show address.
    Regards,
    SDNer

  • Procedure for creating Recording in  LSMW with header data and line item

    Hello Friends,
    I have to do the Initial Upload of Model Service specification using LSMW ( Recording).
    Transaction : ML10
    The problem i am facing is that i have been given 2 files one with HEADER data and the other with LINE ITEM(Service data).
    Can we use the RECORDING method to upload 2 files?
    If not possible how do we proceed.
    Thanks and regards
    Ashish Naik.

    Step-by-Step Procedure:
    Details of the BAPI used in this scenario:
    Business Object: BUS2012
    Method: CreateFromData
    Details of Message Type and Basic IDoc Type:
    Message Type: PORDCR
    Basic IDoc Type: PORDCR02
    Letu2019s have a look at the BAPI first, before proceeding to the LSMW:
    1.     Go to Transaction BAPI
    2.     Click on Search Button
    3.     Enter the value u201CBUS2012u201D and select u201CObj.type(Technical Object Nameu201D
    4.     Press ENTER
    5.     Following screen appears:
    6.     On the left side of the screen, Expand the u201CPurchaseOrderu201D.
    7.     Select u201CPurchaseOrderu201D and double-click on the same for details.
    Building LSMW using BAPI:
    1. Go to Transaction LSMW.
    2. Enter the Project, Subproject and Object information and click on CREATE.
    3. Enter the descriptions for Project, Subproject and Object as prompted.
    4. Now select Settings à IDoc Inbound Processing
    5. u201CIDoc Inbound Processingu201D screen appears. Enter the required details as shown below:
    6. Click on u201CActivate IDoc Inbound Processingu201D.
    7. Click on u201CYesu201D when prompted for u201CActivate IDoc Inbound?u201D
    8. Hit on u201CBacku201D to return to the main screen.
    9. Click on Continue (F8). Following Screen appears:
    10. Select the Step 1 u201CMaintain Object Attributesu201D and select u201CExecuteu201D.
    11. Select the radio button u201CBusiness Object Methodu201D and enter the following details:
    Business Object: BUS2012
    Method: CreateFromData
    Hit ENTER
    12. Save and click on BACK button. Following information message is displayed.
    13. Now select step 2 u201CMaintain Source Structuresu201D and click u201CExecuteu201D.
    14. In this step, we need to maintain the source structure. In our example, lets consider the example of a file with 2 structures Head and Item data as shown below:
    Click on Create and name the source structure as HEADERDATA. Now select HEADERDATA and click on u201CCreateu201D again to create the child structure. Following popup appears:
    Select u201CLower Levelu201D and click on Continue. Enter the Item data structure name.
    Click Save and hit BACK button to go to the main screen.
    15. Select step 3 u201CMaintain Source Fieldsu201D and hit execute.
    16. Enter the fields as shown below:
    17. Click SAVE and return to main screen.
    18. Select step 4 u201CMaintain Structure Relationsu201D and click Execute.
    Select E1PORDCR and click on CREATE RelationShip. Following screen appears:
    Select HEADERDATA and hit ENTER
    Similarly do the same for the structure E1BPEKKOA, E1BPEKPOC and E1BPPEKET.
    Click Save and return to main screen.
    19. Select the step u201CMaintain Field Mapping and Conversion Rulesu201D and click on execute. Maintain the Field Mapping as seen below:
    20. Select step 7 u201CMaintain Source Filesu201D and provide the link for the test file created. (Create a test file with the same structure as defined earlier).
    Save and return to main screen.
    21. Select the step u201CAssign Filesu201D and click on Execute.
    Assign the file provided to the source structure. Here the same file is provided for both the structures.
    Save and return to the main screen.
    22. Select the step u201CRead Datau201D and click on Execute.
    Click on Execute.
    Return to the main screen.
    23. Select the step u201CDisplay read datau201D and click on execute.
    Click on the structure name to get the field level values.
    24. Return to main screen and now select u201CConvert Datau201D.
    25. Return to the main screen and select u201CDisplay Converted datau201D.
    26. Return to main screen and select u201CStart IDoc generationu201D.
    27. Now select the step u201CStart IDoc Processingu201D on the main screen.
    28. Return to main screen and click on u201CCreate IDoc overviewu201D. Here the data record and status records of the IDoc could be viewed:
    Check this. This may help

  • Problems with replace file name with starting and ending Bates number

    When applying Bates numbers to a set of Acrobat pdf files I am unable to replace file names with the starting and ending Bates number. This is important
    for me in a legal application.
    The Bates numbers are applied to each page of each of file without any problem as required.
    The Bates log file indicates that the files have been renamed as I wanted.
    I am running Adobe Acrobat Professional 9 with the update to 9.1.9 and Windows XP Service Pack 3 (the last or current service pack)
    In all other respects Adobe Acrobat 9 is running to my satisfaction.
    Has anyone else had this problem and found a solution?
    HRKExon

    Thanks for asking the question, I hadn't heard of Bates numbers before and this gave me a chance to look up something new.
    When I googled for ' bates number legal index ' I found this document:
    http://www.adobe.com/devnet/acrobat/pdfs/batesnumbering9.pdf
    Maybe that will help.
    Scott Bonacker CPA
    Springfield, MO

  • Free Goods Import Process with Customs, Freight, and Other Taxes.

    hi,
    I have to import free goods but have to pay for Customs, Freight, and other Taxes.
    1. If I tick Free Goods Indicator in PO Line Item, Condition Tab at line item disappears. It will not to calculate other conditions at Header level also. - So I cant execute this option.
    2. If i take price of material and insert Condition Type: R001:Discount/Quantity with material price/qty, then it gives Error Message - "Price Must be greater than 0".
    So, Is there any way through which I can procure Free Goods and can maintain conditions for Customs, Freight, and other Taxes in Purchase Order.
    Please help me in this regard.
    - Jignesh

    Hi,
    1) Create an import PO in ME21N with material price and all custom duty conditions (as you normally create). no need to put free tick indicator.
    2) Process MIRO for goods and delivery costs simultaneously.
    3) Maintain zero amount for goods item and actual values for the duties (Ensure selection of goods item including delivery cost items)
    4) Save the LIV document
    5) Check PO item history got updated with IR-L and DCIn. (IR-L will updated with zero amount)
    6) Do  MIGO w.r.t. IR document number.
    7) GR FI document will get updated with the non-set off duty values only.
    Regards
    Rajesh

  • Vendor list with complete address with contact nos.

    dear
    i want to export the vendor list with complete address and contact nos.
    i use <b>mkvz</b> for list of all the vendors but i do not get the address and contact no.
    pls send the t-code or any setting parameters for the same
    regds
    devesh

    hi
    Try ADRC table in SE16 but u need a address number to get data which is available in LFA1 table as ADRNR field
    now u will be able to fing street address with respect to vendor
    If required u can club these reports to develop query take help from abaper
    Vishal...

  • List - Display Name with Presence (1st column) Display User ID (2nd Column)

    I have a simple list and one column titled Member and it is set as a Person field. My goal is to also have the corresponding Member.ID (ex 9012) also available as a second column so that when a user enters a name, it will auto populate the ID column.
    Put another way, two columns. Col A Member (Name with Presence) Colm B Member (ID) Can this be done without coding? I need these two columns for export into Access.
    Attempts thus far:
    1. Attempted to create a second column and have it set as lookup, pointing to the Member (Name with Presence) Column and it wont see it. -Fail
    2. Attempted to create a second column and have it set as calculated, pointing to the Member (Name with Presence) Column and it won't see it. -Fail
    3. Created a new page, inserted a data view. This allows me to display Member.ID but if I open/export to Access the column is not displayed. Same occurs with Excel. It's like it does not exist. -Fail
      Edit: Update, I've changed from User ID # to User Account.

    Hi  ,
    According to your description, my understanding is that you want to auto populate the Member ID column.
    For achieving your demand, you can create an auto incrementing number  using SharePoint workflow.
    For more information, you can refer to these blogs:
    http://dlairman.wordpress.com/2011/01/10/add-a-unique-auto-incrementing-column-to-a-sharepoint-list/
    https://www.nothingbutsharepoint.com/sites/eusp/pages/sharepoint-how-to-create-an-auto-incrementing-number-field-for-use-in-a-custom-id-part-1.aspx
    Also you can create an auto incrementing number using infopath:
    http://claytoncobb.wordpress.com/2009/06/15/auto-numbering-infopath-forms/
    Best Regards,
    Eric
    Eric Tao
    TechNet Community Support

  • SLD -- Component & Product Vendor Name

    Hi
    What would be the vendor name for a product and component while developing interfaces in XI?
    Can anybody please help.
    Thanks
    Ramesh

    Hi
    Thanks a lot for the responses.
    For example for a enterprise there are two legacy systems exists , do we need to create two products and two software componets or one product and two software components. Please give an idea if these two legacy systems are from two different vendors and also the case like from different vendors? As we understand the vendor name for component and product would be same.
    Thanks
    Ramesh

Maybe you are looking for

  • How to store the value of request message and use it in Response mapping

    Hi All, We have an requirement where we need to store the data coming in Request Mapping and use the stored value in Response Mapping. Can anybody help us in how to proceed? Thanks Sujata

  • Where clause sequence

    Hi select /some fields/ where clause field1=:b1 and field2=:b2 etc; Does sequence of field1 field2 in where cluase matters in reducing fetch time i.e select /some fields/ where field2=:b2 etc and field1=:b1 will be faster Prashant

  • Mp3 duplication problem

    For some reason my .mp3 files show up twice and in some cases three times in the media player. The strange thing is that I've tried to delete all music files and they still show up. I also tried doing a complete erase of all data using the Pre erase

  • Any chance this is NOT a hardware problem?

    I have a PowerBook (17", 1 gHz, 10.4.7) which has started having Kernal Panics and having the screen suddenly going black, requiring a forced restart to get back on. The PB is not shutting down (the num locks and cap lock keys still light) and the dr

  • Expert SAMBA printing help needed

    I have read every thread regarding SAMBA printing but am still having difficulties with Java applications. I set up 2 kinds of printer queues. 1. No Password: Used the standard Add Printer dialog for Windows printing. 2. With Password: Used the Advan