SAP Reports / Programs | Sales and Distribution | Billing(SD-BIL) SAP SD

RVAKR002 SAP ABAP Report - Accrued Income. Cancel accrual billing documents







RVAKR002 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 RVAKR002 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 RVAKR002. "Basic submit
SUBMIT RVAKR002 AND RETURN. "Return to original report after report execution complete
SUBMIT RVAKR002 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: P_VKORG = Sales organization
Selection Text: P_VBELN = Billing document number
Selection Text: P_STEU2 = Current date is billing date
Selection Text: P_STEU1 = Create billing documents
Selection Text: P_POSNR = Billing item
Selection Text: P_PERIOL = ?...(P_PERIOL)
Selection Text: P_PERIOH = Month
Selection Text: P_GJAHR = Year
Selection Text: P_FKART = Billing Type
Selection Text: P_FAABG = Accrual billing type
Title: Accrued Income. Cancel accrual billing documents
Text Symbol: S05 = Month
Text Symbol: S04 = Control data
Text Symbol: S03 = Accrual periods
Text Symbol: S02 = Billing documents to be accrued
Text Symbol: S01 = Organizational data
Text Symbol: L09 = Cancellation accrual
Text Symbol: L08 = Items
Text Symbol: L07 = Per
Text Symbol: L06 = Year
Text Symbol: L05 = Collective processing
Text Symbol: L04 = Error message
Text Symbol: L03 = Item
Text Symbol: L02 = Billing document number
Text Symbol: L01 = No.
Text Symbol: K05 = No error log exists for the accruals
Text Symbol: K04 = No billing documents were created
Text Symbol: K03 = No error log available for billing documents
Text Symbol: K02 = Created billing documents
Text Symbol: K01 = Error log: billing
Text Symbol: K00 = Error log: accrual
Text Symbol: 300 = Incorrect selection of cancellation periods & & & &.
Text Symbol: 203 = Accrual has been canceled by & &
Text Symbol: 202 = Selection data is missing.
Text Symbol: 112 = Period & is not between 1 and 12
Text Symbol: 106 = Billing item does not exist.
Text Symbol: 105 = The last period & & differs from the selection requirements & &.
Text Symbol: 104 = Billing header is missing for the accrual





Text Symbol: 102 = Billing document has been cancelled. All accruals have been or will be cancelled.
Text Symbol: 100 = Billing doc.to be accrued: cancelled. Cancellation accrual billing doc.not required


INCLUDES used within this REPORT RVAKR002

INCLUDE RVVBTYP.


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:

NUMBER_GET_NEXT CALL FUNCTION 'NUMBER_GET_NEXT' EXPORTING NR_RANGE_NR = TVSA-NUMKI OBJECT = 'RV_SAMMG' IMPORTING NUMBER = RV50S-SAMMG.

GN_INVOICE_CREATE CALL FUNCTION 'GN_INVOICE_CREATE' EXPORTING * DELIVERY_DATE = SY-DATUM INVOICE_DATE = FKDAT * INVOICE_TYPE = 'AF ' * PRICING_DATE = XKOMFKGN-FKDAT VBSK_I = VBSK WITH_POSTING = POSTING IMPORTING VBSK_E = VBSK TABLES XKOMFKGN = XKOMFKGN XKOMFKKO = XKOMFKKO XKOMFK = XKOMFK XKOMV = XKOMV XTHEAD = XTHEAD XVBFS = XVBFS XVBPA = XVBPA XVBRK = XVBRK XVBRP = XVBRP XVBSS = XVBSS.



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