RVKRED09 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for Report RVKRED09 performs new credit checks for SD documents, and gives you a range of selection options...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 RVKRED09 into the relevant SAP transactions such as SE38 or SE80
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.
Selection Text: VBELN = Document number
Selection Text: SBGRP = Credit representative group
Selection Text: PROTOCOL = Log?
Selection Text: KNKLI = Credit account
Selection Text: KKBER = Credit control area
Selection Text: GRUPP = Customer credit group
Selection Text: CTLPC = Risk category
Selection Text: CMNUP = Date of next credit check
Selection Text: CMNGV = Next shipping date
Selection Text: CMGST = Overall status
Title: Check credit on SD documents in background
Text Symbol: 006 = Document has not been checked because the release date is still valid
Text Symbol: 005 = Account Doc. Message Credit status
Text Symbol: 004 = Credit check performed for following SD documents
Text Symbol: 003 = Billing document
Text Symbol: 002 = Delivery
Text Symbol: 001 = Order
No INCLUDES are used within this REPORT code!
No SAP DATABASE tables are accessed within this REPORT code!
SD_MESSAGE_HANDLING_FSCM CALL FUNCTION 'SD_MESSAGE_HANDLING_FSCM'.
SD_DELIVERY_CREDIT_RECHECK CALL FUNCTION 'SD_DELIVERY_CREDIT_RECHECK' EXPORTING FLG_UPDATE = 'X' VBELN = VBKRED-VBELN EXCEPTIONS ERROR_MESSAGE = 4.
MESSAGE_TEXT_BUILD CALL FUNCTION 'MESSAGE_TEXT_BUILD' EXPORTING MSGID = SY-MSGID MSGNR = SY-MSGNO MSGV1 = SY-MSGV1 MSGV2 = SY-MSGV2 MSGV3 = SY-MSGV3 MSGV4 = SY-MSGV4 IMPORTING MESSAGE_TEXT_OUTPUT = NEWS-TEXT.
MESSAGE_TEXT_BUILD CALL FUNCTION 'MESSAGE_TEXT_BUILD' EXPORTING MSGID = 'VL' MSGNR = '311' MSGV1 = TEXT-001 MSGV2 = VBKRED-VBELN IMPORTING MESSAGE_TEXT_OUTPUT = NEWS-TEXT.
SD_FIRST_CREDIT_STATUS CALL FUNCTION 'SD_FIRST_CREDIT_STATUS' EXPORTING XVBUK = VBUK IMPORTING STATUS = NEWS-CSTAT.
RV_DOCUMENT_HEAD_STATUS_TEXTS CALL FUNCTION 'RV_DOCUMENT_HEAD_STATUS_TEXTS' EXPORTING VBUK_GELESEN = 'X' VBUK_IN = VBUK WINDOW_SENDEN = SPACE IMPORTING VBSTT_WA = DA_VBSTT.
SD_ORDER_CREDIT_RECHECK CALL FUNCTION 'SD_ORDER_CREDIT_RECHECK' EXPORTING FLG_UPDATE = 'X' VBELN = VBKRED-VBELN EXCEPTIONS ERROR_MESSAGE = 4.
MESSAGE_TEXT_BUILD CALL FUNCTION 'MESSAGE_TEXT_BUILD' EXPORTING MSGID = SY-MSGID MSGNR = SY-MSGNO MSGV1 = SY-MSGV1 MSGV2 = SY-MSGV2 MSGV3 = SY-MSGV3 MSGV4 = SY-MSGV4 IMPORTING MESSAGE_TEXT_OUTPUT = NEWS-TEXT.
MESSAGE_TEXT_BUILD CALL FUNCTION 'MESSAGE_TEXT_BUILD' EXPORTING MSGID = 'V1' MSGNR = '311' MSGV1 = TEXT-001 MSGV2 = VBKRED-VBELN IMPORTING MESSAGE_TEXT_OUTPUT = NEWS-TEXT.
SD_FIRST_CREDIT_STATUS CALL FUNCTION 'SD_FIRST_CREDIT_STATUS' EXPORTING XVBUK = VBUK IMPORTING STATUS = NEWS-CSTAT.
RV_DOCUMENT_HEAD_STATUS_TEXTS CALL FUNCTION 'RV_DOCUMENT_HEAD_STATUS_TEXTS' EXPORTING VBUK_GELESEN = 'X' VBUK_IN = VBUK WINDOW_SENDEN = SPACE IMPORTING VBSTT_WA = DA_VBSTT.
REUSE_ALV_GRID_DISPLAY call function 'REUSE_ALV_GRID_DISPLAY' EXPORTING i_callback_program = g_repid i_callback_pf_status_set = 'HANDLE_EVENT_PF_STATUS' is_layout = ls_layo it_fieldcat = lt_fcat it_events = lt_events TABLES t_outtab = alv_news EXCEPTIONS program_error = 1 others = 2.
REUSE_ALV_FIELDCATALOG_MERGE CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' EXPORTING i_program_name = g_repid i_structure_name = gc_strct CHANGING ct_fieldcat = ct_fcat EXCEPTIONS inconsistent_interface = 1 program_error = 2 OTHERS = 3.
REUSE_ALV_COMMENTARY_WRITE call function 'REUSE_ALV_COMMENTARY_WRITE' EXPORTING it_list_commentary = lt_line.
Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.
RVKRED09 - Check credit on SD documents in background RVKRED09 - Check credit on SD documents in background RVKRED08 - Credit check on sales orders that reach the credit horizon RVKRED08 - Credit check on sales orders that reach the credit horizon RVKRED07 - SD: Reorganization of Credit Values after Update Errors RVKRED07 - SD: Reorganization of Credit Values after Update Errors