FORM FRM_CREATE_PRODORD CHANGING P_FW_OUTPUT STRUCTURE GS_OUTPUT. DATA:LS_ORDERDATA TYPE BAPI_PP_ORDER_CREATE. DATA:LS_RETURN TYPE BAPIRET2, LV_ORDER_NUMBER TYPE BAPI_ORDER_KEY-ORDER_NUMBER. CLEAR:LS_ORDERDATA. LS_ORDERDATA-MATERIAL_LONG = P_FW_OUTPUT-MATNR. LS_ORDERDATA-PLANT = P_...
clear:ls_return,lv_order_number,ls_bapi_pp_order_create. ls_bapi_pp_order_create-order_type = gt_alv-auart."订单类型 ls_bapi_pp_order_create-material = gt_alv-matnr."订单物料号 * ls_bapi_pp_order_create-plant = gt_alv-werks."订单工厂 ls_bapi_pp_order_create-plant = '1021'."...
创建生产订单函数BAPI_PRODORD_CREATE 创建生产订单,创建订单长文本,订单下达 DATA:gs_bapi_pp_order_createTYPEbapi_pp_order_create.DATA:gt_bapi_order_keyTYPETABLEOFbapi_order_key, gs_bapi_order_keyTYPEbapi_order_key, gt_order_returnTYPETABLEOFbapi_order_returnWITHHEADERLINE.DATA:gs_returnTYPEbapi...
* LS_ORDERDATA-UNLOADING_POINT = P_FW_OUTPUT-ZHTBM. CALL FUNCTION 'BAPI_PRODORD_CREATE' EXPORTING ORDERDATA = LS_ORDERDATA * FSH_PRODORD_SEASON = IMPORTING RETURN = LS_RETURN ORDER_NUMBER = LV_ORDER_NUMBER * ORDER_TYPE = . IF LS_RETURN-TYPE = 'E'. CALL FUNCTION 'BAPI_TRANSACTION_RO...
这个BAPI用于根据一个已知的Production Order创建新的Production Order,调用此函数需要传入参数REFCOPY,该参数是一个structure变量,里面有五个field的值是必传的:REFERENCE_ORDER/BASIC_START_DATE/BASIC_START_TIME/BASIC_END_DATE/BASIC_END_TIME 当你创建的新的Production Order的Order type和已知的...
how can I cancel the execution of the bapi BAPI_PRODORD_CREATE after it has been executed and I must necessarily commit because after this bapi I have to perform other operations and if these go wrong then I have to cancel the BAPI_PRODORD_CREATE so that the order is no longer present?
Solved: We are having an issue in using this BAPI on mass creating of production orders BAPI_PRODORD_CREATE. I'm getting this message: E CO 027 Forward
CALL FUNCTION 'BAPI_PRODORD_CREATE'EXPORTING orderdata = ls_orderdata IMPORTING ...
2012-04-11 10:56 −如果生产订单过多,可以批量创建生产订单,例如通过上传excel文件来批量创建,系统也有相应BAPI,否则BDC又很慢。 创建生产订单: 'BAPI_PRODORD_CREATE‘ CALL FUNCTI... 阿宝兴荣 0 4944 ABAP 生产订单的创建与修改函数 2017-01-06 18:47 −ABAP 生产订单的创建与修改函数转自http://www...
call function 'BAPI_PRODORD_CREATE_FROM_REF' exporting refcopy = ls_refcopy importing order_number = lv_order_number order_type = lv_order_type return = ls_return. if lv_order_number is not initial. perform frm_lock using lv_order_number. ...