Production order create with BAPI in R/3
hi,
we want to create a production order with a simple programm: the user put's in the material number the
quantity and the finish date - and then a production order
should be created, saved and printed in one step.
does anybody know the right BAPI (BAPI'S) for this action?
thanks
There isn't one according to the BAP explorer (txn BAPI). I'm on version 4.7 and can't see one.
There only seem to be some for Production Order confirmations.
Cheers
Colin.
Similar Messages
-
Production order confirmation with BAPI
Dear PP friends,
I want to create a program to confirm production orders in mass at header level like CO15. To do it I am trying to use BAPI_PRODORDCONF_CREATE_HDR and it works fine for planned backflush.
However, I am not able to change data of goods movement (quantity, warehouse and batch). Is it possible?
What is the function of GOODSMOVEMENTS table?
I studied the following thread but I could not solve it.
Production Order Confirmation BAPI
Does anyone have suggestions?
Thanks in advance.
MarcosHi Caetano,
Thanks for your reply.
I tested BAPI_PRODORDCONF_GET_HDR_PROP and it proposes goods movements according with open quantity of the production order. In this case, would I have to adjust all movements with actual quantity?
Is possible to propose goods movements according with confirmed quantity?
Regards,
Marcos -
Problem in lock Sales order create with BAPI BAPI_SALESORDER_CREATEFROMDAT2
Hi All,
i have the z program to create the sales order with reff quotation in SD With BAPI BAPI_SALESORDER_CREATEFROMDAT2.
this program will excute every 30 mins .
Problem: Some times if i excute the program in background it is taking morethan 30mins so second batch excution also gets starting to create the sales order for same quotation then it is creating 2 sales orders at atime with 1 quotation.
here i am getting duplicate sales orders so i want to lock the creation of duplicate sales order.Some solutions
- Just lock (ENQUEUE) any object at the start of the job(*), if not locked, you can exit or wait in a loop, will be released at end of job (use a _SCOPE '3' so commit work wont release the lock)
-> This will insure the job runs only once at a time
- Lock the quotation before calling the BAPI, will be released by the COMMIT_WORK (from where do you fetch the quotation, if it is a customer Z_table, you can use the lock object that you have surely created ?) (use a _scope '2')
-> This will insure that at most one job will convert a quotation (i suppose you set a "done" flag or status in the quotation record)
Read [SAP Locks |http://help.sap.com/abapdocu_70/en/ABENSAP_LOCK.htm] if you are not familiar with the concept of lock in SAP.
Regards,
Raymond
(*) E_TABLEE for table, E_TRDIR for program, anything not required by another process -
RFC Sales order create production order create
Hi all,
I use BAPI_SALESORDER_CREATEFROMDAT2 to create sales order with
- schedule lines
- configurable items.
Before, I call BAPI_SALESORDER_SIMULATE in order to anticipate material availability and fill scheduling accordingly.
The problem is that the system is configured so that a sales order creation causes a production order.
With manuel creation in VA01 (corresponding to my BAPI call), many popups appear warning us about capacity production problems and I'm prompted to validate calculated possible production dates.
In BAPI call mode, no messages appear and if production capacity is not sufficient for my production request, production order is created but with the MCAP status (Missing capacity)
Is a solution exist to anticipate these problems of production capacity before sales order creation to integrate it in BAPI schedule parameters ?
Thanks a lot.Hi,
It sounds like you may want to first call BAPI_SALESORDER_SIMULATE. The documentation for this BAPI (in 4.6C) states:
<i>"This method has the same interface definition as the BAPI_SALESORDER_CREATEFROMDAT1 function but differs from it in that here the sales order is not updated. Here you can determine availability and pricing. This data is displayed in the ORDER_ITEMS_OUT table.
For 46A, the following enhancements have been made:
New output tables:
ORDER_SCHEDULE_IN Schedule line data input
ORDER_CCARD_EX Credit card data output
ORDER_SCHEDULE_EX Schedule line data output
ORDER_CONDITION_EX Conditions output
MESSAGETABLE Warning table (XVBFS)
Sales area determination
Order entry with ship-to party
</i>
This may give you an idea of the errors you might need to anticipate prior to calling BAPI_SALESORDER_CREATEFROMDAT2.
Best Regards,
James Gaddis -
How to find out the list of Production orders created for sales orders
Dear All,
Our company wants to generate a report for a List of Materials sold out in a particular Product Hierarchy. Along with that we want to know the list of Production orders created for the sales orders.
How to identify the production orders which are created based on Sales orders.
Kindly suggest.
Regards,
MullairajaCheck these threads
[Sale Order & Production Order|Sale Order & Production Order;
[Re: Linking Production Order against a Sale Order MRP run|Linking Production Order against a Sale Order MRP run;
thanks
G. Lakshmipathi -
Exit/Badi in the transaction of production order create or change (CO02)
hi all,
I need an exit/Badi in the transaction of production order create or change (preferably during SAVE).
I want to change structure AFVGD-usr02,AFVGD-usr03 .
<b>PPCO0007 Exit when saving production order</b>
the exit is not applicable EXIT_SAPLCOZV_001 .Hi
we around 200 exit for this tcode i found only three badi for this tcode.
AFABD_CHANGE Change Relationship
CAUFVD_CHANGE BAdI: Overall Network Scheduling with Selection Option
SIDAT_UPDATE Change date of price simulation.
check with this goto se18 and F4 thn give the Package as CO.enter u get this three.
reward pointd if use full -
High level contract and orders created with reference
Dear All,
The client is an integrated flat steel manufacturer. They have entered into quantity contract with high level products like for example Hot rolled coils + Cold rolled coils + Heat Treated plates 5000 T per month. There is no clear cut quantity breakup of each product. On monthly basis customer releases purchase orders with exact grade and dimensions. The requirement is to capture contact for 5000T and create orders with reference to the contract with necessary completion rule. Since exact break up of the high level products is not known controlling of order quantity to 5000T will involve lot of manual intervention. I was thinking in the contract we have high level material "X with 5000T and orders created with reference with actual materials like Hot rolled coils, Cold rolled coils and exact dimension/grade mentioned. Is this possible to have different materials in contract and order with enhancement?
Any other idea of fulfilling the requirements is welcome.
Thanks,Hi Ramesh,
Go through EKPO there is a Table BANFN it will update when you create a PO with reference to PR
Do se11 > Table EKPO> CtrlShiftF10 > Assign any of PO no. in the EBELN > Execute > you will find BANFN table
it indicates Purchase Requisition Number. it will update when you create PO with reference to PR.
Regards,
Vraj -
User Exit for Production Order confirmation with CO15
Hi All,
what User Exit I should use when validating batch when we do Production Order confirmation with CO15.
Not when we create or release a Production Order.
Will reward,
mindaugas
Edited by: Mindaugas Kazlauskas on Jan 30, 2008 5:03 PMHi
The Follwing Userexits available:
Transaction Code - CO15 Enter Production order Confirmation
Enhancement/ Business Add-in Description
Enhancement
CONFPP01
PP order conf.: Determine customer specific default values
CONFPP02
PP order conf.: Customer specific input checks 1
CONFPP03
PP order conf.: Cust. specific check after op. selection
CONFPP04
PP order conf.: Customer specific input checks 2
CONFPP05
PP order conf.: Customer specific enhancements when saving
CONFPP06
PP Order Confirmations: Actual Data Transfer
CONFPP07
Single Screen Entry: Inclusion of User-Defined Subscreens
CONFPS01
PS confirmation: Determine customer specific default values
CONFPS02
PS confirmation: Customer specific input checks 1
CONFPS03
PS confirmation: Customer specific check after op. selection
CONFPS04
PS confirmation: Customer specific input checks 2
CONFPS05
PS confirmation: Customer specific enhancements when saving
CONF0001
Enhancements in order confirmation
CONFPI01
Process order conf.: Calculate cust.specific default values
CONFPI02
Process order confirmation: Customer spec. input checks 1
CONFPI03
Process order conf.: Cust. spec. check after op. selection
CONFPI04
Process order conf.: Customer specific input checks 2
CONFPI05
Process order conf.: Cust. spec. enhancements when saving
CONFPI06
Process order confirmation: Actual data transfer
CONFPM01
PM/SM order conf.: Determine cust. specific default values
CONFPM02
PM/SM order confirmation: Customer specific input checks 1
CONFPM03
PM/SM order conf.: Cust. spec. check after op. selection
CONFPM04
PM/SM order conf.: Customer specific input check 2
CONFPM05
PM/SM order conf.: Cust. specific enhancements when saving
If it is helpful rewards points.
Regards
Pratp.M -
Change of Sold to Party in Sales order created with Reference to Contract
Dear Gurus
I want to change the sold to party in Sales Order created with reference to contract.
When I create a Sales order with reference to contract the system copies all the partner functions- Sold to, Ship to, Bill to and Payer alongwith other data.
However Sold to is marked as "Grey" and not changable, rest of the partners can be changed.
There is no subsiquent document created with reference to this Sales Order.
Please advice.
Thanks a lot.
Regards
RaghuHi ,
Please follow the below mentioned step.
1) Create a partner function letts say Authorized SP .
2) Assign all the possible authorised SP (customer) in the contract.
3) When you create sales order with reff to Contract. Put the customer for whom you wish to create a sales order in release partner tab.
Hop this will resolve our problem
Regards,
Krishna O -
Sales Order Created with reference to Contract - Exchange rate Issue
When Sales Order created with reference to contract VBKD fields KURSK and KURSK_DAT gets copied from contract and not redetrmined based on pricing date and Exchange rate type. I expected it to be determined based on pricing date is standard. What I am missing, should it be controlled by data transfers
If Document currency and condition currency are different it cause problems with incorrect condition values are calculated, as KOMP-KURSK are copied from VBKD-KURSK
Any help or directions would be greatly appreciated . We are on 4.7 ISOIL
Sincerely JuliettaWell,
and if we have the same issue, but we don't have OIL Version, but simple 4.6C, which solution has to be applied then?
Thank you
Standa -
Add pricing condition within order created with reference to SPA
Hi,
I have a requirement wherein I need to add a $50 fine to order if the total order weight is below 75 kg.
Problem I am facing is with orders created with reference to SPA wherin pricing is not calculated but copied from SPA.
Please help me in solving this issue.
Also, Please let me know the pricing userexit / BADI for CRM wherein this can be coded.
Regards,
Willban
Edited by: willban_sap on Jul 21, 2010 11:43 AMHi Willban,
wonder wether you could use any weight dependent (net or gross) group condition with a scale. Delow 75 kg across all grouped items you would charge 50 $ and starting at 75 kg you would charge 0 $. As the scale base should get adjusted with the copy / create with reference step, I see no need for custom code.
Best Regards,
Michael -
Error : Sales order 'create with Reference' to the contract
We have made a value contract. Now we are trying to make a Sales order 'create with Reference' to the contract.
when we do that, we am getting error 'copying material in any value contract item is not permitted'
Any help or directions would be greatly appreciated . We are on Ecc 6.0
RohitAs of now my value contract has just one material. so i dont need assortment module settings. right?
in VTAA settings are as follows
Target type: OR
Source type: ZK1
there is only on item category
Target item category: TAN
Source item category: WKN
Copying requirement : 301
update doc flow : 2
pricing type : C
cont item copy mode : A
DataT am using 151,102,002
There are no schedule line.
Rohit
Edited by: rohit kumar on May 15, 2008 7:36 PM -
Throw Information message for sale order created with value less that 5$
Hi all,
I am basically an abaper, I have got a requirement in SD. The requirement is any sales order created with value less that 5$, should be prompted with an error message saying the minimum order value should be more than 5$. Could any one help me on this.
Thanks in advance,
shivuserexit_save_document_prepare,main program - sapmv45a, issue an error message if your document value is less than 5$ (VBAK-NETWR) but check if your order has any non-rejected item, I would not issue this message if all items are rejected:
loop at xvbap where updkz ne 'D' and abgru = ' '.
exit.
endloop.
if sy-subrc = 0. "-you have at least one non-rejected, non-deleted item.
NOTE: sapmv45a works NOT only for orders, so please check document types in your logic which are relevant to your messge only (VBAK-VBTYP and/or VBAK-AUART). -
Production order created through procurement wizard but purchase order connected in SO
SBO Localization: Korea
SBO Version:SAP Business One 8.82 (8.82.073) PL: 10
Production order created through procurement confirmation wizard on the base of sales order. In sales order "Procurement document" field production order number showing correct. But if click on document arrow then same number of purchase order opening where as we expect that production order should open. This is something like connection bug. This happens only if sales order approval workflow is active. In relationship map we can see production order is connected. See details in attached pic.
I have also tested this case in Belgium localization the result is almost same. The difference is only if clicked on procurement document number arrow (from sales order document) then different number of purchase order opens.
Is this known issue? Could someone please provide me the solution?
Yogesh ChaudhariHi,
It is application error. Please check SAP note:
1718843 - Blank production order or purchase request displayed if
“Procurement Doc.” selected in “Form Settings” window
Thanks & Regards,
Nagarajan -
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
Maybe you are looking for
-
Downloading BP/Products/Conditions /transaction from R/3 to CRM
Could u pls tell me the how to Downloading BP/Products/Conditions /transaction from R/3 to CRM Business partner mapping Thanks in advance kumar
-
When sending mail I get can not locate your gmail password
When I try to email using Tbird which is my IMAP default via gmail. It says can not locate google password. I can send email out with no problem using gmail via Tbird.
-
Add 3rd multiple categorization area to Service Ticket (SRQM_INCIDENT_H)
Hello, in Service Process there are the multiple categorization areas Subject and Reasons available by default. We want to add additional multiple categorization areas. Five categories are available and added to our transaction type via: SPRO -> CRM
-
I am fairly new to Crystal Reports and could use some assistance. I have built two subreports with formulas to pull information into the main report. Now I would like to create a total per line based on the two values pulled from subreports, plus a
-
Remove editable region *and* propagate?
Hi all, I have an editable region in a template which I would like to make uneditable. I can remove it in the template, but the change does not seem to propagate to the child pages. In other words, the region is still editable on the child pages afte