BAPI for Production Order creation ?
Hi Experts,
I am new to PP module and as per my requirement I have to:
1. Create Production order in ECC 6.0
After searching BAPI explorer, SDN and other sites I could see that there is no BAPI for Create Production order.
In one of the link I could find FM CLOI_CHANGES_UPL_31 used to create Production order in SAP.
Is there any BAPI to create ??
Can anyone let mw know right FM or BAPI to create Production order with an example.
2. And I have to:
Delete Production order
which BAPI is used for deletion of Prd Ord
BAPI_PRODORD_SET_DEL_INDICATOR or BAPI_PRODORD_SET_DELETION_FLAG
For Confirm Production order - in ECC 6.0 Let mw know the BAPI for this ..
Really helpful if you answer my queries...
Thanks
Uday
Hi udaya,
use the BAPI 'BAPI_PRODORD_CREATE'
The following BAPIs are available confirmation of production orders:
Entry
Time ticket
ProdOrdConfirmation.CreateTimeTicketMultiple
BAPI_PRODORDCONF_CREATE_TT
Time event
ProdOrdConfirmation.CreateAtHeaderLevelMultiple
BAPI_PRODORDCONF_CREATE_HDR
Order confirmation
ProdOrdConfirmation.CreateAtHeaderLevelMultiple
BAPI_PRODORDCONF_CREATE_HDR
Activity confirmation
ProdOrdConfirmation.CreateActConfMultiple
BAPI_PRODORDCONF_CREATE_ACT
Defaults
Time ticket
ProdOrdConfirmation.GetTimeTicketProposal
BAPI_PRODORDCONF_GET_TT_PROP
Time event
ProdOrdConfirmation.GetTimeEventProposal
BAPI_PRODORDCONF_GET_TE_PROP
Order confirmation
ProdOrdConfirmation.GetAtHeaderLevelProposal
BAPI_PRODORDCONF_GET_HDR_PROP
Cancelling confirmations
ProdOrdConfirmation.Cancel
BAPI_PRODORDCONF_CANCEL
List of confirmations
ProdOrdConfirmation.GetList
BAPI_PRODORDCONF_GETLIST
Detail data for confirmations
ProdOrdConfirmation.GetDetail
BAPI_PRODORDCONF_GETDETAIL
Existence check
ProdOrdConfirmation.ExistenceCheck
BAPI_PRODORDCONF_EXIST_CHK
Regards,
Ravi
Similar Messages
-
IDOC/BAPI for Production order creation from Legacy system
Hi all
We are using an interface to create Production orders from legacy to SAP. Would you recommend an IDOC or a BAPI to create Production orders. If IDOC or BAPI then could you please mention which one?
thanks a bunchHi John,
For your purposes, please use BAPI for production order creation from legacy system. There is no standard inbound IDoc available to use. SAP has an IDoc for outbound interface only (message type LOIPRO).
If there is an inbound IDoc available, I would recommend to use an IDoc.
IDoc technology has excellent error handling and will allow you to reprocess an error (if any).
BAPI is also good approach to use and fast in term of processing.
For BAPI approach, you can use BAPI BAPI_PRODORD_CREATE.
Hope this will help.
Regards,
Ferry Lianto -
BAPI for Production order creation against wbs element
dear all,
I am using BAPI (BAPI_PRODORD_CREATE) for Production order creation against wbs element.I am putting following input paramters in this
material no,
order type
plant
qty
basic start dt & end dt
wbs
But during GRN it is not taking the account assignment as project stock i.e. its picking movement type 101 but it should be 101Q.
For this what changes are required.
regards
ravi aroraHi,
2 options i can think of:
1. Create a BDC program by recording co10
2. Create a planned order with order type PR using BAPI_PLANNEDORDER_CREATE, specify the WBS element & other details. Now use BAPI_PRODORD_CREATE_FROM_PLORD to create a production order with reference to the planned order created earlier.
I believe option 2 should meet your need. Check & revert.
Regards,
Vivek -
FM or Bapi for production order creation?
hi Friends,
Any FM or bapi is exist to create Production Order
regards,
MaheshHi All
BAPI_PRODORD_CREATE does not contain all the parameters which are required to create a Production order.
It doesn't has some parameters like Size1,Size2,Size3,Unit, Formula,Length,Colour etc.
Pls suggest how to overcome this problem.
Kindly, let me know if the same BAPI can be used to create collective orders also or not? -
IDoc Configuration for Production Order Creation and Change
Hi All,
Please Help me out for IDoc Configuration for Production Order Creation and Change
I have found the IDoc for Production Order
Messgae Type : LOIPRO and IDoc type : LOIPRO01
Actually my requirment is to send the (LOIPRO01 )IDoc from SAP R/3 to XI system ,when ever the Production Order Created and Changed,
I have done following Configurations:
1. RFC Destination created for XI system
2. PORT was created for XI
3. Partner profile created WE20 and LOIPRO01 IDoc is added in OutBound Perameter.
I need to know how to do the followning.
1. How do i configure the outbound Production order idocs when Production Order is created or changed.
2. in NACE (Output control) which is the Application for Production Order.
3. How can I set IDoc as output Type for Production Order Creation.
Thanks in advance
Dhanabal THi Michal,
I know that it is the old thread but still want to get clarified from you out of curiosity.
Unlike other IDOC, i actiavated change pointers for LOIPRO
1.message and idoc type is linked
2.function module , message type , idoc type is linked
function module used is CLOI_MASTERIDOC_CREATE_LOIPRO
3.BD64, distribution model is created and distributed
4. port and partner profile is in place.
5. IDOC is not getting generated after creating the process order.
do we need to activate the change documents for the message type in BD52,
if yes can you please provide the object types for the same.
or i am missing something else. please guide me in this regards.
Thanks in advance for your time.
S.Janagar -
BAPI for Service order creation
Hi ,
Please tell me if any Bapi for service order creation , T-code : IW31
regards,
PrakashHi Prakash,
Have a look on the following BAPIs:
BAPI_ISUSMORDER_CREATEMULTIPLE - Create Service Orders
BAPI_ALM_CONF_CREATE - Create confirmation for maintenance/service order
WTY04_CREATE_SERVICE_ORDER - Create Service order via function module.
Hope this will help.
Regards,
Nitin. -
Exit for production order creation that update BOM explosion date
Hi Guros
does any one know a user exit for production order creation that update BOM explosion date = AUFLD.
or a UE that run before the BOM explosion.
thanks.Dear,
I dont think user exist will work for you,
You need to find BAdi for it, cl_exithandler=>get_class_name_by_interface .
Or try with SE84,
Enter the package name and check the " Enhancements"
Regards,
R.Brahmankar -
FM or BAPI for Transfer Order creation in eWM
Hello ALL,
Please provide any FM or BAPI for Transfer Order creation in eWM. i know how to create transfer order in ERP.I tried to find out a FM or BAPI in SCM eWM but failes to get one.
Kindly help.
BR,
Anil..Hi,
Try using FM WS_LM_TRANSFER_ORDER_CREATE.
I hope this is available in ur system
Thanks -
Regarding bapis for sales order creation and modification
Hi,
I am trying to create a syncbo for sales order creation, modification and display. The bapis that I am using are
1.BAPI_SALESORDER_GETLIST
2.BAPISDORDER_GETDETAILEDLIST
3.BAPI_SALESORDER_CREATEFROMDATA1
4. BAPI_SALESORDER_CHANGE
Am I using the correct bapis. When I tried to create a syncbo it gave the following errors
BAPISDORDER_GETDETAILEDLIST does not have RETURN parameter in export or tables parameter
RETURN parameter in Create BAPI Wrapper should refer to structure BAPIRET2
RETURN parameter in GetList BAPI Wrapper should refer to structure BAPIRET2
GetDetail BAPI Wrapper does not have RETURN parameter in export or tables parameter
No Export parameter referring to header structure exists in GetDetail BAPI Wrapper
No Import parameter referring to header structure exists in Create BAPI Wrapper
No Import parameter referring to header structure exists in Modify BAPI Wrapper
No Import parameter referring to a field of header structure exists in GetDetail BAPI Wrapper
No Export parameter referring to a field of header structure exists in Create BAPI Wrapper
No Tables parameter referring to item structure exists in Create BAPI Wrapper
No Tables parameter referring to item structure exists in Modify BAPI Wrapper
I am informed that the above bapis are standard bapis.
I am not sure as to why I am getting the errors.
Does the syncbo require the bapi's to be in a specific format.
What would be the header and item structures for sales order bapis
Regards
Raja SekharHi Raja,
ya , for creating Sync BOs ,our BAPI wrappers must satisfy certain conditions..
just go through this link.
u can use the standard BAPIs of SALES Order in ur Custom BAPI Wrapper
http://media.sdn.sap.com/public/html/submitted_docs/MI/MDK_2.5/content/appdev/smartsync/what_is_a_bapi_wrapper.html
the RETURN must be of type BAPIRET2..
Regards
Kishor Gopinathan -
Please Tell me the Standard Bapi for Purchase Order Creation
Hi,
Please tell me the standard BApi for the PO creation. How to excute the standard Bapi. Please help me.
Regrads
MohanHi Mohan,
Use this BAPI BAPI_PO_CREATE1.
Check this post, you have program aswell
https://forums.sdn.sap.com/click.jspa?searchID=7294168&messageID=1172796
Regards,
Satish -
Run time error while running BDC for production order creation and confirmation:
Dear Gurus,
We have a situation, where the users are trying to do the entries creation of order or confirmation (through manual and BDC). But, if there is any kind of a deficit quantities in consumption or GR quantity, then it is going to run time error and Dumps are coming in program SAPLCORB
and the transaction code is coming for CO11N.
How to avoid this error to run the production system in smoothing way...Any flash lights on this will be great full
Regards,
Madhu.GHi Madhu,
Expert Caetano has rightly point out. Refer Note 1840705 - RAISE_EXCEPTION short dump if running CO11N in background
Cause
The short dump is triggered because SAP transaction CO11N contains new GUI elements that cannot always be dealt with in a background process,
such as the confirmation texts.
Resolution
SAP recommends that the standard production order BAPIs, such as BAPI_PRODORDCONF_CREATE_TT, should be used to post a confirmation in background.
If this is not feasible, the following workaround may be uses:
Define a confirmation profile in transaction OPK0;
In the detail areas, remove the area "Confirmation text";
Set this profile as standard, so that it is chosen automatically by the system when a batch-job
is started;
Assign this confirmation profile to the batch user with transaction SU3 using parameter CORUPROF.
Also see Note 429432 - CO11N: Batch input in background dumps if long text is maintained
Refer to note 1154692 - Endless loop during confirmation in background if you doing Auto GR during confirmations
Thanks & Regards,
Ramagiri -
BAPI for Sales Order Creation.
Hello gurus,
I want to create a sales order using BAPI.
I have tried some BAPI's like BAPI_SALESORDER_CREATEFROMDAT1, BAPI_SALESORDER_CREATEFROMDAT2, BAPI_SALESORDER_CREATEFROMDATA, BAPI_SALESDOCU_CREATEWITHDIA.
But I am not able to update the Miscellaneous Information like Mode of transport(VBAP-OIC_MOT), Forwarding Agent(VBAP-OIC_LIFNR), Base Location(VBAP-OIA_BASELO), Truck Number(VBAP-OIC_TRUCKN), Pipeline trip No.(VBAP-OIC_PTRIP), Pipeline operator´s external batch number(VBAP-OIC_PBATCH).
Is there any other BAPI thru which i can update these fields while creation of Sales Order.
The Fields which I can provide to BAPI as import parameter is:
Order Type(VBAK-AUART),
Contract(VBAK_VGBEL),
SALES Org (VBAK-VGORT),
Dist Channel(VBAK-VTWEG),
Division (VBAK-SPART),
Open Quantity (VBAK-KWMENG)
Plant(VBAP-WERKS)
Storage Location (VBAP-LGORT)
Mode of transport(VBAP-OIC_MOT), Forwarding Agent(VBAP-OIC_LIFNR), Base Location(VBAP-OIA_BASELO), Truck Number(VBAP-OIC_TRUCKN), Pipeline trip No.(VBAP-OIC_PTRIP), Pipeline operator´s external batch number(VBAP-OIC_PBATCH).
Thanks In Advance,
Points will be rewarded for Best Solution......
Yogesh Sharmahi,
I can give u a suggestion .. try it ..
its a quite a long process....
in BAPI_SALESORDER_CREATEFROMDAT2
there is a table EXTENSIONIN...
here u can add append structure and carry on ur sales order creation
Follow the process
Customer Enhancement for VBAK, VBAP, VBEP
Description
You can use this parameter to transfer user-specific enhancments to a BAPI. The customer has to complete the EXTENSION structure and the system automatically continues processing it. If you have not defined any user-specific fields, then you can transfer a blank EXTENSIONIN structure.
Technical information about Customer Enhancements
The following description uses an example to explain how to proceed with customer enhancements to the SD tables VBAK, VBKD, VBAP and VBEP.
The customer has added their own fields to table VBAP using the INCLUDE structure CUTEST. This structure contains 2 fields:
CFIELD1, CHAR 10
CFIELD2, CHAR 3.
The customer also requires that these two fields can be maintained with the BAPI.
1. Maintain structure CUTEST in table VBAP
2. Because the BAPIs work with checkboxes, you must also define a CUTESTX checkbox for the customer structure. It should be structured like this:
Field name Data element
CFIELD1 CHAR1
CFIELD2 CHAR1
3. Define these customer structures in the structures VBAPKOZ und VBAPKOZX using INCLUDE or APPEND.
4. Add the customer structures to the BAPE_VBAP and BAPE_VBAPX BAPI structures using the APPEND technique.
5. Adjust the following structures for customer enhancements to table VBAK:
a) VBAKKOZ
b) VBAKKOZX
c) BAPE_VBAK
d) BAPE_VBAKX
6. Adjust the following structures for customer enhancements to table VBEK:
a) VBEPKOZ
b) VBEPKOZX
c) BAPE_VBEP
d) BAPE_VBEPX
7. Generally, the data should be added to the BAPI interface in the internal communication structures (VBAKKOM, and so on). There, you can process the data in the SD tables (VBAK, and so on).
8. If the EXTENSIONIN parameter contains customer data, you must complete at least the key fields in the relevant standard parameters.
For example:
You want to change customer field VBAP-CFIELD2 for item 20 to "XYZ" in order 4711.
The following entries are expected:
Import: BAPIVBELN-VBELN = '0000004711' Document number
BAPISDHD1X-UPDATEFLAG = 'U' UPDKZ for doc header
Tables: BAPISDITM-ITM_NUMBER = '000020' Item number
BAPISDITMX-ITM_NUMBER = '000020' Item number
+ BAPISDITMX-UPDATEFLAG = 'U' UPDKZ for item
You must complete the EXTENSION table as follows:
STRUCTURE VALUEPART1 1234561234567890123
BAPE_VBAP 0000004711000020 XYZ
BAPE_VBAPX 0000004711000020 X
Further Information
You can find more information in the BAPI programming guide in the chapter for enhancements to BAPIs.
Notes
You must complete the STRUCTURE field with the name of the relevant enhancement structure (BAPE_VBAK, BAPE_VBAP, BAPE_VBEP). You can complete the remaining fields with the append structures from the enhancement structures.
At the moment, you can use the BAPI to store enhancements in the following structures:
VBAK : An enhancement to header data requires an append structure to BAPE_VBAK and an enhancement to structure VBAKKOZ.
VBAP : An enhancement to item data requires an append structure to BAPE_VBAP and an enhancment to structure VBAPKOZ.
VBEP : An enhancement to schedule line data requires an append structure to BAPE_VBEP and an enhancement to structure VBEPKOZ.
VBKD : If you are using an enhancement for header data, you must add an append structure to BAPE_VBAK. You also need to enhance structure VBAKKOZ. If it is for item data, you need to add an append structure to BAPE_VBAP. You must also enhance structure VBAPKOZ.
If you also want to work with checkboxes, each X-structure must also contain an append structure.
For example:
A customer has created an order and wants to include the material long text (50 digits long).
The EXTENSIONIN structure must be completed with BAPE_VBAP. Two fields have fixed definitions in this structure. These are in the VBAP host key (VBELN, POSNR). The customer sets up an append structure that contains field ZMAT50.
Because the VBELN is normally blank when you create an order, the data can look like this:
STRUCTURE |BAPE_VBAP
VALUEPART1 | 000010Customermateriallongtext50
VBELN POSNR ZMAT50 -
BAPI for Purchase Order Creation
Hi All,
Purchase Order creation through BAPI, Auto Po creation. Please advise program.
The requirement is: when we delivery the goods from one plant to another plant,PO should create in second plant with goods what delivered from first plant.
Pranitha
Moderator message : Spec/requirements dumping is not allowed. Thread locked.
Edited by: Vinod Kumar on Sep 30, 2011 3:37 PMHi,
As per u r requirement
you can use : BAPI => BAPI_PO_CREATE with suitable Document Type ( Stock trasnfert : STO )
IF u want to auto po must be created after each delivry in this case you need to use BADI
'MB_MIGO_BADI; In This BAPI There is method : POST_DOCUMENT
In this method u can write code for Auto PO Creation by using BAPI .
Hope This will Resolve u r query.
Thanks and Regads
Santosh -
IDOC/BAPI for production order confirmations
Does anyone know IDOC or a BAPI for confirming a production order? CO11 is the normal transaction for confirmation.
I found one BAPI: BAPI_PRODORDCONF_CREATE_HDR
Is this the right one?
-Thanks
BhavenHi Bhavan,
status can be find using function module <b>STATUS_TEXT_EDIT</b>.
Sample code:
CALL FUNCTION 'STATUS_TEXT_EDIT'
EXPORTING
client = sy-mandt
objnr = >object number of order<
only_active = 'X'
spras = 'E'
IMPORTING
line = hold_status
EXCEPTIONS
object_not_found = 1
OTHERS = 2.
*Exception in case status is not found
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
*Check Status of the Order
IF hold_status CS 'CNF'.
confined production orders.
ENDIF.
Best regards
Suresh Babu Karanam -
Its urgent.!!!!!!BAPI for Production Order
HIi All ,
i need to fecth Storage Bin/Material/Quantyti/Descrition .
All values can be obtained from the production order record using the BAPI.
which BAPI is there for this req?some of the function modules are
<b>BAPI_PRODORD_CHANGE
BAPI_PRODORD_CHECK_MAT_AVAIL
BAPI_PRODORD_CLOSE
BAPI_PRODORD_GET_DETAIL
BAPI_PRODORD_GET_LIST
BAPI_PRODORD_RELEASE etc</b> better you put BAPI_PRODORD_* in Function module field and press F4 and get more BAPI fuction modules according to your production order scenario.....
reward points if helpful...
thanks,
velu....
Maybe you are looking for
-
Freight charges in PO at header level
Hi Friends, I have created a PO having 10 line items. I dont have individual freight charges for each line item.I have total freight charges for the whole PO. I have defines a freight charge at header level.I want the system should devide the whole f
-
Where does Messages store attachments on the iPad?
Where does Messages store attachments on the iPad? some photos are quite large, so it would be good to know where they go, and how to manage the app.... ;)
-
Mail wouldn't quit in 10.4.7
But thanks to an earlier thread, I looked at the third-party JunkMatcher filter and removing it solved the problem. Instructions are at http://junkmatcher.sourceforge.net/Howto/Installation/index.html#Uninstall
-
FM which give delivery no of a schedule line of sale order
Can anybody tell whether there is a function module or any method to find a delivery no and item no of a particular schedule line of item no of a sale order. pls its urgent.
-
Open an image to the size of the image.
I know this is hard to describe. I have a new iMac 27" Each time I open an image in Fireworks it opens with a big gray background which doesn't allow me to see my desktop or other programs like Dreamweaver. When you open an image in Photoshop it open