메뉴 건너뛰기

SAP 한국 커뮤니티

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

ABAP하는사람 2010.07.13 01:43 조회 수 : 1970

 


현재  제가

'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[].

번호 제목 글쓴이 날짜 조회 수
5043 <img src=3.gif>webdynpro abap 에서 popup에 파라미터 전달하는 방법 [1] 모포 2010.07.16 1956
5042 <img src=2.gif>자동으로 (default) 덧셈이 되어 화면에 뿌려줄 수는 없나요? [5] file marco 2010.07.16 1403
5041 <img src=2.gif>DYNPRO_FIELD_CONVERSION 에러가 왜 날까요... [4] file indianhead 2010.07.16 2065
5040 <img src=2.gif>BDC 실행 후 SUBRC 값에 대한 질문입니다. [2] kms 2010.07.15 1683
5039 <img src=3.gif>ALV에서 레이아웃 필드명 넓이 늘리는 방법. [5] file 맨날초보 2010.07.15 2634
5038 <img src=2.gif>select 문에서, 이렇게 들어가나요? [2] marco 2010.07.15 1229
5037 <img src=1.gif>'SET_PRINT_PARAMETERS' 함수는 어디에 쓰는 용도인지? [2] 써니 2010.07.15 1741
5036 <img src=3.gif>find 명령어에서 공백으로 검색시 subrc이 0으로 떨어지는 문제 [2] 부엉이 2010.07.14 2018
5035 <img src=2.gif>스마트폼미리보기 OR PDF다운받기 둘중에 하나만 되요 ㅠ [2] file 도라에멍 2010.07.14 2296
5034 <img src=3.gif>Webdynpro abap과 java의 차이점은? [1] 모포 2010.07.14 1836
5033 <img src=1.gif>NEW-PAGE PRINT ON LINE-COUNT 변경관련하여 질문드립니다. 국화꽃향 2010.07.14 1645
5032 <img src=3.gif>스마트폼시 nextpage 를 어떻게 구현하는건지 ..잘 안됩니다..도와주세요.. [2] hoon 2010.07.14 1851
» <img src=2.gif>계약수정시 품목 단가 수정 문제 [3] ABAP하는사람 2010.07.13 1970
5030 <img src=3.gif>smartform OTF->PDF변환인데 급해욧! ㅠ.ㅠ 도와주세요 [1] 도라에멍 2010.07.13 2007
5029 [re] <img src=2.gif>smartform OTF->PDF변환인데 급해욧! ㅠ.ㅠ 도와주세요 꿈틀 2010.07.14 1690
5028 <img src=2.gif>ecatt로 데이터 입력관련 문의입니다. [1] file 바다사랑 2010.07.12 1841
5027 <img src=2.gif>class ALV - REFRESH에서 변경된 라인만 refresh 가능한지... [3] 글쎄다 2010.07.12 1952
5026 <img src=3.gif>Loop를 딱 10회만 돌리는 방법을 알고 싶습니다. [6] 모포 2010.07.12 1867
5025 <img src=2.gif>아밥에는....형변환이 가능한가요? c --> p 혹은 c--->p 이런거 없나요? [5] marco 2010.07.12 4369
5024 <img src=3.gif>테이블 컨트롤에서 선택열 클릭시 이벤트 발생시킬수 있나요? [5] 기쁨 2010.07.09 2119