SAP Reports / Programs | Tax Reporting | Industry Solution Oil | Tax Reporting(IS-OIL-PRA-REP-TAX) SAP IS

ROIUX5_OKGP SAP ABAP Report - Tax 2.0 - Oklahoma Gross Production Tax Report







ROIUX5_OKGP 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 ROIUX5_OKGP 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 ROIUX5_OKGP. "Basic submit
SUBMIT ROIUX5_OKGP AND RETURN. "Return to original report after report execution complete
SUBMIT ROIUX5_OKGP 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_PUN = D .
Selection Text: S_PRD_DT = D .
Selection Text: S_OTHER = D .
Selection Text: S_OKPDCD = D .
Selection Text: S_OIL_CL = D .
Selection Text: S_NGPACD = D .
Selection Text: S_GAS_CD = D .
Selection Text: S_DC_IND = D .
Selection Text: S_COUNTY = D .
Selection Text: P_ROUND = Rounded MCFs (No Edit Func)
Title: Tax 2.0 - Oklahoma Gross Production Tax Report
Text Symbol: 025 = Transaction set control number must have
Text Symbol: 026 = Adjustment
Text Symbol: 027 = Select delta allocation method
Text Symbol: 028 = 1 - Default
Text Symbol: 029 = 2 - Gross Volume Basis
Text Symbol: 030 = 3 - Taxable Volume Basis
Text Symbol: 031 = 4 - Taxable Value Basis
Text Symbol: 032 = 5 - Manual
Text Symbol: 033 = Suspend Confirmation
Text Symbol: 034 = Proceed with suspension?
Text Symbol: 035 = Report Summary
Text Symbol: 036 = min length of 4
Text Symbol: 038 = County Name
Text Symbol: 001 = Invalid value
Text Symbol: 002 = Direct execution not allowed
Text Symbol: 003 = No summary found
Text Symbol: 004 = Please select at least 1 booking entry
Text Symbol: 005 = Entries successfully suspended
Text Symbol: 006 = Please adjust 1 booking entry at a time
Text Symbol: 007 = Operation cancelled
Text Symbol: 008 = Adjustments successfully made
Text Symbol: 009 = Error allocating complete adjustment
Text Symbol: 010 = Adjustments successfully removed
Text Symbol: 011 = No footing problems detected
Text Symbol: 012 = Footing corrections successfully made
Text Symbol: 013 = Please select only 1 entry
Text Symbol: 014 = PUN Edit Report Executed?





Text Symbol: 015 = Proceed to Finalize the report?
Text Symbol: 016 = No info available for run ID
Text Symbol: 017 = No info available for report ID
Text Symbol: 018 = Download Location
Text Symbol: 019 = I/C Control Number
Text Symbol: 020 = Acknowledge Request
Text Symbol: 021 = Group Control Number
Text Symbol: 022 = Transaction Set Control Number
Text Symbol: 024 = EDI Control Variables


INCLUDES used within this REPORT ROIUX5_OKGP

INCLUDE ROIUX3_COMMON.


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:

REUSE_ALV_FIELDCATALOG_MERGE CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' EXPORTING i_structure_name = 'ROIUX5_OKGP_ALV_0150' CHANGING ct_fieldcat = gt_fieldcat EXCEPTIONS inconsistent_interface = 1 program_error = 2 OTHERS = 3.

REUSE_ALV_GRID_DISPLAY CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY' EXPORTING i_grid_title = gf_title is_layout = gs_layout it_fieldcat = gt_fieldcat i_save = 'A' is_variant = gs_variant TABLES t_outtab = gt_summary EXCEPTIONS program_error = 1 OTHERS = 2.

OIUX3_TX_CONVERT_FILING_PER CALL FUNCTION 'OIUX3_TX_CONVERT_FILING_PER' EXPORTING filing_period = -production_date IMPORTING date = lf_sales_dt.

OIUX3_TX_CONVERT_FILING_PER CALL FUNCTION 'OIUX3_TX_CONVERT_FILING_PER' EXPORTING filing_period = -production_date IMPORTING date = lf_sales_dt.

