SAP ABAP Class CL_WCB_CHECK_CREA_VBD_BY_BILL (Checks for Which Billing Item a VBD Can Be Created)
Hierarchy
EA-GLTRADE (Software Component) SAP Enterprise Extension Global Trade
   LO-GT-CHB (Application Component) Chargeback
     WCB_AG_APPL (Package) Agency Document Creation Application Logic
Properties
Class CL_WCB_CHECK_CREA_VBD_BY_BILL  
Short Description Checks for Which Billing Item a VBD Can Be Created    
Super Class    
Instantiability of a Class 2  Public 
Final    
General Data
Message Class    
Program status     
Category 0   
Package WCB_AG_APPL   Agency Document Creation Application Logic 
Created 20050323   SAP 
Last change 20050411   SAP 
Shared Memory-enabled    
Fixed point arithmetic    
Unicode checks active    
Forward declarations
# Type group / Object type Type Type Description
1 CHBK Type group use (TYPE-POOLS tp)  Type group use (TYPE-POOLS tp)
2 SPPF Type group use (TYPE-POOLS tp)  Type group use (TYPE-POOLS tp)
Interfaces
Class CL_WCB_CHECK_CREA_VBD_BY_BILL has no interface implemented.
Friends
Class CL_WCB_CHECK_CREA_VBD_BY_BILL has no friend class.
Attributes
# Attribute Level Visibility Read only Typing Associated Type Initial Value Description Created on
1 AT_KOMLFF Instance attribute Private Type reference (TYPE) KOMLFF_ITAB Standard Table VBD Document Flow, Binary Sorting 20050323
2 AT_KOMLFK Instance attribute Private Type reference (TYPE) KOMLFK_ITAB Standard Table for KOMLFK, Binary Sorting 20050323
3 AT_KOMLFP Instance attribute Private Type reference (TYPE) KOMLFP_ITAB Table for KOMLFP 20070608
4 AT_VBD_KEY Instance attribute Private Type reference (TYPE) WCB_WBRK_KEY_TAB Standard Table with Doc. Numbers for VBDs, Binary Sorting 20050323
Methods
# Method Level Visibility Method type Description Created on
1 ADD_MSG_TO_LOG Instance method Private Method Transfers Message to Application Log 20050323
2 ADJUST_HEAD_DATA Instance method Private Method Header Data Adjustment After Processing of All Items 20050401
3 CHECK_ACTIVE_VBD_FOR_ITEM Instance method Private Method Checks If Active VBD Item Exists for Billing Doc. Item 20050401
4 CHECK_ALL_VBDS_ARE_ACTIVE Instance method Private Method Checks If All Vendor Billing Docs for an Item Are Active 20050401
5 CHECK_ITEMS_FOR_CREATE_DETAIL Instance method Public Method Determination Check for Which Item VBDs Are Created 20050401
6 CHECK_ITEMS_FOR_CREATE_GENERAL Instance method Public Method Checks for Which Item VBDs May Be Created 20050401
7 CONSTRUCTOR Instance method Public Constructor CONSTRUCTOR 20050323
8 DELETE_CONDS_FOR_ITEM Instance method Private Method Deletes All Conditions for an Item 20050401
9 FILL_ATTRIBUTES Instance method Private Method Fills the Attributes 20050323
10 FILL_ATTRIBUTES_NOT_BY_DB Instance method Private Method Does Not Fill the Attributes Using Database Data 20070608
11 GET_ACTIVE_VBD_ITEM Instance method Private Method Provides an Active Vendor Billing Document Item 20050323
12 GET_DOC_FOR_CANCELLATION Instance method Public Method Provides Vendor Billing Douments That May Be Cancelled 20050323
13 GET_KOMLFF Instance method Private Method Provides KOMLFF Data for a Document 20050323
14 GET_SINGLE_KOMLFK Instance method Private Method Provides a Single Vendor Billing Document 20050323
15 GET_STARTING_POINT_BILL_ITEM Instance method Private Method Provides the Starting Point forAT_KOMLFF for a Billing Doc. 20050401
16 GET_STARTING_POINT_KOMLFF Instance method Private Method Provides the Starting Point for AT_KOMLFF for an Item 20050323
17 GET_START_POINT_KOMLFF_HEAD Instance method Private Method Provides the Starting Point for AT_KOMLFF for a Document 20050323
18 INSERT_DOCNR_INTO_ATTR Instance method Private Method Transfers Document Number to Attribute Table 20050323
19 INSERT_INTO_OLDNR_TAB Instance method Private Method Transfers OLDNR to Table 20050401
20 INSERT_KOMLFK_INTO_ATTR Instance method Private Method Transfers VBD Headers to Attribute Table 20050323
21 INSERT_VBD_DATA_INTO_ATTR Instance method Private Method Transfers VBD Data to Attribute Table 20070608
22 IS_VBD_IN_TABLE Instance method Private Method Provides 'X' If the Document Is Already In the Table 20050323
23 READ_SINGLE_VBD_FROM_DB Instance method Private Method Reads a Single Vendor Billing Document from the Database 20050323
24 TEST_VBD_FOR_CANCELLATION Instance method Private Method Checks Vendor Billing Document Regarding Cancellation 20050323
Events
Class CL_WCB_CHECK_CREA_VBD_BY_BILL has no event.
Types
# Type Visibility Typing Associated Type Description Created on Type Source
1 TY_OLDNR_LINE Private See coding Structure with OLDNR 20050401 BEGIN OF ty_oldnr_line, oldnr TYPE oldnr_lf, END OF ty_oldnr_line
2 TY_OLDNR_STAB Private See coding Sorted Table Using ty_oldnr_line 20050401 ty_oldnr_stab TYPE SORTED TABLE OF ty_oldnr_line WITH UNIQUE KEY oldnr
Method Signatures

