SAP Reports / Programs | Cross-Application Components | Joint Venture und Production Sharing Accounting(CA-JVA) SAP CA

MGJB2F10 SAP ABAP INCLUDE - Non Operated Billing Forms Module Pool







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


Text pool values


Title: Non Operated Billing Forms Module Pool


INCLUDES used within this REPORT MGJB2F10

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:

READ_EXCHANGE_RATE call function 'READ_EXCHANGE_RATE' exporting date = l_effdate foreign_currency = l_from_curr local_currency = l_to_curr type_of_rate = exchange_rate_type importing exchange_rate = l_std_exchange_rate foreign_factor = l_from_factor local_factor = l_to_factor exceptions error_message = 1 others = 2.

VALIDATE_FUNDING_CURRENCY * call function 'VALIDATE_FUNDING_CURRENCY' * exporting * i_company = company * i_venture = venture * i_fcurr = fundcur * i_egrup = egrup * importing * e_record = t8jc2 * e_valid = funding_currency_is_valid.

MESSAGES_COUNT CALL FUNCTION 'MESSAGES_COUNT' "664811 exporting "664811 SEVERITY_FROM = 9 "664811 IMPORTING "664811 COUNT = BEFORE "664811 MAX_SEVERITY = SEVERITY. "664811

CJPN_PROJECT_ACCOUNT call function 'CJPN_PROJECT_ACCOUNT' exporting activity = 'RFBU' change_status = ' ' gbbil = ' ' int_num = temp_prps-pspnr katyp = ' ' no_buffer = ' ' rkbuk = ' ' test_bukrs = ' ' test_gsber = ' ' test_kokrs = ' ' exceptions input_error = 1 not_allowed = 2 not_found = 3 no_account_element = 4 no_gsber = 5 no_invoice_element = 6 object_not_found = 7 wrong_bukrs = 8 wrong_gsber = 9 wrong_kokrs = 10.

MESSAGES_COUNT CALL FUNCTION 'MESSAGES_COUNT' "664811 exporting "664811 SEVERITY_FROM = 9 "664811 IMPORTING "664811 COUNT = AFTER "664811 MAX_SEVERITY = SEVERITY. "664811

READ_CUSTOMIZED_MESSAGE CALL FUNCTION 'READ_CUSTOMIZED_MESSAGE' "600748 EXPORTING "600748 I_ARBGB = sy-msgid "600748 I_DTYPE = 'W' "600748 I_MSGNR = l_msgno "600748 IMPORTING "600748 E_MSGTY = l_msgty. "600748

JV_COLLECT_MESSAGE CALL FUNCTION 'JV_COLLECT_MESSAGE' "647545 EXPORTING "647545 MSGID = sy-msgid "647545 MSGNO = l_msgno "647545 STATUS = l_msgty "647545 VAR1 = sy-msgv1 "647545 VAR2 = sy-msgv2 "647545 VAR3 = sy-msgv3 "647545 VAR4 = sy-msgv4 "647545 IMPORTING "647545 MAX_SEVERITY = w_maxsev "647545 EXCEPTIONS "647545 INCOMPLETE = 1 "647545 OTHERS = 2. "647545

ENQUEUE_ET8J4G call function 'ENQUEUE_ET8J4G' exporting mode_t8j4g = 'X' bukrs = t8jvb60-bukrs nobno = t8jvb60-nobno _scope = '2' exceptions foreign_lock = 1 system_failure = 2.

HOLD_NON_OP_BILL call function 'HOLD_NON_OP_BILL' in update task exporting i_update_mode = l_save_or_replace_mode i_non_op_header = int_t8j4g tables t_non_op_detail = int_t8j4h.

ENQUEUE_ET8J4G call function 'ENQUEUE_ET8J4G' exporting mode_t8j4g = 'X' bukrs = t8jvb60-bukrs nobno = t8jvb60-nobno _scope = '2' exceptions foreign_lock = 1 system_failure = 2.

HOLD_NON_OP_BILL call function 'HOLD_NON_OP_BILL' in update task exporting i_update_mode = delete_mode i_non_op_header = int_t8j4g tables t_non_op_detail = int_t8j4h.

NEXT_DYNPRO_SEARCH * CALL FUNCTION 'NEXT_DYNPRO_SEARCH' * EXPORTING * I_BSCHL = POSTKEY * I_BSTAT = ' ' "DOCUMENT STATUS * I_BUKRS = t8jvb60-bukrs * I_MWART = ' ' "TAX TYPE * I_MWSKZB = TAXCODE "TAX CATAGORY * I_TCODE = WS_LIT_C4_FB01 * I_UMSKZ = SEIND * I_winfk = ' ' * IMPORTING * E_DYNNRA = WS_FLD_N4_DYN_NUM * E_MPOOL = WS_FLD_C8_MOD_POOL * E_WINNRZ = WS_FLD_N4_WIN_NUM * EXCEPTIONS * bukrs_nf = 1 * DYNNR_NF = 2 * NO_BSCHL = 3 * NO_BUKRS = 4 * NO_TCODE = 5 * TCODD_NF = 6 * TCODM_NF = 7 * WINNR_NF = 8.

