01: /**
02: * $Id: SalesOrder.java,v 1.3 2005/05/23 10:15:11 nk137934 Exp $
03: * Copyright 2005 Sun Microsystems, Inc. All
04: * rights reserved. Use of this product is subject
05: * to license terms. Federal Acquisitions:
06: * Commercial Software -- Government Users
07: * Subject to Standard License Terms and
08: * Conditions.
09: *
10: * Sun, Sun Microsystems, the Sun logo, and Sun ONE
11: * are trademarks or registered trademarks of Sun Microsystems,
12: * Inc. in the United States and other countries.
13: */package com.sun.portal.sapportlet.salesorder;
14:
15: import com.sun.portal.sapportlet.stubs.salesorder.*;
16: import java.io.Serializable;
17:
18: /**
19: * This class is representation of the Sales Order business
20: * object in the SAP system
21: *
22: * @author nk137934
23: */
24:
25: public class SalesOrder implements Serializable {
26:
27: private String itemNumber = null;
28: private String description = null;
29: private String purchaseNumber = null;
30: private String material = null;
31: private String status = null;
32:
33: public SalesOrder(BAPIORDERS data) {
34:
35: this .itemNumber = data.getITM_NUMBER();
36: this .description = data.getSHORT_TEXT();
37: this .purchaseNumber = data.getPURCH_NO();
38: this .material = data.getMATERIAL();
39: this .status = data.getDOC_STATUS();
40: }
41:
42: public String getItemNumber() {
43: return itemNumber;
44: }
45:
46: public String getDescription() {
47: return description;
48: }
49:
50: public String getPurchaseNumber() {
51: return purchaseNumber;
52: }
53:
54: public String getMaterial() {
55: return material;
56: }
57:
58: public String getStatus() {
59: return status;
60: }
61: }
|