IM-ERP Real Connect

jp.co.intra_mart.foundation.sap.module.purchase
クラス PurchaseOrderPostChangeController

java.lang.Object
  上位を拡張 jp.co.intra_mart.foundation.sap.module.AbstractController
      上位を拡張 jp.co.intra_mart.foundation.sap.module.UpdateController
          上位を拡張 jp.co.intra_mart.foundation.sap.module.purchase.PurchaseOrderPayPost
              上位を拡張 jp.co.intra_mart.foundation.sap.module.purchase.PurchaseOrderPostChangeController
すべての実装されたインタフェース:
Serializable

public class PurchaseOrderPostChangeController
extends PurchaseOrderPayPost
implements Serializable

伝票登録変更コントローラクラス
機能は以下の通り

バージョン:
8.0
関連項目:
直列化された形式

フィールドの概要
 
クラス jp.co.intra_mart.foundation.sap.module.UpdateController から継承されたフィールド
connectionManager
 
クラス jp.co.intra_mart.foundation.sap.module.AbstractController から継承されたフィールド
bapiReturnErrMessage, bapiReturnMessage, sapClient
 
コンストラクタの概要
PurchaseOrderPostChangeController()
          PurchaseOrderPostChangeControllerのコンストラクタを生成します。
PurchaseOrderPostChangeController(ConnectionManager connectionManager)
          PurchaseOrderPostChangeControllerのコンストラクタを生成します。
PurchaseOrderPostChangeController(SapClient sapClient)
          PurchaseOrderPostChangeControllerのコンストラクタを生成します。
 
メソッドの概要
 void executeBapi()
          PurchaseOrderPayPostのexecuteBapi()を呼び出し購買伝票を変更します。
 void setExportParam(BapiController bapiController)
          伝票に登録された情報をセットします。
 void setImportParam(BapiController bapiController)
          伝票に登録する値をセットします。
 void setTblParam(String paramTable, String paramName, String value, int index)
          テーブル型の項目に値をセットします。
 
クラス jp.co.intra_mart.foundation.sap.module.purchase.PurchaseOrderPayPost から継承されたメソッド
executeBapi, getAllVersionsList, getCondHeaderList, getCondItemList, getContractLimitsList, getContractServiceAccountList, getContractServiceList, getContractServiceTextList, getDeliverryAddressList, getDocumentHeader, getExportHeader, getExportItemList, getExtensionList, getHeaderTextList, getItemTextList, getLimitsList, getMemoryComplete, getMemoryUnComplete, getNoAuthority, getNoMessageReq, getNoMessaging, getNoPriceFromPo, getPartnerList, getPoNumber, getProfitSegmentList, getPurchaseAccountList, getPurchaseComponentsList, getPurchaseConfirmationList, getPurchaseHistoryList, getPurchaseHistoryTotalsList, getPurchaseItemPostList, getPurchaseScheduleList, getPurchaseShippingExpList, getPurchaseShippingList, getSupplierInfo, getTestRun, getVersions, setAllVersionsList, setCondHeaderList, setCondItemList, setContractLimitsList, setContractServiceAccountList, setContractServiceList, setContractServiceTextList, setDeliveryAddressList, setDocumentHeader, setExportHeader, setExportItemList, setExtensionList, setHeaderTextList, setItemTextList, setLimitsList, setMemoryComplete, setMemoryUnComplete, setNoAuthority, setNoMessage, setNoMessageReq, setNoPriceFromPo, setPartnerList, setPoNumber, setProfitSegmentList, setPurchaseAccountList, setPurchaseComponentsList, setPurchaseConfirmationList, setPurchaseHistory, setPurchaseHistorysTotal, setPurchaseItemPostList, setPurchaseScheduleList, setPurchaseShippingExpList, setPurchaseShippingList, setStrParam, setSupplierInfo, setTestRun, setVersions, toString
 
クラス jp.co.intra_mart.foundation.sap.module.UpdateController から継承されたメソッド
createBapiController
 
クラス jp.co.intra_mart.foundation.sap.module.AbstractController から継承されたメソッド
getBapiReturnErrMessage, getBapiReturnMessage
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

コンストラクタの詳細

PurchaseOrderPostChangeController

public PurchaseOrderPostChangeController()
PurchaseOrderPostChangeControllerのコンストラクタを生成します。


PurchaseOrderPostChangeController

public PurchaseOrderPostChangeController(ConnectionManager connectionManager)
PurchaseOrderPostChangeControllerのコンストラクタを生成します。

ConnectionManagerを使用することで、 ConnectionManagerからトランザクションを制御でき、 たとえば同一トランザクション内で複数の更新処理を実行することができます。
なお、executeBapi()実行後に必ずConnectionManager.commit() またはConnectionManager.rollback()を 実行してください。
上記2メソッド内でSAPへのコネクションの開放も実行されるので確実にどちらかの メソッドを呼ぶようにコーディングする必要があります。

パラメータ:
connectionManager - コネクションマネージャー

PurchaseOrderPostChangeController

public PurchaseOrderPostChangeController(SapClient sapClient)
PurchaseOrderPostChangeControllerのコンストラクタを生成します。

SapClientを使用することで、SapClientにて指定した SAPアプリケーションサーバへデータを登録することが可能です。

パラメータ:
sapClient - SAPへの接続情報が格納されたオブジェクト
メソッドの詳細

executeBapi

public void executeBapi()
                 throws SAPAuthAppException,
                        SAPAuthSystemException,
                        SAPGeneralAppException,
                        SAPGeneralSystemException,
                        SAPPurchaseAppException,
                        SAPPurchaseSystemException
PurchaseOrderPayPostのexecuteBapi()を呼び出し購買伝票を変更します。

例外:
SAPAuthAppException - 認証系アプリケーション例外
SAPAuthSystemException - 認証系システム例外
SAPGeneralAppException - 汎用アプリケーション例外
SAPGeneralSystemException - 汎用システム例外
SAPPurchaseAppException - 購買発注業務アプリケーション例外
SAPPurchaseSystemException - 購買発注業務システム例外

setImportParam

public void setImportParam(BapiController bapiController)
                    throws SAPGeneralSystemException,
                           SAPGeneralAppException
伝票に登録する値をセットします。 オーバーライドして、転送構造:照会/一覧、購買発注履歴、 購買発注履歴(合計)テーブルの情報をセットします。

オーバーライド:
クラス PurchaseOrderPayPost 内の setImportParam
パラメータ:
bapiController - BapiController
例外:
SAPGeneralAppException - 汎用アプリケーション例外
SAPGeneralSystemException - 汎用システム例外

setExportParam

public void setExportParam(BapiController bapiController)
                    throws SAPGeneralSystemException
伝票に登録された情報をセットします。 オーバーライドして、転送構造:照会/一覧、購買発注履歴、 購買発注履歴(合計)テーブルの情報をセットします。

オーバーライド:
クラス PurchaseOrderPayPost 内の setExportParam
パラメータ:
bapiController - BapiController
例外:
SAPGeneralSystemException - 汎用システム例外

setTblParam

public void setTblParam(String paramTable,
                        String paramName,
                        String value,
                        int index)
                 throws SAPPurchaseSystemException
テーブル型の項目に値をセットします。

オーバーライド:
クラス PurchaseOrderPayPost 内の setTblParam
パラメータ:
paramTable - テーブル名
paramName - 項目名
value - セットする値
index - レコード番号
例外:
SAPPurchaseSystemException - 購買発注業務システム例外

IM-ERP Real Connect

Copyright (c) 2013 NTT DATA INTRAMART CORPORATION.