SAP Reports / Programs | Financial Accounting | Localization(FI-LOC) SAP FI

J_3RSINVOICEF01 SAP ABAP INCLUDE - Export sales forms







J_3RSINVOICEF01 is a standard ABAP INCLUDE 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 J_3RSINVOICEF01 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 J_3RSINVOICEF01. "Basic submit
SUBMIT J_3RSINVOICEF01 AND RETURN. "Return to original report after report execution complete
SUBMIT J_3RSINVOICEF01 VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


Text pool values


Title: Export sales forms


INCLUDES used within this REPORT J_3RSINVOICEF01

INCLUDE BDCRECXY.


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:

SD_VBAK_ARRAY_READ CALL FUNCTION 'SD_VBAK_ARRAY_READ' TABLES it_vbak_key = lt_sales_keys et_vbak = lt_vbak EXCEPTIONS records_not_found = 1 records_not_requested = 2.

FI_PERIOD_DETERMINE CALL FUNCTION 'FI_PERIOD_DETERMINE' EXPORTING i_budat = ls_vbak-audat IMPORTING e_gjahr = l_gjahr e_monat = l_monat EXCEPTIONS posting_date = 0.

SD_VBAP_READ_WITH_VBELN CALL FUNCTION 'SD_VBAP_READ_WITH_VBELN' EXPORTING i_vbeln = ls_vbak-vbeln TABLES et_vbap = lt_vbap EXCEPTIONS record_not_found = 1.

SD_VBAK_ARRAY_READ CALL FUNCTION 'SD_VBAK_ARRAY_READ' TABLES it_vbak_key = lt_sales_keys et_vbak = lt_vbak EXCEPTIONS records_not_found = 1 records_not_requested = 2.

FI_PERIOD_DETERMINE CALL FUNCTION 'FI_PERIOD_DETERMINE' EXPORTING i_budat = ls_vbak-audat IMPORTING e_gjahr = l_gjahr e_monat = l_monat EXCEPTIONS posting_date = 0.

SD_VBAP_ARRAY_READ CALL FUNCTION 'SD_VBAP_ARRAY_READ' TABLES it_vbap_key = lt_sales_item_keys et_vbap = lt_vbap.

FI_PERIOD_DETERMINE CALL FUNCTION 'FI_PERIOD_DETERMINE' EXPORTING i_budat = ls_deliveries-date_doc IMPORTING e_gjahr = l_gjahr e_monat = l_monat EXCEPTIONS posting_date = 0.

FI_PERIOD_DETERMINE CALL FUNCTION 'FI_PERIOD_DETERMINE' EXPORTING i_budat = ls_invoices-date_doc IMPORTING e_gjahr = l_gjahr e_monat = l_monat EXCEPTIONS posting_date = 0.

FI_PERIOD_DETERMINE CALL FUNCTION 'FI_PERIOD_DETERMINE' EXPORTING i_budat = ls_documents-date_doc IMPORTING e_gjahr = l_gjahr EXCEPTIONS posting_date = 0.

FI_PERIOD_DETERMINE CALL FUNCTION 'FI_PERIOD_DETERMINE' EXPORTING i_budat = ls_bseg-augdt IMPORTING e_gjahr = l_gjahr EXCEPTIONS posting_date = 0.

FI_PERIOD_DETERMINE CALL FUNCTION 'FI_PERIOD_DETERMINE' EXPORTING i_budat = ls_documents-date_doc IMPORTING e_gjahr = l_gjahr EXCEPTIONS posting_date = 0.

FI_PERIOD_DETERMINE CALL FUNCTION 'FI_PERIOD_DETERMINE' EXPORTING i_budat = pt_total-date_doc_f IMPORTING e_gjahr = l_gjahr EXCEPTIONS posting_date = 0.

CALCULATE_TAX_FROM_NET_AMOUNT CALL FUNCTION 'CALCULATE_TAX_FROM_NET_AMOUNT' EXPORTING i_bukrs = bseg-bukrs i_mwskz = bseg-mwskz i_waers = pt_total-waers_f i_wrbtr = bseg-wrbtr TABLES t_mwdat = t_mwdat.

REUSE_ALV_EXTRACT_SAVE CALL FUNCTION 'REUSE_ALV_EXTRACT_SAVE' EXPORTING is_extract = gs_extract1 i_get_selinfos = gc_on TABLES it_exp01 = pt_total.

REUSE_ALV_EXTRACT_LOAD CALL FUNCTION 'REUSE_ALV_EXTRACT_LOAD' EXPORTING is_extract = gs_extract2 TABLES et_exp01 = pt_total.

