rnsap 0.4.8 → 0.4.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (36) hide show
  1. checksums.yaml +4 -4
  2. data/lib/helper/rfc_helper.rb +19 -15
  3. data/lib/po_detail/all.rb +27 -0
  4. data/lib/po_detail/po_account.rb +93 -0
  5. data/lib/po_detail/po_addrdelivery.rb +115 -0
  6. data/lib/po_detail/po_all_versions.rb +55 -0
  7. data/lib/po_detail/po_components.rb +53 -0
  8. data/lib/po_detail/po_cond.rb +91 -0
  9. data/lib/po_detail/po_cond_header.rb +91 -0
  10. data/lib/po_detail/po_confirmation.rb +39 -0
  11. data/lib/po_detail/po_contract_limits.rb +21 -0
  12. data/lib/po_detail/po_exp_imp_header.rb +7 -0
  13. data/lib/po_detail/po_exp_imp_item.rb +21 -0
  14. data/lib/po_detail/po_extension_out.rb +13 -0
  15. data/lib/po_detail/po_header.rb +131 -0
  16. data/lib/po_detail/po_history.rb +107 -0
  17. data/lib/po_detail/po_history_ma.rb +37 -0
  18. data/lib/po_detail/po_history_totals.rb +51 -0
  19. data/lib/po_detail/po_inv_plan_header.rb +49 -0
  20. data/lib/po_detail/po_inv_plan_item.rb +51 -0
  21. data/lib/po_detail/po_item.rb +359 -0
  22. data/lib/po_detail/po_limits.rb +47 -0
  23. data/lib/po_detail/po_partner.rb +11 -0
  24. data/lib/po_detail/po_schedule.rb +59 -0
  25. data/lib/po_detail/po_serial_number.rb +13 -0
  26. data/lib/po_detail/po_services.rb +137 -0
  27. data/lib/po_detail/po_shipping_exp.rb +53 -0
  28. data/lib/po_detail/po_srv_access_values.rb +17 -0
  29. data/lib/po_detail/po_text_header.rb +13 -0
  30. data/lib/po_detail/po_text_item.rb +13 -0
  31. data/lib/po_release_info/all.rb +1 -0
  32. data/lib/po_release_info/po_release_final.rb +53 -0
  33. data/lib/preq_detail/all.rb +8 -0
  34. data/lib/preq_release_info/all.rb +4 -0
  35. data/lib/rnsap.rb +130 -31
  36. metadata +33 -1