POPUP_TO_CONFIRM CALL FUNCTION 'POPUP_TO_CONFIRM' EXPORTING titlebar = 'Suspend Confirmation'(033) text_question = 'Proceed with suspension?'(034) display_cancel_button = ' ' IMPORTING answer = lf_answer EXCEPTIONS text_not_found = 1 OTHERS = 2.

OIUX5_OK_ADJUST_RPDT CALL FUNCTION 'OIUX5_OK_ADJUST_RPDT' EXPORTING original = IMPORTING delta = ls_delta EXCEPTIONS cancel = 1 OTHERS = 2.

POPUP_TO_DECIDE_LIST CALL FUNCTION 'POPUP_TO_DECIDE_LIST' EXPORTING textline1 = lf_text titel = 'Adjustment'(026) IMPORTING answer = lf_answer TABLES t_spopli = lt_option EXCEPTIONS not_enough_answers = 1 too_much_answers = 2 too_much_marks = 3 OTHERS = 4.

OIUX5_OK_MANUAL_ADJUST CALL FUNCTION 'OIUX5_OK_MANUAL_ADJUST' CHANGING prdt = lt_prdt[] EXCEPTIONS cancel = 1 OTHERS = 2.

OIUX3_TX_CONVERT_FILING_PER CALL FUNCTION 'OIUX3_TX_CONVERT_FILING_PER' EXPORTING filing_period = p_line-production_date IMPORTING date = lf_sales_dt.

OIUXC_EXPORT_XXL CALL FUNCTION 'OIUXC_EXPORT_XXL' EXPORTING p_tabname = 'ROIUX5_OK_RPDT_TC' CHANGING pt_tc = gt_ok_rpdt EXCEPTIONS failed = 1.

POPUP_GET_VALUES CALL FUNCTION 'POPUP_GET_VALUES' EXPORTING popup_title = 'EDI Control Variables'(024) IMPORTING returncode = lf_answer TABLES fields = lt_fields EXCEPTIONS error_in_fields = 1 OTHERS = 2.

OIUX5_OK_EDI_813_ISA CALL FUNCTION 'OIUX5_OK_EDI_813_ISA' EXPORTING iv_control_number = lf_ic_control_number iv_acknowledge_request = lf_acknowledge_request iv_fein = ls_rpt_prof-fein_ssn iv_tf_ind = oiux3_run_hdr-tf_ind IMPORTING ev_line = lf_line.

OIUX5_OK_EDI_813_GS CALL FUNCTION 'OIUX5_OK_EDI_813_GS' EXPORTING iv_control_number = lf_gs_control_number iv_fein = ls_rpt_prof-fein_ssn IMPORTING ev_line = lf_line.

OIUX3_TX_EDI_813_ST





CALL FUNCTION 'OIUX3_TX_EDI_813_ST' EXPORTING control_number = lf_st_control_number IMPORTING line = lf_line.

OIUX5_OK_EDI_813_BTI CALL FUNCTION 'OIUX5_OK_EDI_813_BTI' EXPORTING is_rpt_prof = ls_rpt_prof is_oiux3_run_hdr = oiux3_run_hdr IMPORTING ev_line = lf_line.

OIUX5_OK_EDI_813_DTM CALL FUNCTION 'OIUX5_OK_EDI_813_DTM' IMPORTING ev_line = lf_line.

OIUX5_OK_EDI_813_TIA CALL FUNCTION 'OIUX5_OK_EDI_813_TIA' EXPORTING iv_tia01 = gc_val8000 IMPORTING ev_line = lt_data.

OIUX5_OK_EDI_813_TIA CALL FUNCTION 'OIUX5_OK_EDI_813_TIA' EXPORTING iv_tia01 = gc_val8302 IMPORTING ev_line = lt_data.

OIUX5_OK_EDI_813_TRN " CALL FUNCTION 'OIUX5_OK_EDI_813_TRN' " EXPORTING " iv_trace_number = lf_trace_number " IMPORTING " ev_line = lf_line.