Method ADD_MSG_TO_LOG Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing I_APPLICATION_LOG Call by reference Type reference (TYPE) BALLOGHNDL Anwendungs-Log: Handle eines Protokolls 20050323
2 Importing I_MSGID Call by reference Type reference (TYPE) SYMSGID Nachrichtenklasse 20050323
3 Importing I_MSGNO Call by reference Type reference (TYPE) SYMSGNO Nachrichtennummer 20050323
4 Importing I_MSGTY Call by reference Type reference (TYPE) SYMSGTY Nachrichtentyp 20050323
5 Importing I_MSGV1 Call by reference Type reference (TYPE) ANY Nachrichtenvariable 20050323
6 Importing I_MSGV2 Call by reference Type reference (TYPE) ANY Nachrichtenvariable 20050323
7 Importing I_MSGV3 Call by reference Type reference (TYPE) ANY Nachrichtenvariable 20050323
8 Importing I_MSGV4 Call by reference Type reference (TYPE) ANY Nachrichtenvariable 20050323
9 Importing I_PROBLEMCLASS Call by reference Type reference (TYPE) BALPROBCL '4' Anwendungs-Log: Problemklasse einer Meldung 20050323

Method ADD_MSG_TO_LOG on class CL_WCB_CHECK_CREA_VBD_BY_BILL has no exception.

Method ADJUST_HEAD_DATA Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing CT_KOMLFKE Call by reference Type reference (TYPE) KOMLFKE_TAB Lieferantenfaktura: Externe Datenübernehme Kopfdaten 20050401
2 Importing IT_KOMLFPE Call by reference Type reference (TYPE) KOMLFPE_ITAB Lieferantenfaktura: Externe Datenübernahme Positionsdaten 20050401
3 Importing IT_OLDNR Call by reference Type reference (TYPE) TY_OLDNR_STAB sortierte Tabelle über ty_oldnr_line 20050401

Method ADJUST_HEAD_DATA on class CL_WCB_CHECK_CREA_VBD_BY_BILL has no exception.

Method CHECK_ACTIVE_VBD_FOR_ITEM Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing I_KOMLFPE Call by reference Type reference (TYPE) KOMLFPE Vorgängerpos. ist Faktura-pos. 20050401
2 Returning RE_ACTIVE Value transfer Type reference (TYPE) BVAL = 'X', falls aktive Lieferantenfakturapos. gefunden 20050401

Method CHECK_ACTIVE_VBD_FOR_ITEM on class CL_WCB_CHECK_CREA_VBD_BY_BILL has no exception.

Method CHECK_ALL_VBDS_ARE_ACTIVE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing I_VBRP Call by reference Type reference (TYPE) VBRP aktuelle Fakturaposition 20050401
2 Returning RE_ACTIVE Value transfer Type reference (TYPE) BVAL = 'X', falls alle Lief.-Fakturen zur Pos. aktiv sind 20050401

Method CHECK_ALL_VBDS_ARE_ACTIVE on class CL_WCB_CHECK_CREA_VBD_BY_BILL has no exception.

