SAP Reports / Programs | Financial Accounting | Funds Management(FI-FM) SAP FI

RBPFCOD1 SAP ABAP Report - Deactivate Availability Control for Orders







RBPFCOD1 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 RBPFCOD1 into the relevant SAP transactions such as SE38 or SE80


Transaction Code(s):

Below is a list of transaction codes which are relevant to this SAP report

KO32 - Deactivate Order Availability Cntrl


ABAP code to call this SAP report using the submit statement

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.






SUBMIT RBPFCOD1. "Basic submit
SUBMIT RBPFCOD1 AND RETURN. "Return to original report after report execution complete
SUBMIT RBPFCOD1 VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


Text pool values


Selection Text: AUART = D Order type
Selection Text: AUFNR = D Order
Selection Text: KOKRS = D Controlling area
Title: Deactivate Availability Control for Orders
Text Symbol: 010 = Availability control has been deactivated for the following orders:
Text Symbol: 020 = Availability control was not active for the following orders:
Text Symbol: 030 = The following orders are currently blocked (try deactivation again later):
Text Symbol: 040 = Status management errors occurred in the following orders:


INCLUDES used within this REPORT RBPFCOD1

No INCLUDES are used within this REPORT code!


TABLES used within REPORT and the associated SELECT statement:





No SAP DATABASE tables are accessed within this REPORT code!


Function Modules used within report and the associated call statement:

K_KOKRS_SET CALL FUNCTION 'K_KOKRS_SET' "note314114 EXPORTING "note314114 I_KOKRS = L_KOKRS "note314114 IMPORTING "note314114 E_KOKRS = KOKRS "note314114 EXCEPTIONS "note314114 NOT_FOUND = 01. "note314114

K_KOKRS_SET CALL FUNCTION 'K_KOKRS_SET' IMPORTING E_KOKRS = KOKRS EXCEPTIONS NOT_FOUND = 01.

K_KOKRS_SET CALL FUNCTION 'K_KOKRS_SET' EXPORTING DISPLAY = ' ' I_KOKRS = KOKRS POPUP = '1' IMPORTING E_KOKRS = KOKRS EXCEPTIONS NOT_FOUND = 01.

K_VRGNG_AUTHORITY_CHECK CALL FUNCTION 'K_VRGNG_AUTHORITY_CHECK' "P30K057385 EXPORTING ACTVT = '16' "Ausführen KOKRS = KOKRS VRGNG = 'KBFC'.

ENQUEUE_ESORDER CALL FUNCTION 'ENQUEUE_ESORDER' EXPORTING AUFNR = T_AUFK-AUFNR EXCEPTIONS FOREIGN_LOCK = 1.

KBPS_ENQUEUE CALL FUNCTION 'KBPS_ENQUEUE' "KI3K040849 TABLES "KI3K040849 T_ENQ_OBJ = L_T_ENQ_OBJ "KI3K040849 EXCEPTIONS "KI3K040849 FOREIGN_LOCK = 1 "KI3K040849 SYSTEM_FAILURE = 2. "KI3K040849

ENQUEUE_EBPTR_EX * call function 'ENQUEUE_EBPTR_EX' "KI3K040849 * exporting "KI3K040849 * objnr = t_aufk-objnr "KI3K040849 * posit = space "KI3K040849 * geber = space "KI3K040849 * trgkz = 'N' "KI3K040849 * wrttp = con_bud_val "KI3K040849 * versn = '000' "KI3K040849 * exceptions "KI3K040849 * foreign_lock = 01 "KI3K040849 * others = 02. "KI3K040849

DEQUEUE_ALL CALL FUNCTION 'DEQUEUE_ALL'.

STATUS_CHANGE_INTERN CALL FUNCTION 'STATUS_CHANGE_INTERN' EXPORTING OBJNR = T_AUFK-OBJNR TABLES STATUS = T_JSTAT EXCEPTIONS OBJECT_NOT_FOUND = 1 STATUS_INCONSISTENT = 2 STATUS_NOT_ALLOWED = 3 OTHERS = 4.

STATUS_CHANGE_INTERN CALL FUNCTION 'STATUS_CHANGE_INTERN' EXPORTING OBJNR = T_AUFK-OBJNR TABLES STATUS = T_JSTAT EXCEPTIONS OBJECT_NOT_FOUND = 1 STATUS_INCONSISTENT = 2 STATUS_NOT_ALLOWED = 3 OTHERS = 4.

DEQUEUE_ALL CALL FUNCTION 'DEQUEUE_ALL'.

REUSE_ALV_LIST_DISPLAY CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY' EXPORTING I_CALLBACK_PROGRAM = GV_REPID IS_LAYOUT = LS_LAYOUT IT_FIELDCAT = LT_FIELDCAT IT_EVENTS = LT_EVENTS IS_PRINT = LS_PRINT TABLES T_OUTTAB = LT_SUB_OUTPUT EXCEPTIONS PROGRAM_ERROR = 1 OTHERS = 2.

REUSE_ALV_FIELDCATALOG_MERGE CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' EXPORTING I_STRUCTURE_NAME = GC_STRUCTNAME CHANGING CT_FIELDCAT = XT_FIELDCAT EXCEPTIONS INCONSISTENT_INTERFACE = 1 PROGRAM_ERROR = 2 OTHERS = 3.

REUSE_ALV_EVENTS_GET CALL FUNCTION 'REUSE_ALV_EVENTS_GET' EXPORTING I_LIST_TYPE = 0 IMPORTING ET_EVENTS = LT_EVENT.



Contribute (Add Comments)

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 RBPFCOD1 or its description.