FI_PERIOD_DETERMINE CALL FUNCTION 'FI_PERIOD_DETERMINE' EXPORTING i_budat = pt_total-date_doc_f IMPORTING e_gjahr = l_gjahr EXCEPTIONS posting_date = 0.

FI_PERIOD_DETERMINE CALL FUNCTION 'FI_PERIOD_DETERMINE' EXPORTING i_budat = pt_total-date_doc_p IMPORTING e_gjahr = l_gjahr EXCEPTIONS posting_date = 0.

REUSE_ALV_VARIANT_DEFAULT_GET CALL FUNCTION 'REUSE_ALV_VARIANT_DEFAULT_GET' CHANGING cs_variant = p_variant EXCEPTIONS wrong_input = 1 not_found = 2 program_error = 3 OTHERS = 4.

REUSE_ALV_VARIANT_SELECT





CALL FUNCTION 'REUSE_ALV_VARIANT_SELECT' EXPORTING i_dialog = space i_user_specific = l_user_specific it_default_fieldcat = pt_fieldcat i_layout = gs_layout IMPORTING et_fieldcat = lt_fieldcat CHANGING cs_variant = p_variant EXCEPTIONS OTHERS = 1.

REUSE_ALV_GRID_DISPLAY CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY' EXPORTING i_callback_program = g_repid i_callback_pf_status_set = p_callback_pf_status i_callback_user_command = p_callback_user_cmd is_layout = gs_layout it_fieldcat = lt_fieldcat it_special_groups = gt_sp_groups i_save = g_save is_variant = g_variant it_event_exit = lt_event_exit TABLES t_outtab = gt_total_display EXCEPTIONS program_error = 1 OTHERS = 2.

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

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

REUSE_ALV_GRID_LAYOUT_INFO_GET CALL FUNCTION 'REUSE_ALV_GRID_LAYOUT_INFO_GET' IMPORTING et_fieldcat = gt_fieldcat EXCEPTIONS no_infos = 1 program_error = 2 OTHERS = 3.

REUSE_ALV_GRID_LAYOUT_INFO_GET CALL FUNCTION 'REUSE_ALV_GRID_LAYOUT_INFO_GET' IMPORTING es_variant = g_variant EXCEPTIONS no_infos = 1 program_error = 2 OTHERS = 3.

POPUP_DISPLAY_TEXT CALL FUNCTION 'POPUP_DISPLAY_TEXT' EXPORTING popup_title = text-007 text_object = 'J_3RSINVOICE_LEGEND'.

REUSE_ALV_GRID_DISPLAY CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY' EXPORTING i_callback_program = g_repid i_structure_name = 'FAMTV' i_callback_pf_status_set = 'SET_STATUS_ALV1' i_callback_user_command = 'USER_COMMAND1' i_save = g_save TABLES t_outtab = gt_gtd EXCEPTIONS program_error = 1 OTHERS = 2.

REUSE_ALV_GRID_LAYOUT_INFO_GET CALL FUNCTION 'REUSE_ALV_GRID_LAYOUT_INFO_GET' IMPORTING et_fieldcat = gt_fieldcat EXCEPTIONS no_infos = 1 program_error = 2 OTHERS = 3.

REUSE_ALV_GRID_DISPLAY CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY' EXPORTING i_callback_program = g_repid i_callback_pf_status_set = 'SET_STATUS_ALV2' i_callback_user_command = 'USER_COMMAND2' is_layout = gs_layout it_fieldcat = gt_fieldcat it_special_groups = gt_sp_groups i_save = g_save TABLES t_outtab = gt_total_display_det EXCEPTIONS program_error = 1 OTHERS = 2.

REUSE_ALV_GRID_LAYOUT_INFO_GET CALL FUNCTION 'REUSE_ALV_GRID_LAYOUT_INFO_GET' IMPORTING et_fieldcat = gt_fieldcat es_variant = g_variant EXCEPTIONS no_infos = 1 program_error = 2 OTHERS = 3.

FI_PERIOD_DETERMINE CALL FUNCTION 'FI_PERIOD_DETERMINE' EXPORTING i_budat = ls_total_display-date_doc_f IMPORTING e_gjahr = ls_invoice_list-gjahr EXCEPTIONS posting_date = 0.

POPUP_TO_CONFIRM CALL FUNCTION 'POPUP_TO_CONFIRM' EXPORTING titlebar = text-100 text_question = text-040 IMPORTING answer = l_answer.

FI_PERIOD_DETERMINE CALL FUNCTION 'FI_PERIOD_DETERMINE' EXPORTING i_budat = ls_total_display-date_doc_f IMPORTING e_gjahr = l_gjahr EXCEPTIONS posting_date = 0.

