SAP Reports / Programs | Sales and Distribution | Master Data | Conditions(SD-MD-CM) SAP SD

RV14ASIM SAP ABAP Report - Document simulation







RV14ASIM is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for This program carries out 'document simulation'...see full standard documentation available for this report. Also check out the submitted Comments related to this SAP report and the details below to see which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC.

If you would like to execute this report or see the full code listing simply enter RV14ASIM 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 RV14ASIM. "Basic submit
SUBMIT RV14ASIM AND RETURN. "Return to original report after report execution complete
SUBMIT RV14ASIM 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_MATNR = Material
Selection Text: P_WERKS = Plant
Selection Text: P_VTWEG = Distribution channel
Selection Text: P_VKORG = Sales organization
Selection Text: P_VARI = Variant
Selection Text: P_SPART = Division
Selection Text: P_PSTYV = Item category
Selection Text: P_PSIMU = Price simulation
Selection Text: P_KUNNR = Sold-to party
Selection Text: P_FKDAT = Pricing date
Selection Text: P_FKARA = Billing Type
Selection Text: P_AUART = Order type
Title: Document simulation
Text Symbol: D05 = Plant :
Text Symbol: D06 = Client :
Text Symbol: D07 = Pricing date :
Text Symbol: O01 = Organizat. Data
Text Symbol: P01 = Billing date from
Text Symbol: P02 = To
Text Symbol: P05 = p05
Text Symbol: P06 = p06
Text Symbol: P07 = Rebate-related
Text Symbol: D04 = Customer :
Text Symbol: D03 = Division :
Text Symbol: D02 = Distribution channel :
Text Symbol: D01 = Sales organzization :
Text Symbol: D00 = Selection Data
Text Symbol: A04 = Default data
Text Symbol: A03 = Material data
Text Symbol: A02 = Customer data
Text Symbol: A01 = Organizational data
Text Symbol: 100 = Display
Text Symbol: 057 = billing due list?
Text Symbol: 056 = Do you want to process the
Text Symbol: P08 = Intercompany Billing
Text Symbol: TT1 = Default data
Text Symbol: S09 = Old
Text Symbol: S08 = New





Text Symbol: S06 = Mode
Text Symbol: S05 = Pricing date
Text Symbol: S02 = Addit. data
Text Symbol: PT5 = Maintain Billing Due Lst
Text Symbol: P10 = Delivery-related
Text Symbol: P09 = Order-related
001 Material Description Pricing unit Net value Curr


INCLUDES used within this REPORT RV14ASIM

INCLUDE RVREUSE_GLOBAL_DATA.
INCLUDE RVREUSE_LOCAL_DATA.
INCLUDE RVREUSE_FORMS.


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:

RS_SET_SELSCREEN_STATUS CALL FUNCTION 'RS_SET_SELSCREEN_STATUS' EXPORTING P_STATUS = 'SELK' TABLES P_EXCLUDE = EXCLUDE EXCEPTIONS OTHERS = 1.

VIEW_KNA1 CALL FUNCTION 'VIEW_KNA1' EXPORTING KUNDE = P_KUNNR IMPORTING ANSCHRIFT = ADDRESS EXCEPTIONS NO_KNA1 = 1 OTHERS = 2.

REUSE_ALV_VARIANT_SELECT CALL FUNCTION 'REUSE_ALV_VARIANT_SELECT' EXPORTING I_DIALOG = 'X' I_USER_SPECIFIC = 'A' I_DEFAULT = SPACE IT_DEFAULT_FIELDCAT = GS_SD_ALV-FIELDCAT[] I_LAYOUT = GS_SD_ALV-LAYOUT IMPORTING ET_FIELDCAT = GS_SD_ALV-FIELDCAT[] ET_SORT = GS_SD_ALV-SORT[] ET_FILTER = GS_SD_ALV-FILTER[] CHANGING CS_VARIANT = GS_SD_ALV-VARIANT EXCEPTIONS WRONG_INPUT = 1 FC_NOT_COMPLETE = 2 NOT_FOUND = 3 PROGRAM_ERROR = 4 OTHERS = 5.

SD_COND_GET_CALL_MODE CALL FUNCTION 'SD_COND_GET_CALL_MODE' EXPORTING I_CALL_MODE = T_PSIMU I_GET_KVORG = 'X' IMPORTING E_KVORG = LF_KVORG.

CONVERSION_EXIT_MATN1_OUTPUT call function 'CONVERSION_EXIT_MATN1_OUTPUT' EXPORTING input = lt_komfkgn-matnr IMPORTING output = lt_komfkgn-matnr.

GN_INVOICE_CREATE CALL FUNCTION 'GN_INVOICE_CREATE' EXPORTING VBSK_I = LD_VBSK ID_KVORG = LF_KVORG ID_NO_DIALOG = 'X' INVOICE_DATE = P_FKDAT PRICING_DATE = P_FKDAT IMPORTING VBSK_E = LD_VBSK TABLES XKOMFK = LT_KOMFK XKOMFKGN = LT_KOMFKGN XKOMFKKO = LT_KOMFKKO XKOMV = LT_KOMV XTHEAD = LT_THEAD XVBFS = LT_VBFS XVBPA = LT_VBPA XVBRK = LT_VBRK XVBRP = LT_VBRP XVBSS = LT_VBSS EXCEPTIONS OTHERS = 1.

RV_INVOICE_REFRESH CALL FUNCTION 'RV_INVOICE_REFRESH' EXPORTING WITH_POSTING = ' ' TABLES XKOMFK = LT_KOMFK XKOMV = LT_KOMV XTHEAD = LT_THEAD XVBFS = LT_VBFS XVBPA = LT_VBPA XVBRK = LT_VBRK XVBRP = LT_VBRP XVBSS = LT_VBSS.

GN_INVOICE_CREATE CALL FUNCTION 'GN_INVOICE_CREATE' EXPORTING VBSK_I = LD_VBSK ID_KVORG = LF_KVORG ID_NO_DIALOG = 'X' INVOICE_DATE = P_FKDAT PRICING_DATE = P_FKDAT IMPORTING VBSK_E = LD_VBSK TABLES XKOMFK = LT_KOMFK XKOMFKGN = LT_KOMFKGN2 XKOMFKKO = LT_KOMFKKO XKOMV = LT_KOMV XTHEAD = LT_THEAD XVBFS = LT_VBFS XVBPA = LT_VBPA XVBRK = LT_VBRK XVBRP = LT_VBRP XVBSS = LT_VBSS EXCEPTIONS OTHERS = 1.

VBFS_TREE_LIST_DISPLAY CALL FUNCTION 'VBFS_TREE_LIST_DISPLAY' TABLES I_VBFS = LT_VBFS EXCEPTIONS OTHERS = 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 RV14ASIM or its description.