SAP Reports / Programs | Cross-Application Components | Joint Venture und Production Sharing Accounting(CA-JVA) SAP CA

RGJV_DOC_COMPARE_DB SAP ABAP INCLUDE - JV document compare - DB reads







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


Text pool values


Title: JV document compare - DB reads


INCLUDES used within this REPORT RGJV_DOC_COMPARE_DB

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:

READ_DOCUMENT_HEADER call function 'READ_DOCUMENT_HEADER' exporting belnr = pv_belnr bukrs = pv_bukrs gjahr = pv_gjahr xarch = lv_xarch I_XSUPPRESSDIALOG = 'X' importing E_BKPF = gs_fidoc-hdr E_ARCHIVED = lv_xarch exceptions exit = 1 NOT_FOUND = 2 ARCHIVE_CANCEL = 3.

CO_DOCUMENT_READ_FROM_ARCHIVE CALL FUNCTION 'CO_DOCUMENT_READ_FROM_ARCHIVE' EXPORTING i_kokrs = pv_kokrs i_belnr = pv_belnr IMPORTING E_COBK = gs_codoc-hdr * TABLES * T_COEP = t_coep * T_COEPL = * T_COEPR = EXCEPTIONS NOT_FOUND = 1 OTHERS = 2 .

ASH_MM_MATBEL_READ call function 'ASH_MM_MATBEL_READ' "#EC * EXPORTING I_BORIDENT = I_BORIDENT TABLES ET_MKPF = i_mkpf ET_MSEG = i_mseg * ET_SADR = XSADR * ET_ADDR1_VAL = XADDR1_VAL EXCEPTIONS NOT_IN_INFOSTRUCTURE = 1 NOT_IN_ARCHIVE = 2 NO_INSTRUCTURE_DEFINED = 3 OTHERS = 4.

GJV_ARCHIVE_READ * CALL FUNCTION 'GJV_ARCHIVE_READ' * EXPORTING * i_selections = lT_FRANGE * tables * t_jvso1 = lt_jvso1.

READ_DOCUMENT_HEADER call function 'READ_DOCUMENT_HEADER' exporting belnr = pv_belnr bukrs = pv_bukrs gjahr = pv_gjahr xarch = lv_xarch I_XSUPPRESSDIALOG = 'X' importing E_BKPF = ps_fidoc-hdr E_ARCHIVED = lv_xarch exceptions exit = 1 NOT_FOUND = 2 ARCHIVE_CANCEL = 3.

FAGL_GET_ARCH_FI_DOCUMENT call function 'FAGL_GET_ARCH_FI_DOCUMENT' exporting i_bukrs = pv_bukrs i_belnr = pv_belnr i_gjahr = pv_gjahr tables t_bseg = i_bseg exceptions others = 99.

CO_DOCUMENT_READ_FROM_ARCHIVE CALL FUNCTION 'CO_DOCUMENT_READ_FROM_ARCHIVE' EXPORTING i_kokrs = pv_kokrs i_belnr = pv_belnr IMPORTING E_COBK = ps_codoc-hdr TABLES T_COEP = i_coep * T_COEPL = * T_COEPR = EXCEPTIONS NOT_FOUND = 1 OTHERS = 2 .

ASH_MM_MATBEL_READ call function 'ASH_MM_MATBEL_READ' "#EC * EXPORTING I_BORIDENT = I_BORIDENT TABLES ET_MKPF = i_mkpf ET_MSEG = i_mseg * ET_SADR = XSADR * ET_ADDR1_VAL = XADDR1_VAL EXCEPTIONS NOT_IN_INFOSTRUCTURE = 1 NOT_IN_ARCHIVE = 2 NO_INSTRUCTURE_DEFINED = 3 OTHERS = 4.

GJV_ARCHIVE_READ CALL FUNCTION 'GJV_ARCHIVE_READ' EXPORTING i_selections = lT_FRANGE tables t_jvso1 = lt_jvso1.

EC_PCA_SELECT_FROM_ARCHIVE CALL FUNCTION 'EC_PCA_SELECT_FROM_ARCHIVE' EXPORTING i_selections = lt_selections[] i_field_catalogs = lt_field_catalogs[] i_obligatory_fields = lt_oblfields[] IMPORTING e_glpca = lt_glpca_curr EXCEPTIONS no_infostruc_found = 1.



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