FM or BAPI for production order component split batch
Hi,
I'm trying to split a production order component quantity into batchs with FM or BAPI.
Using BAPI_ALM_ORDER_MAINTAIN i can create or modify components but i can't set field split batch flag SPLKZ and reference SPLVR.
Can you help me?
In standard product order process in CO02 when i split material with standard function I obtain several lines. These new lines refer to the originale one by fields SPLVR and SPLKZ.
Eg. In operation 0010 i've 10 PC of MATERIAL1
Item
Material
Qty
Batch
Batch Key (SPLKZ)
Itm no stock (SPLVR)
0010
MATERIAL1
10 PC
In CO02 i take MATERIAL1 from BATCH1 and BATCH2 the final result is
Item
Material
Qty
Batch
Batch Key (SPLKZ)
Itm no stock (SPLVR)
0010
MATERIAL1
1
1
0010
MATERIAL1
7 PC
BATCH1
2
1
0010
MATERIAL1
3 PC
BATCH2
2
1
So I'm trying to reproduce this standard behavior with BAPI or FM.
Thaks
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 -
Enhancement for Production Order Release and Batch Fixing.
Hi Experts,
I have assigned a enhancement for production order.The user exit is also given in the req as PPCO0001 through which i have to call a Z-Program for Batch fixing using Trans CO01 and release the order before saving once it is assigned to components.
Now my probs is where to start working for the enhancement -is it possible to use any BAPI instead of Batch (BDC) or I can use any BADI instead User Exit.
So if you guys have similar scenario worked on it or have similar example approach to solve it.Please do help.I will reward for all helpful answers.I figured out thr friends !
Thanks,
SriRam -
Need FM/BAPI for production order
Hi all
Let me know FM / BAPI for get component overview based on production order?hi
check this
BAPI_ALM_ORDER_GET_DETAIL
or check from SPRO>Production>Shop Floor Control-->System Modifications->Enhancement in the Adding and Changing of Components
-ashok -
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
UdayHi 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 -
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.... -
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? -
Function module for Production order update (Table AFKO)
Hello All,
I know similar subject has been posted but please read the following.
SAP 4.6c doesn't provide BAPI for production order update.
We did develop an ABAP program that update production order and schedule it in a job.
We are looking of avoiding direct update in table AFKO which our program do right now.
We looked (with SE37) at either BAPI or FM to pass parameters to a functioin that would perform that update and ensure data integrity.
CO_ZV_ORDER_POST seems interesting but is also using a lot of parameters and we have diffiulties to test it and understand it our dev team being fairly new.
Can somebody tell us how to use this function or tell us another FM that could be used. (ie passing internal table content (New fields values) and a key value (AUFNR)) to update table AFKO and related objects/tables
Regards
Marchi,
TABLE IS AFKO
rgds
anver
if hlped mark points -
Business Content for Production Orders
Dear All,
we are looking for a SAP standard scenario for our business scenario to get details per production order and workcenter.
I found already Datasources 2LIS_04_P_MATNR (for production order header data), 2LIS_04_P_ARBPL (for production order operational data) and 2LIS_04_P_COMP (for production order component data), which contain the data we will need to be reported on.
Unfortunately I'm not able to find any How-To paper or anything like this, where I can see, how these 3 Datasources are coming together in BW. For 2LIS_04_P_MATNR I found 0PP_DS01 in the business content. But I expected to find as well an DSO in the SAP content for the other 2 Datasources. I'm also wondering, if there is a standard cube, where these 3 DSO's are coming together later on to be the basis for the reporting.
Does anybody of you have any standard documentation of this business scenario?
Thank you in advance.
PeggyHi Peggy , There is no standard DSO or infocube available which reports on all the 3 data sources combined together.
But there are standard DSOs ,infocubes like 0PP_O01 , 0PP_C04 which can be used in a custom multiprovider to draw reports of interest.
For more details refer http://help.sap.com/saphelp_nw70/helpdata/en/28/500b3c56488e6be10000000a114084/frameset.htm
Hope this helps
Sampada -
Default Production Order Component Long Text
Dear guru ,
Whose are the defaults for production order component long text ?
Can I copy this text only from bom ?
Can I copy this text also from material master ?
ThanksHi,
The defaults are from the BOM item text 1 & 2. POTX1 & POTX2 fields.
I suppose no option from material master.
Hope this helps
Regards
Raju -
Error while doing Good Issue for Production Order using BAPI
Hi All,
I am facing an error like 'u2018Content of order 1011907: MDT218AJ10 transferred to interface (IMSEG): T-86410-71".
I have written the code as below. Please let me know what is missing when using the BAPI 'BAPI_GOODSMVT_CREATE'. What is the cause of this error ?
*Action in Transaction (GM_CODE)
*GM Code for Goods Issue for Production Order is 03
gs_gmcode-gm_code = '03'.
*Header Data
*Posting date
gs_header-pstng_date = sy-datum.
*Document date
gs_header-doc_date = sy-datum.
*Item Data
*Material
gs_item-material = zptp_s_rf_migo_261-matnr1.
*Movement Type
gs_item-move_type = '261'.
*Movement Indicator
gs_item-mvt_ind = 'F'.
*Stock Type
gs_item-stck_type = 'F'.
*Plant
gs_item-plant = gv_plant.
*Storage Location
gs_item-stge_loc = gv_str_loc.
*Quantity
gs_item-entry_qnt = zptp_s_rf_migo_261-menge2.
*Unit
gs_item-entry_uom = gv_uom.
*ISO code for unit of measurement
gs_item-entry_uom_iso = gv_uom.
*Order Number
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
input = zptp_s_rf_migo_261-aufnr
IMPORTING
output = gs_item-orderid.
*Reservation Number
gs_item-reserv_no = gv_resv_num.
*Reservation Item
gs_item-res_item = gv_resv_itm.
*Reservation Type
gs_item-res_type = gv_resv_type.
APPEND gs_item TO gt_item.
Calling BAPI_GOODSMVT_CREATE to create the Material Document Number
CALL FUNCTION 'BAPI_GOODSMVT_CREATE'
EXPORTING
goodsmvt_header = gs_header
goodsmvt_code = gs_gmcode
IMPORTING
goodsmvt_headret = gs_headret
TABLES
goodsmvt_item = gt_item
goodsmvt_serialnumber = gt_serial
return = gt_return.
Thanks in Advance.hi,
did you look at message ?
System says, there are differences between the interface data and the order data. It can be anything. I think you should check
data in the interface .
this is the long explanation of your message :
Diagnosis
When calling the function module MB_CREATE_GOODS_MOVEMENT or the BAPI GoodsMovement.CreateFromData (BAPI_GOODSMVT_CREATE) to post a goods receipt for a production order, there are differences between the interface data and the order data.
Example: The order was created for plant 0001, but plant 0002 is passed on in the interface.
The system checks this for the material and the order item.
System response
Due to this difference, the system cannot post the goods receipt.
Procedure
Check the data in the interface (IMSEG-WERKS, IMSEG-AUFNR). If necessary, correct the plant or the order number in the interface.
<< Moderator message - Point begging removed >>
Edited by: Rob Burbank on Feb 6, 2012 11:24 AM -
Business Object (BAPI/IDOC) for production Order
Hi All
I have requirement where data is coming from legacy system to R/3 via XI to generate a production order. I am not able to get right BAPI/ IDOC for inbound Production Order. Can anyone has done similar scenario. Can u suggest me BAPI or IDOC for same. I am using IS-Mills 4.7 version for R/3
Thanx in advance
Regards
VinodHI Vinod,
I think U can use IDOC <b>LOIPRO01</b> for Production Order...
Regards,
Sridhar Reddy -
Batch Split during GR for Production Order Confirmation
Hi All,
We need to do batch splitting during GR for Production Order Confirmation.We are using CO11N for confirming the Production Order and in the PP settings auto GR is activated once the Confirmation is done.
Currently it is generating only single batch number for the complete quantity, but our requirement is that we need that system should create separate batch for each piece.
For ex.: Production Order is for 100 pce, when we do Production Order confirmation, system is automatically doing the GR by 101 movement type and it is creating one single batch for full 100 pce. But we want the batch number should be generated for 1 pce i.e. we want to split the 100 pce into 100 batches with 1 pce each.
Please let me know what can be done for this requirement.
Regards,
AnkitDear,
In OPK0 you need to active the screen Mill: Goods Receipt (8485) for confirmation profile for the single-screen entry.
Best way is use BAdI /SAPMP/SPLIT_CO11N for the Enter Time Ticket for Production Order transaction (CO11N)
you must activate BAdI implementation /SAPMP/SPLIT_POPUP and/or /SAPMP/SPLIT_CO11N for this BAdI
I have use the same BADI it will ask you number of split according to that it will split the GR line item.
Please refer this link,
http://help.sap.com/saphelp_dimp50/helpdata/EN/4e/1796374b088e5ce10000009b38f8cf/frameset.htm
Regards,
R.Brahmankar
Maybe you are looking for
-
Where are customized element lists stored ?
Hi all, After removing lots of useless DITA elements from my Elements list via the Customized List option, I find that the list is only used for the document in which I have edited it, and is not kept when I close and reopen the DITA file. In the FM1
-
Print the user address in print layout
hi i need the print the user address in print layout.the address store in OUDG. but i call this field in pld. But its not print anything..please any one give the suggestion We have the three branches.but using one pld. So the user default address sho
-
Upgrading the report version from Crystal Reports 10 to Crystal Reports 11 without REDESIGN
Post Author: Chakradhar CA Forum: Upgrade to XI 3.0 HI All, Please provide a solution for this.. Is there any way to upgrade the version of a report without redesigning the report? If we upgrade the report without redesign, dont we lose the special f
-
Hi Friends, I would like to know is there any way I can extract all Content versions of the document original in some table format ? Eg. If I can check in 10 times, I will have 10 content versions, 10 different timings recorded and can be displayed
-
read several similar threads, but not specifically this one. I have recorded several miniDV's from VHS tapes. I then capture using DV Firewire Basic. When I play the raw capture file in QT, the Inspector tells me that the format is "DV 720x480 (640x4