Archive

Archive for June, 2013

Java Connector : Push Purchase Order to JDE (JD Edwards) Enterprise One

June 9, 2013 2 comments

 

Jd Edward is one of ERP Application Acquired by ‘DB Giant’ Oracle and supported till now. For third party application which want to connect and make communication and execute business function inside, Oracle JDE provide Connector act as interface or middleware between external and internal business application. This interface called Connector or JDE Connector.

In this Part, will be discussed how to integrate Java Application and JDE using dynamic java connector. Why dynamic java connector instead of static java connector ? Oracle describe at least 3 advantages using dynamic java conector, they are :

  1. Dynamically introspects business function metadata
  2. Dynamically call business function without business function wrappers (generated using gen java, xml based)
  3. Easily switch from one environment to another (Write once run anywhere concept)

Oracle JDE, provide at least 19.000 business function to interact between third party application and JDE business logic server, but with no complete references how to use it. typically we can generate own documentation but we should has an acces to generate the report, and this is obstacle for developer who has no right to access application directly using JDE client and tools.

In this part will be explained how to create and push Purchase order to JDE 8.9 environment, using simple java application. This tools is created and used by myself during developing procurement application in PT. Semen Baturaja (Persero) at palembang, between may and june 2013.

before we continue, we should provide 3 properties file :

  1. jdbj.ini
  2. jdelog.properties
  3. jdeinterop.ini

and JDE Connector library which located inside JDE Server Install directory,

I divide this tools into 3 main Classes :

  1. Authentication Class
  2. Modelling Class
  3. Execution Class

Authentication Class :

First, we should create a class to handle authentication between java application and JDE. below, simple sample JDE authentication class

public class JdeSessionUtil {

protected String username = “”;

protected String password = “”;

protected String env = “”;

protected String role = “*ALL”;

/**

* login to JDE

* @param username

* @param password

* @param env

* @param role

* @return

* @throws Exception

*/

public static Integer loginJde(String username, String password, String env, String role) throws Exception{

Integer sessionID = null;

try {

username = JdeProperty.getProperty(“EPROC”, “username”, username);

password = JdeProperty.getProperty(“EPROC”, “password”,password);

env = JdeProperty.getProperty(“EPROC”, “env”, env);

role = JdeProperty.getProperty(“EPROC”, “role”, “*ALL”);

sessionID = Connector.getInstance().login(username, password, env, role);

UserSession session = Connector.getInstance().getUserSession(sessionID);

if (Connector.getInstance().isLoggedIn(sessionID))

{

System.out.print(“(Login Success)”);

}else{

return null;

}

} catch (Exception e) {

e.printStackTrace();

throw e;

}

return sessionID;

}

/**

* log off from JDE

* @param sessionID

* @throws Exception

*/

public static void loggofJDE(Integer sessionID) throws Exception{

try {

Connector.getInstance().logoff(sessionID);

} catch (Exception e) {

e.printStackTrace();

throw e;

}

}

This class consist of two main method, Login function and Logoff function. Login function using 4 paramater supplied by java application, and this 4 parameters are mandatory:

