Check Lock on production order
Hi,
before lauching the BAPI to confirm a production order in Z program, l want to check first if a lock exist on that same production order. How can l find the FM that does the job?
Thank's for your help.
Bob
Hi Bob,
In the transaction SM12 you can see all current SAP locks, they can be selected using object or user name. If you want to get that list in your ABAP, the function ENQUEUE_READ will return you a list of object locks for specific objects (that can be specified with a pattern). The function can be useful if you want to process some object without locking it, for example, with a BAPI or BDC, and you want to check whether you may do this at the moment. If the object is currently locked by another user, you can read the lock and decide what to do: wait, or just report an error.
Regards
Sudheer
Similar Messages
-
How to track/check on which production orders are not confirmed yet?
Dear Experts,
Is there any transaction or processes to check,only those production orders which are not confirmed yet?
Besides the transaction code, I would kindly like to request you to provide me a small overview of it. Your support will be really appreciated.
Thank you in advance!
wishes,
jeevanHi,
Please refer the below screen for COOIS report. Please check on Sys status as CNF Excl. It will show you all the orders which is not with CNF.
COOIS/COOISPI (For process industries) is very useful report where you can see entire details of orders. You can see report both on planned order and production/process order. As well the report can be seen in several level like header, component, operations etc..
Different layout for display is also possible for different users.
Please try it by different options. You will find the functionality of the Transaction.
Regards,
Krishnendu. -
Lock the production order creating without material for order type zp01
Hi all,
Good morning.My client wants to lock the production order creating without material for order type zp01.He does not want to create production order without material.Its very urgent.Please guide me the settings if any.
Thanks and Regards
SukumarHi Sukumar,
You can do by applying user exit.
Use PPCO0007 - Exit when saving production order.
Function module - EXIT_SAPLCOZV_001.
Include Program - ZXCO1U06
Write your Code:
*& Include ZXCO1U06
Regards,
Sankaran -
Automatic Locking of Production Order on release
Dear Experts,
When the production order is released, the order should be "Locked" automatically. When changes are required, the production order is unlocked manually and changes are done. This is our requirement.
Is it possible to lock the order on release.
If yes what are the settings?
Regards,
JejeshHi,
Go to T.code BS02.
- Create new Status Profile , if required do it by copy any standard one.
- Then go to Detail screen.
- Assign order status.For your reference I have used 2 order status.
- CRTD - Created.Set this one as Initial one.
- LOCK - Release and Locked.
- Now assign Object type to this status Profile.You have to select PP/PM Order Header.
- Now double click on Status CRTD and press New Entry tab to find and set allowed Transection.Here you have to select and restrict transaction types this status.
- Now go to Status LOCK and double click.Then press New Entry tab.You will find the list of transactions.
First select Transaction Release and make it as allowed and also activate radio button for Set.It will activate the status LOCK automatically after release of order.
- Now make forbidden of all other transactions like change of order,Confirmations etc. as per your suitability.
- You can assign any other user status also for further transaction control.
- Then save your status profile.
- Now assign this Status Profile to Order type using T.code OPJH.
Regards,
Dhaval -
Make to order availability check scenario with production order
We have a make-to order scenario where we build custom products for our customers.
In SAP, we specify a strategy group so a production order is automatically generated when an sales order item is entered. However, we sometimes create a small amount of stock, in anticipation of an order. I would like the system to first check available stock in the system, beofre proposing a production order.
Is something like thi spossible thru configuration of the strategy group, or perhaps another method?
Regards
KenHi,
In SPRO->Sales and Distribution->Basic Functions->Availability Check and Transfer of Requirements->Availability Check->Availability Check with ATP Logic or Against Planning->Carry Out Control For Availability Check
Select the Availability check and the Checking rule combination of intrest and if you select the details,here you define that stocks that are to be considered during availability check. -
Availibility check issue in Production Order
Hi Every one ,
One of the user has issue while operating the production order for Material "A". He gets a pop up , "Error during the availibility check for order . Material A is of Material Type HALB.
On checking the Log , we have description
1. "Maintain availibilty check for the material "X" in material master, (Order AERREB)
2. All checked materials are available (look in log)
The status for the Order is "CLSD PRC RELR SETC"
I wish to add Material "X" is a Material type ZDOC ( configured by company ) . ZDOC are reference materials which are not shipped with products . These materials are not main materials and are not valuated.
When I check the material "X" to study the availibility check in material master. I do not see MRP view.
How do I sort this out . Can anyone kindly suggest a solution? Many thanks in advance .
Kind Regards
Ayaz A Khan
Edited by: Ayaz Alam Khan on Sep 1, 2010 1:04 AM
Edited by: Ayaz Alam Khan on Sep 1, 2010 2:07 AMHi,
Pls check sales views for Availability check for the material master of X -
Auto Material & Capacity Availability check when releasing Production Order
Dear Experts,
Is there any configuration in Production Planning that will automatically check material availability and capacity availability automatically when a Production Order is released?
Meaning to say, users will not need to manually click on the Check Material Availability and Check Capacity Availability button.
Please advise.
Thanks in advance.Hi,
I've solved the problem. Just maintain the config in transaction OPJK.
Thanks -
How to check the Production order exits
Hi Experts
Modification to processing of Command Orders & Tickets
We require a modification to the processing being performed on sales data originating from the Command Concrete system and potentially from other systems yet to come online (e.g. Pinkenba Cement plant).
The Sap process involved is ZINT_INBOUND_POLLING and within that, ZINT_CSTPORD_ROUTINES.
The problem
Currently there is an assumption that every sales order (and its deliveries) will include a product which is made to order, i.e. for which a production order will be required.
In ZINT_CSTPORD_ROUTINES, a check is made to identify the production order linked to the sales order. If there is no such production order (usually because of the customeru2019s credit status) then processing of the ticket is terminated.
This assumption would fall down if an order was to be raised (in Command) on which there is no concrete material. For example, if we sold a bag of pigment or a screed to a customer. In this case the item would be sold from stock and there would be no need for a production order.
The solution
In the routine which checks for the existence of a production order, modify the code as follows:
Inspect each item on the sales order
If (and only if) there is at least one item with a category of u201CZTACu201D then check for a production order, otherwise process the order in the usual manner.
---- ZINT_CSTPORD_ROUTINES -
*& Form process_inbound_data
Create prod. orders from ticket data extracted from the COMMAND
system. Note that large portions of the code in this routine
have been copied from the retired ZPPU_COMMAND_PRODUCTION
interface program. This was done (1) because the old code works
and (2) to save development time.
-->T_ZINT_IDATA Internal table of interface data
-->T_ZINT_PARAM Internal table of interface parameters
-->T_ZINT_MSLOG Internal table of messages
-->P_ZINT_ID Interface ID
-->P_ZINT_TY Inteface type
-->P_ZINT_IS IDOC group for interface
-->P_ZINT_DL Flag: delete IDOC group when complete
-->P_ZINT_AL Flag: run in standalone mode
-->P_ZINT_NW Flag: do not log warning messages
-->P_ZINT_SQ Interface sequence number
<--P_ZINT_RC Return code (<>0=>error)
form process_inbound_data tables t_zint_idata structure zint_idata
t_zint_param structure zint_param
t_zint_mslog structure zint_mslog
using p_zint_id type zint_id
p_zint_ty type zint_ty
p_zint_is type zint_is
p_zint_dl type zint_dl
p_zint_al type zint_al
p_zint_nw type zint_nw
p_zint_sq type zint_sq
changing p_zint_rc type zint_rc.
program is continuing .............
I WANT TO WRITE A CODING HERE **********************
CHECK IF PRODUCTION ORDER REQUIRED
IF NOT THEN GO TO PERFORM UPDATE DATA
if production order required then check
for each item on sales order item list
with item category = 'ZTAC' then
return true
next
end function
if there is no production code
these has to be check from VBAP TABLE field VBELN and PSTYV (ZTAC,ZTAN Etc)
select * from Vbap WHERE VBELN = '00000269951' and VBAP.PSTYV = 'ZTAC','ZTAN' Etc
No production order?
elseif lva_prodord is initial.
clear v_messg.
call function 'CONVERSION_EXIT_ALPHA_OUTPUT'
exporting
input = lva_filemat
importing
output = lva_filemat.
No production order found - log a warning message.
concatenate 'Production Order not be found for'
'Command order' lva_cmdord
'Material' lva_filemat
'Customer' lwa_02-customer
into v_messg separated by space.
perform write_log_entry
tables t_zint_mslog
using 'E' 'ZINT_CSTPORD_ROUTINES'
'FIND_SAP_PRODORD'
v_messg
p_zint_nw
lwa_01-ticketnumber. " RJS
continue.
endif.
Production Order WAS found... Continue creating IDOCS
lwa_hdrlevel-postg_date = lwa_01-ticketdate.
Obtain the storage location parameter value.
read table t_zint_param with key zint_fn = 'LGORT'.
if sy-subrc ne c_noerr.
perform write_log_entry
tables t_zint_mslog
using 'E' 'ZINT_CSTPORD_ROUTINES'
'PROCESS_INBOUND_DATA'
'Parameter LGORT is missing from ZINT_PARAM'
p_zint_nw
lwa_01-ticketnumber. " RJS
exit.
endif.
loop at l_it_05 into lwa_05
where ticketnumber = lwa_01-ticketnumber.
clear lwa_gm_item_create.
lva_filemat = lwa_05-material.
if lva_filemat eq lva_prodmat.
concatenate 'Command ticket-' lwa_05-ticketnumber
into lwa_hdrlevel-conf_text.
lwa_hdrlevel-conf_quan_unit = lwa_05-unitofmeasure.
lwa_hdrlevel-yield = lwa_05-quantity.
check whether the confirmed value + current delivery value is equal *
the production order qty. If the production order value is less
than the total delivered value, set final conf indicator and clear
reservations
lva_wemng = lva_wemng + lwa_05-quantity.
if lva_wemng < lva_psmng.
lwa_hdrlevel-clear_res = c_false.
lwa_hdrlevel-fin_conf = ' '.
else.
lwa_hdrlevel-clear_res = c_true.
lwa_hdrlevel-fin_conf = 'X'.
endif.
move: 'Z1BP_PP_HDRLEVEL' to t_idoc_data-segnam,
lwa_hdrlevel to t_idoc_data-sdata.
append t_idoc_data.
clear lva_formmat.
lva_formmat = lwa_05-material.
lwa_gm_item_create-material = lva_formmat.
lwa_gm_item_create-plant = lwa_03-plant.
lwa_gm_item_create-ref_date = lwa_01-ticketdate.
lwa_gm_item_create-prod_date = lwa_01-ticketdate.
lwa_gm_item_create-move_type = '101'.
lwa_gm_item_create-spec_stock = 'E'.
lwa_gm_item_create-sales_ord = lva_saleord.
lwa_gm_item_create-entry_qnt = lwa_05-quantity.
lwa_gm_item_create-entry_uom = lwa_05-unitofmeasure.
lwa_gm_item_create-orderid = lva_prodord.
lwa_gm_item_create-move_mat = lva_formmat.
lwa_gm_item_create-move_plant = lwa_03-plant.
lwa_gm_item_create-mvt_ind = 'F'.
clear t_idoc_data.
move: 'E1BP2017_GM_ITEM_CREATE' to t_idoc_data-segnam,
lwa_gm_item_create to t_idoc_data-sdata.
append t_idoc_data.
else.
clear: lva_loggr,
lva_formmat.
lva_formmat = lwa_05-material.
select single loggr into lva_loggr from marc
where matnr = lva_formmat
and werks = lwa_03-plant.
if sy-subrc ne 0.
clear v_messg.
No logistics handling group - log a warning message.
concatenate 'No logistics handling group for material'
lva_formmat
'in plant'
lwa_03-plant
into v_messg separated by space.
perform write_log_entry
tables t_ldata
using 'W' 'ZINT_CSTPORD_ROUTINES'
'PROCESS_INBOUND_DATA'
v_messg
p_zint_nw
lwa_01-ticketnumber. " RJS
clear lva_loggr.
endif.
if lwa_03-satsur eq 'T'.
lwa_e1edl21-lprio = 30.
else.
lwa_e1edl21-lprio = 20.
endif.
else.
if lwa_03-satsur eq 'T'.
lwa_e1edl21-lprio = 10.
else.
lwa_e1edl21-lprio = ' '.
endif.
endif.
lwa_e1edl21-berot = lwa_04-driver.
move: 'E1EDL21' to t_idoc_data-segnam,
lwa_e1edl21 to t_idoc_data-sdata.
append t_idoc_data.
lwa_e1edl55-qualf = '001'.
lwa_e1edl55-refnr = lva_saleord.
move: 'E1EDL55' to t_idoc_data-segnam,
lwa_e1edl55 to t_idoc_data-sdata.
append t_idoc_data.
Loop at materials - create delivery entry for each
loop at l_it_05 into lwa_05
where ticketnumber = lwa_01-ticketnumber.
clear t_idoc_data.
lwa_e1edl24-matnr = lwa_05-material.
lwa_e1edl24-werks = lwa_03-plant.
lwa_e1edl24-vfdat = lwa_01-ticketdate.
lwa_e1edl24-lfimg = lwa_05-quantity.
lwa_e1edl24-vrkme = lwa_05-unitofmeasure.
lwa_e1edl24-lgort = t_zint_param-zint_fv.
clear lva_loggr.
lva_formmat = lwa_05-material.
clear lva_loggr.
select single loggr into lva_loggr from marc
where matnr = lva_formmat
and werks = lwa_03-plant.
if sy-subrc ne 0.
No logistics handling group - log a warning message.
concatenate 'No logistics handling group for material'
lva_formmat
'in plant'
lwa_03-plant
into v_messg separated by space.
perform write_log_entry
tables t_ldata
using 'W' 'ZINT_CSTPORD_ROUTINES'
'PROCESS_INBOUND_DATA'
v_messg
p_zint_nw
lwa_01-ticketnumber. " RJS
lva_loggr = 'BBIN'.
endif.
if lva_loggr is initial.
move: 'E1EDL24' to t_idoc_data-segnam,
lwa_e1edl24 to t_idoc_data-sdata.
append t_idoc_data.
endif.
endloop.
clear: lva_xabln,
lva_vbeln,
l_vbfa.
Matching ticket against a Delivery?
select single xabln vbeln into (lva_xabln,lva_vbeln) from likp
where xabln = lwa_01-ticketnumber.
if sy-subrc = 0.
If found, does this delivery match the sales order?
select * from vbfa into l_vbfa
where vbelv = lva_saleord
and vbeln = lva_vbeln.
exit.
endselect.
endif.
No matching delivery found, or Matching delivery, but for other Sls Ord
if lva_xabln is initial
or ( lva_vbeln <> space and l_vbfa is initial ).
if not lva_saleord is initial.
perform create_delivery_idocs tables t_zint_mslog
using s_idcgp
lwa_01-ticketnumber
p_zint_nw.
else.
concatenate 'Error finding a Sales Order for ticket "'
lwa_01-ticketnumber
'" reprocess the file AFTER'
' the sales order issues have been fixed'
into lva_outtext.
perform write_log_entry tables t_zint_mslog
using 'E'
'ZINT_CSTPORD_ROUTINES'
'PROCESS_INBOUND_DATA'
lva_outtext
p_zint_nw
lwa_01-ticketnumber. " RJS
endif.
else.
concatenate 'Command Ticket "'
lwa_01-ticketnumber
'" has already been processed into delivery "'
lva_vbeln
into lva_outtext.
perform write_log_entry tables t_zint_mslog
using 'I'
'ZINT_CSTPORD_ROUTINES'
'PROCESS_INBOUND_DATA'
lva_outtext
p_zint_nw
lwa_01-ticketnumber. " RJS
refresh t_idoc_data.
endif.
endif.
refresh t_idoc_data.
Write out all messages collected so far
perform update_data tables t_zint_mslog
using p_zint_id p_zint_ty.
endloop.
Write out all messages collected so far
perform update_data tables t_zint_mslog
using p_zint_id p_zint_ty.
endform. " process_inbound_data
Thnaks
RegardsThanks
Thread closed -
Material Availablity check for production order - function module?
I have a production order with Material BOM, which has more than 30 components in it. Please suggest me if there is any function module to do the material availability check of a production order. I need the missing component list as output of that function module, with quantities if possible.
thanks,
SubbareddyYou might want to look at these FMs:
CO_ZA_AVAILABILITY_CHK_ORDER
ISA_AUC_MATERIAL_AVAILABILITY
Thanks,
Santosh -
Availability check during production order creation - Missing parts details
Hai Gurus,
I have one problem during Availability check when converting Planned order to production order.
1) A- is the finished material, which has A1 to A7 components.
2) A2 is the procured item with safety stock and it has safety stock also.
3) When sale order is created , the material A2 is reserved against the planned order for finished material - A.
4) so when availability is checked during planned order stage , system says no missing parts, when planned order
is converted to production order system says missing parts for component A2, which is stock and reserved against
planned order
5) Checking rule for Production order is maintained as follows,
a) Include safety stock.
b) Include reservation.
c) Include sales requirement
d) Include deliveries.
e) Include dependent reservations.(x)
f) Include production orders.(X)
g) Check release for stock transport orders only.( A)
So now i don't know where I went wrong , so that the system could consider the safety stock of Component A2 which is in stock and already reserved against planned order and it does not show missing parts when planned order is checked.
Waiting for your positive feed back.
Regards,
Sekar chandDear,
What checking rule you have maintained for planned order.???
As what i can understand by your question that you have maintained to check reservation only in production order not in planned order. Or one important thing mostly people configure to reserve material only after release or creation of production order. Are you reserving material at planned order stage.?
Check these things. you will automatically find the answer. Hope it will help you. Revert back for more clarification.
Regards,
Alok Tiwari -
Issue in va02 that relates to Production order
There is an issue in sales order change credit memo issue transaction
va02.
The issue message: You cannot select assembly order for deletion.
When i look into the status of the order it shows the following status.
REL Released
PRT Printed
CNF Confirmed
DLV Delivered
PRC Pre-costed
GMPS Goods movement posted
MACM Article committed
OPGN Operation generated
SETC Settlement rule creat
Can this order be deleted what is the issue.Hi,
Hope you are doing a change of the credit status of the order, for material with assembly processing indicator like strategy type 81 or 82.
by changing the credit status, the system will try to set the deletion indicator to the production order created for the sale order.
If the productuion order is released and sone goods goods movement or activity tposting has already happened, then the system will post this message.
Kindly check the related production order attached for the sale order.
Thanks,
JK -
List of Open Production orders
Hi all,
How to find the list of open production orders. Is there a transaction to find the list of open production orders.
Regards
HemanthHi,
With COOIS you can check the Open Production Orders.
For this you need to create a new Status Profile, in this you need to set the system statuses like below.
Transaction BS42..
Active PCNF, PDLV etc.
Not active CNF, DLV, TECO, DLFL, DLT etc..
Regards,
Siva -
How can I add a new line item for production order?
HI all,
How can I add a new line item for production order through BAPI/FM? Thanks in advance.Hi Mil,
Unfortunetly SAP is not in front of me.
But if possible go to BAPI transaction , check for any production order's bapi for CHANGE purpose. Where you will be able to add your new line.
Reward if useful! -
Error during Overhead cost calculation (Tcode :KGI2) for Production Order
Dear Gurus,
I am facing problem while calculation of Actual overhaed for production orer through tcode KGI2.
Error Desctiption
No account is specified in item 0000000001
Message no. F5670
Diagnosis
No account was specified for account type "S" in item "0000000001" of the FI/CO document.
System Response
The Financial Accounting program cannot process the document.
Procedure
A system error has probably occurred in the application you called up. Check the data transferred to item "0000000001" of the FI/CO document
I am not able to understand where I mistaken.
Pls suggest
Regards,
RupeshHi,
You should check postings to production order vis-a-vis your configurations for overhead calculation to find out what is wrong.
Thanks and regards,
Sanjay -
Production Order - Invalid storage location
Hello,
I have made a production order through mrp for a halb. The issue is that when I try to release the order it gives me a message that "storage location 3603 is invalid for material nthl****". In MM03 -> MRP2 in Issue stor. location the correct value of 3603 is showing. Material availability check on the production order is also ok. Please help.
RegardsDuring Availabiltiy Check it will check the issuing Raw Material/another halb - so no link
You are saying in MMSC that storage Location is extended to 3603- ok no issue
More over in MRP2 view you are saying the "Production Storage Location" with 3603 (here for this it will be behave as Receiving Storage Location) - ok no issue
check in the Production Order "Good Receipt" subscreen GR Storage Location is "3603"
Check whether the 3603 storage location is specific for the Plant to the Material it has extended *
( or is there a confusion with number zero and letter"O")
Prabakaran K
Maybe you are looking for
-
Client Web Review Videos (Flash CS4)
As part of our video production process, we used to encode client review AVI videos in Flash and publish them from Flash. Once published, I would open the published HTML file with notepad and copy and paste the appropriate Flash related code into a t
-
I'm a bit confused on how to accomplish the deletion of child records in a master/detail relationship. I have a master table and a child table. I created a foreign link between the tables. On my detail table, I have a Delete button, which I would lik
-
Hi In iTunes (I use itunes 11), i have 2 tv shows; Black Lagoon & Hellsing. All episodes have all the info, which show they belong to, episode and season number etc. But then i load it into my iphone 6 with ios 8.3, it mixes season 1 of hellsing into
-
Problems with itunes and ipad syncing artwork
Hi there, i am currently running Toshiba Satellite C50D windows 8.1 with itunes 11.3.0.54. last week i downloaded 6 new songs, edited their file details through itunes and suscessfully synced them to my ipad 3 128gb iOS 7.1.1. saturday night i downlo
-
Have to share something really wired that happened to me at a trade show. Was trying to write an email on my iPad and everytime I was pressing any key, a bunch of other words were printed as well. Also if I was trying to open an app, another one was