Method CHECK_ITEMS_FOR_CREATE_DETAIL Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing CH_OK_STATUS Call by reference Type reference (TYPE) CHAR1 ok-status: 'X' = Verarbeitung ok; ' ' = Fehler aufgetreten 20050401
2 Changing CT_KOMLFKE Call by reference Type reference (TYPE) KOMLFKE_TAB Lieferantenfaktura: Externe Datenübernahme Kopfdaten 20050401
3 Changing CT_KOMLFKO Call by reference Type reference (TYPE) KOMLFKO_TAB Lieferantenfaktura: Externe Daten Belegkonditionen 20050401
4 Changing CT_KOMLFPE Call by reference Type reference (TYPE) KOMLFPE_ITAB Lieferantenfaktura: Externe Datenübernahme Positionsdaten 20050401
5 Importing IT_VBRP Call by reference Type reference (TYPE) TAB_VBRP TABLE VBRP 20050401
6 Importing I_APPLICATION_LOG Call by reference Type reference (TYPE) BALLOGHNDL Anwendungs-Log: Handle eines Protokolls 20050401
7 Importing I_VBRK Call by reference Type reference (TYPE) VBRK Faktura: Kopfdaten 20050401

Method CHECK_ITEMS_FOR_CREATE_DETAIL on class CL_WCB_CHECK_CREA_VBD_BY_BILL has no exception.

Method CHECK_ITEMS_FOR_CREATE_GENERAL Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing CH_OK_STATUS Call by reference Type reference (TYPE) CHAR1 ok-status: 'X' = Verarbeitung ok; ' ' = Fehler aufgetreten 20050401
2 Changing CT_VBRP Call by reference Type reference (TYPE) TAB_VBRP TABLE VBRP 20050401
3 Importing I_APPLICATION_LOG Call by reference Type reference (TYPE) BALLOGHNDL Anwendungs-Log: Handle eines Protokolls 20050401
4 Importing I_VBRK Call by reference Type reference (TYPE) VBRK Faktura: Kopfdaten 20050401

Method CHECK_ITEMS_FOR_CREATE_GENERAL on class CL_WCB_CHECK_CREA_VBD_BY_BILL has no exception.

Method CONSTRUCTOR Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IT_KOMLFF Call by reference Type reference (TYPE) KOMLFF_ITAB Kommunikationsstruktur Belegflußdaten 20070608
2 Importing IT_KOMLFK Call by reference Type reference (TYPE) KOMLFK_ITAB Tabelle zu komlfk 20070608
3 Importing IT_KOMLFP Call by reference Type reference (TYPE) KOMLFP_ITAB Tabelle zu komlfp 20070608
4 Importing I_VBELN Call by reference Type reference (TYPE) VBELN_VF Faktura 20050323

Method CONSTRUCTOR on class CL_WCB_CHECK_CREA_VBD_BY_BILL has no exception.

Method DELETE_CONDS_FOR_ITEM Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing CT_KOMLFKO Call by reference Type reference (TYPE) KOMLFKO_TAB Tabelle zu KOMLFKO 20050401
2 Importing I_OLDNR Call by reference Type reference (TYPE) OLDNR_LF Belegnummer des Vorlagebeleges 20050401
3 Importing I_OLDPO Call by reference Type reference (TYPE) OLDPO_LF Belegposition des Vorlagebeleges 20050401

Method DELETE_CONDS_FOR_ITEM on class CL_WCB_CHECK_CREA_VBD_BY_BILL has no exception.

Method FILL_ATTRIBUTES Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing I_VBELN Call by reference Type reference (TYPE) VBELN_VF Faktura 20050323

Method FILL_ATTRIBUTES on class CL_WCB_CHECK_CREA_VBD_BY_BILL has no exception.

Method FILL_ATTRIBUTES_NOT_BY_DB Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IT_KOMLFF Call by reference Type reference (TYPE) KOMLFF_ITAB Kommunikationsstruktur Belegflußdaten 20070608
2 Importing IT_KOMLFK Call by reference Type reference (TYPE) KOMLFK_ITAB Tabelle zu komlfk 20070608
3 Importing IT_KOMLFP Call by reference Type reference (TYPE) KOMLFP_ITAB Tabelle zu komlfp 20070608
4 Importing I_VBELN Call by reference Type reference (TYPE) VBELN_VF Faktura 20070608

Method FILL_ATTRIBUTES_NOT_BY_DB on class CL_WCB_CHECK_CREA_VBD_BY_BILL has no exception.