POSTING_INTERFACE_DOCUMENT call function 'POSTING_INTERFACE_DOCUMENT' exporting i_tcode = 'FB01' * i_no_auth = 'X' "503089 "504074 tables t_blntab = xblntab t_ftpost = xftpost t_fttax = xfttax exceptions account_missing = 01 company_code_missing = 02 posting_key_invalid = 03 posting_key_missing = 04 record_type_invalid = 05 transaction_code_invalid = 06 amount_format_error = 07 too_many_line_items = 08 others = 09.

POSTING_INTERFACE_DOCUMENT call function 'POSTING_INTERFACE_DOCUMENT' exporting i_tcode = 'FB01' * i_no_auth = 'X' "503089 "504074 tables t_blntab = xblntab t_ftpost = xftpost t_fttax = xfttax exceptions account_missing = 01 company_code_missing = 02 posting_key_invalid = 03 posting_key_missing = 04 record_type_invalid = 05 transaction_code_invalid = 06 others = 07.

POSTING_INTERFACE_START call function 'POSTING_INTERFACE_START' exporting i_client = sy-mandt i_function = l_function i_group = batch_session_name i_keep = 'X' "keep the process i_mode = 'N' i_update = synchronous i_user = sy-uname exceptions client_incorrect = 01 function_invalid = 02 group_name_missing = 03 mode_invalid = 04 update_invalid = 05 others = 06.

JV_COLLECT_MESSAGE call function 'JV_COLLECT_MESSAGE' exporting msgid = c_msgid msgno = '001' status = 'E' importing max_severity = w_maxsev exceptions others = 1.

JV_COLLECT_MESSAGE call function 'JV_COLLECT_MESSAGE' exporting msgid = c_msgid msgno = '003' status = 'E' importing max_severity = w_maxsev exceptions others = 1.

JV_COLLECT_MESSAGE call function 'JV_COLLECT_MESSAGE' exporting msgid = c_msgid msgno = '005' status = 'E' importing max_severity = w_maxsev exceptions others = 1.

POSTING_INTERFACE_END





call function 'POSTING_INTERFACE_END' * EXPORTING * I_BDCIMMED = ' ' * I_BDCSTRTDT = NO_DATE * I_BDCSTRTTM = NO_TIME exceptions session_not_processable = 01 others = 2.

JV_COLLECT_MESSAGE call function 'JV_COLLECT_MESSAGE' exporting msgid = c_msgid msgno = '009' status = 'E' importing max_severity = w_maxsev exceptions others = 1.

CUSTOMIZED_MESSAGE call function 'CUSTOMIZED_MESSAGE' exporting i_arbgb = 'G4' i_dtype = 'E' i_msgnr = '035' i_var01 = bkpf-belnr.

POPUP_TO_CONFIRM_LOSS_OF_DATA call function 'POPUP_TO_CONFIRM_LOSS_OF_DATA' exporting textline1 = dynamic_text1 textline2 = dynamic_text2 titel = text-002 importing answer = l_answer.

JV_INITIALISE_MESSAGE CALL FUNCTION 'JV_INITIALISE_MESSAGE'. "647545

JV_MESSAGE_SHOW CALL FUNCTION 'JV_MESSAGE_SHOW'. "647545

CALCULATE_EXCHANGE_RATE call function 'CALCULATE_EXCHANGE_RATE' exporting date = l_effective_date foreign_amount = l_from_amount foreign_currency = l_from_currency local_amount = l_to_amount local_currency = l_to_currency type_of_rate = l_type_of_rate importing exchange_rate = l_exchange_rate foreign_factor = l_from_factor local_factor = l_to_factor exceptions no_rate_computable = 01 no_rate_found = 02 rate_too_big = 03 no_factors_found = 04 others = 05.

CONVERT_TO_FOREIGN_CURRENCY call function 'CONVERT_TO_FOREIGN_CURRENCY' exporting date = l_translation_date foreign_currency = l_foreign_curr local_amount = l_local_amount local_currency = l_local_curr rate = l_exchange_rate type_of_rate = 'M' importing foreign_amount = l_foreign_amount exceptions error_message = 1 others = 2.

CONVERT_TO_LOCAL_CURRENCY call function 'CONVERT_TO_LOCAL_CURRENCY' exporting date = l_translation_date foreign_amount = l_foreign_amount foreign_currency = l_foreign_curr local_currency = l_local_curr rate = l_exchange_rate type_of_rate = 'M' importing local_amount = l_local_amount exceptions error_message = 1 others = 2.

