Query for getting Outtanding Production Order items
Dear Experts,
With a query, please advice how I can get a list of outstanding Production Order items?
Much Thanks in Advance for your advice.
Warmest Regards,
Chinho
Production Reports --->Open Item List --.> Production Orders
Similar Messages
-
Query for Alert on production order to be released
Dear all users and experts,
I need a query for getting an alert on production orders to be released (from planned status to release status) by whether reading the release date of production orders created from 'order recommendation window' or by reading the due date of production order and substract the lead time(days) of the item from its due date or by any means you know best.
Thanks and best regards,
Farhan SufiHi Gordon and Joseph,
Thanks to both of you for giving me queries.
Gordon, I made 3 production orders for testing from MRP order recommendation window from which 2 production orders has release date of today 9th July, 2010 (due date 12th July monday) and the 3rd one has release date of after weekend i.e. 12th July 2010 (due date is 13th July). release dates are calculated by MRP acording to the items' lead time and due date.
Gordon, when I applied your query It gave me msg 'no data was found as a result of this selection criteria' Can you explain what your query will give me in result?
where as Joseph, when I applied your query on alert, it gave me all 3 production orders as an alert to be released. I was expecting it will give me alert for 2 production order for today as their release date in MRP is today(9th July, 2010) and the alert for 3rd production order should come on 12th July and not today.
what I understood your query is displaying all production orders which have status 'planned' regardless of their release date.is it?
Joseph can you edit this query in such a way that It should consider the release date (calculated from due date and lead time in MRP order recommendation window) and display only those production orders which should be released today and exclude those which have release date in future. so that I can get alert for only those production orders which should be released today.
I hope good response from both of you
Thanks and best regards,
Farhan -
SP for Validating BOM & Production Order item wise
Dear Experts,
Here I am validating the Production order items with BOM for the same items, any addition or deletion in production order should not be allowed. Hence the production order should consist of same items what it has in BOM. But below the my query is allowing this scenario. Kindly help me to achieve the same..
Query Follows :
@object_type = '202' and @transaction_type in ('A','U')
if exists (SELECT distinct 'error'
FROM OITT A INNER JOIN ITT1 B ON A.Code = B.Father
LEFT JOIN OWOR C ON C.ItemCode = A.Code
LEFT JOIN WOR1 D ON D.DocEntry = C.DocEntry
LEFT JOIN OITM E ON E.ItemCode = B.Code AND D.ItemCode = B.Code
Where c.DocEntry = @list_of_cols_val_tab_del and d.ItemCode not in (select b.Code from ITT1 b))
Begin
Select @error = N'13002'
select @error_message = N'BOM Mismatch'
END
Thanks,
Bhoopathi.KHi,
Try this:
IF @transaction_type IN ('A', 'U')AND @object_type in ('202')
BEGIN
If exists (SELECT T0.DocEntry FROM owor T0
inner join itt1 t2 on t2.father = T0.Itemcode
where t0.DocEntry =@list_of_cols_val_tab_del AND t2.code not in (SELECT T1.itemcode FROM wor1 t1 where t0.docentry = t1.docentry))
Begin
SET @error = '202'
SET @error_message = N'order can not be added if not match with BOM.'
End
END
Thanks & Regards,
Nagarajan -
Query for Exploding all production orders needed to fulfil a sales order
I am trying to write a query that explodes all the multiple levels BOMS and brings back a list of production orders that would need to be raised to fulfil a particular sales order.
SELECT T0.[DocNum], T0.[CardCode], T0.[CardName], T1.[ItemCode], T1.[Dscription], T1.[Quantity], T2.[TreeType] FROM ORDR T0 INNER JOIN RDR1 T1 ON T0.DocEntry = T1.DocEntry INNER JOIN OITM T2 ON T1.ItemCode = T2.ItemCode WHERE T0.[DocNum] = [%0] AND T2.[TreeType] = (N'P')
This is what i have at the moment, this only goes down one level, i cant think how i might drill down to lower levels. Any ideas?
ThanksIt will be a tough query to build.
Check this for just adding one level:
SELECT T0.DocNum, T0.CardCode, T0.CardName, T1.ItemCode, T1.Dscription, T1.Quantity
FROM ORDR T0
INNER JOIN RDR1 T1 ON T0.DocEntry = T1.DocEntry
WHERE T0.DocNum = [%0\] AND T1.ItemCode IN (SELECT Code From OITT)
UNION ALL
SELECT T0.DocNum, T0.CardCode, T0.CardName, T3.Code, T4.ItemName, T1.Quantity*T3.Quantity
FROM ORDR T0
INNER JOIN RDR1 T1 ON T0.DocEntry = T1.DocEntry
INNER JOIN OITT T2 ON T1.ItemCode = T2.Code
INNER JOIN ITT1 T3 ON T2.Code = T3.Father AND T3.Code IN (SELECT CODE FROM OITT)
INNER JOIN OITM T4 ON T3.Code = T4.ItemCode
WHERE T0.DocNum = [%0\]
Thanks,
Gordon -
Sales order for a make to order item
HI
when i create a sales order in crm for a make to order item. its not creating any requirements.
like for a make to order item will have a BOM and routing attached to it. it creates a production order or a purchase requisition. but its not happening
a sales order is getting created in ECC. but its not creating any requirements.
so no planned order ( production order) or purchase requisition is getting created. even after running MRP.
but when i create any thing in ECC everything is working fine.Hi,
There is a difference in the ECC sale sorder and CRM sales order in ECC sales order when you sale a product then all the parts of the product and billed and for this they create a purchace order and maitain route of the material and transpotation point all the things but in CRM we dont maintain these thing so product does have parts in it self it is one type of dummy product in showroom thata have only price so when we create a sales order in CRM then we dont maintain the BOM of that product,.
Regards,
Sid -
BAPI_SALESORDER_CHANGE to update reason for rejection of sales order item
Hi,
The FM BAPI_SALESORDER_CHANGE is not working properly as I am getting below error when try to update the reason for rejection at sales order item level.
The delivery is done for this salesorder. Is it because the reason for rejection field is not as an input field when delivery done?
error in return table is " Field 'ABGRU' cannot be changed, VBAPKOM 000010 ready for input"
Request your suggestions to avoid this error.
Thanks>
anikaushi wrote:
> Hi,
> The delivery is done for this salesorder. Is it because the reason for rejection field is not as an input field when delivery done?
>
> error in return table is " Field 'ABGRU' cannot be changed, VBAPKOM 000010 ready for input"
>
>
> Thanks
Yes, Most likely.. You can confirm this by trying to change a order without delivery and see if it goes thru (to ensure that you have passed correct parameters)...
you may have to delete the delivery (and if billing document exist, cancel it), before you can reject the line item... it would be safer to raise an error message and let the users manually delete delivery document as long as you don't have large volumes of this scenario..
Please see the SDN thread for how you can avoid this error...
Re: Cancel Sale Order after Issued Billing -
How to get open production orders by plant wise
Hi,
How to get open production orders by plant wise.
i know from tcode COOIS, is it possible to get from this. if so what are the parameters we have to give to get open production orders by plant wise.
is there any tcode or tables available , please provide details .
regards,
Hari priyaHi,
What is your definition of Open Production Orders?
Definetly you will get the report from COOIS for Plant wise.
Whther you want to consider all the Orders having the Status REL but not DLV?
Then there is a chance of having the Orders, still with PDLV status but GR is done for the full Qty. May be you don't want to consider the TECO status, eventhough the Order is short closed??
Better to ommit the Orders with CRTD status also..
So, based on this which status to consider and which status not to consider..
You can define the "Selection profile status" in BS42.
Use this selection profile in COOIS, so that the rsults will be accurate..
Best Regards,
Siva -
BAPI/FM for Confirmation of Production order at operation level
Hi ABAPers,
I am using the 'BAPI_PRODORDCONF_CREATE_ACT'for Confirmation of Production order at operation level.
I am able to pass the Production order number and Active Operation get the confirmation done.
But the Confirmed Qty is not being updating in AFKO table.
The 'BAPI_PRODORDCONF_CREATE_HDR' cannot be used for Confirmation of Production order at operation level as there is no Operation/Activity(Vornr) field in the input table. Hence using this bapi confirmation of Prod order can be only at Order level.
Can someone know any FM/BAPI which can be used for the Confirmation of Production order at operation level(not order level).
Thanks in Advance
Ramesh Babu CikkaHi Ramesh,
Please use FUNCTION 'BAPI_PRODORDCONF_CREATE_TT'.
This will work as like as T/Code "CO11".
I hope this will help you.
Example :
CALL FUNCTION 'BAPI_PRODORDCONF_CREATE_TT'
EXPORTING
POST_WRONG_ENTRIES = '0'
TESTRUN = ' '
IMPORTING
RETURN = ZRETURN
TABLES
TIMETICKETS = ZBAPI_PP_TIMETICKET
DETAIL_RETURN = ZBAPI_CORU_RETURN.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
WAIT = 'W'.
Lanka -
Query to get the particular order in dyn admin.
Query to get the particular order in dyn admin.
In dyn/admin, goto /atg/commerce/order/OrderRepository
do the following query under "Run XML Operation Tags on the Repository"
<print-item item-descriptor="order" id="<your order id>" />
hit enter.
This should display your order's information.
~Gurvinder -
Committed Date For Components in Production Order
Dear All,
I m facing this, Committed Date For Components in Production Order,
the date appeared as 31.12.9999,
How can i make this correct.
please tell me..
Thanks
RaghuHi, Thnkx,
You Are correct, I got this while doing Availability Check, 2 dates.
Requirement Date, and Committed Date.
I tried your solution,
I change the Quantity of one of my BOM , I tried to change the Quantity by Change Number,
So in CS 03 I can see the Validity of that component up to 01-09-2010,
I run MRP agian, new planned Order, tried to convert, the question is same.
I still get the date as 31-12-9999.
Thanks
Regards
Raghu -
FM for creation of production order creation
Hi All,
Can anyone tell me the BAPI for the production order creation.
BAPI for creation of production order through CO01 transaction code.
Thanks in advance
Ramesh.Hi,
Please check this FM CO_ZF_PRODUCTIONORDER_CREATE.
Regards,
Ferry Lianto -
Query for getting records max reported timestamp and 2nd max report
query for getting records in between
max reported timestamp and 2nd max reported timestamp
HERE IS ALL RESULT SET
TIME DOMAIN
30:jun:2006:20:08:45 TOMCAT
30:jun:2006:20:08:45 TOMCAT
30:jun:2006:20:07:04 TOMCAT
30:jun:2006:20:07:04 TOMCAT
30:jun:2006:20:07:24 TOMCAT
30:jun:2006:20:07:24 TOMCAT
30:jun:2006:20:07:45 TOMCAT
30:jun:2006:20:07:45 TOMCAT
30:jun:2006:20:08:05 TOMCAT
30:jun:2006:20:07:04 TOMCAT
30:jun:2006:20:08:05 TOMCAT
PD_REPORTED_TIMESTAM PD_USER
30:jun:2006:20:08:25 TOMCAT
30:jun:2006:20:08:25 TOMCAT
30:jun:2006:20:08:45 TOMCAT
30:jun:2006:20:08:45 TOMCAT
30:jun:2006:20:07:24 TOMCAT
30:jun:2006:20:07:04 TOMCAT
30:jun:2006:20:07:24 TOMCAT
30:jun:2006:20:07:45 TOMCAT
30:jun:2006:20:07:45 TOMCAT
30:jun:2006:20:08:05 TOMCAT
30:jun:2006:20:08:05 TOMCAT
PD_REPORTED_TIMESTAM PD_USER
30:jun:2006:20:08:25 TOMCAT
30:jun:2006:20:08:25 TOMCAT
QUERY RESULT TO COME
TIME DOMAIN
TOMCAT 30:jun:2006:20:08:45
TOMCAT 30:jun:2006:20:08:45
TOMCAT 30:jun:2006:20:08:45
TOMCAT 30:jun:2006:20:08:45
Message was edited by:
user517983Hi,
can we write query like this.
1 select pd_user,PD_REPORTED_TIMESTAMP
2 from sp_process_detail_current spdc
3 where host_id='DSCP02469'and pd_user='TOMCAT'
4 and exists(
5 select PD_REPORTED_TIMESTAMP from sp_process_detail_current
6* having max(PD_REPORTED_TIMESTAMP)-spdc.PD_REPORTED_TIMESTAMP=0)
SQL> /
PD_USER PD_REPORTED_TIMESTAM
TOMCAT 30:jun:2006:20:08:45
TOMCAT 30:jun:2006:20:08:45
TOMCAT 30:jun:2006:20:08:45
TOMCAT 30:jun:2006:20:08:45 -
Query for getting all function and procedure inside the packages
hi All
Please provide me Query for getting all function and procedure inside the packages
thanksAs Todd said, you can use user_arguments data dictionary or you can join user_objects and user_procedures like below to get the name of the packaged function and procedure names.
If you are looking for the packaged procedures and functions source then use user_source data dictionary
select a.object_name,a.procedure_name from user_procedures a,
user_objects b
where a.object_name is not null
and a.procedure_name is not null
and b.object_type='PACKAGE'
and a.object_name=b.object_name -
Worklfow for GR of Production order.
HI .... is there any standard worflow template for GR of production order using MB31.
Thanks in advance.Hi ,
Please check this SAP provide WF: WS20000387.
You can copy and make changes as per your requirement.
Thanks and Regards,
Swaminathan -
Some one please provide query for getting REMIT TO ADDRESS details by using the column RA_CUSTOMER_TRX_ALL.REMIT_TO_ADDRESS_ID
try
select ct.remit_to_address_id,
raa_remit_ps.party_site_number,
raa_remit_loc.state,
ft_remit.territory_short_name,
ct.*
from ra_customer_trx_all ct,
hz_cust_acct_sites_all raa_remit,
hz_party_sites raa_remit_ps,
hz_locations raa_remit_loc,
fnd_territories_vl ft_remit
where 1 = 1
and ct.remit_to_address_id = raa_remit.cust_acct_site_id(+)
and raa_remit.party_site_id = raa_remit_ps.party_site_id(+)
and raa_remit_loc.location_id(+) = raa_remit_ps.location_id
and raa_remit_loc.country = ft_remit.territory_code(+)
Maybe you are looking for
-
Trying to add a listener to a JComboBox in a JTable
Hi all. I have a little problem which I can't resolve. I made a program in which I create a table using a class which extends JTable (but this isn't the point with the problem, I think. It's only for rendering purposes) In this table I put various ty
-
Having Issues Keeping My Footage from matching the Sequence
Hi Everyone, I have a weird question. I am trying to bring my 1920x1080 footage into a 1080x1440 custom sequence. Premiere keeps preserving my footage at 100% but is scaling the footage down to fit the 1080 width. I want the wrong aspect ratio and I
-
Oracle Service Bus -- Business service access to a HTTPS service
Hello, One of the services OSB has to access runs HTTPS (SSL no authentication). I can access the service test page from the browser as https://server:port/myservice From OSB I need to configure the Business Service to access this service. Which step
-
ERROR - AutoCreate Configuration Items
Hello, I am getting the following error which the AutoCreate Configuration Items request set is executed for all sale orders, however when it is run for individual sale orders, it completes without any errors. BMCCCI:100:ORA-20002: 3133: Activity ins
-
Preview is destroying my black and white photos!
I just love Preview App for quick rotating my pictures after scanning from film. But that love disappeared after Maverick update. I think I know what's happening but don't know how to avoid it. Preview is assigning a BW profile during saving that mak