BAPI for Process order change
Hi,
Can any buddy tell me the Bapi used for Process order change
with following scenarios:
Quantity change
Resource change
Rescheduling
Control key change
RM Change
Recipe change
TECO
REVOKE
Material shortage check
Best Regards,
Sheetal.
Hi,
BAPI_PROCORD_CREATE for process order create
BAPI_PROCORD_CHANGE - Change Process Order
BAPI_PROCORD_CLOSE - Close Process Order
BAPI_PROCORDCONF_CANCEL for Cancel Process Order
Confirmation.
BAPI_PROCORD_COMPLETE_TECH - Complete Technically
BAPI_PROCORD_RELEASE - Release Process order
BAPI_PROCORD_SET_DELETION_FLAG - Deletion Flag
BAPI_PROCORD_REVOKEUSERSTATUS - Cancel User Status
BAPI_PROCORD_SCHEDULE - Carry Out Scheduling
pls refer below link
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/200dd1cc-589e-2910-98a9-bb2c48b78dfa
http://help.sap.com/saphelp_nw04/helpdata/en/e0/9eb2370f9cbe68e10000009b38f8cf/frameset.htm
Regards,
Sankaran
Similar Messages
-
I am trying to find a function module or BAPI for internal order change. I
I am trying to find a function module or BAPI for internal order change. I did come across a function module ALE_INTERNALORDER_DB_CHANGE which directly updates the internal order using insert statements. Can i use this for internal order change or this is any other Function module for updating the internal order.
I dont want to use BDC as a option. Please suggest.This is possible using the Rotator Component Widget from Infosemantics.com.au but it is only compatible with SWF output, not HTML5.
Go to this page and scroll down to the video tutorials about the Rotator Component widget:
http://www.infosemantics.com.au/adobe-captivate/youtube-video-tutorials -
BAPI For Process Order Confirmation
Hi,
For Process Order Confirmation we are using the following tcode. COR6N. in the t-code we are include a new field (Shift Field) with help of CONFPP07. and we made the field as mandatory also. in cor6n it is working fine.
now we are using the bapi for same Process Order Confirmation. here the new field is not available. we want to include the new ( Shift ) Field also. we are using the following
BAPI Fm: BAPI_PROCORDCONF_CREATE_TT .
Regards
SathisBAPI_PRODORDCONF_CREATE_TT to confirm a production Order
Erwan -
BAPI for process order header delivered quantity
Hi,
current requirement is to get the process order quantity with drawn and delivered quantity , when we try using the BAPI
BAPI_PROCORD_GET_DETAIL , it does not have the process order delivered quantity - it has only total quantity for which process order is created .
Is there a way or any standard BAPI/RFC gives the below :
1. Process Order Header Delivered Quantity
2. Process order component's quantity with drawn
Regards,
Madhu KiranHi Madhu Kiran,
BAPI_PROCORD_GET_DETAIL of course has all the required fields:
1. --> check table POSITION, field DELIVERED_QUANTITY
2. --> check table COMPONENT, field WITHDRAWN_QUANTITY
Regards,
Andreas -
BAPI for Process order creation (COR1)
Hi All,
Can any please help me to find a BAPI for creating a process order which is done normally by transaction code u201CCOR1u201D.
Thanks in advance.
Kind Regards,
Abhi.Try this BAPI - BAPI_PROCORD_CREATE.
there are many BAPIs in Fuinction group 0001_BAPI realted with Process Order
Thanks,
rajinikanth G -
Hi ,
Iam using BAPI_SALESORDER_CHANGE in order to change the material and to change the customer with new customer .so what are the input fields that i should enter?
thanks & Regards,
Gangadhar.Hi Sathish,
Check this code,
REPORT Z_SALES_ORDER_CHANGE
NO STANDARD PAGE HEADING
LINE-SIZE 132
LINE-COUNT 65(0)
MESSAGE-ID ZZ.
TABLES: VBAP.
DATA:
V_FILEIN(90) TYPE C,
V_RECIN TYPE I,
V_RECVBAP TYPE I,
V_RECORDER TYPE I,
V_VBELN LIKE VBAP-VBELN,
ORDERHEADERINX LIKE BAPISDH1X.
DATA: BEGIN OF I_ORDERS OCCURS 0,
VBELN LIKE VBAK-VBELN,
POSNR LIKE VBAP-POSNR,
BRGEW(18) TYPE C,
VOLUM(18) TYPE C,
END OF I_ORDERS.
DATA: BEGIN OF I_OUTPUT OCCURS 0,
VBELN LIKE VBAK-VBELN,
POSNR LIKE VBAP-POSNR,
GEWEI LIKE VBAP-GEWEI,
BRGEW LIKE VBAP-BRGEW,
VOLUM LIKE VBAP-VOLUM,
CKWGT TYPE C,
CKVOL TYPE C,
END OF I_OUTPUT.
DATA: BEGIN OF ORDERITEMIN OCCURS 0.
INCLUDE STRUCTURE BAPISDITM.
DATA: END OF ORDERITEMIN.
DATA: BEGIN OF ORDERITEMINX OCCURS 0.
INCLUDE STRUCTURE BAPISDITMX.
DATA: END OF ORDERITEMINX.
DATA: BEGIN OF RETURN OCCURS 0.
INCLUDE STRUCTURE BAPIRET2.
DATA: END OF RETURN.
DATA: BEGIN OF BAPIRETURN OCCURS 0.
INCLUDE STRUCTURE BAPIRET2.
DATA: END OF BAPIRETURN.
PARAMETERS:
P_PATH(45) TYPE C DEFAULT '/usr/users/ftpsapom/' LOWER CASE,
P_FNAME(32) TYPE C DEFAULT '/sweetjo.txt' LOWER CASE.
START-OF-SELECTION.
CONCATENATE PATH AND FILE NAME INTO ONE VARIABLE
CONCATENATE P_PATH P_FNAME INTO V_FILEIN.
OPEN DATASET
IF V_FILEIN IS INITIAL.
MESSAGE E002 WITH 'FILE' V_FILEIN 'DOES NOT CONTAIN ANY DATA!'.
ELSE.
OPEN DATASET V_FILEIN
FOR INPUT
IN TEXT MODE.
IF SY-SUBRC = 0.
READ DATASET
DO.
READ DATASET V_FILEIN INTO I_ORDERS.
IF SY-SUBRC = 0.
APPEND I_ORDERS.
ELSE.
EXIT.
ENDIF.
ENDDO.
CLOSE DATASET
CLOSE DATASET V_FILEIN.
IF SY-SUBRC <> 0.
MESSAGE E002 WITH 'ERROR - CLOSING' V_FILEIN.
ENDIF.
ELSE.
MESSAGE E002 WITH 'ERROR - COULD NOT OPEN' V_FILEIN.
ENDIF.
ENDIF.
SORT AND REMOVE DUPLICATES FROM I_ORDERS
SORT I_ORDERS BY VBELN POSNR.
DELETE ADJACENT DUPLICATES FROM I_ORDERS.
POPULATE I_OUTPUT
LOOP AT I_ORDERS.
SHIFT I_ORDERS-POSNR LEFT DELETING LEADING SPACE.
CONCATENATE '0' I_ORDERS-POSNR INTO I_ORDERS-POSNR.
SELECT SINGLE BRGEW VOLUM
FROM VBAP
INTO (VBAP-BRGEW, VBAP-VOLUM)
WHERE VBELN = I_ORDERS-VBELN
AND POSNR = I_ORDERS-POSNR.
IF SY-SUBRC = 0.
IF VBAP-BRGEW = 0.
I_OUTPUT-CKWGT = 'X'.
ENDIF.
IF VBAP-VOLUM = 0.
I_OUTPUT-CKVOL = 'X'.
ENDIF.
I_OUTPUT-VBELN = I_ORDERS-VBELN.
I_OUTPUT-POSNR = I_ORDERS-POSNR.
I_OUTPUT-GEWEI = 'ST'.
I_OUTPUT-BRGEW = I_ORDERS-BRGEW.
I_OUTPUT-VOLUM = I_ORDERS-VOLUM.
APPEND I_OUTPUT.
CLEAR: I_OUTPUT.
ENDIF.
V_RECIN = V_RECIN + 1.
ENDLOOP.
POPULATE BAPI DATA AND RUN BAPI
CLEAR: ORDERHEADERINX, ORDERITEMIN, ORDERITEMINX,
RETURN, BAPIRETURN.
REFRESH: ORDERITEMIN, ORDERITEMINX, RETURN, BAPIRETURN.
ORDERHEADERINX-UPDATEFLAG = 'U'.
LOOP AT I_OUTPUT WHERE CKWGT = 'X' OR CKVOL = 'X'.
V_RECVBAP = V_RECVBAP + 1.
IF I_OUTPUT-VBELN <> V_VBELN AND SY-TABIX <> 1.
V_RECORDER = V_RECORDER + 1.
CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
EXPORTING
SALESDOCUMENT = V_VBELN
ORDER_HEADER_INX = ORDERHEADERINX
TABLES
RETURN = RETURN
ORDER_ITEM_IN = ORDERITEMIN
ORDER_ITEM_INX = ORDERITEMINX.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
WAIT = 'X'
IMPORTING
RETURN = BAPIRETURN.
WRITE OUT RETURN
LOOP AT RETURN.
WRITE: / RETURN.
ENDLOOP.
WRITE: / BAPIRETURN.
SKIP.
CLEAR: ORDERITEMIN, ORDERITEMINX,
RETURN, BAPIRETURN.
REFRESH: ORDERITEMIN, ORDERITEMINX, RETURN, BAPIRETURN.
ENDIF.
ORDERITEMIN-ITM_NUMBER = I_OUTPUT-POSNR.
ORDERITEMIN-UNTOF_WGHT = I_OUTPUT-GEWEI.
IF NOT I_OUTPUT-CKWGT IS INITIAL.
ORDERITEMIN-GROSS_WGHT = I_OUTPUT-BRGEW.
ORDERITEMINX-GROSS_WGHT = 'X'.
ENDIF.
IF NOT I_OUTPUT-CKVOL IS INITIAL.
ORDERITEMIN-VOLUME = I_OUTPUT-VOLUM.
ORDERITEMINX-VOLUME = 'X'.
ENDIF.
APPEND ORDERITEMIN.
ORDERITEMINX-ITM_NUMBER = I_OUTPUT-POSNR.
ORDERITEMINX-UNTOF_WGHT = 'X'.
ORDERITEMINX-UPDATEFLAG = 'U'.
APPEND ORDERITEMINX.
V_VBELN = I_OUTPUT-VBELN.
ENDLOOP.
RUN BAPI ON LAST ORDER
IF NOT ORDERITEMIN IS INITIAL.
V_RECORDER = V_RECORDER + 1.
CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
EXPORTING
SALESDOCUMENT = V_VBELN
ORDER_HEADER_INX = ORDERHEADERINX
TABLES
RETURN = RETURN
ORDER_ITEM_IN = ORDERITEMIN
ORDER_ITEM_INX = ORDERITEMINX.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
WAIT = 'X'
IMPORTING
RETURN = BAPIRETURN.
WRITE OUT RETURN
LOOP AT RETURN.
WRITE: / RETURN.
ENDLOOP.
WRITE: / BAPIRETURN.
SKIP.
ENDIF.
WRITE OUT RECORD COUNT FROM FILE
WRITE: / 'RECORD COUNT FROM FILE ', V_RECIN.
SKIP.
WRITE OUT RECORD COUNT FROM FILE
WRITE: / 'RECORD COUNT OF LINES TO CHANGE ', V_RECVBAP.
SKIP.
WRITE OUT RECORD COUNT FROM FILE
WRITE: / 'RECORD COUNT OF ORDERS TO CHANGE ', V_RECORDER.
SKIP.
TOP OF PAGE
TOP-OF-PAGE.
WRITE:/1(5) TEXT-H01, 6(8) SY-DATUM MM/DD/YY,
100(8) TEXT-H02, 126(8) SY-PAGNO.
WRITE:/1(5) TEXT-H03, 6(8) SY-UZEIT USING EDIT MASK '__:__:__',
20(77) TEXT-H04,
100(8) TEXT-H05, 108(25) SY-REPID.
WRITE:/1(6) TEXT-H06, 8(12) SY-UNAME,
20(4) TEXT-H07, 25(32) SY-HOST,
100(13) TEXT-H08, 121(8) SY-SYSID,
129 '/', 130(3) SY-MANDT.
ULINE.
SKIP.
Good Luck and thanks
AK -
Function module/ Bapi for Sales order change
Hi Experts,
I require to have a Bapi/ function module to change a existing sales order to insert value in the field VBAP-SOBKZ.
Please suggest.
Thanks,
Shibaji.HI,
I have identified this Bapi but this Bapi does not contain the relevant field to update. Can you suggest any other Function module/ Bapi to update the field.
Thanks & Regards,
Shibaji -
BAPI for Purchase order change
Hi experts,
I just want to change PO quantity by BAPI function module: BAPI_PO_CHANGE, I fill in PO number, Item number, material number and PO quantity to parameters, but result is not well. it shows a message below and the purchase order is not changed.
message:
For the currency code ALE communication is not allowed
Message no. B1889
Diagnosis
The ISO code assigned to the current currency code is not unique and the primary flag is NOT set. This currency code can therefore not be used for external communication.
I checked currency config in SPRO and the assignment of ISO code is unique and the primary flag is setted actually.
so what else can I do to solve this problem.
thanks in advance.
jackThe B1889 message has the following reasons:
-> The primary flag of the found ISO code is assigned more than once.
-> The ISO code is not unique and the primary flag is not assigned
for associated SAP currency codes.
-> The ISO code is not unique and the current SAP currency code has
NOT assigned the primary flag.
First case: CC ISOCD XPRIMARY
CNY CNY X
RMB CNY
Your ISO code is not unique, therefore you are using the primary flag.
If a dataset wich currency code CNY is encountered, everything is ok
because none of the 3 rules mentioned above can be applied.
If a dataset contains currence code RMB, rule (3) will be applied.
Therefore, you get the following output in this case:
"For curreny code RMB ALE Communication is not allowed"
Second case: CC ISOCD XPRIMARY
CNY CNY
RMB CNY X
If a dataset contains currency code RMB, everything is ok because it is
flagged as primary. Like in the first case, if CNY is encountered,
rule (3) will be applied and you will get the output:
"For curreny code CNY ALE Communication is not allowed"
If you are using both CNY and RMB together, it is not possible to avoi
the B1889 message beause there will be always the case that your ISO
code is not unique AND that one currency code is not flagged as primary,
which is summed up in rule (3).
Please see information in attached note "144349 ALE: Problems with
currency conve". -
What Message type and Process Code to use for Purchase Order Change in 4.6C
I like to implement in SAP R/3 4.6C a scenario for Purchase Order Change, via inbound IDoc.
I have been searching, but could not find what Message Type, Idoc Basic Type and Process Code to use.
I can not imagine this functionality does not exist in 4.6C.
Any suggestions for my problem are welcome.Hello,
In this case you should use the message PORDCH and BAPI method BAPI_PO_CHANGE but only exist as of release 4.7.
Function module BAPI_IDOC_INPUT1
Idoc Type PORDCH01
Message Type PORDCH
So check carefully the following OSS notes:
[Notes 589066 - BAPI_PO_CHANGE: Incorrect account assignment to network |https://service.sap.com/sap/support/notes/589066] (not be fooled by the description)
[ Notes 197958 - BAPIs for purchase orders - Missing Functions|https://service.sap.com/sap/support/notes/197958]
Regards,
Andrea
Edited by: Andrea Olivieri on Sep 3, 2009 10:17 AM -
Need a BAPI/FM for process Order Confirmation
Hi guys,
I need a bapi or Fm for process Order confirmation.
thnx in advanceChecck
BAPI_PRODORDCONF_CREATE_ACT
BAPI_PRODORDCONF_CREATE_HDR
BAPI_PRODORDCONF_CREATE_TE
BAPI_PRODORDCONF_CREATE_TT
Better read the documentation of each BAPi using the tcode BAPI and proceed.
I feel BAPI_PRODORDCONF_CREATE_HDR would do your purpose.
Documentaion:
<b>
You can use this method to enter order confirmations for production orders.
You can also transfer good movements, that are posted together with a confirmation. If no goods movements have been entered for a confirmation, they are determined using the standard logic for backflushing and automatic goods receipt for confirmations. </b> -
Update batch for process order in change mode
Hi All ,
I need to update the batch number(which will be external batch number given by me ) in COR2 (process order change) transaction ,under the tab Goods receipt .
Is there any bapi which achieves this ?? pls reply
Thanks .try use BAPI_RESERVATION_CHANGE
-
GR Cost not updating as Target Cost for process orders
Dear SAPians,
We are facing an issue in Target Vs Actual cost reporting for process orders. We are creating a process order after cost estimate of that material and doing the confirmations for activity cost. After that, GR has been done for the finished goods of that process order. That GR entry is updating the Actuals values but not updating the Target cost. When I am checking the standard report KKBC_ORD, I am getting the following figures.
Cost Elemnt Text | Target Cost | Actual Cost | Target Vs Act
Inventory Chnge FG | 0 | 1,472,205.60- | 1,472,205.60-
Packing Matrl Cons. | 1,148,142.37 | 1,252,752.68 | 104,610.31
Raw Material Cons. | 60,463.91 | 50,688.29 | 224.38
Semi-Fin Matrl Cns. | 181,934.68 | 367,959.56 | 186,024.88
Labour Cost Activity | 39,735.36 | 39,862.80 | 127.44
Machine Cst Activty | 41,611.75 | 43,153.01 | 1,541.26
That 'Inventory Change FG' entry is showing the GR posting updating actuals and not target cost. This is causing huge difference in target vs actual cost that will affect the profit and loss figures ultimately.
What am I missing here? What should I do to update the GR amount in Target cost as well.
ShiraziDear,
Target Cost on Production Order or Process Order is shown only when Variance is Calculated.
So please calculate the Variance, system will show the Total Target Cost.
Br,Vivek -
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 -
Issues during Component Batch Determination for Process Orders
Hi,
I am encountering a strange issue during component batch determination of process order.
1. During creation of process order, when I execute batch determination, systems does determination based on strategies we have set and when I click on Copy it gives an error
"Log cannot be saved: Object/subobject not specified"
Message no. BL201
*Diagnosis
Log save cancelled because at least one log contains no object or subobject.
Object and subobject are needed to classify application logs because there are several log types. Only a few logs are managed in main memory at runtime, so this classification is not needed.
If the logs are to be saved in the database, object/subobject must be specified for later retrieval.
Procedure for System Administration
Object/sub object can be passed when a log is created (function module BAL_LOG_CREATE) and changed with BAL_LOG_CHANGE.
The possible values for object and sub object must be configured in transaction SLG0.*
If I save the order with CRTD status and come back again in change mode and do determination, It works fine.
Again when the order is in REL status and do the determination, It gives the same error.
This happens only for a specific plant, In other plants batch determination works in all scenarios.
I checked for all plant related Config for batch determination and coudn't find any discrepancies.
Please advise how to resolve this issue. Thanks in advance for your help
Regards,
AheeshThere Is no direct solution for your requirement just try this work around.
While defining the batch determination search strategy for process order in COB1, there is one column Quantity proposal where you can attach the Routines (This is written in ABAB code ) make use of this, define New Routines with ABAB help to fulfill your requirement. Try this if found useful award full points.
Regards,
Ajay Nikte -
BAPI for Purchase Order Confirmation and update EKES table
Hi all,
I have a requirement to update the PO confirmation soon after successful creation of PO in an IDOC.
I have used BAPI_PO_CHANGE function module which didnt serve the purpose as it cannot update confirmations.
I tried using ME_CONFIRMATION_UPDATE where I was able to add a confirmation entry in EKES table but that is not being reflected in ME23N transaction when I display the PO.
Please help me out on this.
Thanks & Regards
PavanNB: Never use a standard update FM (check attributes of ME_CONFIRMATION_UPDATE) its often only a SQL statement collector without any check, logging of changes or database consistency, if you perform a where-used you should find it is never called alone but with a bunch of other update FM after checks and other update preparation.
Get back to the BAPI and table parameter POCONFIRMATION, also use BAPI_PO_GETDETAIL1 to get current data for the call of BAPI_PO_CHANGE.
Regards,
Raymond
PS: If it is not in 197958 - BAPIs for purchase orders: Missing functions, you should be able to do it
Maybe you are looking for
-
Dear All, I want to develop a Report in which i want pending Invoice Receipt for a Vender for a particular period. In MB5S, there is not a date criteria. User Want pending GR-IR clearing for a particular date Range. So, please suggest Table i can use
-
Unable to load Dataclass-Information from Syncservices, Itunes 9.1.0.79
Hi all Since I've updated to the newest Itunes version 9.1.0.79 I am not able to sync my Iphone 3GS (with the newest software) with Outlook anymore. I have tried everything mentionned in this forum (add path to system variables, copy files from appli
-
How to force device text to be rendered by adobe renderer
Hi all, This seems to be the best place to ask this question. The developers of TLF are very responsive and I am sure that is appreciated by many. I am hosting SWF files in a parent SWF and the child SWF's can be developed in a way I do not have comp
-
How can I proxy into my dad's computer to give him technical help?
I need to proxy into my dad's computer (to see what he is seeing) to help him with his almost weekly technical problems. We are both running 10.4.X. Is there an easy (or somewhat easy) way to do this or are there third party downloads to deal with? A
-
HP envy headphones not working
I have windows 7 on my HP envy 3D laptop. The headphones have suddenly stopped working when I put them in the jack. They work with my other devices but not with this laptop. Please help. I have enabled all the settings. From reading the posts here, I