SAP ABAP Class CL_SIPT_MOVEMENT_OF_GOODS (SAFT-PT Movement of Goods Generator Class)
Hierarchy
SAP_APPL (Software Component) Logistics and Accounting
   FI-LOC (Application Component) Localization
     ID-SIGN-PT (Package) Localization - Digital Signature Portugal
Properties
Class CL_SIPT_MOVEMENT_OF_GOODS  
Short Description SAFT-PT Movement of Goods Generator Class    
Super Class    
Instantiability of a Class 2  Public 
Final    
General Data
Message Class    
Program status     
Category 0   
Package ID-SIGN-PT   Localization - Digital Signature Portugal 
Created 20130513   SAP 
Last change 20131127   SAP 
Shared Memory-enabled    
Fixed point arithmetic    
Unicode checks active    
Forward declarations
# Type group / Object type Type Type Description
1 ABAP Type group use (TYPE-POOLS tp)  Type group use (TYPE-POOLS tp)
Interfaces
Class CL_SIPT_MOVEMENT_OF_GOODS has no interface implemented.
Friends
Class CL_SIPT_MOVEMENT_OF_GOODS has no friend class.
Attributes
# Attribute Level Visibility Read only Typing Associated Type Initial Value Description Created on
1 CO_TEXT_ID Constant Protected Type reference (TYPE) THEAD-TDID 'GLDV' Text ID 20131126
2 CO_TEXT_OBJECT Constant Protected Type reference (TYPE) THEAD-TDOBJECT 'VBBK' Texts: Application Object 20131126
3 MO_CVTO_UTF8 Instance attribute Private Object reference (TYPE REF TO) CL_ABAP_CONV_OUT_CE Code Page and Endian Conversion (System Format -> External) 20130902
4 MT_CUSTOMER Instance attribute Public See coding 20130902
5 MT_DELIVERY_DOCS Instance attribute Private Type reference (TYPE) SIPT_TT_DELIVERY_DOC Table Type of SIPT_S_DELIVERY_DOC 20130902
6 MT_ONETIME Instance attribute Public See coding 20130902
7 MT_PRODUCT Instance attribute Public See coding 20130902
8 MT_VENDOR Instance attribute Public See coding 20130902
9 MV_BUKRS Instance attribute Private Type reference (TYPE) BUKRS Company Code 20130902
10 MV_CURRENT_DOC Instance attribute Private Type reference (TYPE) I 1 Current Delivery Document 20130902
11 MV_CVTO_UTF8_INITIALIZED Instance attribute Private Type reference (TYPE) CHAR1 ' ' Single-Character Indicator 20130902
12 MV_DELIVERY_DOCS_LINES Instance attribute Private Type reference (TYPE) I Number of Delivery Documents Read 20130902
Methods
# Method Level Visibility Method type Description Created on
1 CREATE_CUST_SHIPPING_ADDRESS Instance method Private Method Creates ShipTo XML Fragrament 20130902
2 CREATE_MOVEMENT_OF_GOODS Instance method Public Method Creates MovementOfGoods XML String fragments 20130902
3 CREATE_MOVEMENT_OF_GOODS_GS Instance method Public Method Creates MovementOfGoods XML String fragments For GS 20130902
4 CREATE_SELF_SHIPPING_ADDRESS Instance method Private Method Create ShipFrom XML Fragment 20130902
5 CREATE_TOP_ELEMENTS Instance method Private Method Create first elements in MovementOfGoods 20130902
6 CREATE_TOP_ELEMENTS_GS Instance method Private Method Create first elements in MovementOfGoods for GS 20130902
7 DATA_CORRECTION Instance method Private Method Unicode Conversion Helper Method 20130902
8 DATE_FORMAT Instance method Private Method Format SAP Date and Time to XML Date/DateTime formats 20130902
9 GET_DELIVERY_DOCS Instance method Public Method Get Delivery Documents Table 20130902
10 HAS_NEXT Instance method Public Method Check if there is a next delivery document to handle 20130902
11 PREPARE_MASTER_TABLES Instance method Public Method Prepara Relevant Master Tables 20130902
12 READ_DELIVERY_DOCS Instance method Public Method Read Delivery Documents 20130902
13 READ_DELIVERY_DOCS_SELOP Instance method Public Method Read Delivery Documents 20130902
14 READ_TEXT_DELIVERY Static method Private Method Read the Global delivery number from delivery header text 20131126
15 REPLACE_SPECIAL_CHARACTERS Instance method Private Method Replace Special Characters 20130902
16 SAVE_DELIVERY_NO Instance method Private Method Save Delivery Number in WSPT_LIKP table 20131204
17 SAVE_ONE_TIME_CUSTOMER Instance method Public Method Save one time customer 20130902
18 SET_DELIVERY_DOCS Instance method Public Method Set Delivery Documents Table 20130902
19 UNICODE_CONVERT Instance method Private Method Unicode Conversion 20130902
20 XML_UNICODE_TO_XSTR Instance method Private Method Unicode Conversion Helper Method 20130902
Events
Class CL_SIPT_MOVEMENT_OF_GOODS has no event.
Types
# Type Visibility Typing Associated Type Description Created on Type Source
1 LTY_CUSTOMER Public See coding 20130902 BEGIN OF lty_customer , kunnr TYPE kunnr, adrnr TYPE adrnr, stceg TYPE stceg, xcpdk TYPE xcpdk, vbeln type vbeln, END OF lty_customer
2 LTY_ONETIME Public See coding 20130902 BEGIN OF lty_onetime , vbeln type vbeln, customerid(30) type c, END OF lty_onetime
3 LTY_VENDOR Public See coding 20130902 BEGIN OF lty_vendor , lifnr TYPE kunnr, adrnr TYPE adrnr, stceg TYPE stceg, xcpdk TYPE xcpdk, vbeln type vbeln, END OF lty_vendor
Method Signatures