POPUP_TO_CONFIRM_STEP call function 'POPUP_TO_CONFIRM_STEP' exporting defaultoption = ' ' textline1 = text-010 textline2 = text-011 titel = text-012 importing answer = answer exceptions others = 1.

G_DISPLAY_SELECTION_DYNPRO call function 'G_DISPLAY_SELECTION_DYNPRO' exporting allow_print = 'X' dynp_title = title sel_title1 = column_heading sel_title2 = space show_also_1 = 'X' width_of_titles = 'X' start_column = '2' importing sel_index = selected_index tables sel_table = g_t052 exceptions no_lines = 02 no_line_picked = 03.

DYNP_VALUES_READ call function 'DYNP_VALUES_READ' exporting dyname = program_name "Current program dynumb = sy-dynnr "Current screen tables dynpfields = dynpfields "Relevant screen fields exceptions others = 999.

G_DISPLAY_SELECTION_DYNPRO call function 'G_DISPLAY_SELECTION_DYNPRO' exporting allow_print = 'X' dynp_title = title sel_title1 = g_t8jo sel_title2 = space show_also_1 = 'X' width_of_titles = 'X' start_column = '2' importing sel_index = t8jo_lines tables sel_table = g_t8jo exceptions no_lines = 02 no_line_picked = 03.

G_DISPLAY_SELECTION_DYNPRO call function 'G_DISPLAY_SELECTION_DYNPRO' exporting allow_print = 'X' dynp_title = title sel_title1 = column_heading sel_title2 = space show_also_1 = 'X' width_of_titles = 'X' start_column = '2' importing sel_index = selected_index tables sel_table = g_t042z exceptions no_lines = 02 no_line_picked = 03.

GET_POSTING_STATUS call function 'GET_POSTING_STATUS' exporting i_posting_key = l_posting_key importing e_posting_status = l_posting_status e_account_type = account_type exceptions no_posting_key = 01.

GET_FIELDSTATUS_FOR_GL_ACCT call function 'GET_FIELDSTATUS_FOR_GL_ACCT' exporting i_account_nr = l_account i_company_code = this_company-bukrs i_account_type = account_type i_sei = l_special_entry_indicator importing e_tax_code = l_tax_code_status e_field_status = l_field_status exceptions no_account_type = 01 no_account = 02 no_company_code = 03 no_master_data = 04 no_status_found = 05.

G_DISPLAY_SELECTION_DYNPRO call function 'G_DISPLAY_SELECTION_DYNPRO' exporting allow_print = 'X' dynp_title = text-030 number_of_rows = 20 sel_title1 = text-031 sel_title2 = text-032 show_also_1 = 'X' without_selection = 'X' tables sel_table = int_doc exceptions no_lines = 02 no_line_picked = 03.

CONVERSION_EXIT_KONPR_OUTPUT call function 'CONVERSION_EXIT_KONPR_OUTPUT' exporting input = l_internal_project_no importing output = external_project_name.

JV_GET_DOCUMENT_DATE call function 'JV_GET_DOCUMENT_DATE' exporting i_date = t8jvb60-budat i_company = t8jvb60-bukrs i_venture = l_nonop_venture-vname i_eqgroup = equity_groups-egrup importing e_docdate = int_200loop-fdate e_t8jg = valid_equity_groups exceptions no_entry = 1.

CONVERSION_EXIT_ALPHA_INPUT call function 'CONVERSION_EXIT_ALPHA_INPUT' exporting input = partn_temp importing output = t8jvb60-partn.




G_DISPLAY_SELECTION_DYNPRO call function 'G_DISPLAY_SELECTION_DYNPRO' exporting allow_print = 'X' dynp_title = title sel_title1 = header_title sel_title2 = space show_also_1 = 'X' width_of_titles = 'X' start_column = '2' importing sel_index = lfbk_lines tables sel_table = g_lfbk exceptions no_lines = 02 no_line_picked = 03.

DYNP_VALUES_READ call function 'DYNP_VALUES_READ' exporting dyname = program_name "Current program dynumb = sy-dynnr "Current screen tables dynpfields = dynpfields "Relevant screen fields exceptions others = 999.

CUSTOMIZED_MESSAGE call function 'CUSTOMIZED_MESSAGE' exporting i_arbgb = 'G4' i_dtype = 'E' i_msgnr = '519' i_var01 = t8jvb60-partn i_var02 = vendor exceptions others = 1.

POPUP_TO_CONFIRM_LOSS_OF_DATA call function 'POPUP_TO_CONFIRM_LOSS_OF_DATA' exporting textline1 = text-056 textline2 = text-057 titel = text-055 importing answer = answer.

