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

RGJVUDOC SAP ABAP Report - Compare FI/CO/MM document and JV document







RGJVUDOC 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 RGJVUDOC 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

GJ97 - Compare FI with JV document


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 RGJVUDOC. "Basic submit
SUBMIT RGJVUDOC AND RETURN. "Return to original report after report execution complete
SUBMIT RGJVUDOC 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: S_MBLNR = MM document number
Selection Text: S_CBLNR = CO document number
Selection Text: S_BELNR = FI document number
Selection Text: P_ORIG = Display original document
Selection Text: P_LT = Display split line totals
Selection Text: P_JV = Display JV document
Selection Text: P_GR = Display split line in groups
Selection Text: P_GJAHR = Document year
Selection Text: P_EC = Display equity change document
Selection Text: P_DT = Display document totals
Selection Text: P_BUKRS = Company code
Selection Text: P_BILL = Display billing document
Title: Compare FI/CO/MM document and JV document
Text Symbol: 504 = INTL#
Text Symbol: 503 = N
Text Symbol: 502 = C
Text Symbol: 501 = O
Text Symbol: 500 = P
Text Symbol: 401 = MM DOCUMENT
Text Symbol: 400 = CO DOCUMENT
Text Symbol: 302 = Billing document does not exist
Text Symbol: 300 = BILLING DOCUMENT
Text Symbol: 202 = JV document does not exist
Text Symbol: 200 = JV DOCUMENT
Text Symbol: 142 = Ident
Text Symbol: 141 = TKey
Text Symbol: 140 = CCode
Text Symbol: 139 = XREF1
Text Symbol: 137 = Mvt
Text Symbol: 136 = PO Number
Text Symbol: 601 = Transaction currency:
Text Symbol: 602 = Currency 1:
Text Symbol: 603 = Currency 2:
Text Symbol: 604 = Local currency:
Text Symbol: 605 = Local currency 2:
Text Symbol: 606 = Local currency 3:
Text Symbol: 608 = Venture:
Text Symbol: 609 = Equity Group:





Text Symbol: 610 = Rec indicator:
Text Symbol: 611 = G/L Account:
Text Symbol: 613 = Partner:
Text Symbol: 614 = Billing indicator:
Text Symbol: 615 = RDPOM
Text Symbol: 616 = Inv. Month
Text Symbol: 617 = RDPOM
Text Symbol: B01 = Selection criteria
Text Symbol: B02 = Processing options
Text Symbol: 135 = Plnt
Text Symbol: 105 = G/L Acct
Text Symbol: 104 = RI
Text Symbol: 103 = EqG
Text Symbol: 102 = Vent
Text Symbol: 101 = LNo
Text Symbol: 100 = FI DOCUMENT
Text Symbol: 019 = Document total
Text Symbol: 018 = Control. area:
Text Symbol: 015 = Ref. doc. cat:
Text Symbol: 014 = Document categ.:
Text Symbol: 013 = Ref. doc. no:
Text Symbol: 012 = Currency:
Text Symbol: 011 = CPU time:
Text Symbol: 010 = Transl. date:
Text Symbol: 009 = Document number:
Text Symbol: 008 = CPU date:
Text Symbol: 007 = Currency/Rate:
Text Symbol: 006 = Period:
Text Symbol: 005 = Posting date:
Text Symbol: 004 = User:
Text Symbol: 003 = Company code:
Text Symbol: 002 = Document type:
Text Symbol: 001 = Document date:
Text Symbol: 106 = TCurr
Text Symbol: 134 = Material
Text Symbol: 133 = Unt
Text Symbol: 132 = Quantity
Text Symbol: 127 = POM
Text Symbol: 126 = Bill.Month





Text Symbol: 125 = Allocation
Text Symbol: 124 = BaseDate
Text Symbol: 123 = PK
Text Symbol: 122 = Cost el.
Text Symbol: 120 = Partner
Text Symbol: 119 = GC Amount
Text Symbol: 118 = GCurr
Text Symbol: 117 = OrRI
Text Symbol: 116 = Net charge
Text Symbol: 115 = DC
Text Symbol: 114 = Tax
Text Symbol: 113 = SEI
Text Symbol: 112 = Account
Text Symbol: 111 = BI
Text Symbol: 110 = Cost object
Text Symbol: 109 = LC Amount
Text Symbol: 108 = LCurr
Text Symbol: 107 = TC Amount


INCLUDES used within this REPORT RGJVUDOC

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:

SELECT_OPTIONS_RESTRICT CALL FUNCTION 'SELECT_OPTIONS_RESTRICT' "737159 EXPORTING RESTRICTION = RESTRICT * DB = ' ' EXCEPTIONS TOO_LATE = 1 REPEATED = 2 SELOPT_WITHOUT_OPTIONS = 5 SELOPT_WITHOUT_SIGNS = 6 INVALID_SIGN = 7 EMPTY_OPTION_LIST = 9 INVALID_KIND = 10 REPEATED_KIND_A = 11 OTHERS = 12.

JV_AUTHORITY_CHECK_REP CALL FUNCTION 'JV_AUTHORITY_CHECK_REP' EXPORTING activity = 'A5' bukrs = p_bukrs.

