SAP Reports / Programs | Trader's and Scheduler's Workbench | Industry Solution Oil | Trader's and Scheduler's Workbench(IS-OIL-DS-TSW) SAP IS

MOIFAF20 SAP ABAP INCLUDE - Include MOIFAF20 (Forms for detail screens)







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


Text pool values


Title: Include MOIFAF20 (Forms for detail screens)


INCLUDES used within this REPORT MOIFAF20

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:

CTMS_OBJECT_AREA call function 'CTMS_OBJECT_AREA' TABLES objects = l_object_tab.

CLFM_OBJECT_CLASSIFICATION call function 'CLFM_OBJECT_CLASSIFICATION' exporting table = 'OIFSPBL ' object = class_object objtxt = class_objtxt status = l_classification_status classtype = class_type typetext = class_typetext * ref_object = class_refobj not used in MRN no_f8 = c_flag_on " disable next screen no_f11 = c_flag_on " disable save button internal_number_range = l_internal_number importing classtype = class_type typetext = class_typetext updateflag = l_classification_update ok_code = class_okcode exceptions classification_not_found = 1.

CLFM_SET_OBJECT call function 'CLFM_SET_OBJECT' EXPORTING object = class_object.

NUMBER_GET_NEXT call function 'NUMBER_GET_NEXT' EXPORTING nr_range_nr = oifspblt-numri object = 'OIF_PBL' IMPORTING number = g_oifspbl-pblnr returncode = g_csubrc.

OBJECT_NUMBER_GET_BL call function 'OBJECT_NUMBER_GET_BL' EXPORTING pblnr = g_oifspbl-pblnr IMPORTING objnr = g_oifspbl-objnr EXCEPTIONS number_already_exists = 1 others = 2.

STATUS_OBJECT_SWITCH_NUMBER call function 'STATUS_OBJECT_SWITCH_NUMBER' EXPORTING objnr_new = g_oifspbl-objnr objnr_old = oifspbl-objnr EXCEPTIONS object_not_found = 1 objnr_new_invalid = 2 objnr_old_invalid = 3 status_object_already_exists = 4 others = 5.

STATUS_CHECK call function 'STATUS_CHECK' EXPORTING objnr = g_oifspbl-objnr status = c_status_deletion_flag EXCEPTIONS object_not_found = 1 status_not_active = 2 others = 3.

STATUS_CHANGE_INTERN call function 'STATUS_CHANGE_INTERN' exporting objnr = g_oifspbl-objnr * importing * error_occurred = * object_not_found = * status_inconsistent = * status_not_allowed = tables status = g_status_tab exceptions object_not_found = 1 status_inconsistent = 2 status_not_allowed = 3 others = 4.

STATUS_CHANGE_INTERN call function 'STATUS_CHANGE_INTERN' exporting objnr = g_oifspbl-objnr * importing * error_occurred = * object_not_found = * status_inconsistent = * status_not_allowed = tables status = g_status_tab exceptions object_not_found = 1 status_inconsistent = 2 status_not_allowed = 3 others = 4.

OIF_PBL_CD_SET_NEW_DATA call function 'OIF_PBL_CD_SET_NEW_DATA' EXPORTING i_oifspbl = g_oifspbl i_adrc = l_adrc i_oifocsks = roifocsks i_oifocepc = roifocepc i_oifoanla = roifoanla i_oifoiflo = roifoiflo i_oifot001w = roifot001w i_oifot001l = roifot001l i_oirbot001l = roirbommt001l i_level = g_level TABLES t_oifoproj = g_oifoproj_tab t_oifocoas = g_oifocoas_tab t_oifbbp1 = g_oifbbp1_tab t_oirbbp1pf = g_oirbbp1pf_tab EXCEPTIONS others = 1.

OIF_PBL_CD_POST_CHANGES call function 'OIF_PBL_CD_POST_CHANGES' "not in update task exceptions do_not_save = 1 others = 2.

OIF_UPDATE_PBL call function 'OIF_UPDATE_PBL' in update task EXPORTING i_roifspbl = g_oifspbl i_roifadrc = g_oifadrc i_level = g_level TABLES roifbbp1_tab = g_oifbbp1_tab roirbbp1pf_tab = g_oirbbp1pf_tab roifoanla_tab = g_oifoanla_tab roifocepc_tab = g_oifocepc_tab roifocsks_tab = g_oifocsks_tab roifoiflo_tab = g_oifoiflo_tab roifoproj_tab = g_oifoproj_tab roifocoas_tab = g_oifocoas_tab roifot001l_tab = g_oifot001l_tab roifot001w_tab = g_oifot001w_tab roirbommt001l_tab = g_oirbommt001l_tab.

FIELD_SELECTION_MODIFY_ALL call function 'FIELD_SELECTION_MODIFY_ALL' EXPORTING dynprogruppe = l_dynnr modulpool = l_repid.

OIF_FIELD_SETTINGS_GET call function 'OIF_FIELD_SETTINGS_GET' EXPORTING i_program = c_hds1prog i_dynnr = l_dynnr i_pbltyp = oifspbl-pbltyp i_tr_rnbt = g_rnbt i_ds_rnbt = g_ds_rnbt i_trtyp = g_ds_trtyp IMPORTING e_fieldselection = l_field_selection_tab EXCEPTIONS lead_rnbt_not_defined = 1.

OIF_FIELD_SETTINGS_SET call function 'OIF_FIELD_SETTINGS_SET' EXPORTING i_field_selection = l_field_selection_tab.

