SAP Reports / Programs | Cross-Application Components(CA) SAP CA

/OPT/VIM_VANDATA_ONETIME_CLEAN SAP ABAP Report - /OPT/VIMVANDATAONETIMECLEAN







/OPT/VIM_VANDATA_ONETIME_CLEAN 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 /OPT/VIM_VANDATA_ONETIME_CLEAN 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 /OPT/VIM_VANDATA_ONETIME_CLEAN. "Basic submit
SUBMIT /OPT/VIM_VANDATA_ONETIME_CLEAN AND RETURN. "Return to original report after report execution complete
SUBMIT /OPT/VIM_VANDATA_ONETIME_CLEAN 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_BELNR = Ducument Number
Selection Text: S_BUKRS = Company Code
Selection Text: S_GJAHR = Fiscal Year
Text Symbol: 001 = Document Information
Text Symbol: 002 = There is no data need to be updated
Text Symbol: 003 = Total
Text Symbol: 004 = records need to be updated
Text Symbol: 005 = The following records have been updated successfully:
Text Symbol: 006 = The following records were failed update:
Text Symbol: 007 = The following records have no WI data related:


INCLUDES used within this REPORT /OPT/VIM_VANDATA_ONETIME_CLEAN

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:

/PTGWFI/CP_READCONSTANT CALL FUNCTION '/PTGWFI/CP_READCONSTANT' EXPORTING CONSTNAME = 'APPROVAL_WORKFLOW' PRODUCTCODE = 'IAP' IMPORTING CONSTVALUE = vc_ZVALUE EXCEPTIONS CONSTANT_NOT_FOUND = 1 OTHERS = 2.

/PTGWFI/CP_READCONSTANT CALL FUNCTION '/PTGWFI/CP_READCONSTANT' EXPORTING CONSTNAME = 'WORKFLOWTEMPLATE' PRODUCTCODE = 'PIR' IMPORTING CONSTVALUE = vc_pir_wf EXCEPTIONS CONSTANT_NOT_FOUND = 1 OTHERS = 2.

/PTGWFI/CP_READCONSTANT CALL FUNCTION '/PTGWFI/CP_READCONSTANT' EXPORTING CONSTNAME = 'PARKWORKFLOW' PRODUCTCODE = 'LIX' IMPORTING CONSTVALUE = vc_lix_wf EXCEPTIONS CONSTANT_NOT_FOUND = 1 OTHERS = 2.

/OPT/VIM_RPT_GET_PO_INV_DATA CALL FUNCTION '/OPT/VIM_RPT_GET_PO_INV_DATA' EXPORTING doc_no = p_belnr fiscal_year = p_gjahr IMPORTING inv_data = s_po EXCEPTIONS document_not_found = 1 OTHERS = 2.

/OPT/VIM_RPT_PO_INV_UPD_DATA CALL FUNCTION '/OPT/VIM_RPT_PO_INV_UPD_DATA' EXPORTING inv_data = s_po inv_wi_data_hd = i_po update_point = '53' * TABLES * inv_wi_data_detail_mod = inv_wi_data_detail_po EXCEPTIONS error_updating_tables = 1 OTHERS = 2.

/OPT/VIM_RPT_GET_NPO_DATA CALL FUNCTION '/OPT/VIM_RPT_GET_NPO_DATA' EXPORTING comp_code = P_bukrs doc_no = p_belnr fiscal_year = p_gjahr IMPORTING inv_data = s_npo EXCEPTIONS document_not_found = 1 OTHERS = 2.

/OPT/VIM_RPT_NPO_UPD_DATA CALL FUNCTION '/OPT/VIM_RPT_NPO_UPD_DATA' EXPORTING inv_data = s_npo inv_wi_data_hd = i_NPO update_point = '03' * TABLES * inv_wi_data_detail_mod = inv_wi_data_detail EXCEPTIONS error_updating_tables = 1 OTHERS = 2.



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 /OPT/VIM_VANDATA_ONETIME_CLEAN or its description.