  • JDE Username
  • JDE Password
  • JDE Environment
  • JDE Role

Modelling Class :

Modelling Class is created as a bridge between Java application Model and JDE Business Function Model. I made two classes represent Purchase Order Header and Purchase Order Detail. they are :

package com.jde.model;

import java.io.Serializable;
import java.util.Date;

@SuppressWarnings(“serial”)
public class POHeader implements Serializable {

/**
* not used
*/
public static final String MN_JOB_NUMBER = “”;
private Integer mnJobNumber;

public static final String SZ_COMPUTER_ID = “phjobn”;
private String szComputerId;

/**
* not used
*/
public static final String C_CURRENCY_PROCESSING_FLAG=””;
private String cCurrencyProcessingFlag;

public static final String SZ_ORDER_COMPANY=”phkcoo”;
private String szOrderCompany;

public static final String MN_ORDER_NUMBER=”phdoco”;
private Integer mnOrderNumber;

public static final String SZ_ORDER_TYPE=”phdcto”;
private String szOrderType;

public static final String SZ_ORDER_SUFFIX=”phsfxo”;
private String szOrderSuffix;

public static final String SZ_BRANCH_PLANT=”phmcu”;
private String szBranchPlant;

public static final String SZ_ORIGINAL_ORDER_COMPANY=”phokco”;
private String szOriginalOrderCompany;

public static final String SZ_ORIGINAL_ORDER_NUMBER=”phoorn”;
private String szOriginalOrderNumber;

public static final String SZ_ORIGINAL_ORDER_TYPE=”phocto”;
private String szOriginalOrderType;

public static final String SZ_RELATED_ORDER_COMPANY=”phrkco”;
public String szRelatedOrderCompany;

public static final String SZ_RELATED_ORDER_NUMBER=”phrorn”;
public String szRelatedOrderNumber;

public static final String SZ_RELATED_ORDER_TYPE=”phrcto”;
public String szRelatedOrderType;

public static final String MN_SUPPLIER_NUMBER=”phan8″;
private Integer mnSupplierNumber;

public static final String MN_SHIP_TO_NUMBER=”phshan”;
private Integer mnShipToNumber;

public static final String JD_REQUESTED_DATE=”phdrqj”;
private Date jdRequestedDate;

public static final String JD_ORDER_DATE=”phtrdj”;
private Date jdOrderDate;

public static final String JD_PROMISED_DATE=”phpddj”;
private Date jdPromisedDate;

public static final String JD_CANCEL_DATE=”phcndj”;
private Date jdCancelDate;

public static final String SZ_REFERENCE_01=”phvr01″;
private String szReference01;

public static final String SZ_REFERENCE_02=”phvr02″;
private String szReference02;

public static final String SZ_DELIVERY_INSTRUCTIONS_01=”phdel1″;
private String szDeliveryInstructions01;

public static final String SZ_DELIVERY_INSTRUCTIONS_02=”phdel2″;
private String szDeliveryInstructions02;

public static final String SZ_PRINT_MESSAGE=”phinmg”;
private String szPrintMessage;

public static final String SZ_SUPPLIER_PRICE_GROUP=”phprgp”;
private String szSupplierPriceGroup;

public static final String SZ_PAYMENT_TERMS=”phptc”;
private String szPaymentTerms;

public static final String SZ_TAX_EXPLANATION_CODE=”phexr1″;
private String szTaxExplanationCode;

public static final String SZ_TAX_RATE_AREA=”phtxa1″;
private String szTaxRateArea;

public static final String SZ_TAX_CERTIFICATE=”phtxct”;
private String szTaxCertificate;

public static final String C_ASSOCIATED_TEXT=”phatxt”;
private String cAssociatedText;

public static final String SZ_HOLD_CODE=”phhold”;
private String szHoldCode;

public static final String SZ_FREIGHT_HANDLING_CODE=”phfrth”;
private String szFreightHandlingCode;

public static final String MN_BUYER_NUMBER=”phanby”;
private Integer mnBuyerNumber;

public static final String MN_CARRIER_NUMBER=”phancr”;
private Integer mnCarrierNumber;

public static final String C_EVALUATED_RECEIPTS_FLAG=”phavch”;
private String cEvaluatedReceiptsFlag;

public static final String C_SEND_METHOD=”phcrmd”;
private String cSendMethod;

public static final String SZ_LANDED_COST_RULE=”phprp5″;
private String szLandedCostRule;

public static final String SZ_APPROVAL_ROUTE_CODE=”phartg”;
private String szApprovalRouteCode;

public static final String MN_CHANGE_ORDER_NUMBER=”phcord”;
private Integer mnChangeOrderNumber;

public static final String C_CURRENYC_MODE=”phcrrm”;
private String cCurrencyMode;

public static final String SZ_TRANSACTION_CURRENCY_CODE=”phcrcd”;
private String szTransactionCurrencyCode;

public static final String MN_CURRENCY_EXCHANGE_RATE=”phcrr”;
private Double mnCurrencyExchangeRate;

public static final String SZ_ORDERED_PLACED_BY=”phorby”;
private String szOrderedPlacedBy;

public static final String SZ_ORDER_TAKEN_BY=”phtkby”;
private String szOrderTakenBy;

public static final String SZ_PROGRAM_ID=”phpid”;
private String szProgramID;

/**
* not used
*/
public static final String SZ_APPROVAL_ROUTE_PO=””;
private String szApprovalRoutePO;

/**
* not used
*/
public static final String SZ_PURCHASE_ORDER_PR_OPT_VERSION=””;
private String szPurchaseOrderPrOptVersion;

/**
* not used
*/
public static final String SZ_BASE_CURRENCY_CODE=””;
private String szBaseCurrencyCode;

public static final String SZ_USER_ID=”phuser”;
private String szUserID;

/**
* not used
*/
public static final String C_ADD_NEW_LINE_TO_EXISTING_ORDER=””;
private String cAddNewLineToExistingOrder;

/**
* not used
*/
public static final String ID_INTERNAL_VARIABLES=””;
private Integer idInternalVariables;

/**
*
*/
public static final String C_SOURCE_OF_DATA=””;
private String cSourceOfData;

/**
* not used
*/
public static final String MN_SOD_ORDER_NUMBER=””;
private Integer mnSODOrderNumber;

/**
* not used
*/
public static final String SZ_SOD_ORDER_TYPE=””;
private String szSODOrderType;

/**
* not used
*/
public static final String SZ_SOD_ORDER_COMPANY=””;
private String szSODOrderCompany;

/**
* not used
*/
public static final String SZ_SOD_ORDER_SUFFIX=””;
private String szSODOrderSuffix;

public static final String MN_RETAINAGE=”phpcrt”;
private Double mnRetainage;

public static final String SZ_DESRIPTION=”phdesc”;
private String szDescription;

public static final String SZ_REMARK=”phrmk”;
private String szRemark;

public static final String JD_EFFECTIVE_DATE=”phpefj”;
private Date jdEffectiveDate;

public static final String JD_PHYSICAL_COMPLETION_DATE=”phaddj”;
private Date jdPhysicalCompletionDate;

/**
* not used
*/
public static final String MN_TRIANGULATION_RATE_FROM_CURRENC=””;
private Double mnTriangulationRateFromCurrenc;

/**
* not used
*/
public static final String MN_TRIANGULATION_RATE_TO_CURRENC=””;
private Double mnTriangulationRateToCurrency;

/**
* not used
*/
public static final String C_CURRENCY_CONVERSION_METHOD=””;
private String cCurrencyConversionMethod;

public static final String SZ_PRICE_ADJUSTMENT_SCHEDULE_N=”phasn”;
private String szPriceAdjustmentScheduleN;

public static final String C_AIA_DOCUMENT=”phfuf1″;
private String cAIADocument;

/**
* NOT USED
*/
public static final String MN_PROCESS_ID=””;
private Integer mnProcessID;

/**
* NOt used
*/
public static final String MN_TRANSACTOIN_ID=””;
private Integer mnTransactionID;

public static final String MN_RMA_DOC_NUMBER=”phdoc1″;
private String mnRMADocNumber;

public static final String SZ_RMA_DOC_TYPE=”phdct4″;
private String szRMADocType;

/**
* not used
*/
public static final String SZ_POEMBF_INTERNAL_FLAG=””;
private String szPOEMBFInternalFlags;

public static final String JD_USER_RESERVED_DATE=”phurdt”;
private Date jdUserReservedDate;

public static final String MN_USER_RESERVED_AMOUNT=”phurat”;
private Double mnUserReservedAmount;

public static final String SZ_USER_RESERVED_CODE=”phurcd”;
private String szUserReservedCode;

public static final String SZ_USER_RESERVED_REFERENCE=”phurrf”;
private String szUserReservedReference;

public static final String SZ_USER_RESERVED_NUMBER=”phurab”;
private Integer mnUserReservedNumber;
public POHeader() {
// TODO Auto-generated constructor stub
}
public Integer getMnJobNumber() {
return mnJobNumber;
}
public void setMnJobNumber(Integer mnJobNumber) {
this.mnJobNumber = mnJobNumber;
}
public String getSzComputerId() {
return szComputerId;
}
public void setSzComputerId(String szComputerId) {
this.szComputerId = szComputerId;
}
public String getcCurrencyProcessingFlag() {
return cCurrencyProcessingFlag;
}
public void setcCurrencyProcessingFlag(String cCurrencyProcessingFlag) {
this.cCurrencyProcessingFlag = cCurrencyProcessingFlag;
}
public String getSzOrderCompany() {
return szOrderCompany;
}
public void setSzOrderCompany(String szOrderCompany) {
this.szOrderCompany = szOrderCompany;
}
public Integer getMnOrderNumber() {
return mnOrderNumber;
}
public void setMnOrderNumber(Integer mnOrderNumber) {
this.mnOrderNumber = mnOrderNumber;
}
public String getSzOrderType() {
return szOrderType;
}
public void setSzOrderType(String szOrderType) {
this.szOrderType = szOrderType;
}
public String getSzOrderSuffix() {
return szOrderSuffix;
}
public void setSzOrderSuffix(String szOrderSuffix) {
this.szOrderSuffix = szOrderSuffix;
}
public String getSzBranchPlant() {
return szBranchPlant;
}
public void setSzBranchPlant(String szBranchPlant) {
this.szBranchPlant = szBranchPlant;
}
public String getSzOriginalOrderCompany() {
return szOriginalOrderCompany;
}
public void setSzOriginalOrderCompany(String szOriginalOrderCompany) {
this.szOriginalOrderCompany = szOriginalOrderCompany;
}
public String getSzOriginalOrderNumber() {
return szOriginalOrderNumber;
}
public void setSzOriginalOrderNumber(String szOriginalOrderNumber) {
this.szOriginalOrderNumber = szOriginalOrderNumber;
}
public String getSzOriginalOrderType() {
return szOriginalOrderType;
}
public void setSzOriginalOrderType(String szOriginalOrderType) {
this.szOriginalOrderType = szOriginalOrderType;
}
public Integer getMnSupplierNumber() {
return mnSupplierNumber;
}
public void setMnSupplierNumber(Integer mnSupplierNumber) {
this.mnSupplierNumber = mnSupplierNumber;
}
public Integer getMnShipToNumber() {
return mnShipToNumber;
}
public void setMnShipToNumber(Integer mnShipToNumber) {
this.mnShipToNumber = mnShipToNumber;
}
public Date getJdRequestedDate() {
return jdRequestedDate;
}
public void setJdRequestedDate(Date jdRequestedDate) {
this.jdRequestedDate = jdRequestedDate;
}
public Date getJdOrderDate() {
return jdOrderDate;
}
public void setJdOrderDate(Date jdOrderDate) {
this.jdOrderDate = jdOrderDate;
}
public Date getJdPromisedDate() {
return jdPromisedDate;
}
public void setJdPromisedDate(Date jdPromisedDate) {
this.jdPromisedDate = jdPromisedDate;
}
public Date getJdCancelDate() {
return jdCancelDate;
}
public void setJdCancelDate(Date jdCancelDate) {
this.jdCancelDate = jdCancelDate;
}
public String getSzReference01() {
return szReference01;
}
public void setSzReference01(String szReference01) {
this.szReference01 = szReference01;
}
public String getSzReference02() {
return szReference02;
}
public void setSzReference02(String szReference02) {
this.szReference02 = szReference02;
}
public String getSzDeliveryInstructions01() {
return szDeliveryInstructions01;
}
public void setSzDeliveryInstructions01(String szDeliveryInstructions01) {
this.szDeliveryInstructions01 = szDeliveryInstructions01;
}
public String getSzDeliveryInstructions02() {
return szDeliveryInstructions02;
}
public void setSzDeliveryInstructions02(String szDeliveryInstructions02) {
this.szDeliveryInstructions02 = szDeliveryInstructions02;
}
public String getSzPrintMessage() {
return szPrintMessage;
}
public void setSzPrintMessage(String szPrintMessage) {
this.szPrintMessage = szPrintMessage;
}
public String getSzSupplierPriceGroup() {
return szSupplierPriceGroup;
}
public void setSzSupplierPriceGroup(String szSupplierPriceGroup) {
this.szSupplierPriceGroup = szSupplierPriceGroup;
}
public String getSzPaymentTerms() {
return szPaymentTerms;
}
public void setSzPaymentTerms(String szPaymentTerms) {
this.szPaymentTerms = szPaymentTerms;
}
public String getSzTaxExplanationCode() {
return szTaxExplanationCode;
}
public void setSzTaxExplanationCode(String szTaxExplanationCode) {
this.szTaxExplanationCode = szTaxExplanationCode;
}
public String getSzTaxRateArea() {
return szTaxRateArea;
}
public void setSzTaxRateArea(String szTaxRateArea) {
this.szTaxRateArea = szTaxRateArea;
}
public String getSzTaxCertificate() {
return szTaxCertificate;
}
public void setSzTaxCertificate(String szTaxCertificate) {
this.szTaxCertificate = szTaxCertificate;
}
public String getcAssociatedText() {
return cAssociatedText;
}
public void setcAssociatedText(String cAssociatedText) {
this.cAssociatedText = cAssociatedText;
}
public String getSzHoldCode() {
return szHoldCode;
}
public void setSzHoldCode(String szHoldCode) {
this.szHoldCode = szHoldCode;
}
public String getSzFreightHandlingCode() {
return szFreightHandlingCode;
}
public void setSzFreightHandlingCode(String szFreightHandlingCode) {
this.szFreightHandlingCode = szFreightHandlingCode;
}
public Integer getMnBuyerNumber() {
return mnBuyerNumber;
}
public void setMnBuyerNumber(Integer mnBuyerNumber) {
this.mnBuyerNumber = mnBuyerNumber;
}
public Integer getMnCarrierNumber() {
return mnCarrierNumber;
}
public void setMnCarrierNumber(Integer mnCarrierNumber) {
this.mnCarrierNumber = mnCarrierNumber;
}
public String getcEvaluatedReceiptsFlag() {
return cEvaluatedReceiptsFlag;
}
public void setcEvaluatedReceiptsFlag(String cEvaluatedReceiptsFlag) {
this.cEvaluatedReceiptsFlag = cEvaluatedReceiptsFlag;
}
public String getcSendMethod() {
return cSendMethod;
}
public void setcSendMethod(String cSendMethod) {
this.cSendMethod = cSendMethod;
}
public String getSzLandedCostRule() {
return szLandedCostRule;
}
public void setSzLandedCostRule(String szLandedCostRule) {
this.szLandedCostRule = szLandedCostRule;
}
public String getSzApprovalRouteCode() {
return szApprovalRouteCode;
}
public void setSzApprovalRouteCode(String szApprovalRouteCode) {
this.szApprovalRouteCode = szApprovalRouteCode;
}
public Integer getMnChangeOrderNumber() {
return mnChangeOrderNumber;
}
public void setMnChangeOrderNumber(Integer mnChangeOrderNumber) {
this.mnChangeOrderNumber = mnChangeOrderNumber;
}
public String getcCurrencyMode() {
return cCurrencyMode;
}
public void setcCurrencyMode(String cCurrencyMode) {
this.cCurrencyMode = cCurrencyMode;
}
public String getSzTransactionCurrencyCode() {
return szTransactionCurrencyCode;
}
public void setSzTransactionCurrencyCode(String szTransactionCurrencyCode) {
this.szTransactionCurrencyCode = szTransactionCurrencyCode;
}
public Double getMnCurrencyExchangeRate() {
return mnCurrencyExchangeRate;
}
public void setMnCurrencyExchangeRate(Double mnCurrencyExchangeRate) {
this.mnCurrencyExchangeRate = mnCurrencyExchangeRate;
}
public String getSzOrderedPlacedBy() {
return szOrderedPlacedBy;
}
public void setSzOrderedPlacedBy(String szOrderedPlacedBy) {
this.szOrderedPlacedBy = szOrderedPlacedBy;
}
public String getSzOrderTakenBy() {
return szOrderTakenBy;
}
public void setSzOrderTakenBy(String szOrderTakenBy) {
this.szOrderTakenBy = szOrderTakenBy;
}
public String getSzProgramID() {
return szProgramID;
}
public void setSzProgramID(String szProgramID) {
this.szProgramID = szProgramID;
}
public String getSzApprovalRoutePO() {
return szApprovalRoutePO;
}
public void setSzApprovalRoutePO(String szApprovalRoutePO) {
this.szApprovalRoutePO = szApprovalRoutePO;
}
public String getSzPurchaseOrderPrOptVersion() {
return szPurchaseOrderPrOptVersion;
}
public void setSzPurchaseOrderPrOptVersion(String szPurchaseOrderPrOptVersion) {
this.szPurchaseOrderPrOptVersion = szPurchaseOrderPrOptVersion;
}
public String getSzBaseCurrencyCode() {
return szBaseCurrencyCode;
}
public void setSzBaseCurrencyCode(String szBaseCurrencyCode) {
this.szBaseCurrencyCode = szBaseCurrencyCode;
}
public String getSzUserID() {
return szUserID;
}
public void setSzUserID(String szUserID) {
this.szUserID = szUserID;
}
public String getcAddNewLineToExistingOrder() {
return cAddNewLineToExistingOrder;
}
public void setcAddNewLineToExistingOrder(String cAddNewLineToExistingOrder) {
this.cAddNewLineToExistingOrder = cAddNewLineToExistingOrder;
}
public Integer getIdInternalVariables() {
return idInternalVariables;
}
public void setIdInternalVariables(Integer idInternalVariables) {
this.idInternalVariables = idInternalVariables;
}
public String getcSourceOfData() {
return cSourceOfData;
}
public void setcSourceOfData(String cSourceOfData) {
this.cSourceOfData = cSourceOfData;
}
public Integer getMnSODOrderNumber() {
return mnSODOrderNumber;
}
public void setMnSODOrderNumber(Integer mnSODOrderNumber) {
this.mnSODOrderNumber = mnSODOrderNumber;
}
public String getSzSODOrderType() {
return szSODOrderType;
}
public void setSzSODOrderType(String szSODOrderType) {
this.szSODOrderType = szSODOrderType;
}
public String getSzSODOrderCompany() {
return szSODOrderCompany;
}
public void setSzSODOrderCompany(String szSODOrderCompany) {
this.szSODOrderCompany = szSODOrderCompany;
}
public String getSzSODOrderSuffix() {
return szSODOrderSuffix;
}
public void setSzSODOrderSuffix(String szSODOrderSuffix) {
this.szSODOrderSuffix = szSODOrderSuffix;
}
public Double getMnRetainage() {
return mnRetainage;
}
public void setMnRetainage(Double mnRetainage) {
this.mnRetainage = mnRetainage;
}
public String getSzDescription() {
return szDescription;
}
public void setSzDescription(String szDescription) {
this.szDescription = szDescription;
}
public String getSzRemark() {
return szRemark;
}
public void setSzRemark(String szRemark) {
this.szRemark = szRemark;
}
public Date getJdEffectiveDate() {
return jdEffectiveDate;
}
public void setJdEffectiveDate(Date jdEffectiveDate) {
this.jdEffectiveDate = jdEffectiveDate;
}
public Date getJdPhysicalCompletionDate() {
return jdPhysicalCompletionDate;
}
public void setJdPhysicalCompletionDate(Date jdPhysicalCompletionDate) {
this.jdPhysicalCompletionDate = jdPhysicalCompletionDate;
}
public Double getMnTriangulationRateFromCurrenc() {
return mnTriangulationRateFromCurrenc;
}
public void setMnTriangulationRateFromCurrenc(
Double mnTriangulationRateFromCurrenc) {
this.mnTriangulationRateFromCurrenc = mnTriangulationRateFromCurrenc;
}
public Double getMnTriangulationRateToCurrency() {
return mnTriangulationRateToCurrency;
}
public void setMnTriangulationRateToCurrency(
Double mnTriangulationRateToCurrency) {
this.mnTriangulationRateToCurrency = mnTriangulationRateToCurrency;
}
public String getcCurrencyConversionMethod() {
return cCurrencyConversionMethod;
}
public void setcCurrencyConversionMethod(String cCurrencyConversionMethod) {
this.cCurrencyConversionMethod = cCurrencyConversionMethod;
}
public String getSzPriceAdjustmentScheduleN() {
return szPriceAdjustmentScheduleN;
}
public void setSzPriceAdjustmentScheduleN(String szPriceAdjustmentScheduleN) {
this.szPriceAdjustmentScheduleN = szPriceAdjustmentScheduleN;
}
public String getcAIADocument() {
return cAIADocument;
}
public void setcAIADocument(String cAIADocument) {
this.cAIADocument = cAIADocument;
}
public Integer getMnProcessID() {
return mnProcessID;
}
public void setMnProcessID(Integer mnProcessID) {
this.mnProcessID = mnProcessID;
}
public Integer getMnTransactionID() {
return mnTransactionID;
}
public void setMnTransactionID(Integer mnTransactionID) {
this.mnTransactionID = mnTransactionID;
}
public String getMnRMADocNumber() {
return mnRMADocNumber;
}
public void setMnRMADocNumber(String mnRMADocNumber) {
this.mnRMADocNumber = mnRMADocNumber;
}
public String getSzRMADocType() {
return szRMADocType;
}
public void setSzRMADocType(String szRMADocType) {
this.szRMADocType = szRMADocType;
}
public String getSzPOEMBFInternalFlags() {
return szPOEMBFInternalFlags;
}
public void setSzPOEMBFInternalFlags(String szPOEMBFInternalFlags) {
this.szPOEMBFInternalFlags = szPOEMBFInternalFlags;
}
public Date getJdUserReservedDate() {
return jdUserReservedDate;
}
public void setJdUserReservedDate(Date jdUserReservedDate) {
this.jdUserReservedDate = jdUserReservedDate;
}
public Double getMnUserReservedAmount() {
return mnUserReservedAmount;
}
public void setMnUserReservedAmount(Double mnUserReservedAmount) {
this.mnUserReservedAmount = mnUserReservedAmount;
}
public String getSzUserReservedCode() {
return szUserReservedCode;
}
public void setSzUserReservedCode(String szUserReservedCode) {
this.szUserReservedCode = szUserReservedCode;
}
public String getSzUserReservedReference() {
return szUserReservedReference;
}
public void setSzUserReservedReference(String szUserReservedReference) {
this.szUserReservedReference = szUserReservedReference;
}
public Integer getMnUserReservedNumber() {
return mnUserReservedNumber;
}
public void setMnUserReservedNumber(Integer mnUserReservedNumber) {
this.mnUserReservedNumber = mnUserReservedNumber;
}
public String getSzRelatedOrderCompany() {
return szRelatedOrderCompany;
}
public void setSzRelatedOrderCompany(String szRelatedOrderCompany) {
this.szRelatedOrderCompany = szRelatedOrderCompany;
}
public String getSzRelatedOrderNumber() {
return szRelatedOrderNumber;
}
public void setSzRelatedOrderNumber(String szRelatedOrderNumber) {
this.szRelatedOrderNumber = szRelatedOrderNumber;
}
public String getSzRelatedOrderType() {
return szRelatedOrderType;
}
public void setSzRelatedOrderType(String szRelatedOrderType) {
this.szRelatedOrderType = szRelatedOrderType;
}

}

package com.jde.model;

import java.io.Serializable;
import java.util.Date;

@SuppressWarnings(“serial”)
public class PODetail implements Serializable{

/**
* not used
*/
public static final String MN_JOB_NUMBER=””;
private Integer mnJobNumber;

public static final String SZ_COMPUTER_ID=”pdjobn”;
private String szComputerID;

public static final String MN_ORDER_LINE_NUMBER=”pdlnid”;
private Integer mnOrderLineNumber;

/**
* not Used
*/
public static final String C_DETAIL_ACTION_CODE=””;
private String cDetailActionCode;

/**
* not used
*/
public static final String C_PROCESS_EDITS=””;
private String cProcessEdits;

/**
* not used
*/
public static final String C_UPDATE_OR_WRITE_WORK_FILE=””;
private String cUpdateOrWriteWorkFile;

/**
* not used
*/
public static final String C_RECORD_WRITEN_TO_WORK_FILE=””;
private String cRecordWrittenToWorkFile;

/**
* not used
*/
public static final String C_SUPPRESS_ERROR_MESSAGE=””;
private String cSuppressErrorMessages;

/**
* not used
*/
public static final String C_CURRENCY_PROCESSING_FLAG=””;
private String cCurrencyProcessingFlag;

/**
* not used
*/
public static final String SZ_PURCHASE_ORDER_PR_OPT_VERSION=””;
private String szPurchaseOrderPrOptVersion;

public static final String SZ_ORDER_COMPANY=”pdkcoo”;
private String szOrderCompany;

public static final String MN_ORDER_NUMBER=”pddoco”;
private Integer mnOrderNumber;

public static final String SZ_ORDER_TYPE=”pddcto”;
private String szOrderType;

public static final String SZ_ORDER_SUFFIX=”pdsfxo”;
private String szOrderSuffix;

public static final String SZ_ORDER_BRANCH_PLANT=”pdmcu”;
private String szBranchPlant;

public static final String SZ_ORIGINAL_ORDER_COMPANY=”pdokco”;
private String szOriginalOrderCompany;

public static final String SZ_ORIGINAL_ORDER_NUMBER=”pdoorn”;
private String szOriginalOrderNumber;

public static final String SZ_ORIGINAL_ORDER_TYPE=”pdocto”;
private String szOriginalOrderType;

public static final String MN_ORIGINAL_LINE_NUMBER=”pdogno”;
private Integer mnOriginalLineNumber;

public static final String SZ_RELATED_ORDER_COMPANY=”pdrkco”;
private String szRelatedOrderCompany;

public static final String SZ_RELATED_ORDER_NUMBER=”pdrorn”;
private String szRelatedOrderNumber;

public static final String SZ_RELATED_ORDER_TYPE=”pdrcto”;
private String szRelatedOrderType;

public static final String MN_RELATED_ORDER_LINE=”pdrlln”;
private Integer mnRelatedOrderLine;

public static final String MN_SUPPLIER_NUMBER=”pdan8″;
private Integer mnSupplierNumber;

public static final String MN_SHIP_TO_NUMBER=”pdshan”;
private Integer mnShipToNumber;

public static final String JD_REQUESTED_DATE=”pddrqj”;
private Date jdRequestedDate;

public static final String JD_TRANSACTION_DATE=”pdtrdj”;
private Date jdTransactionDate;

public static final String JD_PROMISED_DATE=”pdpddj”;
private Date jdPromisedDate;

public static final String JD_CANCEL_DATE=”pdcndj”;
private Date jdCancelDate;

public static final String JD_GL_DATE=”pddgl”;
private Date jdGLDate;

public static final String SZ_UNFORMATED_ITEM_NUMBER=”pdlitm”;
private String szUnformattedItemNumber;

public static final String MN_QUANTITY_ORDERED=”pduorg”;
private Double mnQuantityOrdered;

public static final String MN_UNIT_PRICE=”pdprrc”;
private Double mnUnitPrice;

public static final String C_PRICE_OVERRIDE_FLAG=”pdprov”;
private String cPriceOverrideFlag;

public static final String MN_EXTENDED_PRICE=”pdaexp”;
private Double mnExtendedPrice;

public static final String SZ_LINE_TYPE=”pdlnty”;
private String szLineType;

public static final String SZ_DESCRIPTION_1=”pddsc1″;
private String szDescription1;

public static final String SZ_DESCRIPTION_2=”pddsc2″;
private String szDescription2;

public static final String SZ_ASSET_ID=”pdasid”;
private String szAssetID;

/**
* not used
*/
public static final String SZ_DETAIL_LINE_BRANCH_PLANT=”pdmcu”;
private String szDetailLineBranchPlant;

public static final String SZ_LOCATION=”pdlocn”;
private String szLocation;

public static final String SZ_LOT_NUMBER=”pdlotn”;
private String szLotNumber;

public static final String SZ_TRANSACTION_UOM=”pduom”;
private String szTransactionUoM;

public static final String SZ_PURCHASING_UOM=”pduom3″;
private String szPurchasingUoM;

public static final String SZ_LAST_STATUS=”pdlttr”;
private String szLastStatus;

public static final String SZ_NEXT_STATUS=”pdnxtr”;
private String szNextStatus;

public static final String SZ_UNFORMATTED_ACCOUNT_NUMBER=”pdani”;
private String szUnformattedAccountNumber;

public static final String SZ_SUBLEDGER=”pdsbl”;
private String szSubledger;

public static final String C_SUBLEDGER_TYPE=”pdsblt”;
private String cSubledgerType;

public static final String MN_DISCOUNT_FACTOR=”pddspr”;
private Double mnDiscountFactor;

public static final String SZ_CATALOG_NUMBER=”pdcatn”;
private String szCatalogNumber;

public static final String SZ_INVENTORY_PRICE_RULE=”pdprgr”;
private String szInventoryPriceRule;

public static final String SZ_PRICE_LEVEL=”pdclvl”;
private String szPriceLevel;

public static final String SZ_PRINT_MESSAGE=”pdinmg”;
private String szPrintMessage;

public static final String C_TAXABLE=”pdtx”;
private String cTaxable;

public static final String SZ_TAX_EXPLANATION_CODE=”pdexr1″;
private String szTaxExplanationCode;

public static final String SZ_TAX_RATE_AREA=”pdtxa1″;
private String szTaxRateArea;

public static final String SZ_GL_CLASS_CODE=”pdglc”;
private String szGLClassCode;

public static final String MN_BUYER_NUMBER=”pdanby”;
private Integer mnBuyerNumber;

public static final String MN_CARRIER_NUMBER=”pdancr”;
private Integer mnCarrierNumber;

public static final String SZ_PURCHASING_CATEGORY_CODE_1=”pdpdp1″;
private String szPurchasingCategoryCode1;

public static final String SZ_PURCHASING_CATEGORY_CODE_2=”pdpdp2″;
private String szPurchasingCategoryCode2;

public static final String SZ_PURCHASING_CATEGORY_CODE_3=”pdpdp3″;
private String szPurchasingCategoryCode3;

public static final String SZ_PURCHASING_CATEGORY_CODE_4=”pdpdp4″;
private String szPurchasingCategoryCode4;

/**
* not used
*/
public static final String SZ_LANDED_COST_RULE=””;
private String szLandedCostRule;

public static final String MN_WEIGHT=”pditwt”;
private Double mnWeight;

public static final String SZ_WEIGHT_UOM=”pdwtum”;
private String szWeightUoM;

public static final String SZ_VOLUME_UOM=”pdvlum”;
private String szVolumeUoM;

public static final String MN_VOLUME=”pditvl”;
private Double mnVolume;

public static final String SZ_REFERENCE_1=”pdvr01″;
private String szReference1;

public static final String SZ_REFERENCE_2=”pdvr02″;
private String szReference2;

public static final String C_SEND_METHOD=”pdcrmd”;
private String cSendMethod;

public static final String C_FREEZE_CODE=”pduncd”;
private String cFreezeCode;

public static final String C_EVALUATED_RECEIPTS=”pdavch”;
private String cEvaluatedReceipts;

/**
* not used
*/
public static final String C_INVENTORY_INTERFACE=””;
private String cInventoryInterface;

/**
* not used
*/
public static final String C_CURRENCY_MODE=””;
private String cCurrencyMode;

public static final String SZ_TRANSACTION_CURRENCY_CODE=”pdcrcd”;
private String szTransactionCurrencyCode;

public static final String MN_CURRENCY_EXCHANGE_RATE=”pdcrr”;
private Float mnCurrencyExchangeRate;

/**
* not used
*/
public static final String SZ_BASE_CURRENCY_CODE=””;
private String szBaseCurrencyCode;

/**
* not used
*/
public static final String C_RELIEVE_PO_BLANKET_ORDER=””;
private String cRelievePOBlanketOrder;

/**
* not used
*/
public static final String C_ADD_NEW_LINE_TO_EXISTING_ORDER=””;
private String cAddNewLineToExistingOrder;

/**
* not used
*/
public static final String C_SOURCE_REQUESTING_PO_GENERATION=””;
private String cSourceRequestingPOGeneration;

public static final String SZ_PROGRAM_ID=”pdpid”;
private String szProgramID;

public static final String SZ_USER_ID=”pduser”;
private String szUserID;

/**
* not used
*/
public static final String C_MULTIPLE_BLANKET_PROCESSING=””;
private String cMultipleBlanketProcessing;

public static final String MN_UNIQUE_KEY=”pdukid”;
private Integer mnUniqueKey;

/**
* not used
*/
public static final String C_SOURCE_OF_DATA_FLAG=””;
private String cSourceOfDataFlag;

/**
* Not used
*/
public static final String MN_SOURCE_OF_DATA_ORDER_NUMBER=””;
private Integer mnSourceOfDataOrderNumber;
private String szSourceOfDataOrderType;
private String szSourceOfDataCompany;
private Integer mnSourceOfDataLineNumber;

public static final String MN_SOURCE_OF_DATA_UNIT_OPEN=”pduopn”;
private Integer mnSourceOfDataUnitsOpen;

public static final String MN_SOURCE_OF_DATA_PRICE_OPEN=”pdaopn”;
private Double mnSourceOfDataPriceOpen;

public static final String SZ_PAYMENT_TERMS=”pdptc”;
private String szPaymentTerms;

public static final String SZ_FREIGHT_HANDLING_CODE=”pdfrth”;
private String szFreightHandlingCode;

public static final String SZ_USER_RESERVED_CODE=”pdurcd”;
private String szUserReservedCode;

public static final String JD_USER_RESERVED_DATE=”pdurdt”;
private Date jdUserReservedDate;

public static final String MN_USER_RESERVED_AMOUNT=”pdurat”;
private Double mnUserReservedAmount;

public static final String MN_USER_RESERVED_NUMBER=”pdurab”;
private Double mnUserReservedNumber;

public static final String SZ_USER_RESERVED_REFERENCE=”pdurrf”;
private String szUserReservedReference;

public static final String SZ_AGREEMENT_NUMBER=”pddmct”;
private String szAgreementNumber;

public static final String MN_AGREEMENT_SUPPLEMENT=”pddmcs”;
private Integer mnAgreementSupplement;

/**
* not used
*/
public static final String MN_CONTRACTS_FOUND=””;
private Integer mnContractsFound;

/**
* not used
*/
public static final String MN_SEQUENCE_NUMBER1=””;
private Integer mnSequenceNumber1;

/**
* not used
*/
public static final String SZ_PRODUCT_SOURCE=””;
private String szProductSource;

/**
* not used
*/
public static final String SZ_PRODUCT_SOURCE_TYPE=””;
private String szProductSourceType;

public static final String JD_EFFECTIVE_DATE=”pdpefj”;
private Date jdEffectiveDate;

public static final String JD_PHYSICAL_COMPLETION_DATE=”pdaddj”;
private Date jdPhysicalCompletionDate;

public static final String SZ_PURCHASING_COST_CENTER=”pdomcu”;
private String szPurchasingCostCenter;

public static final String SZ_OBJECT_ACCOUNT=”pdobj”;
private String szObjectAccount;

public static final String SZ_SUBSIDIARY=”pdsub”;
private String szSubsidiary;

/**
* not used
*/
public static final String SZ_ORIGINAL_ORDER_SUFFIX=””;
private String szOriginalOrderSuffix;

/**
* not used
*/
public static final String C_MESSAGE_CDE=””;
private String cMessageCde;

/**
* not used
*/
public static final String SZ_MATERIAL_STATUS_CODE_WO=””;
private String szMaterialStatusCodeWo;

/**
* not used
*/
public static final String C_STOCKING_TYPE=””;
private String cStockingType;

/**
* not used
*/
public static final String C_KITS_METHOD_OF_PRICE_CALCULATION=””;
private String cKitsMethodofPriceCalculation;

public static final String SZ_ITEM_NUMBER_RELATED_KIT=”pdrlit”;
private String szItemNumberRelatedKit;

/**
* not used
*/
public static final String MN_LINE_NUM=””;
private Integer mnLineNum;

public static final String SZ_ADJUSTMENT_SCHEDULE=”pdasn”;
private String szAdjustmentSchedule;

/**
* not used
*/
public static final String MN_ADJUSMENT_REVISION_LEVEL=””;
private Double mnAdjustmentRevisionLevel;

/**
* not used
*/
public static final String C_FREE_GOOD_INDICATOR=””;
private String cFreeGoodIndicator;
private String cAdvPriceCalledFlag;

/**
* not used
*/
public static final String SZ_ORIGINAL_PO_SO_NUMBER_2=””;
private String szOriginalPoSoNumber_2;
private String szRelatedPoSoNumber_2;

private String cManagerialAnalysisType1;
private String szManagerialAnalysisCode1;
private String cManagerialAnalysisType2;
private String szManagerialAnalysisCode2;
private String cManagerialAnalysisType3;
private String szManagerialAnalysisCode3;
private String cManagerialAnalysisType4;
private String szManagerialAnalysisCode4;
private Integer mnLineNumberXREF;

public static final String C_TRANSFER_ORDER=”pdps01″;
private String cTransferOrder;

public static final String MN_SHIPMENT_NUMBER=”pdshpn”;
private Integer mnShipmentNumber;

private Integer mnProcessID;
private Integer mnTransactionID;
private String szItemFlashMessage;
private String cAmountRecNotZero;

public static final String MN_IDENTIFIER_SHORT_ITEM=”pdaitm”;
private Integer mnIdentifierShortItem;

public static final String IDENTIFIER_SHORT_ITEM=”pditm”;
private Integer identifierShortItem;

/**
* not used
*/
public static final String MN_RMA_DOC_NUMBER=””;
private Integer mnRMADocNumber;
private String szRMADocType;

public static final String MN_SECONDARY_QTY=”pdsqor”;
private Double mnSecondaryQty;

public static final String SZ_SECONDARY_UOM=”pduom2″;
private String szSecondaryUOM;

public static final String JD_LOT_EFFECTIVITY_DATE=”pddlej”;
private Date jdLotEffectivityDate;

public static final String SZ_PROMOTION_ID=”pdpmtn”;
private String szPromotionID;

public static final String MN_MATRIX_CONTROL_LINE=”pdmcln”;
private Double mnMatrixControlLine;

public static final String MN_PROJECT_NUMBER=”pdprjm”;
private Integer mnProjectNumber;

private String cActiveFlag;
private String szPOEMBFInternalFlags;

public static final String SZ_MODE_TRANSPORT=”pdmot”;
private String szModeOfTransport;

private Integer mnTaskOrderNumber;
private String szTaskOrderType;

public static final String SZ_PLAN=”pdpl”;
private String szPlan;

public static final String SZ_ELEVATION=”pdelev”;
private String szElevation;

private String cPreservePOEManualAdj;
private String cPOETriggerReprice;
private String szReferenceUCISNo;

public static final String SZ_UNSPSC_CODE=”pdunspsc”;
private String szUNSPSCCode;

public static final String SZ_COMMODITY_CODE=”pdcmdcde”;
private String szCommodityCode;

public static final String JD_DATE_PROMISED_SHIP_JU=”pdppdj”;
private Date jdDatePromisedShipJu;

public static final String C_MULTIPLE_ACCOUNT_EXIST_MACT=”pdmact”;
private String cMultipleAccountsExist_MACT;

public static final String SZ_TRANSACTION_ORIGINATOR_TORG=”pdtorg”;
private String szTransactionOriginator_TORG;

public static final String SZ_RELATED_ORDER_SUFFIX=”pdrsfx”;
private String szRelatedOrderSuffix;

public static final String MN_CONTRACT_ID=”pdcntrtid”;
private Integer mnContractID;

public static final String MN_CONTRACT_DETAIL_ID=”pdcntrtdid”;
private Integer mnContractDetailID;

private String cRepricePOModeEV06;

public static final String C_MANUAL_OVERIDE=”pdmoadj”;
private String cManualOverride;

private String cRepricePreserveFreeGoodEV07;

public static final String MN_VESSEL_ID=”pdwvid”;
private Integer mnVesselID;

private String cVesselClass;

public PODetail() {
// TODO Auto-generated constructor stub
}

public PODetail(POHeader a){
this.mnJobNumber =a.getMnJobNumber();
this.szBranchPlant = a.getSzBranchPlant();
this.szComputerID = a.getSzComputerId();
this.szOrderType = a.getSzOrderType();
this.mnShipToNumber = a.getMnShipToNumber();
this.cCurrencyProcessingFlag=”Y”;
this.szOrderSuffix = a.getSzOrderSuffix();
this.mnProcessID = a.getMnProcessID();
this.mnTransactionID = a.getMnTransactionID();
this.mnOrderNumber = a.getMnOrderNumber();
this.szOrderCompany = a.getSzOrderCompany();
this.szOrderType = a.getSzOrderType();

}

public Integer getMnJobNumber() {
return mnJobNumber;
}

public void setMnJobNumber(Integer mnJobNumber) {
this.mnJobNumber = mnJobNumber;
}

public String getSzComputerID() {
return szComputerID;
}

public void setSzComputerID(String szComputerID) {
this.szComputerID = szComputerID;
}

public Integer getMnOrderLineNumber() {
return mnOrderLineNumber;
}

public void setMnOrderLineNumber(Integer mnOrderLineNumber) {
this.mnOrderLineNumber = mnOrderLineNumber;
}

public String getcDetailActionCode() {
return cDetailActionCode;
}

public void setcDetailActionCode(String cDetailActionCode) {
this.cDetailActionCode = cDetailActionCode;
}

public String getcProcessEdits() {
return cProcessEdits;
}

public void setcProcessEdits(String cProcessEdits) {
this.cProcessEdits = cProcessEdits;
}

public String getcUpdateOrWriteWorkFile() {
return cUpdateOrWriteWorkFile;
}

public void setcUpdateOrWriteWorkFile(String cUpdateOrWriteWorkFile) {
this.cUpdateOrWriteWorkFile = cUpdateOrWriteWorkFile;
}

public String getcRecordWrittenToWorkFile() {
return cRecordWrittenToWorkFile;
}

public void setcRecordWrittenToWorkFile(String cRecordWrittenToWorkFile) {
this.cRecordWrittenToWorkFile = cRecordWrittenToWorkFile;
}

public String getcSuppressErrorMessages() {
return cSuppressErrorMessages;
}

public void setcSuppressErrorMessages(String cSuppressErrorMessages) {
this.cSuppressErrorMessages = cSuppressErrorMessages;
}

public String getcCurrencyProcessingFlag() {
return cCurrencyProcessingFlag;
}

public void setcCurrencyProcessingFlag(String cCurrencyProcessingFlag) {
this.cCurrencyProcessingFlag = cCurrencyProcessingFlag;
}

public String getSzPurchaseOrderPrOptVersion() {
return szPurchaseOrderPrOptVersion;
}

public void setSzPurchaseOrderPrOptVersion(String szPurchaseOrderPrOptVersion) {
this.szPurchaseOrderPrOptVersion = szPurchaseOrderPrOptVersion;
}

public String getSzOrderCompany() {
return szOrderCompany;
}

public void setSzOrderCompany(String szOrderCompany) {
this.szOrderCompany = szOrderCompany;
}

public Integer getMnOrderNumber() {
return mnOrderNumber;
}

public void setMnOrderNumber(Integer mnOrderNumber) {
this.mnOrderNumber = mnOrderNumber;
}

public String getSzOrderType() {
return szOrderType;
}

public void setSzOrderType(String szOrderType) {
this.szOrderType = szOrderType;
}

public String getSzOrderSuffix() {
return szOrderSuffix;
}

public void setSzOrderSuffix(String szOrderSuffix) {
this.szOrderSuffix = szOrderSuffix;
}

public String getSzBranchPlant() {
return szBranchPlant;
}

public void setSzBranchPlant(String szBranchPlant) {
this.szBranchPlant = szBranchPlant;
}

public String getSzOriginalOrderCompany() {
return szOriginalOrderCompany;
}

public void setSzOriginalOrderCompany(String szOriginalOrderCompany) {
this.szOriginalOrderCompany = szOriginalOrderCompany;
}

public String getSzOriginalOrderNumber() {
return szOriginalOrderNumber;
}

public void setSzOriginalOrderNumber(String szOriginalOrderNumber) {
this.szOriginalOrderNumber = szOriginalOrderNumber;
}

public String getSzOriginalOrderType() {
return szOriginalOrderType;
}

public void setSzOriginalOrderType(String szOriginalOrderType) {
this.szOriginalOrderType = szOriginalOrderType;
}

public Integer getMnOriginalLineNumber() {
return mnOriginalLineNumber;
}

public void setMnOriginalLineNumber(Integer mnOriginalLineNumber) {
this.mnOriginalLineNumber = mnOriginalLineNumber;
}

public String getSzRelatedOrderCompany() {
return szRelatedOrderCompany;
}

public void setSzRelatedOrderCompany(String szRelatedOrderCompany) {
this.szRelatedOrderCompany = szRelatedOrderCompany;
}

public String getSzRelatedOrderNumber() {
return szRelatedOrderNumber;
}

public void setSzRelatedOrderNumber(String szRelatedOrderNumber) {
this.szRelatedOrderNumber = szRelatedOrderNumber;
}

public String getSzRelatedOrderType() {
return szRelatedOrderType;
}

public void setSzRelatedOrderType(String szRelatedOrderType) {
this.szRelatedOrderType = szRelatedOrderType;
}

public Integer getMnRelatedOrderLine() {
return mnRelatedOrderLine;
}

public void setMnRelatedOrderLine(Integer mnRelatedOrderLine) {
this.mnRelatedOrderLine = mnRelatedOrderLine;
}

public Integer getMnSupplierNumber() {
return mnSupplierNumber;
}

public void setMnSupplierNumber(Integer mnSupplierNumber) {
this.mnSupplierNumber = mnSupplierNumber;
}

public Integer getMnShipToNumber() {
return mnShipToNumber;
}

public void setMnShipToNumber(Integer mnShipToNumber) {
this.mnShipToNumber = mnShipToNumber;
}

public Date getJdRequestedDate() {
return jdRequestedDate;
}

public void setJdRequestedDate(Date jdRequestedDate) {
this.jdRequestedDate = jdRequestedDate;
}

public Date getJdTransactionDate() {
return jdTransactionDate;
}

public void setJdTransactionDate(Date jdTransactionDate) {
this.jdTransactionDate = jdTransactionDate;
}

public Date getJdPromisedDate() {
return jdPromisedDate;
}

public void setJdPromisedDate(Date jdPromisedDate) {
this.jdPromisedDate = jdPromisedDate;
}

public Date getJdCancelDate() {
return jdCancelDate;
}

public void setJdCancelDate(Date jdCancelDate) {
this.jdCancelDate = jdCancelDate;
}

public Date getJdGLDate() {
return jdGLDate;
}

public void setJdGLDate(Date jdGLDate) {
this.jdGLDate = jdGLDate;
}

public String getSzUnformattedItemNumber() {
return szUnformattedItemNumber;
}

public void setSzUnformattedItemNumber(String szUnformattedItemNumber) {
this.szUnformattedItemNumber = szUnformattedItemNumber;
}

public Double getMnQuantityOrdered() {
return mnQuantityOrdered;
}

public void setMnQuantityOrdered(Double mnQuantityOrdered) {
this.mnQuantityOrdered = mnQuantityOrdered;
}

public Double getMnUnitPrice() {
return mnUnitPrice;
}

public void setMnUnitPrice(Double mnUnitPrice) {
this.mnUnitPrice = mnUnitPrice;
}

public String getcPriceOverrideFlag() {
return cPriceOverrideFlag;
}

public void setcPriceOverrideFlag(String cPriceOverrideFlag) {
this.cPriceOverrideFlag = cPriceOverrideFlag;
}

public Double getMnExtendedPrice() {
return mnExtendedPrice;
}

public void setMnExtendedPrice(Double mnExtendedPrice) {
this.mnExtendedPrice = mnExtendedPrice;
}

public String getSzLineType() {
return szLineType;
}

public void setSzLineType(String szLineType) {
this.szLineType = szLineType;
}

public String getSzDescription1() {
return szDescription1;
}

public void setSzDescription1(String szDescription1) {
this.szDescription1 = szDescription1;
}

public String getSzDescription2() {
return szDescription2;
}

public void setSzDescription2(String szDescription2) {
this.szDescription2 = szDescription2;
}

public String getSzAssetID() {
return szAssetID;
}

public void setSzAssetID(String szAssetID) {
this.szAssetID = szAssetID;
}

public String getSzDetailLineBranchPlant() {
return szDetailLineBranchPlant;
}

public void setSzDetailLineBranchPlant(String szDetailLineBranchPlant) {
this.szDetailLineBranchPlant = szDetailLineBranchPlant;
}

public String getSzLocation() {
return szLocation;
}

public void setSzLocation(String szLocation) {
this.szLocation = szLocation;
}

public String getSzLotNumber() {
return szLotNumber;
}

public void setSzLotNumber(String szLotNumber) {
this.szLotNumber = szLotNumber;
}

public String getSzTransactionUoM() {
return szTransactionUoM;
}

public void setSzTransactionUoM(String szTransactionUoM) {
this.szTransactionUoM = szTransactionUoM;
}

public String getSzPurchasingUoM() {
return szPurchasingUoM;
}

public void setSzPurchasingUoM(String szPurchasingUoM) {
this.szPurchasingUoM = szPurchasingUoM;
}

public String getSzLastStatus() {
return szLastStatus;
}

public void setSzLastStatus(String szLastStatus) {
this.szLastStatus = szLastStatus;
}

public String getSzNextStatus() {
return szNextStatus;
}

public void setSzNextStatus(String szNextStatus) {
this.szNextStatus = szNextStatus;
}

public String getSzUnformattedAccountNumber() {
return szUnformattedAccountNumber;
}

public void setSzUnformattedAccountNumber(String szUnformattedAccountNumber) {
this.szUnformattedAccountNumber = szUnformattedAccountNumber;
}

public String getSzSubledger() {
return szSubledger;
}

public void setSzSubledger(String szSubledger) {
this.szSubledger = szSubledger;
}

public String getcSubledgerType() {
return cSubledgerType;
}

public void setcSubledgerType(String cSubledgerType) {
this.cSubledgerType = cSubledgerType;
}

public Double getMnDiscountFactor() {
return mnDiscountFactor;
}

public void setMnDiscountFactor(Double mnDiscountFactor) {
this.mnDiscountFactor = mnDiscountFactor;
}

public String getSzCatalogNumber() {
return szCatalogNumber;
}

public void setSzCatalogNumber(String szCatalogNumber) {
this.szCatalogNumber = szCatalogNumber;
}

public String getSzInventoryPriceRule() {
return szInventoryPriceRule;
}

public void setSzInventoryPriceRule(String szInventoryPriceRule) {
this.szInventoryPriceRule = szInventoryPriceRule;
}

public String getSzPriceLevel() {
return szPriceLevel;
}

public void setSzPriceLevel(String szPriceLevel) {
this.szPriceLevel = szPriceLevel;
}

public String getSzPrintMessage() {
return szPrintMessage;
}

public void setSzPrintMessage(String szPrintMessage) {
this.szPrintMessage = szPrintMessage;
}

public String getcTaxable() {
return cTaxable;
}

public void setcTaxable(String cTaxable) {
this.cTaxable = cTaxable;
}

public String getSzTaxExplanationCode() {
return szTaxExplanationCode;
}

public void setSzTaxExplanationCode(String szTaxExplanationCode) {
this.szTaxExplanationCode = szTaxExplanationCode;
}

public String getSzTaxRateArea() {
return szTaxRateArea;
}

public void setSzTaxRateArea(String szTaxRateArea) {
this.szTaxRateArea = szTaxRateArea;
}

public String getSzGLClassCode() {
return szGLClassCode;
}

public void setSzGLClassCode(String szGLClassCode) {
this.szGLClassCode = szGLClassCode;
}

public Integer getMnBuyerNumber() {
return mnBuyerNumber;
}

public void setMnBuyerNumber(Integer mnBuyerNumber) {
this.mnBuyerNumber = mnBuyerNumber;
}

public Integer getMnCarrierNumber() {
return mnCarrierNumber;
}

public void setMnCarrierNumber(Integer mnCarrierNumber) {
this.mnCarrierNumber = mnCarrierNumber;
}

public String getSzPurchasingCategoryCode1() {
return szPurchasingCategoryCode1;
}

public void setSzPurchasingCategoryCode1(String szPurchasingCategoryCode1) {
this.szPurchasingCategoryCode1 = szPurchasingCategoryCode1;
}

public String getSzPurchasingCategoryCode2() {
return szPurchasingCategoryCode2;
}

public void setSzPurchasingCategoryCode2(String szPurchasingCategoryCode2) {
this.szPurchasingCategoryCode2 = szPurchasingCategoryCode2;
}

public String getSzPurchasingCategoryCode3() {
return szPurchasingCategoryCode3;
}

public void setSzPurchasingCategoryCode3(String szPurchasingCategoryCode3) {
this.szPurchasingCategoryCode3 = szPurchasingCategoryCode3;
}

public String getSzPurchasingCategoryCode4() {
return szPurchasingCategoryCode4;
}

public void setSzPurchasingCategoryCode4(String szPurchasingCategoryCode4) {
this.szPurchasingCategoryCode4 = szPurchasingCategoryCode4;
}

public String getSzLandedCostRule() {
return szLandedCostRule;
}

public void setSzLandedCostRule(String szLandedCostRule) {
this.szLandedCostRule = szLandedCostRule;
}

public Double getMnWeight() {
return mnWeight;
}

public void setMnWeight(Double mnWeight) {
this.mnWeight = mnWeight;
}

public String getSzWeightUoM() {
return szWeightUoM;
}

public void setSzWeightUoM(String szWeightUoM) {
this.szWeightUoM = szWeightUoM;
}

public String getSzVolumeUoM() {
return szVolumeUoM;
}

public void setSzVolumeUoM(String szVolumeUoM) {
this.szVolumeUoM = szVolumeUoM;
}

public Double getMnVolume() {
return mnVolume;
}

public void setMnVolume(Double mnVolume) {
this.mnVolume = mnVolume;
}

public String getSzReference1() {
return szReference1;
}

public void setSzReference1(String szReference1) {
this.szReference1 = szReference1;
}

public String getSzReference2() {
return szReference2;
}

public void setSzReference2(String szReference2) {
this.szReference2 = szReference2;
}

public String getcSendMethod() {
return cSendMethod;
}

public void setcSendMethod(String cSendMethod) {
this.cSendMethod = cSendMethod;
}

public String getcFreezeCode() {
return cFreezeCode;
}

public void setcFreezeCode(String cFreezeCode) {
this.cFreezeCode = cFreezeCode;
}

public String getcEvaluatedReceipts() {
return cEvaluatedReceipts;
}

public void setcEvaluatedReceipts(String cEvaluatedReceipts) {
this.cEvaluatedReceipts = cEvaluatedReceipts;
}

public String getcInventoryInterface() {
return cInventoryInterface;
}

public void setcInventoryInterface(String cInventoryInterface) {
this.cInventoryInterface = cInventoryInterface;
}

public String getcCurrencyMode() {
return cCurrencyMode;
}

public void setcCurrencyMode(String cCurrencyMode) {
this.cCurrencyMode = cCurrencyMode;
}

public String getSzTransactionCurrencyCode() {
return szTransactionCurrencyCode;
}

public void setSzTransactionCurrencyCode(String szTransactionCurrencyCode) {
this.szTransactionCurrencyCode = szTransactionCurrencyCode;
}

public Float getMnCurrencyExchangeRate() {
return mnCurrencyExchangeRate;
}

public void setMnCurrencyExchangeRate(Float mnCurrencyExchangeRate) {
this.mnCurrencyExchangeRate = mnCurrencyExchangeRate;
}

public String getSzBaseCurrencyCode() {
return szBaseCurrencyCode;
}

public void setSzBaseCurrencyCode(String szBaseCurrencyCode) {
this.szBaseCurrencyCode = szBaseCurrencyCode;
}

public String getcRelievePOBlanketOrder() {
return cRelievePOBlanketOrder;
}

public void setcRelievePOBlanketOrder(String cRelievePOBlanketOrder) {
this.cRelievePOBlanketOrder = cRelievePOBlanketOrder;
}

public String getcAddNewLineToExistingOrder() {
return cAddNewLineToExistingOrder;
}

public void setcAddNewLineToExistingOrder(String cAddNewLineToExistingOrder) {
this.cAddNewLineToExistingOrder = cAddNewLineToExistingOrder;
}

public String getcSourceRequestingPOGeneration() {
return cSourceRequestingPOGeneration;
}

public void setcSourceRequestingPOGeneration(
String cSourceRequestingPOGeneration) {
this.cSourceRequestingPOGeneration = cSourceRequestingPOGeneration;
}

public String getSzProgramID() {
return szProgramID;
}

public void setSzProgramID(String szProgramID) {
this.szProgramID = szProgramID;
}

public String getSzUserID() {
return szUserID;
}

public void setSzUserID(String szUserID) {
this.szUserID = szUserID;
}

public String getcMultipleBlanketProcessing() {
return cMultipleBlanketProcessing;
}

public void setcMultipleBlanketProcessing(String cMultipleBlanketProcessing) {
this.cMultipleBlanketProcessing = cMultipleBlanketProcessing;
}

public Integer getMnUniqueKey() {
return mnUniqueKey;
}

public void setMnUniqueKey(Integer mnUniqueKey) {
this.mnUniqueKey = mnUniqueKey;
}

public String getcSourceOfDataFlag() {
return cSourceOfDataFlag;
}

public void setcSourceOfDataFlag(String cSourceOfDataFlag) {
this.cSourceOfDataFlag = cSourceOfDataFlag;
}

public Integer getMnSourceOfDataOrderNumber() {
return mnSourceOfDataOrderNumber;
}

public void setMnSourceOfDataOrderNumber(Integer mnSourceOfDataOrderNumber) {
this.mnSourceOfDataOrderNumber = mnSourceOfDataOrderNumber;
}

public String getSzSourceOfDataOrderType() {
return szSourceOfDataOrderType;
}

public void setSzSourceOfDataOrderType(String szSourceOfDataOrderType) {
this.szSourceOfDataOrderType = szSourceOfDataOrderType;
}

public String getSzSourceOfDataCompany() {
return szSourceOfDataCompany;
}

public void setSzSourceOfDataCompany(String szSourceOfDataCompany) {
this.szSourceOfDataCompany = szSourceOfDataCompany;
}

public Integer getMnSourceOfDataLineNumber() {
return mnSourceOfDataLineNumber;
}

public void setMnSourceOfDataLineNumber(Integer mnSourceOfDataLineNumber) {
this.mnSourceOfDataLineNumber = mnSourceOfDataLineNumber;
}

public Integer getMnSourceOfDataUnitsOpen() {
return mnSourceOfDataUnitsOpen;
}

public void setMnSourceOfDataUnitsOpen(Integer mnSourceOfDataUnitsOpen) {
this.mnSourceOfDataUnitsOpen = mnSourceOfDataUnitsOpen;
}

public String getSzPaymentTerms() {
return szPaymentTerms;
}

public void setSzPaymentTerms(String szPaymentTerms) {
this.szPaymentTerms = szPaymentTerms;
}

public String getSzFreightHandlingCode() {
return szFreightHandlingCode;
}

public void setSzFreightHandlingCode(String szFreightHandlingCode) {
this.szFreightHandlingCode = szFreightHandlingCode;
}

public String getSzUserReservedCode() {
return szUserReservedCode;
}

public void setSzUserReservedCode(String szUserReservedCode) {
this.szUserReservedCode = szUserReservedCode;
}

public Date getJdUserReservedDate() {
return jdUserReservedDate;
}

public void setJdUserReservedDate(Date jdUserReservedDate) {
this.jdUserReservedDate = jdUserReservedDate;
}

public Double getMnUserReservedAmount() {
return mnUserReservedAmount;
}

public void setMnUserReservedAmount(Double mnUserReservedAmount) {
this.mnUserReservedAmount = mnUserReservedAmount;
}

public Double getMnUserReservedNumber() {
return mnUserReservedNumber;
}

public void setMnUserReservedNumber(Double mnUserReservedNumber) {
this.mnUserReservedNumber = mnUserReservedNumber;
}

public String getSzUserReservedReference() {
return szUserReservedReference;
}

public void setSzUserReservedReference(String szUserReservedReference) {
this.szUserReservedReference = szUserReservedReference;
}

public String getSzAgreementNumber() {
return szAgreementNumber;
}

public void setSzAgreementNumber(String szAgreementNumber) {
this.szAgreementNumber = szAgreementNumber;
}

public Integer getMnAgreementSupplement() {
return mnAgreementSupplement;
}

public void setMnAgreementSupplement(Integer mnAgreementSupplement) {
this.mnAgreementSupplement = mnAgreementSupplement;
}

public Integer getMnContractsFound() {
return mnContractsFound;
}

public void setMnContractsFound(Integer mnContractsFound) {
this.mnContractsFound = mnContractsFound;
}

public Integer getMnSequenceNumber1() {
return mnSequenceNumber1;
}

public void setMnSequenceNumber1(Integer mnSequenceNumber1) {
this.mnSequenceNumber1 = mnSequenceNumber1;
}

public String getSzProductSource() {
return szProductSource;
}

public void setSzProductSource(String szProductSource) {
this.szProductSource = szProductSource;
}

public String getSzProductSourceType() {
return szProductSourceType;
}

public void setSzProductSourceType(String szProductSourceType) {
this.szProductSourceType = szProductSourceType;
}

public Date getJdEffectiveDate() {
return jdEffectiveDate;
}

public void setJdEffectiveDate(Date jdEffectiveDate) {
this.jdEffectiveDate = jdEffectiveDate;
}

public Date getJdPhysicalCompletionDate() {
return jdPhysicalCompletionDate;
}

public void setJdPhysicalCompletionDate(Date jdPhysicalCompletionDate) {
this.jdPhysicalCompletionDate = jdPhysicalCompletionDate;
}

public String getSzPurchasingCostCenter() {
return szPurchasingCostCenter;
}

public void setSzPurchasingCostCenter(String szPurchasingCostCenter) {
this.szPurchasingCostCenter = szPurchasingCostCenter;
}

public String getSzObjectAccount() {
return szObjectAccount;
}

public void setSzObjectAccount(String szObjectAccount) {
this.szObjectAccount = szObjectAccount;
}

public String getSzSubsidiary() {
return szSubsidiary;
}

public void setSzSubsidiary(String szSubsidiary) {
this.szSubsidiary = szSubsidiary;
}

public String getSzOriginalOrderSuffix() {
return szOriginalOrderSuffix;
}

public void setSzOriginalOrderSuffix(String szOriginalOrderSuffix) {
this.szOriginalOrderSuffix = szOriginalOrderSuffix;
}

public String getcMessageCde() {
return cMessageCde;
}

public void setcMessageCde(String cMessageCde) {
this.cMessageCde = cMessageCde;
}

public String getSzMaterialStatusCodeWo() {
return szMaterialStatusCodeWo;
}

public void setSzMaterialStatusCodeWo(String szMaterialStatusCodeWo) {
this.szMaterialStatusCodeWo = szMaterialStatusCodeWo;
}

public String getcStockingType() {
return cStockingType;
}

public void setcStockingType(String cStockingType) {
this.cStockingType = cStockingType;
}

public String getcKitsMethodofPriceCalculation() {
return cKitsMethodofPriceCalculation;
}

public void setcKitsMethodofPriceCalculation(
String cKitsMethodofPriceCalculation) {
this.cKitsMethodofPriceCalculation = cKitsMethodofPriceCalculation;
}

public String getSzItemNumberRelatedKit() {
return szItemNumberRelatedKit;
}

public void setSzItemNumberRelatedKit(String szItemNumberRelatedKit) {
this.szItemNumberRelatedKit = szItemNumberRelatedKit;
}

public Integer getMnLineNum() {
return mnLineNum;
}

public void setMnLineNum(Integer mnLineNum) {
this.mnLineNum = mnLineNum;
}

public String getSzAdjustmentSchedule() {
return szAdjustmentSchedule;
}

public void setSzAdjustmentSchedule(String szAdjustmentSchedule) {
this.szAdjustmentSchedule = szAdjustmentSchedule;
}

public Double getMnAdjustmentRevisionLevel() {
return mnAdjustmentRevisionLevel;
}

public void setMnAdjustmentRevisionLevel(Double mnAdjustmentRevisionLevel) {
this.mnAdjustmentRevisionLevel = mnAdjustmentRevisionLevel;
}

public String getcFreeGoodIndicator() {
return cFreeGoodIndicator;
}

public void setcFreeGoodIndicator(String cFreeGoodIndicator) {
this.cFreeGoodIndicator = cFreeGoodIndicator;
}

public String getcAdvPriceCalledFlag() {
return cAdvPriceCalledFlag;
}

public void setcAdvPriceCalledFlag(String cAdvPriceCalledFlag) {
this.cAdvPriceCalledFlag = cAdvPriceCalledFlag;
}

public String getSzOriginalPoSoNumber_2() {
return szOriginalPoSoNumber_2;
}

public void setSzOriginalPoSoNumber_2(String szOriginalPoSoNumber_2) {
this.szOriginalPoSoNumber_2 = szOriginalPoSoNumber_2;
}

public String getSzRelatedPoSoNumber_2() {
return szRelatedPoSoNumber_2;
}

public void setSzRelatedPoSoNumber_2(String szRelatedPoSoNumber_2) {
this.szRelatedPoSoNumber_2 = szRelatedPoSoNumber_2;
}

public String getcManagerialAnalysisType1() {
return cManagerialAnalysisType1;
}

public void setcManagerialAnalysisType1(String cManagerialAnalysisType1) {
this.cManagerialAnalysisType1 = cManagerialAnalysisType1;
}

public String getSzManagerialAnalysisCode1() {
return szManagerialAnalysisCode1;
}

public void setSzManagerialAnalysisCode1(String szManagerialAnalysisCode1) {
this.szManagerialAnalysisCode1 = szManagerialAnalysisCode1;
}

public String getcManagerialAnalysisType2() {
return cManagerialAnalysisType2;
}

public void setcManagerialAnalysisType2(String cManagerialAnalysisType2) {
this.cManagerialAnalysisType2 = cManagerialAnalysisType2;
}

public String getSzManagerialAnalysisCode2() {
return szManagerialAnalysisCode2;
}

public void setSzManagerialAnalysisCode2(String szManagerialAnalysisCode2) {
this.szManagerialAnalysisCode2 = szManagerialAnalysisCode2;
}

public String getcManagerialAnalysisType3() {
return cManagerialAnalysisType3;
}

public void setcManagerialAnalysisType3(String cManagerialAnalysisType3) {
this.cManagerialAnalysisType3 = cManagerialAnalysisType3;
}

public String getSzManagerialAnalysisCode3() {
return szManagerialAnalysisCode3;
}

public void setSzManagerialAnalysisCode3(String szManagerialAnalysisCode3) {
this.szManagerialAnalysisCode3 = szManagerialAnalysisCode3;
}

public String getcManagerialAnalysisType4() {
return cManagerialAnalysisType4;
}

public void setcManagerialAnalysisType4(String cManagerialAnalysisType4) {
this.cManagerialAnalysisType4 = cManagerialAnalysisType4;
}

public String getSzManagerialAnalysisCode4() {
return szManagerialAnalysisCode4;
}

public void setSzManagerialAnalysisCode4(String szManagerialAnalysisCode4) {
this.szManagerialAnalysisCode4 = szManagerialAnalysisCode4;
}

public Integer getMnLineNumberXREF() {
return mnLineNumberXREF;
}

public void setMnLineNumberXREF(Integer mnLineNumberXREF) {
this.mnLineNumberXREF = mnLineNumberXREF;
}

public String getcTransferOrder() {
return cTransferOrder;
}

public void setcTransferOrder(String cTransferOrder) {
this.cTransferOrder = cTransferOrder;
}

public Integer getMnShipmentNumber() {
return mnShipmentNumber;
}

public void setMnShipmentNumber(Integer mnShipmentNumber) {
this.mnShipmentNumber = mnShipmentNumber;
}

public Integer getMnProcessID() {
return mnProcessID;
}

public void setMnProcessID(Integer mnProcessID) {
this.mnProcessID = mnProcessID;
}

public Integer getMnTransactionID() {
return mnTransactionID;
}

public void setMnTransactionID(Integer mnTransactionID) {
this.mnTransactionID = mnTransactionID;
}

public String getSzItemFlashMessage() {
return szItemFlashMessage;
}

public void setSzItemFlashMessage(String szItemFlashMessage) {
this.szItemFlashMessage = szItemFlashMessage;
}

public String getcAmountRecNotZero() {
return cAmountRecNotZero;
}

public void setcAmountRecNotZero(String cAmountRecNotZero) {
this.cAmountRecNotZero = cAmountRecNotZero;
}

public Integer getMnIdentifierShortItem() {
return mnIdentifierShortItem;
}

public void setMnIdentifierShortItem(Integer mnIdentifierShortItem) {
this.mnIdentifierShortItem = mnIdentifierShortItem;
}

public Integer getMnRMADocNumber() {
return mnRMADocNumber;
}

public void setMnRMADocNumber(Integer mnRMADocNumber) {
this.mnRMADocNumber = mnRMADocNumber;
}

public String getSzRMADocType() {
return szRMADocType;
}

public void setSzRMADocType(String szRMADocType) {
this.szRMADocType = szRMADocType;
}

public Double getMnSecondaryQty() {
return mnSecondaryQty;
}

public void setMnSecondaryQty(Double mnSecondaryQty) {
this.mnSecondaryQty = mnSecondaryQty;
}

public String getSzSecondaryUOM() {
return szSecondaryUOM;
}

public void setSzSecondaryUOM(String szSecondaryUOM) {
this.szSecondaryUOM = szSecondaryUOM;
}

public Date getJdLotEffectivityDate() {
return jdLotEffectivityDate;
}

public void setJdLotEffectivityDate(Date jdLotEffectivityDate) {
this.jdLotEffectivityDate = jdLotEffectivityDate;
}

public String getSzPromotionID() {
return szPromotionID;
}

public void setSzPromotionID(String szPromotionID) {
this.szPromotionID = szPromotionID;
}

public Double getMnMatrixControlLine() {
return mnMatrixControlLine;
}

public void setMnMatrixControlLine(Double mnMatrixControlLine) {
this.mnMatrixControlLine = mnMatrixControlLine;
}

public Integer getMnProjectNumber() {
return mnProjectNumber;
}

public void setMnProjectNumber(Integer mnProjectNumber) {
this.mnProjectNumber = mnProjectNumber;
}

public String getcActiveFlag() {
return cActiveFlag;
}

public void setcActiveFlag(String cActiveFlag) {
this.cActiveFlag = cActiveFlag;
}

public String getSzPOEMBFInternalFlags() {
return szPOEMBFInternalFlags;
}

public void setSzPOEMBFInternalFlags(String szPOEMBFInternalFlags) {
this.szPOEMBFInternalFlags = szPOEMBFInternalFlags;
}

public String getSzModeOfTransport() {
return szModeOfTransport;
}

public void setSzModeOfTransport(String szModeOfTransport) {
this.szModeOfTransport = szModeOfTransport;
}

public Integer getMnTaskOrderNumber() {
return mnTaskOrderNumber;
}

public void setMnTaskOrderNumber(Integer mnTaskOrderNumber) {
this.mnTaskOrderNumber = mnTaskOrderNumber;
}

public String getSzTaskOrderType() {
return szTaskOrderType;
}

public void setSzTaskOrderType(String szTaskOrderType) {
this.szTaskOrderType = szTaskOrderType;
}

public String getSzPlan() {
return szPlan;
}

public void setSzPlan(String szPlan) {
this.szPlan = szPlan;
}

public String getSzElevation() {
return szElevation;
}

public void setSzElevation(String szElevation) {
this.szElevation = szElevation;
}

public String getcPreservePOEManualAdj() {
return cPreservePOEManualAdj;
}

public void setcPreservePOEManualAdj(String cPreservePOEManualAdj) {
this.cPreservePOEManualAdj = cPreservePOEManualAdj;
}

public String getcPOETriggerReprice() {
return cPOETriggerReprice;
}

public void setcPOETriggerReprice(String cPOETriggerReprice) {
this.cPOETriggerReprice = cPOETriggerReprice;
}

public String getSzReferenceUCISNo() {
return szReferenceUCISNo;
}

public void setSzReferenceUCISNo(String szReferenceUCISNo) {
this.szReferenceUCISNo = szReferenceUCISNo;
}

public String getSzUNSPSCCode() {
return szUNSPSCCode;
}

public void setSzUNSPSCCode(String szUNSPSCCode) {
this.szUNSPSCCode = szUNSPSCCode;
}

public String getSzCommodityCode() {
return szCommodityCode;
}

public void setSzCommodityCode(String szCommodityCode) {
this.szCommodityCode = szCommodityCode;
}

public Date getJdDatePromisedShipJu() {
return jdDatePromisedShipJu;
}

public void setJdDatePromisedShipJu(Date jdDatePromisedShipJu) {
this.jdDatePromisedShipJu = jdDatePromisedShipJu;
}

public String getcMultipleAccountsExist_MACT() {
return cMultipleAccountsExist_MACT;
}

public void setcMultipleAccountsExist_MACT(String cMultipleAccountsExist_MACT) {
this.cMultipleAccountsExist_MACT = cMultipleAccountsExist_MACT;
}

public String getSzTransactionOriginator_TORG() {
return szTransactionOriginator_TORG;
}

public void setSzTransactionOriginator_TORG(String szTransactionOriginator_TORG) {
this.szTransactionOriginator_TORG = szTransactionOriginator_TORG;
}

public String getSzRelatedOrderSuffix() {
return szRelatedOrderSuffix;
}

public void setSzRelatedOrderSuffix(String szRelatedOrderSuffix) {
this.szRelatedOrderSuffix = szRelatedOrderSuffix;
}

public Integer getMnContractID() {
return mnContractID;
}

public void setMnContractID(Integer mnContractID) {
this.mnContractID = mnContractID;
}

public Integer getMnContractDetailID() {
return mnContractDetailID;
}

public void setMnContractDetailID(Integer mnContractDetailID) {
this.mnContractDetailID = mnContractDetailID;
}

public String getcRepricePOModeEV06() {
return cRepricePOModeEV06;
}

public void setcRepricePOModeEV06(String cRepricePOModeEV06) {
this.cRepricePOModeEV06 = cRepricePOModeEV06;
}

public String getcManualOverride() {
return cManualOverride;
}

public void setcManualOverride(String cManualOverride) {
this.cManualOverride = cManualOverride;
}

public String getcRepricePreserveFreeGoodEV07() {
return cRepricePreserveFreeGoodEV07;
}

public void setcRepricePreserveFreeGoodEV07(String cRepricePreserveFreeGoodEV07) {
this.cRepricePreserveFreeGoodEV07 = cRepricePreserveFreeGoodEV07;
}

public Integer getMnVesselID() {
return mnVesselID;
}

public void setMnVesselID(Integer mnVesselID) {
this.mnVesselID = mnVesselID;
}

public String getcVesselClass() {
return cVesselClass;
}

public void setcVesselClass(String cVesselClass) {
this.cVesselClass = cVesselClass;
}

public Integer getIdentifierShortItem() {
return identifierShortItem;
}

public void setIdentifierShortItem(Integer identifierShortItem) {
this.identifierShortItem = identifierShortItem;
}

public Double getMnSourceOfDataPriceOpen() {
return mnSourceOfDataPriceOpen;
}

public void setMnSourceOfDataPriceOpen(Double mnSourceOfDataPriceOpen) {
this.mnSourceOfDataPriceOpen = mnSourceOfDataPriceOpen;
}

}

Execution Class :

The final class is execution class. this is the main function to call and execute Business function inside JDE from Java Application :

public static void insertPOFromModel(Integer sessionID, UserSession session, POHeader po,List<PODetail> listDetail) throws Exception{

try {

//execute begin doc

OneworldTransaction transaction = session.createOneworldTransaction(true);

transaction.begin();

System.out.print(“Reading BSFNSpecSource … “);

BSFNSpecSource specSource = new OneworldBSFNSpecSource(sessionID);

System.out.print(“OK! (” + specSource.getName() + “)\n”);

System.out.println(“Getting BSFNMethod … “);

BSFNMethod bsfnMethod = specSource.getBSFNMethod(“PurchaseOrderInit”);

ExecutableMethod ab = bsfnMethod.createExecutable();

ab.setValue(“cHeaderActionCode”, “1”);//add

ab.setValue(“szProgramID”, “EPROC”);

ab.setValue(“szPurchaseOrderPrOptVersion”, “ZJDE0001”);

ab.setValue(“szComputerID”, InetAddress.getLocalHost().getHostName().substring(0, 10));

ab.setValue(“szOrderCOmpany”, SessionGetter.nullToEmptyString(po.getSzOrderCompany()));

ab.setValue(“mnOrderNumber”, String.valueOf(po.getMnOrderNumber()));

ab.setValue(“szOrderType”, String.valueOf(po.getSzOrderType()));

ab.setValue(“szOrderSuffix”, “000”);

ab.setValue(“szBranchPlant”, SessionGetter.nullToEmptyString(po.getSzBranchPlant()));

ab.setValue(“mnSupplierNumber”, String.valueOf(po.getMnSupplierNumber()));//AN8

ab.setValue(“mnShipToNumber”, String.valueOf(po.getMnShipToNumber()));//SHAN

ab.setValue(“cCurrencyMode”, “D”);

ab.setValue(“szTransactionCurrencyCode”, SessionGetter.nullToEmptyString(po.getSzTransactionCurrencyCode()));

ab.setValue(“szDeliveryInstructions01”, SessionGetter.nullToEmptyString(po.getSzDeliveryInstructions01()));

ab.setValue(“szDeliveryInstructions02”, SessionGetter.nullToEmptyString(po.getSzDeliveryInstructions02()));

ab.setValue(“szRemark”, po.getSzRemark());

ab.setValue(“szDescription”, po.getSzDescription());

ab.setValue(“mnBuyerNumber”, SessionGetter.nullToEmptyString(String.valueOf(po.getMnBuyerNumber())));

ab.setValue(“mnCarrierNumber”, SessionGetter.nullToEmptyString(String.valueOf(po.getMnCarrierNumber())));

ab.setValue(“szPrintMessage”, SessionGetter.nullToEmptyString(po.getSzPrintMessage()));

ab.setValue(“szHoldCode”, SessionGetter.nullToEmptyString(po.getSzHoldCode()));

ab.setValue(“szPaymentTerms”, SessionGetter.nullToEmptyString(po.getSzPaymentTerms()));

ab.setValue(“cAIADocument”, SessionGetter.nullToEmptyString(po.getcAIADocument()));

SimpleDateFormat sdf = new SimpleDateFormat(“MM/dd/yyyy”);

ab.setValue(“jdRequestedDate”, sdf.format(po.getJdRequestedDate()));

ab.setValue(“jdOrderDate”, sdf.format(po.getJdOrderDate()));

BSFNExecutionWarning warn = ab.execute(sessionID);

if(listDetail!=null && listDetail.size()>0){

for(PODetail p:listDetail){

//insert line

ExecutableMethod line = specSource.getBSFNMethod(“PurchaseOrderLineProcess”).createExecutable();

line.setValue(“mnOrderNumber”, String.valueOf(po.getMnOrderNumber()));

line.setValue(“szOrderCompany”, po.getSzOrderCompany());

line.setValue(“szOrderType”, po.getSzOrderType());

line.setValue(“mnJobNumber”, ab.getValue(“mnJobNumber”));

line.setValue(“szDetailLineBranchPlant”, ”       “+p.getSzDetailLineBranchPlant());

line.setValue(“szComputerID”, ab.getValue(“szComputerID”));

line.setValue(“szOrderType”, ab.getValue(“szOrderType”));

line.setValue(“cDetailActionCode”, “1”);

line.setValue(“mnShipToNumber”, ab.getValue(“mnShipToNumber”));//SHAN

line.setValue(“szOrderSuffix”, “000”);

line.setValue(“mnProcessID”, ab.getValue(“mnProcessID”));

line.setValue(“mnTransactionID”, ab.getValue(“mnTransactionID”));

line.setValue(“mnSupplierNumber”, ab.getValue(“mnSupplierNumber”));

line.setValue(“szLineType”, p.getSzLineType());

line.setValue(“szUnformattedItemNumber”, p.getSzUnformattedItemNumber());

line.setValue(“mnIdentifierShortItem”, p.getMnIdentifierShortItem());

line.setValue(“mnQuantityOrdered”, p.getMnQuantityOrdered());

line.setValue(“mnUnitPrice”, p.getMnUnitPrice());

line.setValue(“szLastStatus”, “220”);

line.setValue(“szNextStatus”, “280”);

line.setValue(“szTransactionUoM”, p.getSzTransactionUoM());

line.setValue(“szPurchasingUoM”, p.getSzPurchasingUoM());

line.setValue(“szTransactionCurrencyCode”, po.getSzTransactionCurrencyCode());

line.setValue(“szDescription1”, p.getSzDescription1());

line.setValue(“szDescription2”, p.getSzDescription2());

line.setValue(“cPriceOverrideFlag”, “1”);

line.setValue(“cTaxable”, “Y”);

line.setValue(“cSubledgerType”, SessionGetter.nullToEmptyString(p.getcSubledgerType()));

line.setValue(“szSubledger”, SessionGetter.nullToEmptyString(p.getSzSubledger()));

line.setValue(“szPurchasingCategoryCode1”, SessionGetter.nullToEmptyString(p.getSzPurchasingCategoryCode1()));

line.setValue(“szPurchasingCategoryCode2”, SessionGetter.nullToEmptyString(p.getSzPurchasingCategoryCode2()));

line.setValue(“szPurchasingCategoryCode3”, SessionGetter.nullToEmptyString(p.getSzPurchasingCategoryCode3()));

line.setValue(“szPurchasingCategoryCode4”, SessionGetter.nullToEmptyString(p.getSzPurchasingCategoryCode4()));

warn = line.execute(sessionID);

}

}

//end doc

ExecutableMethod poeEndDoc = specSource.getBSFNMethod(“PurchaseOrderCommit”).createExecutable();

poeEndDoc.setValue(“mnJobNumber”,ab.getValue(“mnJobNumber”));

poeEndDoc.setValue(“mnOrderNumberAssigned”,ab.getValue(“mnOrderNumber”));

poeEndDoc.setValue(“szRelatedOrderType”,ab.getValue(“szOrderType”));

poeEndDoc.setValue(“szComputerID”,ab.getValue(“szComputerID”));

poeEndDoc.setValue(“mnProcessID”,ab.getValue(“mnProcessID”));

poeEndDoc.setValue(“mnTransactionID”,ab.getValue(“mnTransactionID”));

warn=poeEndDoc.execute(sessionID);

transaction.commit();

} catch (Exception e) {

e.printStackTrace();

throw e;

}

}

The method calls 3 Business function :

  1. PurchaseOrderInit
  2. PurchaseOrderLineProcess
  3. PurchaseOrderCommit

Using these 3 classes, we can push and create Purchase Order in JDE.

Palembang – Jakarta,

9 June 2013

Aah Ahmad Kusumah

Senior System Analist and Developer