SAP Reports / Programs | Financial Accounting | Contract Accounts Receivable and Payable(FI-CA) SAP FI

RFKKBOR_DOC SAP ABAP INCLUDE - Program for Object Type CA_DOC : FI-CA Document







RFKKBOR_DOC is a standard ABAP INCLUDE 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 RFKKBOR_DOC into the relevant SAP transactions such as SE38 or SE80


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 RFKKBOR_DOC. "Basic submit
SUBMIT RFKKBOR_DOC AND RETURN. "Return to original report after report execution complete
SUBMIT RFKKBOR_DOC VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


Text pool values


Title: Program for Object Type CA_DOC : FI-CA Document


INCLUDES used within this REPORT RFKKBOR_DOC

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:

BAPI_CTRACDOCUMENT_EXISTCHECK CALL FUNCTION 'BAPI_CTRACDOCUMENT_EXISTCHECK' EXPORTING documentnumber = object-key-documentnumber IMPORTING return = return EXCEPTIONS OTHERS = 01.

BAPI_CTRACDOCUMENT_GETDETAIL CALL FUNCTION 'BAPI_CTRACDOCUMENT_GETDETAIL' EXPORTING documentnumber = object-key-documentnumber detailtype = detailtype IMPORTING return = return documentheader = documentheader TABLES positioncurrencies = positioncurrencies positionlocks = positionlocks extendpartnerpositions = extendpartnerpositions repetitionpositions = repetitionpositions genledgerpositions = genledgerpositions partnerpositions = partnerpositions extensionout = extensionout EXCEPTIONS OTHERS = 01.

BAPI_CTRACDOCUMENT_CREATE CALL FUNCTION 'BAPI_CTRACDOCUMENT_CREATE' EXPORTING testrun = testrun documentheader = documentheader reckeyinfo = reckeyinfo completedocument = completedocument net_receivables = net_receivables IMPORTING return = return documentnumber = object-key-documentnumber TABLES positionlocks = positionlocks repetitionpositions = repetitionpositions genledgerpositions = genledgerpositions partnerpositions = partnerpositions datesfordeferredrevenue = datesfordeferredrevenue itemrelations = itemrelations carddata = carddata extensionin = extensionin withholdingtax = withholdingtax porpayment = porpayment EXCEPTIONS OTHERS = 01.

BAPI_CTRACDOCUMENT_REVERSE CALL FUNCTION 'BAPI_CTRACDOCUMENT_REVERSE' EXPORTING fikey = fikey doc_source_key = docsourcekey reverse_date = reversedate all_repetitions = allrepetitions testrun = testrun documentnumber = object-key-documentnumber post_date = postdate doc_type = doctype clear_reas = clearreas return_reason = returnreason reckeyinfo = reckeyinfo caller_id = caller_id reversemethode = reversemethode "1111599 checkvoidingreason = checkvoidingreason IMPORTING rev_documentnumber = revdocumentnumber return = return EXCEPTIONS OTHERS = 01.

BAPI_CTRACDOCUMENT_REVERSECLR CALL FUNCTION 'BAPI_CTRACDOCUMENT_REVERSECLR' EXPORTING reverse_date = reversedate fikey = fikey clear_reas = clearreas doc_type = doctype documentnumber = object-key-documentnumber IMPORTING rev_documentnumber = revdocumentnumber return = return EXCEPTIONS OTHERS = 01.

BAPI_CTRACDOCUMENT_CHANGE CALL FUNCTION 'BAPI_CTRACDOCUMENT_CHANGE' EXPORTING documentnumber = object-key-documentnumber documentheader = documentheader documentheaderx = documentheaderx IMPORTING return = return TABLES positionlocks = positionlocks repetitionpositionsx = repetitionpositionsx repetitionpositions = repetitionpositions partnerpositionsx = partnerpositionsx partnerpositions = partnerpositions extensionin = extensionin EXCEPTIONS OTHERS = 01.

BAPI_CTRACDOCUMENT_GETLIST CALL FUNCTION 'BAPI_CTRACDOCUMENT_GETLIST' EXPORTING maximumnumberofhits = maximumnumberofhits IMPORTING return = return TABLES documentlist = documentlist referencenumberselection = referencenumberselection reconciliationkeyselection = reconciliationkeyselection documentselection = documentselection EXCEPTIONS OTHERS = 01.

FKK_FPE0_START_TRANSACTION CALL FUNCTION 'FKK_FPE0_START_TRANSACTION' EXPORTING tcode = 'FPE3' opbel = object-key-documentnumber i_call_transaction = 'X' i_process = process IMPORTING e_answer = answer EXCEPTIONS document_not_found = 1 error_message = 2 OTHERS = 3.

