/scripts/ahub.form.attachments.js
0

bapi_po_change shipping instruction is not getting updated.

Mar 03, 2017 at 07:58 AM

33

avatar image

loop at it_upload into wa_upload. refresh: it_poitem ,it_poitemx. clear:purchaseorder,wa_expheader. clear : wa_poitem ,wa_poitemx , wa_poheader,wa_poheaderx . purchaseorder = wa_upload-EBELN. if wa_temp NE wa_upload-EBELN. * at new EBELN. " changing document header data when header info getting changed. ************************************************************ * filling document header data (Purchase Order) ************************************************************ wa_poheader-PO_NUMBER = wa_upload-ebeln. wa_poheader-PMNTTRMS = wa_upload-DZTERM. wa_poheader-INCOTERMS1 = wa_upload-INCO1. * append wa_poheader to it_poheader. wa_poheaderx-PO_NUMBER = wa_ekpo-ebeln. wa_poheaderx-PMNTTRMS = 'X'. wa_poheaderx-INCOTERMS1 = 'X'. endif. * endat. wa_temp = wa_upload-EBELN. ************************************************************ * Filling document line item values(purchase order) ************************************************************ wa_poitem-po_item = wa_upload-ebelp. wa_poitem-SHIPPING = wa_upload-evers. wa_poitem-TAX_CODE = wa_upload-mwskz. append wa_poitem to it_poitem. wa_poitemx-po_item = wa_ekpo-ebelp. wa_poitemx-SHIPPING = 'X'. wa_poitemx-TAX_CODE = 'X'. append wa_poitemx to it_poitemx. CALL FUNCTION 'BAPI_PO_CHANGE' EXPORTING purchaseorder = purchaseorder poheader = wa_poheader poheaderx = wa_poheaderx IMPORTING expheader = wa_expheader * EXPPOEXPIMPHEADER = TABLES return = it_return poitem = it_poitem poitemx = it_poitemx. commit work. clear: wa_poitem ,wa_poitemx. ENDLOOP.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

0 Answers

Skip to Content