Method GET_ACTIVE_VBD_ITEM Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting E_WBELN Call by reference Type reference (TYPE) WBELN_AG Agenturgeschäft: Belegnummer 20050323
2 Exporting E_WPOSNR Call by reference Type reference (TYPE) WPOSNR_LF Agenturgeschäft: Belegposition 20050323
3 Importing I_LFTYPN Call by reference Type reference (TYPE) WFTYPN Folgebelegtyp eines Lieferantenfakturabeleges 20050323
4 Importing I_WBELN Call by reference Type reference (TYPE) WBELN_AG Agenturgeschäft: Belegnummer 20050323
5 Importing I_WPOSNR Call by reference Type reference (TYPE) WPOSNR_LF Agenturgeschäft: Belegposition 20050323

Method GET_ACTIVE_VBD_ITEM on class CL_WCB_CHECK_CREA_VBD_BY_BILL has no exception.

Method GET_DOC_FOR_CANCELLATION Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing CH_OK_STATUS Call by reference Type reference (TYPE) CHAR1 ok-status: 'X' = Verarbeitung ok; ' ' = Fehler aufgetreten 20050323
2 Exporting ET_KOMLFK_CANCEL Call by reference Type reference (TYPE) KOMLFK_TAB sortierte komlfk Tabelle mit den zu stornierenden VBD-Köpfen 20050323
3 Importing I_APPLICATION_LOG Call by reference Type reference (TYPE) BALLOGHNDL Anwendungs-Log: Handle eines Protokolls 20050323
4 Importing I_VBRK Call by reference Type reference (TYPE) VBRK Faktura: Kopfdaten 20050323

Method GET_DOC_FOR_CANCELLATION on class CL_WCB_CHECK_CREA_VBD_BY_BILL has no exception.

Method GET_KOMLFF Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing I_LFTYPV Call by reference Type reference (TYPE) WFTYP_V Agenturgeschäft: Typ des verursachenden Beleges 20050323
2 Importing I_WBELNV Call by reference Type reference (TYPE) WBELNV Agenturgeschäft: Belegnummer des Vorlagebeleges 20050323
3 Returning RT_KOMLFF Value transfer Type reference (TYPE) KOMLFF_ITAB Kommunikationsstruktur Belegflußdaten 20050323

Method GET_KOMLFF on class CL_WCB_CHECK_CREA_VBD_BY_BILL has no exception.

Method GET_SINGLE_KOMLFK Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing I_WBELN Call by reference Type reference (TYPE) WBELN_AG Agenturgeschäft: Belegnummer 20050323
2 Returning RE_KOMLFK Value transfer Type reference (TYPE) KOMLFK Kommunikationsstruktur: Lieferantenfakturakopf 20050323

Method GET_SINGLE_KOMLFK on class CL_WCB_CHECK_CREA_VBD_BY_BILL has no exception.

Method GET_STARTING_POINT_BILL_ITEM Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing I_KNUMH Call by reference Type reference (TYPE) KNUMH Nummer Konditionssatz 20050401
2 Importing I_KOPOS Call by reference Type reference (TYPE) KOPOS Laufende Nummer der Kondition 20050401
3 Importing I_POSNRV Call by reference Type reference (TYPE) WPOSNR_VON Vorgängerposition eines Lieferantanfakturabeleges 20050401
4 Importing I_WBELNV Call by reference Type reference (TYPE) WBELNV Agenturgeschäft: Belegnummer des Vorlagebeleges 20050401
5 Returning RE_TABIX Value transfer Type reference (TYPE) SYTABIX Index interner Tabellen 20050401

Method GET_STARTING_POINT_BILL_ITEM on class CL_WCB_CHECK_CREA_VBD_BY_BILL has no exception.

Method GET_STARTING_POINT_KOMLFF Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing I_LFTYPV Call by reference Type reference (TYPE) WFTYP_V Agenturgeschäft: Typ des verursachenden Beleges 20050323
2 Importing I_POSNRV Call by reference Type reference (TYPE) WPOSNR_VON Vorgängerposition eines Lieferantanfakturabeleges 20050323
3 Importing I_WBELNV Call by reference Type reference (TYPE) WBELNV Agenturgeschäft: Belegnummer des Vorlagebeleges 20050323
4 Returning RE_TABIX Value transfer Type reference (TYPE) SYTABIX Index interner Tabellen 20050323

Method GET_STARTING_POINT_KOMLFF on class CL_WCB_CHECK_CREA_VBD_BY_BILL has no exception.

