Professional Documents
Culture Documents
k ve Egitim Platfor…
Forumlar SAP Modules Overview - Transaction Codes MAN Production Planning (PP)
SAP BLOG Process / Production Order Component / Operation Changes
SAP Blog · 14 Ağu 2022
Manufacturing Sustainability
Agility for Competitiveness: Transforming manufacturing operations for
business agility
S
SAP Blog
Kayıtlı Üye
14 Ağu 2022 #1
Today, I would like to introduce an amazing feature that Process / Production Order component changes allowed in SAP ECC & S4HANA for any operations as per business
requirements.
Generally we do addition or deletion of components by going to CO02 transaction and then to component overview and do the operation. But what if we need to do it from
program level.
Problem / Pain Area: Businesses like Textile, Steel having these type of requirement while converting planned order to process order they want to change component quantities
based on resource / work center those can be fulfilled.
Also sometime due to scheduling / change in resource we need to change component / operation timing / operation resource or work-center in Process Order / Production Order.
Extension of BAPI for Production / Process Order: Kindly raise ticket to SAP to activate / extend BAPI_ALM_ORDER_MAINTAIN for your system so you can change
component / operation timing / operation resource or work-center in Process Order / Production Order: Use Note 1694267 – BAPI_ALM_ORDER_MAINTAIN not for work orders
Manufacturing Sustainability
Create a digital thread that contextualizes information across operations.
https://sapofis.com/konu/process-production-order-component-operation-changes.3087/#post-4515 1/4
5/15/23, 4:17 PM SAP BLOG - Process / Production Order Component / Operation Changes | SAP Modulleri Kullanici Destek ve Egitim Platfor…
wa_partner like line of it_partner,
it_partner_up type standard table of bapi_alm_order_partn_mul_up,
it_operation type standard table of bapi_alm_order_operation,
wa_operation like line of it_operation,
it_operation_up type standard table of bapi_alm_order_operation_up,
it_relation type standard table of bapi_alm_order_relation ,
แลกรางวัลกับนมเปรี้ยวดัชมิลล์ เปิด
DUTCH MILL
https://sapofis.com/konu/process-production-order-component-operation-changes.3087/#post-4515 2/4
5/15/23, 4:17 PM SAP BLOG - Process / Production Order Component / Operation Changes | SAP Modulleri Kullanici Destek ve Egitim Platfor…
*it_header_srv-distr_chan = '10'.
*it_header_srv-division = '10'.
*append it_header_srv. clear it_header_srv.
**-- Partner Information
wa_methods-refnumber = '000001'.
wa_methods-objecttype = 'PARTNER'.
wa_methods-method = 'CREATE'.
wa_methods-objectkey = ORDERID.
append wa_methods to it_methods. clear wa_methods.
*
clear wa_partner.
wa_partner-orderid = ORDERID.
wa_partner-partn_role = 'VW'. "'ZC'. "'VW'. "'AG'.
wa_partner-partner = partner. " '57734'. "'C6130'.
append wa_partner to it_partner. clear wa_partner.
**IT_PARTNER-ORDERID = '%00000000001'.
**IT_PARTNER-PARTN_ROLE = 'WE'.
**IT_PARTNER-PARTNER = '3500000'.
**APPEND IT_PARTNER. CLEAR IT_PARTNER.
**IT_PARTNER-ORDERID = '%00000000001'.
**IT_PARTNER-PARTN_ROLE = 'VW'.
**IT_PARTNER-PARTNER = '88899'.
**APPEND IT_PARTNER. CLEAR IT_PARTNER.
**-- Operation Mapping
wa_methods-refnumber = '000001'. " Operation-1
wa_methods-objecttype = 'OPERATION'.
wa_methods-method = 'CREATE'.
concatenate ORDERID '0010' into wa_methods-objectkey.
append wa_methods to it_methods. clear wa_methods.
*clear wa_operation.
wa_operation-activity = '0010'.
wa_operation-control_key = 'ZPM1'.
wa_operation-DESCRIPTION = shorttxt.
*wa_operation-acttype = mn_wk_ctr.
**wa_operation-work_activity = '5.0'.
*wa_operation-un_work = 'H'.
**wa_operation-duration_normal = '5.0'.
*wa_operation-duration_normal_unit = 'H'.
**IT_OPERATION-STANDARD_TEXT_KEY = 'UP314'. "no val maintained
*wa_operation-calc_key = ' '.
*
append wa_operation to it_operation. clear wa_operation.
refresh return.
call function 'BAPI_ALM_ORDER_MAINTAIN'
TABLES
it_methods = it_methods
it_header = it_header
it_header_up = it_header_up
it_header_srv = it_header_srv
it_header_srv_up = it_header_srv_up
it_userstatus = it_userstatus
it_partner = it_partner
it_partner_up = it_partner_up
it_operation = it_operation
it_operation_up = it_operation_up
it_relation = it_relation
it_relation_up = it_relation_up
it_component = it_component
it_component_up = it_component_up
it_text = it_text
it_text_lines = it_text_lines
extension_in = extension_in
return = return
et_numbers = et_numbers.
loop at return into wa_return.
endloop.
skip.
loop at et_numbers into wa_numbers.
createdorder = wa_numbers-aufnr_new.
exit.
endloop.
call function 'BAPI_TRANSACTION_COMMIT'
EXPORTING
wait = 'X'.
CALL FUNCTION 'DEQUEUE_ALL'
EXPORTING
_SYNCHRON = 'X'.
commit work and wait.
* Contains number of created order
shift createdorder left DELETING LEADING '0'.
write:/ 'Works Order:', createdorder.
Benefits:
By Using this code SAP functional / technical consultants fulfill business requirements
https://sapofis.com/konu/process-production-order-component-operation-changes.3087/#post-4515 3/4
5/15/23, 4:17 PM SAP BLOG - Process / Production Order Component / Operation Changes | SAP Modulleri Kullanici Destek ve Egitim Platfor…
Businesses like Textile having dyelot processes while converting planned order to process order they want to change component quantities based on resource / work center
those can be fulfilled
Pls follow my profile for future blogs related to SAP Production Planning & Execution.
Regards,
Ramanand Mittal.
Manufacturing Sustainability
Learn More
Agility for Competitiveness: Transforming
manufacturing operations for business agility
AVEVA
Paylaş:
Forumlar SAP Overview
Modules -Transaction
Codes MAN Production Planning (PP)
Turkce (TR) Bize Ulaşın Kullanım ve Şartlar Gizlilik Politikası Yardım Ana Sayfa
https://sapofis.com/konu/process-production-order-component-operation-changes.3087/#post-4515 4/4