FKK_FPE0_START_TRANSACTION CALL FUNCTION 'FKK_FPE0_START_TRANSACTION' EXPORTING tcode = 'FPE3' opbel = object-key-documentnumber i_call_transaction = 'X' i_process = process i_change_id = changeid IMPORTING e_answer = answer EXCEPTIONS document_not_found = 1 error_message = 2 OTHERS = 3.

BALW_BAPIRETURN_GET2 CALL FUNCTION 'BALW_BAPIRETURN_GET2' EXPORTING type = sy-msgty cl = sy-msgid number = sy-msgno par1 = sy-msgv1 par2 = sy-msgv2 par3 = sy-msgv3 par4 = sy-msgv4 IMPORTING return = lasterror.

FKK_WF_ERROR_STORE CALL FUNCTION 'FKK_WF_ERROR_STORE' EXPORTING i_objtype = 'CA_DOC' i_objkey = objkey i_error = lasterror.

FKK_C4EYE_RESET CALL FUNCTION 'FKK_C4EYE_RESET' EXPORTING i_opbel = object-key-documentnumber i_commit_work = ' ' i_change_id = changeid i_uname = username EXCEPTIONS error_message = 1 reset_failed = 2 nothing_to_do = 3.

BALW_BAPIRETURN_GET2 CALL FUNCTION 'BALW_BAPIRETURN_GET2' EXPORTING type = sy-msgty cl = sy-msgid number = sy-msgno par1 = sy-msgv1 par2 = sy-msgv2 par3 = sy-msgv3 par4 = sy-msgv4 IMPORTING return = lasterror.

FKK_WF_ERROR_STORE CALL FUNCTION 'FKK_WF_ERROR_STORE' EXPORTING i_objtype = 'CA_DOC' i_objkey = objkey i_error = lasterror.

FKK_FP08_START_TRANSACTION CALL FUNCTION 'FKK_FP08_START_TRANSACTION' CHANGING c_fkk_rev = c_rev EXCEPTIONS no_reversal_posted = 1 no_reversal_possible = 2 OTHERS = 3.

BALW_BAPIRETURN_GET2 CALL FUNCTION 'BALW_BAPIRETURN_GET2' EXPORTING type = sy-msgty cl = sy-msgid number = sy-msgno par1 = sy-msgv1 par2 = sy-msgv2 par3 = sy-msgv3 par4 = sy-msgv4 IMPORTING return = lasterror.

FKK_WF_ERROR_STORE CALL FUNCTION 'FKK_WF_ERROR_STORE' EXPORTING i_objtype = 'CA_DOC' i_objkey = objkey i_error = lasterror.

FKK_DOCUMENT_CHANGE_FROM_ID CALL FUNCTION 'FKK_DOCUMENT_CHANGE_FROM_ID' EXPORTING documentnumber = object-key-documentnumber changeid = changeid username = username EXCEPTIONS err_not_changed = 1001 OTHERS = 01.

BALW_BAPIRETURN_GET2





CALL FUNCTION 'BALW_BAPIRETURN_GET2' EXPORTING type = sy-msgty cl = sy-msgid number = sy-msgno par1 = sy-msgv1 par2 = sy-msgv2 par3 = sy-msgv3 par4 = sy-msgv4 IMPORTING return = lasterror.

FKK_WF_ERROR_STORE CALL FUNCTION 'FKK_WF_ERROR_STORE' EXPORTING i_objtype = 'CA_DOC' i_objkey = objkey i_error = lasterror.

BAPI_CTRACDOCUMENT_TRANSFER CALL FUNCTION 'BAPI_CTRACDOCUMENT_TRANSFER' EXPORTING to_contract = tocontract posting_date = postingdate currency = currency transfer_reas = transferreas doc_type = doctype fikey = fikey documentnumber = object-key-documentnumber ref_doc_no = refdocno from_buspartner = frombuspartner to_buspartner = tobuspartner from_contract = fromcontract to_cont_acct = tocontacct from_cont_acct = fromcontacct comp_code = companycode business_area = businessarea ref_contract = additionalreference sub_application = subapplication IMPORTING return = return TABLES openitems = openitems createddocs = createddocs EXCEPTIONS OTHERS = 01.

BAPI_CTRACDOCUMENT_WRITEOFF CALL FUNCTION 'BAPI_CTRACDOCUMENT_WRITEOFF' EXPORTING application_fields = applicationfields transfer_to_coll = transfertocoll no_checks = nochecks charge_off_reason = chargeoffreason fikey = fikey doc_type = doctype currency = currency posting_date = postingdate documentnumber = object-key-documentnumber created_by = createdby "924066 IMPORTING return = return ret_documentnumber = retdocumentnumber TABLES openitems = openitems EXCEPTIONS OTHERS = 01.

FKK_WF_ERROR_GET CALL FUNCTION 'FKK_WF_ERROR_GET' EXPORTING i_objtype = 'CA_DOC' i_objkey = objkey IMPORTING e_error = lasterror EXCEPTIONS OTHERS = 2.



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