READ_DOCUMENT_HEADER call function 'READ_DOCUMENT_HEADER' "637338 exporting "637338 belnr = P_BELNR "637338 bukrs = T001-BUKRS "637338 gjahr = p_gjahr "637338 xarch = fi_arch "637338 I_XSUPPRESSDIALOG = 'X' "737159 importing "637338 e_bkpf = bkpf "637338 E_ARCHIVED = fi_arch "637338 exceptions "637338 exit = 1 "637338 NOT_FOUND = 2 "637338 ARCHIVE_CANCEL = 3. "637338

CO_DOCUMENT_READ_FROM_ARCHIVE CALL FUNCTION 'CO_DOCUMENT_READ_FROM_ARCHIVE' EXPORTING i_kokrs = tka02-kokrs i_belnr = s_cblnr-low IMPORTING E_COBK = l_cobk TABLES T_COEP = t_coep * T_COEPL = * T_COEPR = EXCEPTIONS NOT_FOUND = 1 OTHERS = 2 .

FI_DOCUMENT_RECORD CALL FUNCTION 'FI_DOCUMENT_RECORD' EXPORTING i_awref = l_awref_old i_awtyp = l_awtyp_old i_aworg = l_aworg_old TABLES t_documents = int_or_docnr.

FI_DOCUMENT_RECORD CALL FUNCTION 'FI_DOCUMENT_RECORD' EXPORTING i_awref = acctit-awref i_awtyp = acctit-awtyp i_aworg = acctit-aworg TABLES t_documents = int_or_docnr.

READ_DOCUMENT_HEADER call function 'READ_DOCUMENT_HEADER' exporting belnr = bkpf-belnr bukrs = int_or_docnr-bukrs gjahr = acctit-gjahr xarch = fi_arch I_XSUPPRESSDIALOG = 'X' importing e_bkpf = bkpf E_ARCHIVED = fi_arch exceptions exit = 1 NOT_FOUND = 2 ARCHIVE_CANCEL = 3.

FI_DOCUMENT_READ_SINGLE * call function 'FI_DOCUMENT_READ_SINGLE' "637338 * exporting "637338 * i_bukrs = FI_BUKRS "637338 * i_belnr = FI_BELNR "637338 * i_gjahr = FI_GJAHR "637338 * i_group_xread = l_group_xreadall "637338 * i_xuse_database = space "637338 * i_xsuppressdialog = ON "637338 * tables "637338 * c_abkpf = l_archbkpf "637338 * c_bseg = T_BSEG "637338 * exceptions "637338 * others = 99. "637338

FAGL_GET_ARCH_FI_DOCUMENT call function 'FAGL_GET_ARCH_FI_DOCUMENT' "928034 exporting "928034 i_bukrs = fi_bukrs "928034 i_belnr = fi_belnr "928034 i_gjahr = fi_gjahr "928034 tables "928034 t_bseg = t_bseg "928034 exceptions "928034 others = 99. "928034




K_CURRTYP_AND_VAL_GET CALL FUNCTION 'K_CURRTYP_AND_VAL_GET' "399152 EXPORTING i_cvtyp = t001a-curtp IMPORTING e_currtyp = l_curtp * E_VALUTYP = EXCEPTIONS illegal_cvtyp = 1 OTHERS = 2.

G_CURRENCY_FROM_CT_GET CALL FUNCTION 'G_CURRENCY_FROM_CT_GET' EXPORTING * CT = T001A-CURTP "399152 ct = l_curtp "399152 bukrs = t001-bukrs IMPORTING currency = w_curr2 EXCEPTIONS OTHERS = 2.

K_CURRTYP_AND_VAL_GET CALL FUNCTION 'K_CURRTYP_AND_VAL_GET' "399152 EXPORTING i_cvtyp = t001a-curtp2 IMPORTING e_currtyp = l_curtp2 * E_VALUTYP = EXCEPTIONS illegal_cvtyp = 1 OTHERS = 2.

G_CURRENCY_FROM_CT_GET CALL FUNCTION 'G_CURRENCY_FROM_CT_GET' EXPORTING * CT = T001A-CURTP2 "399152 ct = l_curtp2 "399152 bukrs = t001-bukrs IMPORTING currency = w_curr3 EXCEPTIONS OTHERS = 2.

OBJECT_KEY_GET CALL FUNCTION 'OBJECT_KEY_GET' TABLES onr_tab = obj_tab.

K_OBJECTS_MASTER_READ CALL FUNCTION 'K_OBJECTS_MASTER_READ' TABLES coiob_tab = t_coiob i_periods = it_periods.

JV_SET_LEDGER_CURR_TABLE CALL FUNCTION 'JV_SET_LEDGER_CURR_TABLE' EXPORTING rbukrs = table_bukrs TABLES t_ledger_curr = curr_table.

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

OBJECT_KEY_GET CALL FUNCTION 'OBJECT_KEY_GET' TABLES onr_tab = obj_tab.

K_OBJECTS_MASTER_READ CALL FUNCTION 'K_OBJECTS_MASTER_READ' TABLES coiob_tab = t_coiob i_periods = it_periods.



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