IM-ERP Real Connect

jp.co.intra_mart.foundation.sap.module.sales
クラス QuotationCreateFromData2Controller

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.sales.quotationcreatefromdata2.QuotationCreateFromData2
              上位を拡張 jp.co.intra_mart.foundation.sap.module.sales.QuotationCreateFromData2Controller
すべての実装されたインタフェース:
Serializable

public class QuotationCreateFromData2Controller
extends QuotationCreateFromData2
implements Serializable

見積伝票登録情報コントローラクラス
機能は以下の通り

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

フィールドの概要
 
クラス jp.co.intra_mart.foundation.sap.module.UpdateController から継承されたフィールド
connectionManager
 
クラス jp.co.intra_mart.foundation.sap.module.AbstractController から継承されたフィールド
bapiReturnErrMessage, bapiReturnMessage, sapClient
 
コンストラクタの概要
QuotationCreateFromData2Controller()
          QuotationCreateFromData2Controllerのコンストラクタを生成します。
QuotationCreateFromData2Controller(ConnectionManager connectionManager)
          QuotationCreateFromData2Controllerのコンストラクタを生成します。
QuotationCreateFromData2Controller(SapClient sapClient)
          QuotationCreateFromData2Controllerのコンストラクタを生成します。
 
メソッドの概要
 void executeBapi()
          QuotationCreateFromData2のexecuteBapi()を呼び出し見積伝票を登録します。
 void setStrParam(String paramStr, String paramName, String value)
          構造体型の項目に値をセットします。
 void setTblParam(String paramTable, String paramName, String value, int index)
          テーブル型の項目に値をセットします。
 
クラス jp.co.intra_mart.foundation.sap.module.sales.quotationcreatefromdata2.QuotationCreateFromData2 から継承されたメソッド
getBehaveWhenError, getBinaryRelationshiptype, getConvert, getExtensionInList, getIntNumberAssignment, getLogicSwitch, getPartnerAddressesList, getQuotationCfgsBlobList, getQuotationCfgsInstList, getQuotationCfgsPartOfList, getQuotationCfgsRefInstList, getQuotationCfgsRefList, getQuotationCfgsValueList, getQuotationCfgsVkList, getQuotationConditionsInList, getQuotationConditionsInXList, getQuotationHeaderIn, getQuotationHeaderInX, getQuotationItemsInList, getQuotationItemsInXList, getQuotationKeysList, getQuotationPartnersList, getQuotationSchedulesInList, getQuotationSchedulesInXList, getQuotationTextList, getSalesdocument, getSalesdocumentin, getSender, getTestrun, setBehaveWhenError, setBinaryRelationshiptype, setConvert, setExportParam, setExtensionInList, setImportParam, setIntNumberAssignment, setLogicSwitch, setPartnerAddressesList, setQuotationCfgsBlobList, setQuotationCfgsInstList, setQuotationCfgsPartOfList, setQuotationCfgsRefInstList, setQuotationCfgsRefList, setQuotationCfgsValueList, setQuotationCfgsVkList, setQuotationConditionsInList, setQuotationConditionsInXList, setQuotationHeaderIn, setQuotationHeaderInX, setQuotationItemsInList, setQuotationItemsInXList, setQuotationKeysList, setQuotationPartnersList, setQuotationSchedulesInList, setQuotationSchedulesInXList, setQuotationTextList, setSalesdocument, setSalesdocumentin, setSender, setTestrun, toString
 
クラス jp.co.intra_mart.foundation.sap.module.UpdateController から継承されたメソッド
createBapiController
 
クラス jp.co.intra_mart.foundation.sap.module.AbstractController から継承されたメソッド
executeBapi, getBapiReturnErrMessage, getBapiReturnMessage
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

コンストラクタの詳細

QuotationCreateFromData2Controller

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


QuotationCreateFromData2Controller

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

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

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

QuotationCreateFromData2Controller

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

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

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

executeBapi

public void executeBapi()
                 throws SAPAuthAppException,
                        SAPAuthSystemException,
                        SAPGeneralAppException,
                        SAPGeneralSystemException,
                        SAPSalesAppException,
                        SAPSalesSystemException
QuotationCreateFromData2のexecuteBapi()を呼び出し見積伝票を登録します。

例外:
SAPAuthAppException - 認証系アプリケーション例外
SAPAuthSystemException - 認証系システム例外
SAPGeneralAppException - 汎用アプリケーション例外
SAPGeneralSystemException - 汎用システム例外
SAPSalesAppException - 販売管理業務アプリケーション例外
SAPSalesSystemException - 販売管理業務システム例外

setStrParam

public void setStrParam(String paramStr,
                        String paramName,
                        String value)
                 throws SAPSalesSystemException
構造体型の項目に値をセットします。

パラメータ:
paramStr - 構造体名
paramName - パラメータ名
value - セットする値
例外:
SAPSalesSystemException - 販売管理業務システム例外

setTblParam

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

パラメータ:
paramTable - テーブル名
paramName - パラメータ名
value - セットする値
index - レコード番号
例外:
SAPSalesSystemException - 販売管理業務システム例外

IM-ERP Real Connect

Copyright (c) 2013 NTT DATA INTRAMART CORPORATION.