SAP ABAP Class CL_CIAP_FACTORY (CIAP - Main control methods)
Hierarchy
☛
SAP_APPL (Software Component) Logistics and Accounting
⤷
FI-LOC (Application Component) Localization
⤷
INT_TMF_CIAP (Package) TMF Integration Features: CIAP

⤷

⤷

Properties
Class | CL_CIAP_FACTORY | |
Short Description | CIAP - Main control methods | |
Super Class | ||
Instantiability of a Class | 2 | Public |
Final |
General Data
Message Class | ||
Program status | ||
Category | 0 | |
Package | INT_TMF_CIAP | TMF Integration Features: CIAP |
Created | 20130913 | SAP |
Last change | 20140121 | SAP |
Shared Memory-enabled | ||
Fixed point arithmetic | ||
Unicode checks active |
Forward declarations
# | Type group / Object type | Type | Type Description |
---|---|---|---|
1 | ![]() |
Type group use (TYPE-POOLS tp) | Type group use (TYPE-POOLS tp) |
2 | ![]() |
Forward declaration class (CLASS c DEFINITION DEFERRED) | Forward declaration class (CLASS c DEFINITION DEFERRED) |
Interfaces
Class CL_CIAP_FACTORY has no interface implemented.
Friends
Class CL_CIAP_FACTORY has no friend class.
Attributes
# | Attribute | Level | Visibility | Read only | Typing | Associated Type | Initial Value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
Constant | Public | Type reference (TYPE) | J_1BMODEL | 57 | Model of Nota Fiscal | 20131118 | |
2 | ![]() |
Constant | Public | Type reference (TYPE) | J_1BDIRECT | 1 | Direction of the movement | 20131118 | |
3 | ![]() |
Constant | Public | Type reference (TYPE) | J_1BDIRECT | 2 | Direction of the movement | 20131118 | |
4 | ![]() |
Constant | Public | Type reference (TYPE) | J_1BDOCTYP | 1 | Document type | 20131118 | |
5 | ![]() |
Constant | Public | Type reference (TYPE) | PSTYP | 7 | Item Category in Purchasing Document | 20131118 | |
6 | ![]() |
Constant | Public | Type reference (TYPE) | J_1BTAXGRP | 'ICOP' | Tax group | 20131118 | |
7 | ![]() |
Constant | Public | Type reference (TYPE) | J_1BTAXGRP | 'ICMS' | Tax group | 20131118 | |
8 | ![]() |
Constant | Public | Type reference (TYPE) | J_1BTAXGRP | 'ICST' | Tax group | 20131118 |
Methods
# | Method | Level | Visibility | Method type | Description | Created on |
---|---|---|---|---|---|---|
1 | ![]() |
Instance method | Private | Method | Calculate ICMS values using a table of record id's | 20131118 |
2 | ![]() |
Instance method | Private | Method | Check if Nota Fiscal is relevant for CIAP | 20131118 |
3 | ![]() |
Instance method | Private | Method | Check if Nota Fiscal is relevant for retirement update | 20131118 |
4 | ![]() |
Instance method | Public | Constructor | CONSTRUCTOR | 20131118 |
5 | ![]() |
Instance method | Private | Method | Call Record class and database controller | 20131118 |
6 | ![]() |
Instance method | Private | Method | Check if Nota Fiscal has any relevant tax | 20131118 |
7 | ![]() |
Instance method | Public | Method | Process CIAP Records | 20131118 |
8 | ![]() |
Instance method | Private | Method | Change the record adding CTe information | 20131118 |
9 | ![]() |
Instance method | Public | Method | Create the Record from the WBS number | 20131118 |
10 | ![]() |
Instance method | Private | Method | Create the Record | 20131118 |
11 | ![]() |
Instance method | Private | Method | Retire a CIAP record. | 20131118 |
12 | ![]() |
Instance method | Public | Method | Update CIAP Records | 20131118 |
Events
Class CL_CIAP_FACTORY has no event.
Types
# | Type | Visibility | Typing | Associated Type | Description | Created on | Type Source |
---|---|---|---|---|---|---|---|
1 | TT_CL_CIAP_RECORD | Public | See coding | 20131118 | tt_cl_ciap_record TYPE TABLE OF ty_cl_ciap_record
|
||
2 | TT_ID | Public | See coding | 20131118 | tt_id TYPE TABLE OF guid
|
||
3 | TT_RECORD_ID | Public | See coding | 20131118 | tt_record_id TYPE SORTED TABLE OF ty_record_id WITH UNIQUE KEY id
|
||
4 | TY_CL_CIAP_RECORD | Public | Object reference (TYPE REF TO) | CL_CIAP_RECORD | Class for a CIAP "ficha". | 20131118 |
|
5 | TY_RECORD_ID | Public | See coding | 20131118 | BEGIN OF ty_record_id,
id TYPE guid,
END OF ty_record_id
|
Method Signatures
Method CALCULATE_VALUES_FROM_RECORDS Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
ES_FINAL_ASSET_VALUES | Value transfer | Type reference (TYPE) | CL_CIAP_RECORD=>TY_FINAL_ASSET_VALUES | 20131118 | |||
2 | ![]() |
EV_ICMS_TO_CREDIT | Value transfer | Type reference (TYPE) | CIAP_ICMS_TO_CREDIT | CIAP ICMS to credit value | 20131118 | ||
3 | ![]() |
IT_RECORDS | Call by reference | Type reference (TYPE) | TT_RECORD_ID | table of record id's | 20131118 |
Method CALCULATE_VALUES_FROM_RECORDS on class CL_CIAP_FACTORY has no exception.
Method CHECK_CFOP_BY_NF_ITEM Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
IS_NFHEADER | Call by reference | Type reference (TYPE) | J_1BNFDOC | Nota Fiscal Header | 20131118 | ||
2 | ![]() |
IS_NFITEM | Call by reference | Type reference (TYPE) | J_1BNFLIN | Table of Nota Fiscal Items (J_1BNFLIN) | 20131118 | ||
3 | ![]() |
RV_VALID | Value transfer | Type reference (TYPE) | ABAP_BOOL | 20131118 |
Method CHECK_CFOP_BY_NF_ITEM on class CL_CIAP_FACTORY has no exception.
Method CHECK_NF_STO Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
IS_NFITEM | Call by reference | Type reference (TYPE) | J_1BNFLIN | Nota Fiscal line items | 20131118 | ||
2 | ![]() |
RV_VALID | Value transfer | Type reference (TYPE) | ABAP_BOOL | 20131118 |
Method CHECK_NF_STO on class CL_CIAP_FACTORY has no exception.
Method CONSTRUCTOR Signature
Method CONSTRUCTOR on class CL_CIAP_FACTORY has no parameter.
Method CONSTRUCTOR on class CL_CIAP_FACTORY has no exception.
Method CREATE_RECORDS_BY_NF_ITEM Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
IS_NFHEADER | Call by reference | Type reference (TYPE) | J_1BNFDOC | Nota Fiscal Header | 20131118 | ||
2 | ![]() |
IS_NFITEM | Call by reference | Type reference (TYPE) | J_1BNFLIN | Nota Fiscal line items | 20131118 | ||
3 | ![]() |
IT_NFTAXES | Call by reference | Type reference (TYPE) | J_1BNFSTX_TAB | Nota Fiscal tax per item | 20131118 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | ![]() |
Number of quotas exception | 20131118 |
Method GET_ICMS_LINES Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
IT_NFTAXES | Call by reference | Type reference (TYPE) | J_1BNFSTX_TAB | Table of Nota Fiscal Tax Lines (J_1BNFSTX) | 20131118 | ||
2 | ![]() |
IV_ITMNUM | Call by reference | Type reference (TYPE) | J_1BITMNUM | Document Item Number | 20131118 | ||
3 | ![]() |
RT_TAXES | Value transfer | Type reference (TYPE) | J_1BNFSTX_TAB | Table of Nota Fiscal Tax Lines (J_1BNFSTX) | 20131118 |
Method GET_ICMS_LINES on class CL_CIAP_FACTORY has no exception.
Method PROCESS_CIAP Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
IS_NFHEADER | Call by reference | Type reference (TYPE) | J_1BNFDOC | Nota Fiscal Header | 20131118 | ||
2 | ![]() |
IT_CTE_DOCREF | Call by reference | Type reference (TYPE) | J_1BCTE_T_DOCREF | Reference to the NF-e being transported | 20131118 | ||
3 | ![]() |
IT_NFITEMS | Call by reference | Type reference (TYPE) | J_1BNFLIN_TAB | Table of Nota Fiscal Items (J_1BNFLIN) | 20131118 | ||
4 | ![]() |
IT_NFTAXES | Call by reference | Type reference (TYPE) | J_1BNFSTX_TAB | Table of Nota Fiscal Tax Lines (J_1BNFSTX) | 20131118 | ||
5 | ![]() |
IV_NFDOCNUM | Call by reference | Type reference (TYPE) | J_1BDOCNUM | Document Number | 20131118 |
Method PROCESS_CIAP on class CL_CIAP_FACTORY has no exception.
Method PROCESS_CTE Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
IS_CTEHEADER | Call by reference | Type reference (TYPE) | J_1BNFDOC | Nota Fiscal Header | 20131118 | ||
2 | ![]() |
IS_CTEITEM | Call by reference | Type reference (TYPE) | J_1BNFLIN | Nota Fiscal line items | 20131118 | ||
3 | ![]() |
IT_CTEDOCREF | Call by reference | Type reference (TYPE) | J_1BCTE_T_DOCREF | Reference to the NF-e being transported | 20131118 | ||
4 | ![]() |
IT_CTETAXES | Call by reference | Type reference (TYPE) | J_1BNFSTX_TAB | Table of Nota Fiscal Tax Lines (J_1BNFSTX) | 20131118 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | ![]() |
Exception class for invalid CT-e total value. | 20131118 |
Method PROCESS_FINAL_ASSET Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
ET_RECORDS | Call by reference | Type reference (TYPE) | TT_RECORD_ID | Table of Record IDs | 20131118 | ||
2 | ![]() |
IV_BUSINESS_PLACE | Call by reference | Type reference (TYPE) | J_1BBRANC_ | Business Place | 20131118 | ||
3 | ![]() |
IV_COMPANY_CODE | Call by reference | Type reference (TYPE) | BUKRS | Company Code | 20131118 | ||
4 | ![]() |
IV_ORDER | Call by reference | Type reference (TYPE) | AUFNR | Order Number | 20131118 | ||
5 | ![]() |
IV_WBS | Call by reference | Type reference (TYPE) | PS_PSP_PNR | Work Breakdown Structure Element (WBS Element) | 20131118 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | ![]() |
No plant found for Company Code | 20131118 | |
2 | ![]() |
No Records found for WBS / IO | 20131118 | |
3 | ![]() |
Number of quotas exception | 20131118 | |
4 | ![]() |
Asset Settlement Rule not found | 20131118 | |
5 | ![]() |
State not found. | 20131118 |
Method PROCESS_NF Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
IS_NFHEADER | Call by reference | Type reference (TYPE) | J_1BNFDOC | Nota Fiscal Header | 20131118 | ||
2 | ![]() |
IT_NFITEMS | Call by reference | Type reference (TYPE) | J_1BNFLIN_TAB | Nota Fiscal line items | 20131118 | ||
3 | ![]() |
IT_NFTAXES | Call by reference | Type reference (TYPE) | J_1BNFSTX_TAB | Nota Fiscal tax per item | 20131118 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | ![]() |
Number of quotas exception | 20131118 |
Method RETIRE_RECORD Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
IS_NFHEADER | Call by reference | Type reference (TYPE) | J_1BNFDOC | Nota Fiscal Header | 20131118 | ||
2 | ![]() |
IS_NFITEM | Call by reference | Type reference (TYPE) | J_1BNFLIN | Nota Fiscal line items | 20131118 |
Method RETIRE_RECORD on class CL_CIAP_FACTORY has no exception.
Method UPDATE_CIAP Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
IS_NFHEADER | Call by reference | Type reference (TYPE) | J_1BNFDOC | Nota Fiscal Header | 20131118 | ||
2 | ![]() |
IT_NEW_NFITEM | Call by reference | Type reference (TYPE) | J_1BNFLIN_TAB | Table of Nota Fiscal Items (J_1BNFLIN) | 20131118 | ||
3 | ![]() |
IT_NFTAXES | Call by reference | Type reference (TYPE) | J_1BNFSTX_TAB | Table of Nota Fiscal Tax Lines (J_1BNFSTX) | 20131118 | ||
4 | ![]() |
IT_OLD_NFITEM | Call by reference | Type reference (TYPE) | J_1BNFLIN_TAB | Table of Nota Fiscal Items (J_1BNFLIN) | 20131118 |
Method UPDATE_CIAP on class CL_CIAP_FACTORY has no exception.
History
Last changed by/on | SAP | 20140121 |
SAP Release Created in |