메뉴 건너뛰기

SAP 한국 커뮤니티

<img src=2.gif>계약수정시 품목 단가 수정 문제

ABAP하는사람 2010.07.12 16:43 조회 수 : 1946

 


현재  제가

'BAPI_CONTRACT_CHANGE' 를 사용해서 계약을 수정할려고하는데 단가가 변경이 안됩니다.


받아오는 메세지는 성공햇다고 받아오는데 조회해보면 변경이 되지않습니다.


아래에 제 소스인데 어느부분이 틀렸는지 모르겠습니다.


고수님들의 귀한 조언 부탁드리겠습니다. 감사합니다.


 


 

***단가계약 번호
  header-number  = it_out2-ebeln.
  headerx-number = 'X'.

***지급조건
  header-pmnttrms  = con2-zterm.
  headerx-pmnttrms = 'X'.

***구매그룹
  header-pur_group  = eban-ekgrp.
  headerx-pur_group = 'X'.

***유효기간FROM
  header-vper_start  = con2-from.
  headerx-vper_start = 'X'.

***유효기간TO
  header-vper_end    = con2-to.
  headerx-vper_end   = 'X'.

***인도조건
  header-incoterms1  = con2-inco1.
  headerx-incoterms1 = 'X'.

***행번
  item-item_no  = it_out2-ebelp.
  itemx-item_no = it_out2-ebelp.
  itemx-item_nox = 'X'.

***플랜트
  IF t024e-ekorg = '3000'.
    item-plant  = it_out2-werks.
    itemx-plant = 'X'.
  ENDIF.

***목표수량
  item-target_qty  = it_out2-limit_num.
  itemx-target_qty = 'X'.

***VAT코드
  item-tax_code    = it_out2-mwskz.
  itemx-tax_code   = 'X'.

***단가
  item-net_price   = it_out2-danga3.
  itemx-net_price  = 'X'.

***PER
  item-price_unit  = it_out2-per.
  itemx-price_unit = 'X'.

  APPEND: item,itemx.
  CLEAR : item,itemx.


***단가계약 행번
  itemcond-item_no  = it_out2-ebelp.
  itemcondx-item_nox = 'X'.
  itemcondx-item_no = it_out2-ebelp.

  CONCATENATE it_out2-ebeln it_out2-ebelp INTO it_out2-vakey.
  SELECT SINGLE knumh FROM konh
                     INTO it_out2-knumh
                     WHERE vakey = it_out2-vakey.
  SELECT SINGLE kopos FROM konp
                        INTO it_out2-kopos
                       WHERE knumh = it_out2-knumh
                       AND   loevm_ko = ' '.

***serial id
  itemcond-serial_id = it_out2-knumh.
  itemcondx-serial_id = it_out2-knumh.
  itemcondx-serial_idx = 'X'.

***count
  itemcond-cond_count = it_out2-kopos.
  itemcondx-cond_count = it_out2-kopos.
  itemcondx-cond_countx = 'X'.

*  itemcond-deletion_ind = 'L'.
*  itemcondx-deletion_ind = 'X'.


***단가타입
  itemcond-cond_type  = 'PB00'.
  itemcondx-cond_type = 'X'.

**단가VALUE
  itemcond-cond_value  = it_out2-danga3.
  itemcondx-cond_value = 'X'.

***PER
  itemcond-cond_p_unt  = it_out2-per.
  itemcondx-cond_p_unt = 'X'.

  itemcond-change_id   = 'U'.

  APPEND: itemcond, itemcondx.
  CLEAR : itemcond, itemcondx.

  CALL FUNCTION 'BAPI_CONTRACT_CHANGE'
    EXPORTING
      purchasingdocument = it_out2-ebeln
      header             = header
      headerx            = headerx
    IMPORTING
      exp_header         = header
    TABLES
      item               = item[]
      itemx              = itemx[]
      item_condition     = itemcond[]
      item_conditionx    = itemcondx[]
      extensionout       = gt_extensionout[]
      return             = gt_return[].

번호 제목 글쓴이 날짜 조회 수
5032 <img src=3.gif>스마트폼시 nextpage 를 어떻게 구현하는건지 ..잘 안됩니다..도와주세요.. [2] hoon 2010.07.13 1796
» <img src=2.gif>계약수정시 품목 단가 수정 문제 [3] ABAP하는사람 2010.07.12 1946
5030 <img src=3.gif>smartform OTF->PDF변환인데 급해욧! ㅠ.ㅠ 도와주세요 [1] 도라에멍 2010.07.12 1975
5029 [re] <img src=2.gif>smartform OTF->PDF변환인데 급해욧! ㅠ.ㅠ 도와주세요 꿈틀 2010.07.13 1683
5028 <img src=2.gif>ecatt로 데이터 입력관련 문의입니다. [1] file 바다사랑 2010.07.12 1836
5027 <img src=2.gif>class ALV - REFRESH에서 변경된 라인만 refresh 가능한지... [3] 글쎄다 2010.07.12 1920
5026 <img src=3.gif>Loop를 딱 10회만 돌리는 방법을 알고 싶습니다. [6] 모포 2010.07.12 1863
5025 <img src=2.gif>아밥에는....형변환이 가능한가요? c --> p 혹은 c--->p 이런거 없나요? [5] marco 2010.07.12 4289
5024 <img src=3.gif>테이블 컨트롤에서 선택열 클릭시 이벤트 발생시킬수 있나요? [5] 기쁨 2010.07.09 2074
5023 <img src=3.gif>read table ~ binary search 질문?? [4] agosto8 2010.07.09 2798
5022 <img src=3.gif>sap 세션은 몇개 까지 열수 있을 까요? [4] 김광석 2010.07.09 1493
5021 <img src=3.gif>webdyn에서 view의 layout에서 웹 페이지를 표시할 수 없다는 메시지가.. [2] 초코 2010.07.09 1592
5020 <img src=2.gif>plus abap smartforms 질문 난 왜 ms word 에디터가 안뜰까? [1] 돌맹이 2010.07.08 1409
5019 <img src=2.gif>SQL 문 어디가 틀렸는지 모르겠어요... [6] marco 2010.07.08 2267
5018 <img src=3.gif>캐릭터를 아스키 코드값으로 바꿔주는 함수 알고계신분 [4] 부엉이 2010.07.08 3048
5017 <img src=3.gif>엑셀 매크로 문의(VBA에서 SAP DATA를 받아오질 못함) [2] 하얀콩 2010.07.08 2910
5016 <img src=2.gif>GROUP BY 하여 SUM()을 하려는데 왜 에러나는지 궁금합니다. [4] khh0628 2010.07.08 1897
5015 <img src=2.gif>하나의 그룹키로 여러 레코드가 검색이되어, 한 그룹키에는 한 줄로 합하려 합니다. [2] file marco 2010.07.08 1334
5014 <img src=2.gif>엑셀 업로드시 '#' 기호가 붙은 상태로 업로드 됩니다. [2] rainbow1 2010.07.07 1559
5013 <img src=3.gif>4.6 B 버전에서 GRID data_changed, register_edit_event 를 대체 할만한게 ?? [3] kms 2010.07.07 1439