POPUP_TO_CONFIRM_STEP call function 'POPUP_TO_CONFIRM_STEP' exporting textline1 = text-058 textline2 = text-059 titel = text-060 importing answer = l_answer exceptions others = 1.

CUSTOMIZED_MESSAGE call function 'CUSTOMIZED_MESSAGE' exporting i_arbgb = 'G4' i_dtype = 'E' i_msgnr = '520' i_var01 = int_vendor_line-vname i_var02 = int_vendor_line-egrup exceptions others = 1.

CONVERT_TO_LOCAL_CURRENCY call function 'CONVERT_TO_LOCAL_CURRENCY' exporting date = t8jvb60-wwert foreign_amount = l_user_curr_amt foreign_currency = t8jvb60-fundcur local_currency = this_company-waers rate = t8jvb60-kursf type_of_rate = 'M' importing local_amount = l_local_user_curr_amt exceptions error_message = 1 others = 2.

CONVERT_TO_LOCAL_CURRENCY call function 'CONVERT_TO_LOCAL_CURRENCY' exporting date = t8jvb60-wwert * foreign_amount = int_vendor_line-vendoramt "431225 foreign_amount = l_vendoramt "431225 foreign_currency = t8jvb60-fundcur local_currency = this_company-waers rate = t8jvb60-kursf type_of_rate = 'M' importing * local_amount = int_vendor_line-vendoramt_lc "431225 local_amount = l_vendoramt_lc "431225 exceptions error_message = 1 others = 2.

FI_FIND_PAYMENT_CONDITIONS call function 'FI_FIND_PAYMENT_CONDITIONS' exporting i_zterm = l_org_payterms i_bldat = t8jvb60-budat i_budat = t8jvb60-budat i_cpudt = t8jvb60-budat importing e_zfbdt = baseline_date e_sklin = offset_days exceptions terms_incorrect = 1 terms_not_found = 2 no_date_entered = 3 no_day_limit_found = 4 others = 5.

G_PERIOD_GET call function 'G_PERIOD_GET' exporting date = l_date variant = this_company-periv importing year = l_fiscal_year exceptions ledger_not_assigned_to_company = 1 period_not_defined = 2 variant_not_defined = 3 others = 4.

READ_CUSTOMIZED_MESSAGE CALL FUNCTION 'READ_CUSTOMIZED_MESSAGE' "502479 EXPORTING "502479 I_ARBGB = 'G5' "502479 I_DTYPE = 'E' "502479 I_MSGNR = '156' "502479 IMPORTING "502479 E_MSGTY = l_msgty. "502479

CONVERT_TO_FOREIGN_CURRENCY call function 'CONVERT_TO_FOREIGN_CURRENCY' exporting date = t8jvb60-wwert foreign_currency = t8jvb60-usercur local_amount = t8jvb60-postucval_fc local_currency = t8jvb60-fundcur rate = t8jvb60-fuc_rate type_of_rate = 'M' importing foreign_amount = t8jvb60-postucval exceptions no_rate_found = 01 overflow = 02 no_factors_found = 03 others = 04.

CONVERT_TO_LOCAL_CURRENCY call function 'CONVERT_TO_LOCAL_CURRENCY' exporting date = t8jvb60-wwert foreign_amount = t8jvb60-postucval foreign_currency = t8jvb60-usercur local_currency = t8jvb60-fundcur rate = t8jvb60-fuc_rate type_of_rate = 'M' importing local_amount = t8jvb60-postucval_fc exceptions no_rate_found = 01 overflow = 02 no_factors_found = 03 others = 04.

READ_CUSTOMIZED_MESSAGE CALL FUNCTION 'READ_CUSTOMIZED_MESSAGE' "502479 EXPORTING "502479 I_ARBGB = 'G5' "502479 I_DTYPE = 'E' "502479 I_MSGNR = '156' "502479 IMPORTING "502479 E_MSGTY = l_msgty. "502479

FI_PERIOD_DETERMINE call function 'FI_PERIOD_DETERMINE' exporting i_budat = t8jvb60-budat i_monat = t8jvb60-monat i_periv = this_company-periv importing e_monat = t8jvb60-monat e_gjahr = fiscal_year.

FI_PERIOD_CHECK call function 'FI_PERIOD_CHECK' exporting i_bukrs = t8jvb60-bukrs i_gjahr = fiscal_year i_koart = '+' i_konto = '+' i_monat = period_nc3.

POPUP_TO_CONFIRM_STEP CALL FUNCTION 'POPUP_TO_CONFIRM_STEP' EXPORTING TEXTLINE1 = poptext1 TEXTLINE2 = text-075 TITEL = text-004 IMPORTING ANSWER = popanswer.



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