Method GET_START_POINT_KOMLFF_HEAD Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing I_LFTYPV Call by reference Type reference (TYPE) WFTYP_V Agenturgeschäft: Typ des verursachenden Beleges 20050323
2 Importing I_WBELNV Call by reference Type reference (TYPE) WBELNV Agenturgeschäft: Belegnummer des Vorlagebeleges 20050323
3 Returning RE_TABIX Value transfer Type reference (TYPE) SYTABIX Index interner Tabellen 20050323

Method GET_START_POINT_KOMLFF_HEAD on class CL_WCB_CHECK_CREA_VBD_BY_BILL has no exception.

Method INSERT_DOCNR_INTO_ATTR Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing I_WBELN Call by reference Type reference (TYPE) WBELN_LF Agenturgeschäft: Belegnummer 20050323
2 Returning RE_INSERTED Value transfer Type reference (TYPE) BVAL = 'X', wenn Belegnummer neu in Tab. aufgenommen wurde 20050323

Method INSERT_DOCNR_INTO_ATTR on class CL_WCB_CHECK_CREA_VBD_BY_BILL has no exception.

Method INSERT_INTO_OLDNR_TAB Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing CT_OLDNR Call by reference Type reference (TYPE) TY_OLDNR_STAB sortierte Tabelle über ty_oldnr_line 20050401
2 Importing I_OLDNR Call by reference Type reference (TYPE) OLDNR_LF Belegnummer des Vorlagebeleges 20050401

Method INSERT_INTO_OLDNR_TAB on class CL_WCB_CHECK_CREA_VBD_BY_BILL has no exception.

Method INSERT_KOMLFK_INTO_ATTR Signature

Method INSERT_KOMLFK_INTO_ATTR on class CL_WCB_CHECK_CREA_VBD_BY_BILL has no parameter.
Method INSERT_KOMLFK_INTO_ATTR on class CL_WCB_CHECK_CREA_VBD_BY_BILL has no exception.

Method INSERT_VBD_DATA_INTO_ATTR Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IT_KOMLFK Call by reference Type reference (TYPE) KOMLFK_ITAB Tabelle zu komlfk 20070608
2 Importing IT_KOMLFP Call by reference Type reference (TYPE) KOMLFP_ITAB Tabelle zu komlfp 20070608
3 Importing I_WBELN Call by reference Type reference (TYPE) WBELN_LF Agenturgeschäft: Belegnummer 20070608

Method INSERT_VBD_DATA_INTO_ATTR on class CL_WCB_CHECK_CREA_VBD_BY_BILL has no exception.

Method IS_VBD_IN_TABLE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IT_KOMLFK Call by reference Type reference (TYPE) KOMLFK_TAB sortierte komlfk Tabelle 20050323
2 Importing I_WBELN Call by reference Type reference (TYPE) WBELN_AG Agenturgeschäft: Belegnummer 20050323
3 Returning RE_IN_TABLE Value transfer Type reference (TYPE) BVAL = 'X', falls Beleg bereits in Tabelle 20050323

Method IS_VBD_IN_TABLE on class CL_WCB_CHECK_CREA_VBD_BY_BILL has no exception.

Method READ_SINGLE_VBD_FROM_DB Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing I_WBELN Call by reference Type reference (TYPE) WBELN_AG Agenturgeschäft: Belegnummer 20050323
2 Returning RE_KOMLFK Value transfer Type reference (TYPE) KOMLFK Kommunikationsstruktur: Lieferantenfakturakopf 20050323

Method READ_SINGLE_VBD_FROM_DB on class CL_WCB_CHECK_CREA_VBD_BY_BILL has no exception.

Method TEST_VBD_FOR_CANCELLATION Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing CT_KOMLFK_CANCEL Call by reference Type reference (TYPE) KOMLFK_TAB sortierte komlfk Tabelle mit den zu stornierenden Lief-Fakt. 20050323
2 Changing CT_KOMLFK_CANCELLED Call by reference Type reference (TYPE) KOMLFK_TAB sortierte komlfk Tab. mit den bereits stornierten Lief-Fakt. 20050323
3 Importing I_LFTYPN Call by reference Type reference (TYPE) WFTYPN Folgebelegtyp eines Lieferantenfakturabeleges 20050323
4 Importing I_WBELN Call by reference Type reference (TYPE) WBELN_AG Agenturgeschäft: Belegnummer 20050323
5 Importing I_WPOSNR Call by reference Type reference (TYPE) WPOSNR_LF Agenturgeschäft: Belegposition 20050323

Method TEST_VBD_FOR_CANCELLATION on class CL_WCB_CHECK_CREA_VBD_BY_BILL has no exception.
History
Last changed by/on SAP  20050411 
SAP Release Created in 600