Method CREATE_CUST_SHIPPING_ADDRESS Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IS_DELIVERY_DOC Call by reference Type reference (TYPE) SIPT_S_DELIVERY_DOC Delivery Document Structure in SAFT-PT MovementOfGoods 20130902
2 Importing IS_LIKP Call by reference Type reference (TYPE) LIKP SD Document: Delivery Header Data 20130902
3 Importing IV_SHIP_TO Call by reference Type reference (TYPE) ABAP_BOOL 20130902
4 Changing IV_XML_FILE Call by reference Type reference (TYPE) STRING 20130902
5 Importing I_DOC_CATG Call by reference Type reference (TYPE) WSPT_DOC_CATG Document Category 20130917

Method CREATE_CUST_SHIPPING_ADDRESS on class CL_SIPT_MOVEMENT_OF_GOODS has no exception.

Method CREATE_MOVEMENT_OF_GOODS Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing I_DOC_CATG Call by reference Type reference (TYPE) WSPT_DOC_CATG Document Category 20131126
2 Returning RV_MOVEMENT_OF_GOODS Value transfer Type reference (TYPE) STRING XML String 20130902

Method CREATE_MOVEMENT_OF_GOODS on class CL_SIPT_MOVEMENT_OF_GOODS has no exception.

Method CREATE_MOVEMENT_OF_GOODS_GS Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing I_BUKRS Call by reference Type reference (TYPE) BUKRS Company Code 20130917
2 Importing I_DOC_CATG Call by reference Type reference (TYPE) WSPT_DOC_CATG Document Category 20130902
3 Returning RV_MOVEMENT_OF_GOODS Value transfer Type reference (TYPE) STRING 20130902

Method CREATE_MOVEMENT_OF_GOODS_GS on class CL_SIPT_MOVEMENT_OF_GOODS has no exception.

Method CREATE_SELF_SHIPPING_ADDRESS Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing CV_XML_FILE Call by reference Type reference (TYPE) STRING 20130902
2 Importing IS_DELIVERY_DOC Call by reference Type reference (TYPE) SIPT_S_DELIVERY_DOC Delivery Document Structure in SAFT-PT MovementOfGoods 20131023
3 Importing IS_LIKP Call by reference Type reference (TYPE) LIKP Delivery Document Structure in SAFT-PT MovementOfGoods 20130902
4 Importing IV_SHIP_TO Call by reference Type reference (TYPE) ABAP_BOOL 20130902
5 Importing I_DOC_CATG Call by reference Type reference (TYPE) WSPT_DOC_CATG Document Category 20131023