POPUP_TO_CONFIRM CALL FUNCTION 'POPUP_TO_CONFIRM' EXPORTING titlebar = text-100 text_question = text-043 IMPORTING answer = l_answer.

FI_PERIOD_DETERMINE CALL FUNCTION 'FI_PERIOD_DETERMINE' EXPORTING i_budat = ls_total_display-date_doc_f IMPORTING e_gjahr = l_gjahr EXCEPTIONS posting_date = 0.

FI_PERIOD_DETERMINE CALL FUNCTION 'FI_PERIOD_DETERMINE' EXPORTING i_budat = ls_total_display-date_doc_p IMPORTING e_gjahr = l_gjahr EXCEPTIONS posting_date = 0.

POPUP_DISPLAY_TEXT CALL FUNCTION 'POPUP_DISPLAY_TEXT' EXPORTING popup_title = text-007 text_object = 'J_3RSINVOICE_LEGEND'.

POPUP_TO_CONFIRM CALL FUNCTION 'POPUP_TO_CONFIRM' EXPORTING titlebar = text-100 text_question = text-031 IMPORTING answer = l_answer.

POPUP_GET_VALUES CALL FUNCTION 'POPUP_GET_VALUES' EXPORTING popup_title = text-080 IMPORTING returncode = l_answer TABLES fields = lt_fields.




NUMBER_GET_NEXT CALL FUNCTION 'NUMBER_GET_NEXT' EXPORTING nr_range_nr = '1' object = 'J_3RSEXP' IMPORTING number = l_docno EXCEPTIONS interval_not_found = 1 number_range_not_intern = 2 object_not_found = 3 interval_overflow = 6 OTHERS = 7.

FI_PERIOD_DETERMINE CALL FUNCTION 'FI_PERIOD_DETERMINE' EXPORTING i_budat = ls_total_display_det-date_doc_f IMPORTING e_gjahr = l_gjahr EXCEPTIONS posting_date = 0.

POPUP_GET_VALUES CALL FUNCTION 'POPUP_GET_VALUES' EXPORTING popup_title = text-080 IMPORTING returncode = l_answer TABLES fields = lt_fields.

J_3RF_GLTOOL_BDC_OPEN_GROUP CALL FUNCTION 'J_3RF_GLTOOL_BDC_OPEN_GROUP' EXPORTING user = sy-uname group = l_groupid EXCEPTIONS OTHERS = 1.

J_3RF_GLTOOL_SET_SPLIT CALL FUNCTION 'J_3RF_GLTOOL_SET_SPLIT' EXPORTING iv_bukrs = selbukrs it_item_key = lt_item_key is_vat_amount = ls_vat_amout.

J_3RF_GLTOOL_BDC_INSERT CALL FUNCTION 'J_3RF_GLTOOL_BDC_INSERT' EXPORTING tcode = 'FB01' noend_session = noend TABLES dynprotab = bdcdata EXCEPTIONS OTHERS = 1.

J_3RF_GLTOOL_BDC_CLOSE_GROUP CALL FUNCTION 'J_3RF_GLTOOL_BDC_CLOSE_GROUP' EXCEPTIONS OTHERS = 1.

NUMBER_GET_NEXT CALL FUNCTION 'NUMBER_GET_NEXT' EXPORTING nr_range_nr = '1' object = 'J_3RSEXP' IMPORTING number = l_docno EXCEPTIONS interval_not_found = 1 number_range_not_intern = 2 object_not_found = 3 interval_overflow = 6 OTHERS = 7.

POPUP_GET_VALUES CALL FUNCTION 'POPUP_GET_VALUES' EXPORTING popup_title = text-080 IMPORTING returncode = l_answer TABLES fields = lt_fields.

BDC_OPEN_GROUP CALL FUNCTION 'BDC_OPEN_GROUP' EXPORTING user = sy-uname group = l_groupid EXCEPTIONS OTHERS = 1.

BDC_INSERT CALL FUNCTION 'BDC_INSERT' EXPORTING tcode = 'FB08' TABLES dynprotab = bdcdata EXCEPTIONS OTHERS = 1.

BDC_CLOSE_GROUP CALL FUNCTION 'BDC_CLOSE_GROUP' EXCEPTIONS OTHERS = 1.

F4IF_INT_TABLE_VALUE_REQUEST CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST' EXPORTING retfield = 'GZOLX' value_org = 'S' TABLES value_tab = gt_gzolx EXCEPTIONS "#EC FB_RC parameter_error = 1 no_values_found = 2 OTHERS = 3.



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