SCREEN_SEQUENCE_CONTROL call function 'SCREEN_SEQUENCE_CONTROL' exporting programm = 'SAPMOIFA' kopfgruppe = g_kopgr positionsgruppe = g_posgr funktion = fcode importing cua_status = t185v-status cua_titel = t185v-ctitel cua_para1 = t185v-para1 cua_para2 = t185v-para2 cua_para3 = t185v-para3 cua_para4 = t185v-para4 folgefunktion = fcode dunkel = t185-dunkel leave = flag-leave * dynprobaustein1 = taxi_header_subscreen dynprobaustein2 = g_taxi_body_sub.

ADDR_ENQUEUE call function 'ADDR_ENQUEUE' EXPORTING address_number = oifspbl-addrnum EXCEPTIONS address_not_exist = 1 foreign_lock = 2 system_failure = 3 internal_error = 4 others = 5.

OIF_FIELD_SETTINGS_GET call function 'OIF_FIELD_SETTINGS_GET' EXPORTING i_program = c_hds1prog i_dynnr = c_address_subscreen i_pbltyp = oifspbl-pbltyp i_tr_rnbt = oirbpblb-rnbt i_ds_rnbt = oirbpblb-rnbt i_trtyp = c_change IMPORTING e_fieldselection = l_field_selection_tab EXCEPTIONS lead_rnbt_not_defined = 1.

OIF_ADDR_FSEL_PREPARE





call function 'OIF_ADDR_FSEL_PREPARE' EXPORTING i_field_selection = l_field_selection_tab CHANGING x_addr_fsel_string = l_field_selection.

ADDR_DIALOG_PREPARE call function 'ADDR_DIALOG_PREPARE' exporting field_selection = l_field_selection keywords = l_keyword * keywords = 'Loc. name '(611)

STATUS_OBJECT_CREATE call function 'STATUS_OBJECT_CREATE' EXPORTING chgkz = c_flag_on obtyp = c_obtyp_pbl IMPORTING objnr = l_objnr_temp EXCEPTIONS obtyp_invalid = 1 status_object_already_exists = 2 stsma_invalid = 3 stsma_obtyp_invalid = 4 others = 5.

OBJECT_NUMBER_GET_BL call function 'OBJECT_NUMBER_GET_BL' EXPORTING pblnr = pi_pblnr IMPORTING objnr = po_objnr EXCEPTIONS number_already_exists = 1 others = 2.

STATUS_OBJECT_SWITCH_NUMBER call function 'STATUS_OBJECT_SWITCH_NUMBER' EXPORTING objnr_new = po_objnr objnr_old = l_objnr_temp EXCEPTIONS object_not_found = 1 objnr_new_invalid = 2 objnr_old_invalid = 3 status_object_already_exists = 4 others = 5.

ADDR_NUMBER_GET call function 'ADDR_NUMBER_GET' exporting address_handle = g_addr_handle address_reference = g_address_ref * NUMBERRANGE_NUMBER = '01' importing address_number = g_oifspbl-addrnum * RETURNCODE_NUMBERRANGE = G_CSUBRC exceptions address_handle_not_exist = 1 internal_error = 2 parameter_error = 3 others = 4.

ADDR_MEMORY_SAVE call function 'ADDR_MEMORY_SAVE' EXPORTING execute_in_update_task = ' ' EXCEPTIONS address_number_missing = 1 person_number_missing = 2 internal_error = 3 database_error = 4 reference_missing = 5 others = 6.

TAXI_FILTER_FCODE call function 'TAXI_FILTER_FCODE' EXPORTING fcode = fcode IMPORTING is_taxi_fcode = l_taxi_flag EXCEPTIONS others = 0.

TAXI_CONVERT_FCODE call function 'TAXI_CONVERT_FCODE' EXPORTING fcode_in = fcode IMPORTING fcode_out = fcode EXCEPTIONS fcode_not_found = 1 others = 2.

OIF_SUBSCREENS_GET call function 'OIF_SUBSCREENS_GET' EXPORTING i_programm = c_hds1prog i_dynnr = sy-dynnr i_pbltyp = oifspbl-pbltyp i_tr_rnbt = g_rnbt i_sn_rnbt = l_active_screens-rnbt i_trtyp = l_active_screens-trtyp IMPORTING e_subscreens = g_ds_tab EXCEPTIONS lead_rnbt_not_defined = 1.

OIRA_LOCATION_HEADER call function 'OIRA_LOCATION_HEADER' EXPORTING i_pblnr = g_pblnr i_rnbt = g_rnbt i_calpgm = l_repid i_calscr = l_dynnr IMPORTING e_subpgm = pe_subpgm e_subscr = pe_subscr.

OIK_CHECK_TPI_ACTIVE call function 'OIK_CHECK_TPI_ACTIVE' EXCEPTIONS tpi_is_not_active = 1 others = 2.

OII_SCP_CHANGE_POINTER_SET call function 'OII_SCP_CHANGE_POINTER_SET' EXPORTING * i_owning_obj = g_oifbbp1_tab-kunnr "SR 1127795 i_owning_obj = customers-kunnr "SR 1127795 i_object_type = 'KNA1' i_cdobjid = 'OIFSPBL'.

ADDR_EXP_SUBSCREEN call function 'ADDR_EXP_SUBSCREEN' exporting address_number = oifspbl-addrnum address_handle = g_addr_handle * ADDRESS_REFERENCE = ADDRESS_REF_TAB address_group = c_addr_group dialog_mode = g_addr_mode * SUGGESTED_VALUES = ' ' exceptions address_not_exist = 1 group_not_valid = 2 parameter_error = 3 internal_error = 4 others = 5.



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