Method CREATE_SELF_SHIPPING_ADDRESS on class CL_SIPT_MOVEMENT_OF_GOODS has no exception.

Method CREATE_TOP_ELEMENTS Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning RV_XML_STRING Value transfer Type reference (TYPE) STRING XML String 20130902

Method CREATE_TOP_ELEMENTS on class CL_SIPT_MOVEMENT_OF_GOODS has no exception.

Method CREATE_TOP_ELEMENTS_GS Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning RV_XML_STRING Value transfer Type reference (TYPE) STRING 20130902

Method CREATE_TOP_ELEMENTS_GS on class CL_SIPT_MOVEMENT_OF_GOODS has no exception.

Method DATA_CORRECTION Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_CHECK_STR Call by reference Type reference (TYPE) STRING Input String 20130902
2 Returning RV_CHECK_STR Value transfer Type reference (TYPE) STRING Corrected String 20130902

Method DATA_CORRECTION on class CL_SIPT_MOVEMENT_OF_GOODS has no exception.

Method DATE_FORMAT Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_DATUM Call by reference Type reference (TYPE) DATUM Date 20130902
2 Importing IV_NO_TIME Call by reference Type reference (TYPE) ABAP_BOOL 20130902
3 Importing IV_UZEIT Call by reference Type reference (TYPE) UZEIT Time 20130902
4 Returning RV_DATE Value transfer Type reference (TYPE) STRING Date String 20130902

Method DATE_FORMAT on class CL_SIPT_MOVEMENT_OF_GOODS has no exception.

Method GET_DELIVERY_DOCS Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ET_DELIVERY_DOCS Call by reference Type reference (TYPE) SIPT_TT_DELIVERY_DOC Table Type of SIPT_S_DELIVERY_DOC 20130902

Method GET_DELIVERY_DOCS on class CL_SIPT_MOVEMENT_OF_GOODS has no exception.

Method HAS_NEXT Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning RV_HAS_NEXT Value transfer Type reference (TYPE) CHAR1 Single-Character Indicator 20130902

Method HAS_NEXT on class CL_SIPT_MOVEMENT_OF_GOODS has no exception.

Method PREPARE_MASTER_TABLES Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing IV_DELIVERY_DOC Call by reference Type reference (TYPE) SIPT_S_DELIVERY_DOC Delivery Document Structure in SAFT-PT MovementOfGoods 20130902

Method PREPARE_MASTER_TABLES on class CL_SIPT_MOVEMENT_OF_GOODS has no exception.

Method READ_DELIVERY_DOCS Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_COMPANY_CODE Call by reference Type reference (TYPE) BUKRS Company Code 20130902
2 Importing IV_END_DATE Call by reference Type reference (TYPE) LFDAT_V Delivery End Date 20130902
3 Importing IV_INVOICED Call by reference Type reference (TYPE) ABAP_BOOL 'X' Read Invoiced Deliveries 20130902
4 Importing IV_REVERSED Call by reference Type reference (TYPE) ABAP_BOOL 'X' Read Reversed Deliveries 20130902
5 Importing IV_START_DATE Call by reference Type reference (TYPE) LFDAT_V Delivery Start Date 20130902

Method READ_DELIVERY_DOCS on class CL_SIPT_MOVEMENT_OF_GOODS has no exception.

