Query on item with ST Transactions
hello all,
i have created the ff. query
SELECT * FROM OINM T0 WHERE T0.[TransType] = '58' and T0.[DocDate] between '[%0]' and '[%1]'
to check inventory posting in WH. am i making a query in the right table?
we are currently doing an inventory count in our WH, since we are still correcting our count i want to know which items has already have an ST transactions (Inventory Posting) and also i want to know which items that still do not have an ST Transactions, the reason i want to know the ff. details becaus some of our items have count in WH but no actual was counted during the physical count, so if i will know which items has a count in sbo but no ST transactions meaning the count should be Zero since no actual counted.
please help.
thanks.
Fidel
hi,
you are right when you select data on OINM and you can see infor.
- OITW in warehouse.
- OIQR, IQR1 Inventory Stock Posting (Reconcile)
thanks,
H2
Similar Messages
-
Showing Items with no transactions
I am trying to build a report that will show us items with potentially incorrect item status. Item status (on table itmmas) is either A(ctive) or I(nactive). The report should show all Inactive items which have had at least one transaction in the past 4 weeks AND active items which have had no transactions in that period.
My plan is to join the item master table to the item ledger table (itmldg) which lists all inventory transactions. I can show the inactive items with transactions without a problem.
What I can't figure out is how to show items with Active Status that don't have any transactions. I can't get CR to return a data set which includes ALL records from itmmas but only those from itmldg in the last 4 weeks. I tried this SQL query:
SELECT itmmas.itmiid, itmmas.itmdes, itmmas.itmsts, itmldg.ilgdno, itmldg.ilgdat
FROM {oj itmmas LEFT OUTER JOIN itmldg ON itmmas.itmiid = itmldg.ilgiid}
WHERE (itmldg.ilgdat>={d '2009-09-01'})
When I run this query in MS Query and return the results to Excel, I get single lines for items with no transactions. For these items, the fields from itmldg are NULL. When I run this query in CR, I don't get any data for items with no transactions.
Can anyone think of a way to get this to work?The issue that you have is that the WHERE clause in your SQL statement is only looking at an itmldg table field for a value. This is effectively making your Left Outer Join an Inner Join, because when an itmmas record does not have an itmldg record, the date field will be NULL. You have to add the condition "OR itmldg.ilgdat is null".
If you want to return ONLY the records that the report is interested in (which should have beter performance), change the SQL to
SELECT itmmas.itmiid, itmmas.itmdes, itmmas.itmsts, itmldg.ilgdno, itmldg.ilgdat
FROM {oj itmmas LEFT OUTER JOIN itmldg ON itmmas.itmiid = itmldg.ilgiid}
WHERE ((itmldg.ilgdat>={d '2009-09-01'}) and (itmmas.itmsts = 'I'))
or ((itmldg.ilgdat is null) and (itmmas.itmsts = 'A'))
HTH,
Carl -
Is it possible to query an Item with two or more conditions in OOB Update List Item WF Step
In SharePoint Designer 2010, in Workflows, is it possible to give more then one condition when querying items? Let me explain, it is fairly easy to drop Update item in this list step, and say, for example, Update item with ID X. However, if is it possible
to do something along this lines with OOB steps, Update an item in this list where Title is Equal to "abc" and Modify date no older then 3 days.
Update: Workflow is started when the item is added to the list. What I would like is to update some fields on this item depending on information in this item and in external list. For example
Current Item Field 1 has value "abc"
Current Item Field 2 has value "123"
Current Item Field 3 has value "456"
External List has Item with value in Field 1 "123"
External List has Item with value in Field 2 "abc"
External List has Item with value in Field 3 "xyz"
Update Current Item Field 3 with value "xyz"
In short I would need following query - Update Current_Item_Field_3 with value from External_List_Field_3 where Field 1 is equal to Current_Item_Field_2 and Field 2 is equal to Current_Item_Field_1Hi,
From your description, I understand you want to update list item with workflow based on two or more conditions.
To resolve your issue, you need to use “If current item field equals value” condition. Use this condition to compare a field in the current item that the list or reusable list workflow is currently running on to a value. Values can be static text, dynamic
strings, and lookups to variables, context information, or other SharePoint fields. And you can learn more about each condition by referring to the article:
https://support.office.com/en-in/article/Workflow-conditions-in-SharePoint-Designer-2010-A-quick-reference-guide-d8e33ac7-9336-487f-a60b-388c4ea497ff?ui=en-US&rs=en-IN&ad=IN
I assume your External List is called “ListB”, and Current List is called “ListA”, You can follow the steps below:
1. Add “If current item field equals value" for condition that ListB Field2 equals to ListA Field1, then set the second condition “ListB Field1 equal to ListA Field2” as the “Find the List Item” in the “Lookup for Single line of text”
as the screenshot below:
2. Add “Update List Item” as the screenshot below for updating Current_Item_Field_3 with value from External_List_Field_3. In addition, you should set “Find the List Item” in “Lookup for Single line of text” same to the “Find the List Item” in step 1:
In addition, if you have more conditions, you could add “If current item field equals value” condition, and you should set each “Find the List Item” in “Lookup for Single line of text” same to the “Find the List Item” in step 1.
Regards,
Rebecca Tu
TechNet Community Support -
Item details with Last Transaction Date ?
Hi,
Please help someone to fine tune this query :-
Select ILLITM,ILDOC, ILDCT, ILTRDJ
FROM CRPDTA.F4111
where ILTRDJ in (Select max(ILTRDJ) FROM CRPDTA.F4111);
The above query is returning the latest transaction date with Item details.
But expected output is: Every Item with last transactional date.
Hope I am clear on the above requirement please.
Thanks in advance.
RAMyou can use table alias for this
Select ILLITM,ILDOC, ILDCT, ILTRDJ
FROM CRPDTA.F4111 tab1
where tab1.ILTRDJ in (Select max(tab2.ILTRDJ) FROM CRPDTA.F4111 tab2);
or if you are using this query inside any PL-SQL block , you can use a variable to hold max(ILTRDJ) and then use this variable in query. -
Transaction of item with cost-group 2008 results in cost-group comingle
Hi Folks,
I have the following error on Miscellaneous Transaction when I use a different cost group than the default one assign on subinventory:
Transaction of item with cost-group 2008 results in cost-group comingle
In our specific case, we define a CONVERSION subinventory with default Cost Group is X
We would like to create Miscellaneous Transactions (interface table) which use CONVERSION subinventory with different Cost Group.
The problem is when we use a Cost Group other than X, the "comingle" error occured.
Is there a manner to create a Miscellaneous Transactions base on a Cost Group different than the default define in the subinventory?
RegardsHI,
is not that type of error.
Actually there is no error. the system is working as it should.
I have used different cost groups in subinventories.
I need a way to change the cost group for some of the items.
I found some workaround in article 837816.1 but i'm not able to follow it.
Pls,
help with procedure to follow.
Thank you in advance,
Denis -
Transaction of item with cost-group 2614 results incost-group comingle
Hi,
I'm working on EBS 11i.
I have setup inv organization and wms is enabled.
When i'm trying to make transactions betwwen suborganizations there is an
error message for some type pf items:
Transaction of item with cost-group 2614 results in cost group comingle.
I see that for some item, in On hand quanitity form are grouped in different cost groups.
There is a way to change the cost group of those items, or to make this cost group disabled.
In this organization I do not care about cost and account. (It is just needed to have physical count of items)
Pls advice how to solve?
Thank you in advance,
DenisHI,
is not that type of error.
Actually there is no error. the system is working as it should.
I have used different cost groups in subinventories.
I need a way to change the cost group for some of the items.
I found some workaround in article 837816.1 but i'm not able to follow it.
Pls,
help with procedure to follow.
Thank you in advance,
Denis -
Populate HTML LIST ITEM with a query
Hello,
I've a problem,
I'm building a portlet based on an html form.
In this forms there are several list items,
How can I populate an html list item with a dynamic query based on a db table?I hope you are looking for something like this
declare
v_ret_string varchar2(32767);
begin
v_ret_string := ' <TABLE BORDER="1" bordercolor="#0000FF" bgcolor="#FFFFF0">
<TR><TD><TABLE BORDER="0" CELLSPACING="3" CELLPADDING="0">
<BR>
<TR><TD ALIGN=middle><SELECT SIZE="1" NAME="emp_list">
<OPTION VALUE="">';
For get_emp_list In (Select ENAME,EMPNO
From SCOTT.EMP
Order by ENAME) Loop
v_ret_string := v_ret_string || '<OPTION VALUE="'||get_emp_list.EMPNO||'">'||get_emp_list.ENAME;
End Loop;
v_ret_string := '</SELECT></TD></TR><TABLE></TABLE>';
End;
which uses PL/SQL code to generate the html page.
Thanks
-Krishnamurthy -
How to create sql query for item master with operator LIKE with variables?
hi all,
How to create sql query for item master with
operator LIKE(Contains,Start With,End With) with variables using query generator in SAP B1 ?
JeyakanthanHi Jeyakanthan,
here is an example (put the like statement into the where field)
SELECT T0.CardCode, T0.CardName FROM OITM T0 WHERE T0.CardName Like '%%test%%'
The %% sign is a wildcard. If you need start with write 'test%%' and otherwise ends with '%%test'. For contains you need '%%test%%'. You also could combinate this statements like 'test%%abc%%'. This means starts with test and contains abc.
Regards Steffen -
Hi All,
My requirement is to change a "field to edit" which is in "customer fields tab" of an item in "crmd_order" transaction.
Please find the screen shot.
Please help me with this issueUse easy enhancement workbench
The Easy Enhancement Workbench is a development tool with which SAP applications (called Business Objects in the following document) can be extended in a simple manner.
Customer enhancements to a Business Object are defined via wizards. The Workbench then does all development work for the user; databank tables, screens and application logic are created automatically. Finally the customer enhancement is included in the SAP standard.
This also allows users without ABAP knowledge the simple possibility of extending the SAP standard.
An extension created using the Easy Enhancement Workbench does not differ technically from one created manually. In both cases transportable ABAP objects are created and the same Customer Exits, Business Transaction Events or BAdIs are implemented
You need to use EEWB feature to achieve the same.
Tutorial
http://www.scribd.com/doc/6755615/Eewb-Steps
http://help.sap.com/saphelp_crm50/helpdata/en/9f/a19c921f0911d6b1d500508b6b8b11/frameset.htm
In addtion check this note
Note 484597 - Customer enhancement of CRM applications
a guide is attached to it for telling u steps
Hope query is solved
Regards
Prakhar -
Order with Serialized PTO Item with IB reference and Serial Number
I want to get to Orders with Serialized PTO Item with IB reference and their Serial Numbers.
I would like to know how I can link sales orders to IB. I wrote the foll. sql query but I am not sure if this is accurate. I am fairly new to this.. so any help is appreciated.
SELECT DISTINCT oeh.order_number,
--oel.line_id, oel.ordered_quantity, mtl.inventory_item_id,
mtl.segment1 part, mtl.item_type,
cii.serial_number
FROM apps.oe_order_lines_all oel,
apps.oe_order_headers_all oeh,
apps.csi_item_instances cii,
apps.mtl_system_items_b mtl
WHERE oel.inventory_item_id = cii.inventory_item_id
AND cii.inventory_item_id = mtl.inventory_item_id
AND mtl.item_type = 'PTI'
AND oel.header_id = oeh.header_id
AND oel.org_id = oeh.org_id
AND oeh.sold_to_org_id = cii.owner_party_account_id
AND cii.serial_number IS NOT NULLYou want instances that are at the customer site right (last transaction is shipping) or all the instances that have been shipped before no matter what the current status is. Instance could have been returned and shipped again and so on or just returned and disposed.The second question will yield more instances compared to the first one.
Thanks
Nagamohan -
How to get all properties for an item with search?
How can I get all crawled / managed properties back of an item with the search API (REST, client, or server)?
Currently I am only aware of specifying the applicable properties specifcally by using the selectproperties parameters via REST:
http://host/site/_api/search/query?querytext='terms'&selectproperties='Path,Url,Title,Author'
(taken from http://blogs.msdn.com/b/nadeemis/archive/2012/08/24/sharepoint-2013-search-rest-api.aspx)
I don't want to do this. I just want to get all properties back that
are associated with the search results.Its my understanding that standard managed properties will be returned, like: Created Date, Last Date Modified, Author, Title, etc. However, if you need more than that you will need to specify the properties to return.
This blog post also has a similar thought process:
http://www.blendmaster.net/blog/2012/09/view-managed-property-value-in-sharepoint-2013-using-search-rest-api/
Brandon Atkinson
Blog: http://brandonatkinson.blogspot.com -
FPBW: Extract Open Items with a posting date in the future
Dear all,
I'm are currently searching for possibilities to extract Open Items with a posting date in the future from SAP IS-U 4.72 into SAP BW 3.5.
Currently I'm using the Business Content extractor 0FC_OP_01 together with the mass transaction FPBW in IS-U.
The problem I'm facing is within the mass transaction FPBW. I've have set the key date at 01.11.2007, but this job already runs for 52.000 seconds on the same database select-statement.
Does anybody know a possible solution to improve the performance of the statement below? (I pasted it from the process overview)
================================
SELECT
/*+
INDEX("DFKKOP" "DFKKOP~1" "DFKKOP^1" "DFKKOP____1" "DFKKOP____1__X" "DFKKOP_1")
"BETRH" , "BETRW" , "BUDAT" , "BUKRS" , "FAEDN" , "GPART" , "GSBER" , "INKPS" , "SPART" , "VKONT" ,
"WAERS" , "MAHNV" , "ABWBL" , "APPLK" , "AUGBD" , "AUGBL" , "AUGBT" , "AUGDT" , "AUGRD" , "AUGST" ,
"AUGWA" , "BLART" , "BLDAT" , "EMGPA" , "GRKEY" , "HVORG" , "MANSP" , "MWSKZ" , "OPBEL" , "OPSTA" ,
"OPUPK" , "PERSL" , "PYMET" , "QSSHB" , "SBETW" , "SPZAH" , "STUDT" , "TVORG" , "VTREF" , "XBLNR" ,
"XMANL" , "HKONT" , "OPUPZ" , "OPUPW" , "STAKZ" , "WHGRP" , "AUGBS" , "XANZA" , "XRAGL" , "ABWTP" ,
"ASTKZ"
FROM
"DFKKOP"
WHERE
"MANDT" = :A0 AND "AUGST" = :A1 AND "GPART" BETWEEN :A2 AND :A3 AND ( "AUGDT" = :A4 OR "AUGDT" > :A5
AND ( "BUDAT" <= :A6 OR "AUGBD" <= :A7 ) OR "WHGRP" <> :A8 AND "OPUPW" = :A9 )
ORDER BY
"AUGST" , "GPART"#
=================================
I have already tried to create an index on the following fields (in the same order):
- MANDT Client
- AUGST Clearing status
- GPART Business Partner Number
- AUGDT Clearing date
- BUDAT Posting Date in the Document
Any help would be appreciated!
Thanks in advance,
Steven GrootHi Marcos,
When you have created the Restricted keyfigures for Open Items, You have to add the date characteristic on which you are looking open item and add the variable there.Here you have to use a variable of type Interval and select the operator "<" the date of the Variable.If you go through, there are standard variable for keydate, which you can use directly.
Hope you got the idea
Regards
Happy Tony -
Trying to compare item with number in PL/SQL report
Hi,
I'm using for my report SQL Query (PL/SQL Function body returning SQL Query). And I found that I can't to write:
if v('ITEM_NAME')=1 then ..., because it is 'missing expression' error.
I can only
if v('ITEM_NAME') IS NULL then ...
or
if v('ITEM_NAME') IS NOT NULL then ...
Why I can't to compare item value, for example, with number?
Thanks!
Karina.Hi,
I'm using my own htmldb installation. The reports' code is:
DECLARE
q varchar2(10000);
v_lesst_str varchar(255);
v_lesst_stmt_2 VARCHAR2(100):='select lesst_id from lesson_types';
v_meas_str varchar(255);
v_meas_stmt_2 VARCHAR2(100):='SELECT meas_id FROM project_measures';
BEGIN
if v('P16_LESSONS_TYPE') is null THEN v_lesst_str:=v_lesst_stmt_2;
ELSE v_lesst_str:=v('P16_LESSONS_TYPE');
END IF;
if v('P16_PRO_MEASURE') is null THEN v_meas_str:=v_meas_stmt_2;
ELSE v_meas_str:=v('P16_PRO_MEASURE');
END IF;
q:='SELECT distinct ul.title, ul.summary, ul.details, ul.less_id
FROM user_lessons ul
WHERE ul.lesst_lesst_id IN ('||v_lesst_str||')
AND ul.meas_meas_id IN ('||v_meas_str||')';
return q;
END;
The error is occurred when I'm trying to compare item with number, for example, v('P16_LESSONS_TYPE')=1 in if condition.
And the errors' text is next:
"#1 error has occurred
Query cannot be parsed within the Builder. If you believe your query is syntactically correct, check the ''generic columns'' checkbox below the region source to proceed without parsing. ORA-00936: missing expression"
Karina. -
Hi there,
I recently had the following situation, where I changed the source of my CSV file in Power Query.
Once I had reloaded the file, it would then not load into Power Pivot. So I disabled the loading from Power Query into Power Pivot. I then enabled the loading to the Data Model. Which then successfully loaded the data into Power Pivot.
But once I went into Power Pivot, had a look, then saved the Excel file. Once saved I closed the Excel file. I then opened the Excel file again and all the sheets that interact with the Power Pivot data work fine.
But if I go and open Power Pivot I get the following error: Unable to load the tables in the Power Pivot Window – An Item with the Same Key has already been added.
This is what I get from the Call Stack
at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
at Microsoft.AnalysisServices.Common.LinguisticModeling.SynonymModel.AddSynonymCollection(DataModelingColumn column, SynonymCollection synonyms)
at Microsoft.AnalysisServices.Common.LinguisticModeling.LinguisticSchemaLoader.DeserializeSynonymModelFromSchema()
at Microsoft.AnalysisServices.Common.SandboxEditor.LoadLinguisticDesignerState()
at Microsoft.AnalysisServices.Common.SandboxEditor.set_Sandbox(DataModelingSandbox value)
at Microsoft.AnalysisServices.XLHost.Modeler.ClientWindow.RefreshClientWindow(String tableName)
I would assume that the issue is with the synonyms and for some reason, when I disabled the loading of my data into the Power Pivot Model, it did not remove the associations to the actual table and synonyms.
If I renamed the table in Power Pivot it all works fine. So that was my work around. Fortunately I did have a copy of the Excel workbook before I made this change. So I could then go and add back in all the relevant data to my table.
Has anyone had this before and know how to fix it?
http://www.bidn.com/blogs/guavaqHi there
I can share the work book, if possible to send me an email address. As the workbook size is about 9Mb.
Thanks
Gilbert
http://www.bidn.com/blogs/guavaq -
Clearing between customer and vendor invoice with F110 transaction
Hello,
I have an issue related to the functionalities of the transaction F110.
I'd like to clear the vendor invoice with the custome invoice.
Customer and vendor records are linked properly and the flag 'Clrg with Cust.' is set on vendor and 'Clearing with Vendor' is set on customer.
Both the invoice are in USD and the amount in document currency of the vendor invoice is > of the amount in document currency of the customer invoice.
I entered in both the invoice the same payment method (outgoing payment method).
The error that I can see in the proposal log is related to the customer invoice and is:
Payment method selection for items due now to the amount of USD 500,00
Due items with currency USD, pmnt method - items total is > 0
..none of the payment methods defined can be used for these items
information re. vendor xxxxxxxx / customer yyyyyyy / paying company code TS01 ...
.. payment not possible because of reported error
According to the log of the proposal the vendor invoice can be paid.
If I click on display proposal and double click on the customer invoice (with red light) I can read the note:
No pymt possible because items with a debit
Following the settings of the payment method used:
Payment method in the country
- Payment method for outgoing payment selected
- Bank transf. selected
- allowed for personal payment flagged
- Bank details flagged
- Document type for payment XX
- clearing document type XX
- Use classic payment medium program selected
Currency allowed: This table is empty (will mean that all currencies are permitted)
Payment method in company code
Minimum amount: 0,01
Maximum amount: 9.999.999.999,99
Distribution amnt: 0,00
Single paymentfor marked item selected
Foreign business partner allowed selected
foreign currency allowed selected
Cust/vend bank abroad allowed? selected
Bank selection control "No optimization" selected
Can you please help me to understand the error?
I'm afraid it is a problem with the bank but I don't understand why the payment of the vendor invoice is allowed and the customer invoice not.
Thank you very much in advance
Kind RHello,
I have an issue related to the functionalities of the transaction F110.
I'd like to clear the vendor invoice with the custome invoice.
Customer and vendor records are linked properly and the flag 'Clrg with Cust.' is set on vendor and 'Clearing with Vendor' is set on customer.
Both the invoice are in USD and the amount in document currency of the vendor invoice is > of the amount in document currency of the customer invoice.
I entered in both the invoices the same payment method (outgoing payment method).
The error that I can see in the proposal log is related to the customer invoice and is:
Payment method selection for items due now to the amount of USD 500,00
Due items with currency USD, pmnt method - items total is > 0
..none of the payment methods defined can be used for these items
information re. vendor xxxxxxxx / customer yyyyyyy / paying company code TS01 ...
.. payment not possible because of reported error
According to the log of the proposal the vendor invoice can be paid.
If I click on display proposal and double click on the customer invoice (with red light) I can read the note:
No pymt possible because items with a debit bal.still exist; see job log
Following the settings of the payment method used:
Payment method in the country
- Payment method for outgoing payment selected
- Bank transf. selected
- allowed for personal payment flagged
- Bank details flagged
- Document type for payment XX
- clearing document type XX
- Use classic payment medium program selected
Currency allowed: This table is empty (will mean that all currencies are permitted)
Payment method in company codeMinimum amount: 0,01
Maximum amount: 9.999.999.999,99
Distribution amnt: 0,00
Single paymentfor marked item selected
Foreign business partner allowed selected
foreign currency allowed selected
Cust/vend bank abroad allowed? selected
Bank selection control "No optimization" selected
Can you please help me to understand the error?
I'm afraid it is a problem with the bank but I don't understand why the payment of the vendor invoice is allowed and the customer invoice not.
Thank you very much in advance
Kind Regards
Emanuela
Maybe you are looking for
-
Unable to get Blue Tooth working on X60 Model 6363 - tried everything
1. FN+F5 only shows WWAN, no Blue Tooth transmitter shown (slider switch is ON, latest driver installed) 2. No Blue Tooth device shown under Device Manager 3. Blue Tooth service is running Windows Vista, latest Bios, latest drivers. I know it's somet
-
How to present a youtube video in a meeting?
How to present a youtube vidoe in a adobe connect meeting?
-
Outlook keep propmt for login username & password although have entered correctly
Need assistance on MS Exchange 2000 & MS Outlook 2007. For your information, one of our users facing issue in connecting MS Outlook 2007 to MS Exchange Server 2000, whereby the system keep requesting login password although user have entered login us
-
Disk Utility - FIX PERMISSIONS
When i try and fix permissions it just hangs saying it will be done in one minute....I tried it at the apple store on their macs and had the same problem on multiple machines...Any thoughts on what the deal is here?
-
IMAGE LOADING DELAY - HOW SOLVE?
Safari allows check box to display images on loading a page or turn them off. However, unlike IE, there's no menu selection to 'load images' once at the page. Is there a solution I've missed? Example: OtherWorldComputing.com has many images. IE will