메뉴 건너뛰기

SAP 한국 커뮤니티



구매오더 delivery complete & 생산오더 Technical complete

머리를쓰자 2015.01.23 09:23 조회 수 : 3909

1. 일반 구매오더, 임가공 구매오더의 delivery complete 를 처리할 수 있습니다.

 // po 입력
      i_poitem-po_item i_poitemx-po_item w_ebelp.

// Delivery Completed
      i_poitem-no_more_gr i_poitemx-no_more_gr 'X'.

// Outward Delivery Completed
      i_poitem-deliv_compl i_poitemx-deliv_compl  'X'.

// table 로 넘길 수 있다

      append i_poitem.
      append i_poitemx.

      CALL FUNCTION 'BAPI_PO_CHANGE'
        EXPORTING
          purchaseorder w_ebeln
        TABLES
          return        i_return
          poitem        i_poitem
          poitemx       i_poitemx.

 

2. 생산오더 Technical complete 할수 있습니다.

    CALL FUNCTION 'BAPI_PRODORD_COMPLETE_TECH'
        EXPORTING
          scope_compl_tech '1'
        IMPORTING
          return           l_return
        TABLES
          orders           l_orders
          detail_return    l_detail_return.