ABAP OO Class Methods

WGRC_CONS SAP Class - Constants for Goods Receipt Capacity Check







WGRC_CONS is a standard SAP object class available within R/3 SAP systems depending on your version and release level. You can view/maintain the class details by entering its name into the relevant SAP transactions such as SE24, SE80 or even SE84.

Below is the documentation available for class WGRC_CONS including details of:

  • Interface class implementations
  • Inheritance details
  • Methods defined within class ( including link to full details )
  • Attributes ( including initial values )
  • Class Events

Also check out the Resources section below to view useful tips, screenshots, links and general information related to this SAP class and its methods, or even add your own for future reference.




Methods of WGRC_CONS





A method is a coding block that performs a certain procedure (i.e. ABAP functionality) on an object within the overall SAP class. In simple terms if the object is an SAP database table a method could be the procedure to add a record or to delete a record. If you are new to OO in many respects, the implementation of a method is similar to a function module and can be called in a very similar way using CALL METHOD.

Instead of "CALL FUNCTION", Methods are referenced using the following syntax: CALL METHOD CL_ABAP_CHAR_UTILITIES=>methodname EXPORTING/IMPORTING...




WGRC_CONS Attributes

List of attributes within class WGRC_CONS. These can be referenced using the following syntax WGRC_CONS=>. Although depending on where you are inserting the ABAP code you do need to check if the attribute is public or private.


NameDescriptionInitial Value
GC_1 Day 1 '1'
GC_2 Tag 2 '2'
GC_3 Day 3 '3'
GC_4 Day 4 '4'
GC_5 Day 5 '5'
GC_6 Day 6 '6'
GC_7 Day 7 '7'
GC_AREA Door or Staging Area 'S'
GC_BADI_AFTER Call Time for BAdI 'A'
GC_BADI_BEFORE Call Time for BAdI 'B'
GC_BLUE ALV Field Color Blue '100'
GC_CHECK Execute Goods Receipt Capacity Check 'X'
GC_COMMA Separator ','
GC_DARKBLUE ALV Field Color Dark-Blue '110'
GC_DARKGREY ALV Field Color Dark-Gray 'C210'
GC_DECREASE Gc Decrease '-'
GC_DEL Changes to Capacity Data: Change Type 'D'
GC_DELTA_ABS Absolute Delta for Capacity Calculation '0.1'
GC_DELTA_PERC Percentage Delta for Capacity Calculation '0.01'
GC_DOOR Door or Staging Area 'D'
GC_DOUBLE_NO Double Assignment of Vendors in Planning '0'
GC_DOUBLE_YES Double Assignment of Vendors in Planning '1'
GC_EMPHASIZE Character Field, 8 Characters Long '00000060'
GC_ENDTIME_DAY TIMS Field Type '235959'
GC_FALSE Boolean Variable (X=true, -=false, space=unknown) ' '
GC_FREE ALV Color for Non-Working Days 'C100'
GC_FREEHOLI ALV Color for Non-Working Public Holidays 'C110'
GC_FREE_CAPA "Free" Character String 'Frei'
GC_FRIDAY ALV Field Friday 'FRIDAY'
GC_GREEN ALV Field Color Green '5'
GC_GREY ALV Field Color Gray '4'
GC_INCREASE Gc Increase '+'
GC_INIT Changes to Capacity Data: Change Type ' '
GC_INS Changes to Capacity Data: Change Type 'I'
GC_LINE Hyphen '-'
GC_LOWER_MIN FLTP Field Type '0.0001'
GC_MONDAY ALV Field Monday 'MONDAY'
GC_MPH Minutes per Hour 60
GC_NIL Number Zero '0'



GC_NO_CHECK Do Not Execute Goods Receipt Capacity Check '-'
GC_PO_FAULTY Status of Purchasing Document '1'
GC_PO_NO_CAPA Status of Purchasing Document '3'
GC_PO_NO_LGNUM Status of Purchasing Document '6'
GC_PO_NO_LOCNO Status of Purchasing Document '5'
GC_PO_NO_RES Status of Purchasing Document '4'
GC_PO_OK Status of Purchasing Document '2'
GC_RED ALV Field Color Red '6'
GC_REGSIZE Character Field, 8 Characters Long '00000000'
GC_RESERVED Occupied 'Belegt'
GC_ROOT Name of First Node 'ROOT'
GC_SATURDAY ALV Field Saturday 'SATURDAY'
GC_SEL_RASTER_DAY Time Criteria for Resource Selection 'D'
GC_SEL_RASTER_HOUR Time Criteria for Resource Selection 'H'
GC_SEL_RASTER_WEEK Time Criteria for Resource Selection 'W'
GC_SORT_DATE Sort Sequence in 'RWGRC_004' '1'
GC_SORT_EBELN Sort Sequence in 'RWGRC_004' '2'
GC_STARTTIME_DAY Start Time for a Day '000000'
GC_SUNDAY ALV Field Monday 'SUNDAY'
GC_THURSDAY ALV Field Thursday 'THURSDAY'
GC_TIME Time Color in ALV '210'
GC_TIMEZONE Time Zone 'UTC '
GC_TIM_COL Time Color 'C400'
GC_TRUE Boolean Variable (X=true, -=false, space=unknown) 'X'
GC_TUESDAY ALV Field Tuesday 'TUESDAY'
GC_UPD_DATE Changes to Capacity Data: Change Type 'T'
GC_UPD_MENGE Changes to Capacity Data: Change Type 'U'
GC_UPD_STORAGE Changes to Capacity Data: Change Type 'L'
GC_WEDNESDAY ALV Field Wednesday 'WEDNESDAY'
GC_WEEKDAYS Number of Days of Displayed Week '7'
GC_ZERO Number Zero: Right-Aligned ' 0'




Events of the Class WGRC_CONS

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 EXPOTING...