OIUX5_OK_EDI_813_N1 CALL FUNCTION 'OIUX5_OK_EDI_813_N1' EXPORTING iv_n101 = 'TP' iv_tax_payer = ls_rpt_prof-taxpayer_name IMPORTING ev_line = lf_line.

OIUX3_TX_EDI_813_N3 CALL FUNCTION 'OIUX3_TX_EDI_813_N3' EXPORTING street_address = ls_rpt_prof-address_line1 IMPORTING line = lf_line.

OIUX3_TX_EDI_813_N4 CALL FUNCTION 'OIUX3_TX_EDI_813_N4' EXPORTING ort01 = ls_rpt_prof-ort01 regio = ls_rpt_prof-regio pstlz = ls_rpt_prof-pstlz IMPORTING line = lf_line.

OIUX5_OK_EDI_813_PER CALL FUNCTION 'OIUX5_OK_EDI_813_PER' EXPORTING iv_contact_name = ls_rpt_prof-contact_name iv_contact_phone_no = ls_rpt_prof-contact_phone_no IMPORTING ev_line = lf_line.

OIUX5_OK_EDI_813_RPDT CALL FUNCTION 'OIUX5_OK_EDI_813_RPDT' EXPORTING is_rpdt = if_hdr_change = lf_hdr_change IMPORTING ev_lines = lt_lines.

OIUX3_TX_EDI_813_SE CALL FUNCTION 'OIUX3_TX_EDI_813_SE' EXPORTING control_number = lf_st_control_number segment_count = lf_segment_count IMPORTING line = lf_line.

OIUX5_OK_EDI_813_GE CALL FUNCTION 'OIUX5_OK_EDI_813_GE' EXPORTING iv_control_number = lf_gs_control_number IMPORTING ev_line = lf_line.

OIUX3_TX_EDI_813_IEA CALL FUNCTION 'OIUX3_TX_EDI_813_IEA' EXPORTING control_number = lf_ic_control_number IMPORTING line = lf_line.

OIUX3_TX_CONVERT_FILING_PER CALL FUNCTION 'OIUX3_TX_CONVERT_FILING_PER' EXPORTING filing_period = ls_rpdt-production_date IMPORTING date = lv_sales_dt.

OIUX3_TX_CONVERT_FILING_PER CALL FUNCTION 'OIUX3_TX_CONVERT_FILING_PER' EXPORTING filing_period = -production_date IMPORTING date = gs_report_key-sales_dt.

CONVERSION_EXIT_ALPHA_INPUT CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT' EXPORTING input = pf_target IMPORTING output = pf_target.

BAL_LOG_CREATE CALL FUNCTION 'BAL_LOG_CREATE' EXPORTING i_s_log = ls_log IMPORTING e_log_handle = pf_log_handle EXCEPTIONS log_header_inconsistent = 1 OTHERS = 2.

BAL_DB_SAVE CALL FUNCTION 'BAL_DB_SAVE' EXPORTING i_save_all = 'X' i_t_log_handle = lt_log_handles IMPORTING e_new_lognumbers = lt_lognumbers EXCEPTIONS log_not_found = 1 save_not_allowed = 2 numbering_error = 3 OTHERS = 4.

BAL_DB_SEARCH CALL FUNCTION 'BAL_DB_SEARCH' EXPORTING i_s_log_filter = ls_log_filter IMPORTING e_t_log_header = lt_log_header EXCEPTIONS log_not_found = 1 no_filter_criteria = 2 OTHERS = 3.




BAL_DB_LOAD CALL FUNCTION 'BAL_DB_LOAD' EXPORTING i_t_log_header = lt_log_header i_exception_if_already_loaded = space IMPORTING e_t_log_handle = lt_log_handles EXCEPTIONS no_logs_specified = 1 log_not_found = 2 log_already_loaded = 3 OTHERS = 4.

POPUP_TO_CONFIRM CALL FUNCTION 'POPUP_TO_CONFIRM' EXPORTING titlebar = 'PUN Edit Report Executed?'(014) text_question = 'Proceed to Finalize the report?'(015) default_button = '2' display_cancel_button = ' ' IMPORTING answer = lv_answer EXCEPTIONS text_not_found = 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 ROIUX5_OKGP or its description.