CHECK_CM is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). Below is the basic information available for this SAP report including which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC. Also check out the submitted Comments related to this SAP report or see any standard documentation available.
If you would like to execute this report or see the full code listing simply enter CHECK_CM into the relevant SAP transactions such as SE38 or SE80
This report can be called from another progam/report simply by using the ABAP SUBMIT statement, see below for example ABAP code snipts of how to do this.
Selection Text: VBELN = Document Number
Selection Text: FLAG_S = Display Individual Status
Selection Text: FLAG_M = More Explanations
Title: Analysis of SD Document with Regard to Credit Management
Text Symbol: 050 = Document Number
Text Symbol: 051 = Settings
Text Symbol: 103 = Fields from Table VBAP (ETTYP from Table VBEP)
Text Symbol: 171 = Yes
Text Symbol: 172 = No
Text Symbol: 173 = Material Requirements Planning
Text Symbol: 174 = No Entries Exist
Text Symbol: 180 = Info: Yellow Item Numbers are Sub-Items
Text Symbol: 200 = Credit Status from Table VBUK
Text Symbol: 209 = Overall Credit Status
Text Symbol: 210 = Static
Text Symbol: 211 = Dynamic
Text Symbol: 212 = Critical Fields
Text Symbol: 213 = Next Inspection Date
Text Symbol: 214 = Open Items
Text Symbol: 215 = Oldest Open Item
Text Symbol: 216 = Maximum Dunning Level
Text Symbol: 217 = Financial Document
Text Symbol: 218 = Export Credit Insurance
Text Symbol: 219 = Payment Card Authorization
Text Symbol: 223 = Maximum Document Value
Text Symbol: 250 = No Check/No Status
Text Symbol: 251 = OK
Text Symbol: 252 = Not OK
Text Symbol: 253 = Released
Text Symbol: 300 = Analysis of Delivery
Text Symbol: 301 = Delivery Type:
Text Symbol: 302 = Credit Group - Delivery:
Text Symbol: 303 = Credit Group - Goods Issue:
Text Symbol: 304 = Fields from Table LIPS
Text Symbol: 450 = SD Document Category:
Text Symbol: 001 = Analysis of Sales Order
Text Symbol: 002 = Settings for Credit Check
Text Symbol: 003 = Type of Credit Check:
No INCLUDES are used within this REPORT code!
No SAP DATABASE tables are accessed within this REPORT code!
DDUT_DOMVALUES_GET CALL FUNCTION 'DDUT_DOMVALUES_GET' EXPORTING name = 'VBTYP' langu = sy-langu TABLES dd07v_tab = val_vbtyp.
DDUT_DOMVALUES_GET CALL FUNCTION 'DDUT_DOMVALUES_GET' EXPORTING name = 'KBTCH' langu = sy-langu TABLES dd07v_tab = val_kbtch.
SD_CREDIT_EXPOSURE CALL FUNCTION 'SD_CREDIT_EXPOSURE' EXPORTING kkber = wa_vbak-kkber knkli = wa_knkk-knkli IMPORTING open_delivery = open_del open_invoice = open_inv open_order = open_ord open_delivery_secure = open_del_sec open_invoice_secure = open_inv_sec open_order_secure = open_ord_sec.
DDUT_DOMVALUES_GET CALL FUNCTION 'DDUT_DOMVALUES_GET' EXPORTING name = 'FKREL' langu = sy-langu TABLES dd07v_tab = val_fkrel.
SD_DETERMINE_KKBER CALL FUNCTION 'SD_DETERMINE_KKBER' EXPORTING i_kkber_tvta = wa_tvta-kkber i_kkber_t001 = wa_t001-kkber i_vkorg = wa_vbak-vkorg i_vtweg = wa_vbak-vtweg i_spart = wa_vbak-spart xvbak = wa_vbak i_kunnr = da_kunrg IMPORTING rc = rc e_knvv_flg = knvv_flg TABLES xvbpa = int_vbpavb xvbkd = int_vbkd CHANGING i_kkber = new_kkber.
DDUT_DOMVALUES_GET CALL FUNCTION 'DDUT_DOMVALUES_GET' EXPORTING name = 'VBTYP' langu = sy-langu TABLES dd07v_tab = val_vbtyp.
DDUT_DOMVALUES_GET CALL FUNCTION 'DDUT_DOMVALUES_GET' EXPORTING name = 'KBTCH' langu = sy-langu TABLES dd07v_tab = val_kbtch.
SD_CREDIT_EXPOSURE CALL FUNCTION 'SD_CREDIT_EXPOSURE' EXPORTING kkber = wa_likp-kkber knkli = wa_likp-knkli IMPORTING open_delivery = open_del open_invoice = open_inv open_order = open_ord open_delivery_secure = open_del_sec open_invoice_secure = open_inv_sec open_order_secure = open_ord_sec.
DDUT_DOMVALUES_GET CALL FUNCTION 'DDUT_DOMVALUES_GET' EXPORTING name = 'FKREL' langu = sy-langu TABLES dd07v_tab = val_fkrel.
K_FIELD_TEXT_READ CALL FUNCTION 'K_FIELD_TEXT_READ' EXPORTING field = field langu = sy-langu tab = tab with_dots = ' ' IMPORTING ex_kdfit = wa_kdfit.
Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.
The contribute/comments section below therefore offer's an opportunity for anyone to add additional information. This can be anything from useful hints, tips and screen shots to relevant SAP notes or anything else you feel is relevant to this report.
This will then be available for everyone to easily find by simply searching on the report name CHECK_CM or its description.
CHECK_CM - Analysis of SD Document with Regard to Credit Management CHECK_CM - Analysis of SD Document with Regard to Credit Management CHECK_CLUSTER_OPTIONS - Program CHECK_CLUSTER_OPTIONS CHECK_CLUSTER_OPTIONS - Program CHECK_CLUSTER_OPTIONS CHECK_CLASS_INHERITANCE - Determine Inheritance Hierarchy: Selection CHECK_CLASS_INHERITANCE - Determine Inheritance Hierarchy: Selection