Method READ_DELIVERY_DOCS_SELOP Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IT_S_LFDAT Call by reference Type reference (TYPE) ANY TABLE LFDAT SelOp 20130902
2 Importing IT_S_SHIPNO Call by reference Type reference (TYPE) ANY TABLE 20130902
3 Importing IT_S_VBELN Call by reference Type reference (TYPE) ANY TABLE VBELN SelOp 20130902
4 Importing IT_S_VSTEL Call by reference Type reference (TYPE) ANY TABLE VSTEL SelOp 20130902
5 Importing IT_S_WERKS Call by reference Type reference (TYPE) ANY TABLE WERKS SelOp 20130902
6 Importing IV_ADDTIME Call by reference Type reference (TYPE) TIMS '010000' Field of type TIMS 20130902
7 Importing IV_BUKRS Call by reference Type reference (TYPE) BUKRS Company Code 20130902
8 Importing IV_INVOICED Call by reference Type reference (TYPE) ABAP_BOOL 'X' Read Invoiced Deliveries 20130902
9 Importing IV_MOV_START_DATE Call by reference Type reference (TYPE) WSPT_MOVE_ST_DT Movement Start Date 20130902
10 Importing IV_MOV_START_TIME Call by reference Type reference (TYPE) WSPT_MOVE_ST_TM Movement Start Time 20130902
11 Importing IV_REVERSED Call by reference Type reference (TYPE) ABAP_BOOL 'X' Read Reversed Deliveries 20130902
12 Importing IV_USECUSTTIME Call by reference Type reference (TYPE) ABAP_BOOL 20130902
13 Importing IV_USEPGIDATE Call by reference Type reference (TYPE) ABAP_BOOL 20130902
14 Importing IV_USEPLANDATE Call by reference Type reference (TYPE) ABAP_BOOL 20130902

Method READ_DELIVERY_DOCS_SELOP on class CL_SIPT_MOVEMENT_OF_GOODS has no exception.

Method READ_TEXT_DELIVERY Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting E_VBELN_GD Call by reference Type reference (TYPE) VBELN_VL Delivery 20131126
2 Importing I_BUKRS Call by reference Type reference (TYPE) BUKRS Company Code 20131126
3 Importing I_LFART Call by reference Type reference (TYPE) LFART Delivery type 20131126
4 Importing I_VBELN Call by reference Type reference (TYPE) VBELN_VL Delivery 20131126

Method READ_TEXT_DELIVERY on class CL_SIPT_MOVEMENT_OF_GOODS has no exception.

Method REPLACE_SPECIAL_CHARACTERS Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing C_STRING Call by reference Type reference (TYPE) STRING 20130902

Method REPLACE_SPECIAL_CHARACTERS on class CL_SIPT_MOVEMENT_OF_GOODS has no exception.

Method SAVE_DELIVERY_NO Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IS_WSPT_LIKP Call by reference Type reference (TYPE) WSPT_LIKP Documents for Portugal Webservice 20131204
2 Importing IV_DEL_NO Call by reference Type reference (TYPE) XBLNR_LIKP Reference Document Number 20131204
3 Importing IV_VBELN Call by reference Type reference (TYPE) VBELN Sales and Distribution Document Number 20131204

Method SAVE_DELIVERY_NO on class CL_SIPT_MOVEMENT_OF_GOODS has no exception.

Method SAVE_ONE_TIME_CUSTOMER Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_ONE_TIME_CUSTOMER Call by reference Type reference (TYPE) LTY_ONETIME 20130902

Method SAVE_ONE_TIME_CUSTOMER on class CL_SIPT_MOVEMENT_OF_GOODS has no exception.

Method SET_DELIVERY_DOCS Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IT_DELIVERY_DOCS Value transfer Type reference (TYPE) SIPT_TT_DELIVERY_DOC Table Type of SIPT_S_DELIVERY_DOC 20130902

Method SET_DELIVERY_DOCS on class CL_SIPT_MOVEMENT_OF_GOODS has no exception.

Method UNICODE_CONVERT Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_STR Call by reference Type reference (TYPE) STRING 20130902
2 Returning RV_STR Value transfer Type reference (TYPE) STRING 20130902

Method UNICODE_CONVERT on class CL_SIPT_MOVEMENT_OF_GOODS has no exception.

Method XML_UNICODE_TO_XSTR Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting EV_UNI_FLAG Call by reference Type reference (TYPE) CHAR1 Single-Character Indicator 20130902
2 Exporting EV_XSTR_MASTER Call by reference Type reference (TYPE) XSTRING 20130902
3 Importing IV_MASTER Call by reference Type reference (TYPE) STRING 20130902

Method XML_UNICODE_TO_XSTR on class CL_SIPT_MOVEMENT_OF_GOODS has no exception.
History
Last changed by/on SAP  20131127 
SAP Release Created in