@@ -0,0 +1,91 @@
1
+ # class used to represent POCONDHEADER. Used internally
2
+ class PoCondHeader
3
+ # @return [String] Access sequence - Access number
4
+ attr_accessor :access_seq
5
+ # @return [String] Condition is Relevant for Accrual (e.g. Freight)
6
+ attr_accessor :accruals
7
+ # @return [String] Application
8
+ attr_accessor :applicatio
9
+ # @return [String] Calculation type for condition
10
+ attr_accessor :calctypcon
11
+ # @return [String] Change Type (U, I, E, D)
12
+ attr_accessor :change_id
13
+ # @return [Integer] Condition base value
14
+ attr_accessor :conbaseval
15
+ # @return [String] Condition changed manually
16
+ attr_accessor :condchaman
17
+ # @return [String] Condition class
18
+ attr_accessor :condclass
19
+ # @return [String] Condition control
20
+ attr_accessor :condcntrl
21
+ # @return [String] Condition for configuration
22
+ attr_accessor :condconfig
23
+ # @return [String] Sequential number of the condition
24
+ attr_accessor :condcount
25
+ # @return [String] Condition for inter-company billing
26
+ attr_accessor :condincomp
27
+ # @return [String] Condition is inactive
28
+ attr_accessor :condisacti
29
+ # @return [String] Number of the document condition
30
+ attr_accessor :condition_no
31
+ # @return [String] Origin of the condition
32
+ attr_accessor :condorigin
33
+ # @return [String] Condition category (examples: tax, freight, price, cost)
34
+ attr_accessor :condtype
35
+ # @return [String] Condition counter
36
+ attr_accessor :cond_count
37
+ # @return [String] Condition record number
38
+ attr_accessor :cond_no
39
+ # @return [Integer] Condition pricing unit
40
+ attr_accessor :cond_p_unt
41
+ # @return [String] Step number
42
+ attr_accessor :cond_st_no
43
+ # @return [String] Condition Type
44
+ attr_accessor :cond_type
45
+ # @return [String] Condition unit
46
+ attr_accessor :cond_unit
47
+ # @return [String] Condition unit of measure in UoM
48
+ attr_accessor :cond_unit_iso
49
+ # @return [String] Condition update
50
+ attr_accessor :cond_updat
51
+ # @return [Integer] Condition rate
52
+ attr_accessor :cond_value
53
+ # @return [Integer] Condition exchange rate for conversion to local currency
54
+ attr_accessor :conexchrat
55
+ # @return [String] Condition for invoice list
56
+ attr_accessor :coninvolst
57
+ # @return [Date] Condition pricing date
58
+ attr_accessor :conpricdat
59
+ # @return [Integer] Scale currency
60
+ attr_accessor :currenckey
61
+ # @return [String] ISO code currency
62
+ attr_accessor :currenckey_iso
63
+ # @return [Integer] Currency Key
64
+ attr_accessor :currency
65
+ # @return [String] ISO code currency
66
+ attr_accessor :currency_iso
67
+ # @return [Integer] Denominator for converting condition units to base units
68
+ attr_accessor :denominato
69
+ # @return [Integer] Factor for condition base value
70
+ attr_accessor :factbasval
71
+ # @return [String] Group condition
72
+ attr_accessor :groupcond
73
+ # @return [String] Condition item number
74
+ attr_accessor :itm_number
75
+ # @return [Integer] Numerator for converting condition units to base units
76
+ attr_accessor :numconvert
77
+ # @return [Integer] Scale base value of the condition
78
+ attr_accessor :scalbasval
79
+ # @return [String] Scale basis indicator
80
+ attr_accessor :scalebasin
81
+ # @return [String] Scale Type
82
+ attr_accessor :scaletype
83
+ # @return [String] Condition is used for statistics
84
+ attr_accessor :stat_con
85
+ # @return [String] Condition scale unit of measure
86
+ attr_accessor :unitmeasur
87
+ # @return [String] ISO code for unit of measurement
88
+ attr_accessor :unitmeasur_iso
89
+ # @return [String] Account Number of Vendor or Creditor
90
+ attr_accessor :vendor_no
91
+ end
@@ -0,0 +1,39 @@
1
+ # class used to represent POCONFIRMATION. Used internally
2
+ class PoConfirmation
3
+ # @return [String] Confirmation Category: Description
4
+ attr_accessor :conf_name
5
+ # @return [String] Sequential Number of Vendor Confirmation
6
+ attr_accessor :conf_ser
7
+ # @return [String] Confirmation Category
8
+ attr_accessor :conf_type
9
+ # @return [String] Vendor confirmation deletion indicator
10
+ attr_accessor :delete_ind
11
+ # @return [Date] Delivery Date of Vendor Confirmation
12
+ attr_accessor :deliv_date
13
+ # @return [String] Delivery Item
14
+ attr_accessor :deliv_item
15
+ # @return [String] Delivery
16
+ attr_accessor :deliv_numb
17
+ # @return [String] Delivery Date Time-Spot in Vendor Confirmation
18
+ attr_accessor :deliv_time
19
+ # @return [String] Date category of delivery date in vendor confirmation
20
+ attr_accessor :del_datcat
21
+ # @return [String] Category of delivery date
22
+ attr_accessor :del_datcat_ext
23
+ # @return [String] Indicator: Confirmation is Relevant to Materials Planning
24
+ attr_accessor :dispo_rel
25
+ # @return [String] External Document Number of Vendor Confirmation
26
+ attr_accessor :ext_doc
27
+ # @return [String] Reference Document Number (for Dependencies see Long Text)
28
+ attr_accessor :ext_doc_long
29
+ # @return [Date] Handover Date at the Handover Location
30
+ attr_accessor :handoverdate
31
+ # @return [String] Handover time at the handover location
32
+ attr_accessor :handovertime
33
+ # @return [String] Item Number of Purchasing Document
34
+ attr_accessor :po_item
35
+ # @return [Integer] Quantity as Per Vendor Confirmation
36
+ attr_accessor :quantity
37
+ # @return [String] Indicator: Confirmation is GR-Relevant
38
+ attr_accessor :receipt_rel
39
+ end
@@ -0,0 +1,21 @@
1
+ # class used to represent POCONTRACTLIMITS. Used internally
2
+ class PoContractLimits
3
+ # @return [String] Item number, contract
4
+ attr_accessor :con_item
5
+ # @return [String] Contract number
6
+ attr_accessor :con_number
7
+ # @return [String] Deletion Indicator
8
+ attr_accessor :delete_ind
9
+ # @return [Integer] Overall limit
10
+ attr_accessor :limit
11
+ # @return [String] Internal line number for limits
12
+ attr_accessor :line_no
13
+ # @return [String] No Limit
14
+ attr_accessor :no_limit
15
+ # @return [String] Package number
16
+ attr_accessor :pckg_no
17
+ # @return [String] Price Change in Entry Sheet
18
+ attr_accessor :price_chg
19
+ # @return [String] Short Text 1
20
+ attr_accessor :short_text
21
+ end
@@ -0,0 +1,7 @@
1
+ # class used to represent POEXPIMPHEADER. Used internally
2
+ class PoExpImpHeader
3
+ # @return [String] Customs Office: Office of Exit/Entry for Foreign Trade
4
+ attr_accessor :customs
5
+ # @return [String] Mode of Transport for Foreign Trade
6
+ attr_accessor :transport_mode
7
+ end
@@ -0,0 +1,21 @@
1
+ # class used to represent POEXPIMPITEM. Used internally
2
+ class PoExpImpItem
3
+ # @return [String] Business Transaction Type for Foreign Trade
4
+ attr_accessor :business_transaction_type
5
+ # @return [String] Commodity Code/Import Code Number for Foreign Trade
6
+ attr_accessor :comm_code
7
+ # @return [String] Country of Origin of Material (Non-Preferential Origin)
8
+ attr_accessor :countryori
9
+ # @return [String] Country ISO code
10
+ attr_accessor :countryori_iso
11
+ # @return [String] Export/Import Procedure for Foreign Trade
12
+ attr_accessor :export_import_procedure
13
+ # @return [String] Item Number of Purchasing Document
14
+ attr_accessor :po_item
15
+ # @return [String] Region of Origin of Material (Non-Preferential Origin)
16
+ attr_accessor :regionorig
17
+ # @return [String] Country of dispatch for Foreign Trade
18
+ attr_accessor :shipping_country
19
+ # @return [String] Country ISO code
20
+ attr_accessor :shipping_country_iso
21
+ end
@@ -0,0 +1,13 @@
1
+ # class used to represent POEXTENSIONOUT. Used internally
2
+ class PoExtensionOut
3
+ # @return [String] Structure name of BAPI table extension
4
+ attr_accessor :structure
5
+ # @return [String] Data part of BAPI extension parameter
6
+ attr_accessor :valuepart1
7
+ # @return [String] Data part of BAPI extension parameter
8
+ attr_accessor :valuepart2
9
+ # @return [String] Data part of BAPI extension parameter
10
+ attr_accessor :valuepart3
11
+ # @return [String] Data part of BAPI extension parameter
12
+ attr_accessor :valuepart4
13
+ end
@@ -0,0 +1,131 @@
1
+ # class used to represent POHEADER. Used internally
2
+ class PoHeader
3
+ # @return [String] Number of principal purchase agreement
4
+ attr_accessor :agreement
5
+ # @return [String] Collective Number
6
+ attr_accessor :collect_no
7
+ # @return [String] Company Code
8
+ attr_accessor :comp_code
9
+ # @return [String] Name of Person Who Created the Object
10
+ attr_accessor :created_by
11
+ # @return [Date] Date on Which Record Was Created
12
+ attr_accessor :creat_date
13
+ # @return [Integer] Currency Key
14
+ attr_accessor :currency
15
+ # @return [String] ISO code currency
16
+ attr_accessor :currency_iso
17
+ # @return [String] Customer Number
18
+ attr_accessor :customer
19
+ # @return [String] Deletion indicator in purchasing document
20
+ attr_accessor :delete_ind
21
+ # @return [String] Different Invoicing Party
22
+ attr_accessor :diff_inv
23
+ # @return [Date] Purchasing Document Date
24
+ attr_accessor :doc_date
25
+ # @return [String] Purchasing Document Type
26
+ attr_accessor :doc_type
27
+ # @return [Integer] Down Payment Amount in BAPI
28
+ attr_accessor :downpay_amount
29
+ # @return [Date] Due Date for Down Payment
30
+ attr_accessor :downpay_duedate
31
+ # @return [Integer] Down Payment Percentage
32
+ attr_accessor :downpay_percent
33
+ # @return [String] Down Payment Indicator
34
+ attr_accessor :downpay_type
35
+ # @return [Integer] Cash (Prompt Payment) Discount Days
36
+ attr_accessor :dscnt1_to
37
+ # @return [Integer] Cash (Prompt Payment) Discount Days
38
+ attr_accessor :dscnt2_to
39
+ # @return [Integer] Cash (Prompt Payment) Discount Days
40
+ attr_accessor :dscnt3_to
41
+ # @return [Integer] Cash discount percentage 1
42
+ attr_accessor :dsct_pct1
43
+ # @return [Integer] Cash Discount Percentage 2
44
+ attr_accessor :dsct_pct2
45
+ # @return [Integer] Exchange Rate
46
+ attr_accessor :exch_rate
47
+ # @return [String] Indicator: Fixing of Exchange Rate
48
+ attr_accessor :ex_rate_fx
49
+ # @return [String] Indicator: Goods Receipt Message
50
+ attr_accessor :gr_message
51
+ # @return [String] Location for a physical handover of goods
52
+ attr_accessor :handoverloc
53
+ # @return [String] Incoterms (Part 1)
54
+ attr_accessor :incoterms1
55
+ # @return [String] Incoterms (Part 2)
56
+ attr_accessor :incoterms2
57
+ # @return [String] Incoterms Location 1
58
+ attr_accessor :incoterms2l
59
+ # @return [String] Incoterms Location 2
60
+ attr_accessor :incoterms3l
61
+ # @return [String] Incoterms Version
62
+ attr_accessor :incotermsv
63
+ # @return [String] Item Number Interval
64
+ attr_accessor :item_intvl
65
+ # @return [Integer] Language Key
66
+ attr_accessor :langu
67
+ # @return [String] ISO code for language key
68
+ attr_accessor :langu_iso
69
+ # @return [String] Logical System
70
+ attr_accessor :logsystem
71
+ # @return [String] Purchase order not yet complete
72
+ attr_accessor :memory
73
+ # @return [String] Category of Incompleteness
74
+ attr_accessor :memorytype
75
+ # @return [String] Our Reference
76
+ attr_accessor :our_ref
77
+ # @return [String] Terms of Payment Key
78
+ attr_accessor :pmnttrms
79
+ # @return [String] Purchasing Document Number
80
+ attr_accessor :po_number
81
+ # @return [String] Release Indicator: Purchasing Document
82
+ attr_accessor :po_rel_ind
83
+ # @return [String] Purchasing Organization
84
+ attr_accessor :purch_org
85
+ # @return [String] Purchasing Group
86
+ attr_accessor :pur_group
87
+ # @return [String] Quotation Number
88
+ attr_accessor :quotation
89
+ # @return [Date] Quotation Submission Date
90
+ attr_accessor :quot_date
91
+ # @return [String] Reason for Cancellation
92
+ attr_accessor :reason_cancel
93
+ # @return [String] Goods Receipt Reason Code
94
+ attr_accessor :reason_code
95
+ # @return [String] Your Reference
96
+ attr_accessor :ref_1
97
+ # @return [String] Release State
98
+ attr_accessor :rel_status
99
+ # @return [Integer] Retention in Percent
100
+ attr_accessor :retention_percentage
101
+ # @return [String] Retention Indicator
102
+ attr_accessor :retention_type
103
+ # @return [String] Responsible Salesperson at Vendor's Office
104
+ attr_accessor :sales_pers
105
+ # @return [String] Shipping Conditions
106
+ attr_accessor :shipcond
107
+ # @return [String] Shipping type
108
+ attr_accessor :shiptype
109
+ # @return [String] Status of Purchasing Document
110
+ attr_accessor :status
111
+ # @return [String] Item Number Interval for Subitems
112
+ attr_accessor :subitemint
113
+ # @return [String] Supplying (issuing) plant in case of stock transport order
114
+ attr_accessor :suppl_plnt
115
+ # @return [String] Supplying Vendor
116
+ attr_accessor :suppl_vend
117
+ # @return [String] Vendor's Telephone Number
118
+ attr_accessor :telephone
119
+ # @return [String] Country of Sales Tax ID Number
120
+ attr_accessor :vat_cntry
121
+ # @return [String] ISO country code for VAT registration number
122
+ attr_accessor :vat_cntry_iso
123
+ # @return [String] Vendor's account number
124
+ attr_accessor :vendor
125
+ # @return [Date] End of Validity Period
126
+ attr_accessor :vper_end
127
+ # @return [Date] Start of Validity Period
128
+ attr_accessor :vper_start
129
+ # @return [Date] Warranty Date
130
+ attr_accessor :warranty
131
+ end
@@ -0,0 +1,107 @@
1
+ # class used to represent POHISTORY. Used internally
2
+ class PoHistory
3
+ # @return [String] Batch Number
4
+ attr_accessor :batch
5
+ # @return [Integer] Goods Receipt Blocked Stock in Order Unit
6
+ attr_accessor :blocked_qy
7
+ # @return [Integer] Quantity in GR blocked stock in order price unit
8
+ attr_accessor :bl_qty
9
+ # @return [Integer] GR/IR account clearing value in local currency
10
+ attr_accessor :cl_val_loc
11
+ # @return [String] Number of the document condition
12
+ attr_accessor :condition
13
+ # @return [String] Sequential Number of Vendor Confirmation
14
+ attr_accessor :conf_ser
15
+ # @return [Integer] Currency Key
16
+ attr_accessor :currency
17
+ # @return [String] ISO Currency Code
18
+ attr_accessor :currency_iso
19
+ # @return [String] Debit/Credit Indicator
20
+ attr_accessor :db_cr_ind
21
+ # @return [Integer] Quantity in Unit of Measure from Delivery Note
22
+ attr_accessor :deliv_qty
23
+ # @return [String] Unit of Measure From Delivery Note
24
+ attr_accessor :deliv_unit
25
+ # @return [String] ISO code for unit of measure of delivery note
26
+ attr_accessor :deliv_unit_iso
27
+ # @return [Date] Document Date in Document
28
+ attr_accessor :doc_date
29
+ # @return [String] Material Document Year
30
+ attr_accessor :doc_year
31
+ # @return [Date] Day On Which Accounting Document Was Entered
32
+ attr_accessor :entry_date
33
+ # @return [String] Time of Entry
34
+ attr_accessor :entry_time
35
+ # @return [String] Purchase Order History Category
36
+ attr_accessor :hist_type
37
+ # @return [Integer] Entered invoice value in foreign currency
38
+ attr_accessor :ivval_for
39
+ # @return [Integer] Entered invoice value in local currency
40
+ attr_accessor :ivval_loc
41
+ # @return [Integer] Local currency key
42
+ attr_accessor :loc_curr
43
+ # @return [String] ISO code for local currency
44
+ attr_accessor :loc_curr_iso
45
+ # @return [String] Item in Material Document
46
+ attr_accessor :matdoc_itm
47
+ # @return [String] Material Number
48
+ attr_accessor :material
49
+ # @return [String] Long Material Number for MATERIAL Field
50
+ attr_accessor :material_external
51
+ # @return [String] External GUID for MATERIAL Field
52
+ attr_accessor :material_guid
53
+ # @return [String] Material Number (40 Characters, needed f. technical reasons)
54
+ attr_accessor :material_long
55
+ # @return [String] Version Number for MATERIAL Field
56
+ attr_accessor :material_version
57
+ # @return [String] Number of Material Document
58
+ attr_accessor :mat_doc
59
+ # @return [String] Reason for Movement
60
+ attr_accessor :move_reas
61
+ # @return [String] Movement type (inventory management)
62
+ attr_accessor :move_type
63
+ # @return [String] Delivery Completed Indicator
64
+ attr_accessor :no_more_gr
65
+ # @return [String] Plant
66
+ attr_accessor :plant
67
+ # @return [String] Item Number of Purchasing Document
68
+ attr_accessor :po_item
69
+ # @return [String] Transaction/event type, purchase order history
70
+ attr_accessor :process_id
71
+ # @return [Date] Posting Date in the Document
72
+ attr_accessor :pstng_date
73
+ # @return [String] Material number
74
+ attr_accessor :pur_mat
75
+ # @return [String] Long Material Number for PUR_MAT Field
76
+ attr_accessor :pur_mat_external
77
+ # @return [String] External GUID for PUR_MAT Field
78
+ attr_accessor :pur_mat_guid
79
+ # @return [String] Material Number (40 Characters, Technical Requirement)
80
+ attr_accessor :pur_mat_long
81
+ # @return [String] Version Number for PUR_MAT Field
82
+ attr_accessor :pur_mat_version
83
+ # @return [Integer] Quantity
84
+ attr_accessor :quantity
85
+ # @return [String] Document No. of a Reference Document
86
+ attr_accessor :ref_doc
87
+ # @return [String] Item of a Reference Document
88
+ attr_accessor :ref_doc_it
89
+ # @return [String] Reference Document Number
90
+ attr_accessor :ref_doc_no
91
+ # @return [String] Reference Document Number (for Dependencies see Long Text)
92
+ attr_accessor :ref_doc_no_long
93
+ # @return [String] Fiscal Year of a Reference Document
94
+ attr_accessor :ref_doc_yr
95
+ # @return [String] Sequential Number of Account Assignment
96
+ attr_accessor :serial_no
97
+ # @return [String] Stock Segment
98
+ attr_accessor :stk_segment
99
+ # @return [String] Tax on Sales/Purchases Code
100
+ attr_accessor :tax_code
101
+ # @return [Integer] Amount in document currency
102
+ attr_accessor :val_forcur
103
+ # @return [Integer] Amount in local currency
104
+ attr_accessor :val_loccur
105
+ # @return [String] Valuation Type
106
+ attr_accessor :val_type
107
+ end
@@ -0,0 +1,37 @@
1
+ # class used to represent POHISTORY_MA. Used internally
2
+ class PoHistoryMa
3
+ # @return [Integer] GR/IR account clearing value in local currency
4
+ attr_accessor :cl_val_loc
5
+ # @return [String] Debit/Credit Indicator
6
+ attr_accessor :db_cr_ind
7
+ # @return [String] Material Document Year
8
+ attr_accessor :doc_year
9
+ # @return [Integer] Entered invoice value in foreign currency
10
+ attr_accessor :ivval_for
11
+ # @return [Integer] Entered invoice value in local currency
12
+ attr_accessor :ivval_loc
13
+ # @return [String] Item in Material Document
14
+ attr_accessor :matdoc_itm
15
+ # @return [String] Number of Material Document
16
+ attr_accessor :mat_doc
17
+ # @return [String] Item Number of Purchasing Document
18
+ attr_accessor :po_item
19
+ # @return [String] Transaction/event type, purchase order history
20
+ attr_accessor :process_id
21
+ # @return [Integer] Quantity
22
+ attr_accessor :quantity
23
+ # @return [String] Document No. of a Reference Document
24
+ attr_accessor :ref_doc
25
+ # @return [String] Item of a Reference Document
26
+ attr_accessor :ref_doc_it
27
+ # @return [String] Fiscal Year of a Reference Document
28
+ attr_accessor :ref_doc_yr
29
+ # @return [String] Sequential Number of Account Assignment
30
+ attr_accessor :serial_no
31
+ # @return [String] Tax on Sales/Purchases Code
32
+ attr_accessor :tax_code
33
+ # @return [Integer] Amount in document currency
34
+ attr_accessor :val_forcur
35
+ # @return [Integer] Amount in local currency
36
+ attr_accessor :val_loccur
37
+ end