You are on page 1of 3

L_SHP_LECOMP is a standard SAP class available within R/3 SAP systems depending on your version and

release level. Below is the standard documentation available for this class interface. You can view this
information and more if you enter the class name CL_SHP_LECOMP into the relevant SAP transaction such
as SE24 or SE80.

Contribute (Comments)

Within the comments section below there is also an opportunity for you to add useful hints, tips and
information specific to this SAP object. This means that you and other users will be able to find these details
quickly by simply searching on the object name CL_SHP_LECOMP or its description.
Class Methods
In some respects Class methods are similar to function modules in that they are a coding block that
performs certain ABAP functionality. Methods can be referenced using the following syntax: CALL METHOD
CL_SHP_LECOMP=>methodname EXPORTING/IMPORTING...
UPDATE_QUANTITY - Update quantity and unit
UPDATE_FROM_GOODS_ISSUE - Update goods issue data
SPLIT - Split batch managed component
SET_LANGUAGE - Set language
SET - Set/ overwrite components
SAVE - Save components
ROUND - Round
REVERSE_GOODS_ISSUE - Reverse goods issue status and issued quantities
REPLACE - Recreate components again from purchase order
RENUMBER_VBELN - Update vbeln
RENUMBER - Update vbeln + posnr
READ_STOCK - Read subcontracting stock from table MSLB
READ_PO - Read components from purchase order
READ - Read components
POST_GOODS_ISSUE - Add components to material document
ADD_COMPONENT - Add checked component
ADD_ITEM - Add item with components
AGGREGATE - Aggregate components by MATNR WERKS LGORT CHARG
ASSIGN - Assign component
CHANGE - Change components (ASN)
CHECK - Check components
CHECK_CHARG - Check Batch
CHECK_LGORT - Check Storage Location
CHECK_STOCK - Check quantities against subcontracting stock
CHECK_UOM - Check Unit Of Measurement
CHECK_WERKS - Check Plant
CLONE - Clone instance
CONSTRUCTOR - CONSTRUCTOR
COPY - Copy components and fill dynamic parts
COPY_ITEM - Add item with components from existing item
CORRELATE - Correlate components for changed items only
CORRELATE_COMPONENT - Correlate component(s)
CREATE - Create components from purchase order
DELETE - Delete component
DELETE_ITEM - Delete item
DISPLAY - Display components
EDIT - Edit component
ENRICH_COMPONENTS - Enrich components
ENTER - Enter value
GET - Get components

GET_BWTAR - Get valuation type


GET_CONVERSION_FACTOR - Get conversion factor UMREZ/ UMREN from ALT to BASE
GET_FREE_STOCK - Get available quantity in subcontracting/ proj or cust stock
GET_MSLB - Get batch on vendor stock

Class Attributes
Class attributes can be referenced using the following syntax CL_SHP_LECOMP=><attribute name>.
Although depending on where you are inserting the ABAP code you do need to check if the attribute is public
or private.
GC_BWART_COMP_GR GC_FCODE_COMP_VL32 GC_FCODE_COMP_VL60 GC_FMENG_FIX - FMENG values for fixed quantities
GC_FMENG_FORCED - Fix quantity indicator was forced
GC_FMENG_HIDDEN - Fix quantity indicator was hidden
GC_PSTYP_SC GC_TRTYP_CHANGE GC_TRTYP_CREATE GC_TRTYP_DISPLAY GC_UPDKZ_DELETE GC_UPDKZ_INSERT GC_UPDKZ_OLD GC_UPDKZ_UPDATE GC_VBTYP_GI_REVERSE GC_VBTYP_LIAV GC_VBTYP_PO GC_XLBTYPE_COMP GC_XLBTYPE_PARENT GT_T006 - Units of Measurement
GT_MCHA - Valuation types
GT_MARC - Plant Data for Material
GT_MAKT - Material Descriptions
GO_STOCK GC_BWART_COMP_GI -

MF_CHANGED - Changed?
MF_LANGU - Language Key of Current Text Environment
MF_LIFNR - Account Number of Vendor or Creditor
MF_PROPOSED - Proposal (must be confirmed/ changed)?
MF_TRTYP - Transaction type
MT_ISSUE - Goods issue data
MT_ITEM - Inbound delivery items
MT_XCOMP - SC Components maintained
MT_YCOMP - SC Components on database

Class Events
Events are created within your class using special event handler methods. These must be registered at
runtime for the event and can then be triggered using the ABAP syntax: RAISE EVENT <event name>
EXPOTING...

You might also like