RHCKORDH 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 RHCKORDH 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: P_WERK = Plant (only for repair)
Selection Text: ERGAENZE = Complete ML PO history
Selection Text: EBELP = Purchase order item (optional)
Selection Text: EBELN = Purchase order
Title: Check and Complete Purchase Order History from ML View
Text Symbol: 030 = Control Data
Text Symbol: 022 = not found, completion not possible
Text Symbol: 021 = Order line
Text Symbol: 020 = Plant does not exist in PO history line - Completion not possible
Text Symbol: 019 = EKBZ
Text Symbol: 018 = EKBz PO item STUNT ZAEHK VGABE Year ref. doc. item
Text Symbol: 017 = MLBECR not found.
Text Symbol: 016 = MLBECR
Text Symbol: 015 = MLBECR Trans no. Year Ref. Doc. Item Curr typ debit/cr WRBTR AREWR REEWR
Text Symbol: 014 = MLBE not found.
Text Symbol: 013 = MLBE completed
Text Symbol: 012 = MLBE
Text Symbol: 011 = MLBE Trans no. Year ref. doc. item VGABE BEWTP ZEKKN date Quantity
Text Symbol: 010 = MLWERE not found.
Text Symbol: 009 = MLWERE compl.
Text Symbol: 008 = MLWERE
Text Symbol: 007 = MLWERE Trans. no. PO item STUNR ZAEHK
Text Symbol: 006 = EKBE
Text Symbol: 005 = EKBE Purchase order item ZEKKN VGABE year ref.doc. item
Text Symbol: 004 = Purchase order history records for PO
Text Symbol: 003 = not available.
Text Symbol: 002 = Pur. order
Text Symbol: 001 = Error completing the ML purchase order history
No INCLUDES are used within this REPORT code!
No SAP DATABASE tables are accessed within this REPORT code!
CKMW_CREATE_PO_HISTORY CALL FUNCTION 'CKMW_CREATE_PO_HISTORY' TABLES T_EKBE = T_EKBE T_EKBZ = T_EKBZ T_EKBE_CR = T_EKBE_CR T_EKBZ_CR = T_EKBZ_CR.
GET_BWKEY_CURRENCY_INFO CALL FUNCTION 'GET_BWKEY_CURRENCY_INFO' EXPORTING BWKEY = EKBE-WERKS CALL_BY_INIT_PROG = ' ' I_CUSTOMIZING = ' ' TABLES T_CURTP_FOR_VA = T_CURTP_FOR_VA.
CONVERT_TO_LOCAL_CURRENCY CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY' EXPORTING DATE = EKBE-BUDAT FOREIGN_AMOUNT = EKBE-DMBTR FOREIGN_CURRENCY = F_CURTP_COMPANY-WAERS LOCAL_CURRENCY = EKKO-WAERS IMPORTING LOCAL_AMOUNT = T_EKBE_CR-WRBTR.
CONVERT_TO_LOCAL_CURRENCY CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY' EXPORTING DATE = EKBE-BUDAT FOREIGN_AMOUNT = EKBE-AREWR FOREIGN_CURRENCY = F_CURTP_COMPANY-WAERS LOCAL_CURRENCY = EKKO-WAERS IMPORTING LOCAL_AMOUNT = T_EKBE_CR-AREWR.
CONVERT_TO_LOCAL_CURRENCY CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY' EXPORTING DATE = EKBE-BUDAT FOREIGN_AMOUNT = EKBE-REEWR FOREIGN_CURRENCY = F_CURTP_COMPANY-WAERS LOCAL_CURRENCY = EKKO-WAERS IMPORTING LOCAL_AMOUNT = T_EKBE_CR-REEWR.
CONVERT_TO_LOCAL_CURRENCY CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY' EXPORTING DATE = EKBE-BUDAT FOREIGN_AMOUNT = EKBE-DMBTR FOREIGN_CURRENCY = F_CURTP_COMPANY-WAERS LOCAL_CURRENCY = T_CURTP_FOR_VA-WAERS IMPORTING LOCAL_AMOUNT = T_EKBE_CR-WRBTR.
CONVERT_TO_LOCAL_CURRENCY CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY' EXPORTING DATE = EKBE-BUDAT FOREIGN_AMOUNT = EKBE-AREWR FOREIGN_CURRENCY = F_CURTP_COMPANY-WAERS LOCAL_CURRENCY = T_CURTP_FOR_VA-WAERS IMPORTING LOCAL_AMOUNT = T_EKBE_CR-AREWR.
CONVERT_TO_LOCAL_CURRENCY CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY' EXPORTING DATE = EKBE-BUDAT FOREIGN_AMOUNT = EKBE-REEWR FOREIGN_CURRENCY = F_CURTP_COMPANY-WAERS LOCAL_CURRENCY = T_CURTP_FOR_VA-WAERS IMPORTING LOCAL_AMOUNT = T_EKBE_CR-REEWR.
GET_BWKEY_CURRENCY_INFO CALL FUNCTION 'GET_BWKEY_CURRENCY_INFO' EXPORTING BWKEY = EKPO-WERKS TABLES T_CURTP_FOR_VA = T_CURTP_FOR_VA.
CONVERT_TO_LOCAL_CURRENCY CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY' EXPORTING DATE = EKBZ-BUDAT FOREIGN_AMOUNT = EKBZ-DMBTR FOREIGN_CURRENCY = F_CURTP_COMPANY-WAERS LOCAL_CURRENCY = EKKO-WAERS IMPORTING LOCAL_AMOUNT = T_EKBZ_CR-WRBTR.
CONVERT_TO_LOCAL_CURRENCY CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY' EXPORTING DATE = EKBZ-BUDAT FOREIGN_AMOUNT = EKBZ-AREWR FOREIGN_CURRENCY = F_CURTP_COMPANY-WAERS LOCAL_CURRENCY = EKKO-WAERS IMPORTING LOCAL_AMOUNT = T_EKBZ_CR-AREWR.
CONVERT_TO_LOCAL_CURRENCY CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY' EXPORTING DATE = EKBZ-BUDAT FOREIGN_AMOUNT = EKBZ-REEWR FOREIGN_CURRENCY = F_CURTP_COMPANY-WAERS LOCAL_CURRENCY = EKKO-WAERS IMPORTING LOCAL_AMOUNT = T_EKBZ_CR-REEWR.
CONVERT_TO_LOCAL_CURRENCY CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY' EXPORTING DATE = EKBZ-BUDAT FOREIGN_AMOUNT = EKBZ-DMBTR FOREIGN_CURRENCY = F_CURTP_COMPANY-WAERS LOCAL_CURRENCY = T_CURTP_FOR_VA-WAERS IMPORTING LOCAL_AMOUNT = T_EKBZ_CR-WRBTR.
CONVERT_TO_LOCAL_CURRENCY CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY' EXPORTING DATE = EKBZ-BUDAT FOREIGN_AMOUNT = EKBZ-AREWR FOREIGN_CURRENCY = F_CURTP_COMPANY-WAERS LOCAL_CURRENCY = T_CURTP_FOR_VA-WAERS IMPORTING LOCAL_AMOUNT = T_EKBZ_CR-AREWR.
CONVERT_TO_LOCAL_CURRENCY CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY' EXPORTING DATE = EKBZ-BUDAT FOREIGN_AMOUNT = EKBZ-REEWR FOREIGN_CURRENCY = F_CURTP_COMPANY-WAERS LOCAL_CURRENCY = T_CURTP_FOR_VA-WAERS IMPORTING LOCAL_AMOUNT = T_EKBZ_CR-REEWR.
Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.
RHCKORDH - Check and Complete Purchase Order History from ML View RHCKORDH - Check and Complete Purchase Order History from ML View RHCISLAMIC_OPF01 - Include RHCISLAMIC_OPF01 RHCHKTAB - Include for Table Definitions RHCHECKP RHCHKSQL - Include for Native SQL Statements RHCHECKP RHCHEXOBF01 - documentation and ABAP source code