SAP Reports / Programs | Materials Management | Defense Forces and Public Security | Materials Management(IS-DFS-MM) SAP IS

/ISDFPS/FDP_CHANGE_WERKS_LGORT SAP ABAP Report - Update Plants, Storage Locations, and MRP Elements Cross-Plant Reorg.







/ISDFPS/FDP_CHANGE_WERKS_LGORT 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 /ISDFPS/FDP_CHANGE_WERKS_LGORT 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 /ISDFPS/FDP_CHANGE_WERKS_LGORT. "Basic submit
SUBMIT /ISDFPS/FDP_CHANGE_WERKS_LGORT AND RETURN. "Return to original report after report execution complete
SUBMIT /ISDFPS/FDP_CHANGE_WERKS_LGORT 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: P_BEGDA = Start Date of Reorganization
Selection Text: P_ENDDA = End Date of Reorganization
Selection Text: P_OBJ_S = D .
Selection Text: P_TYP = D .
Title: Update Plants, Storage Locations, and MRP Elements Cross-Plant Reorg.
Text Symbol: 005 = Measure
Text Symbol: 006 = Select Measure
Text Symbol: 010 = CHANGE_WERKS_LGORT
Text Symbol: 050 = Error Log
Text Symbol: 111 = Update Force Elements and MRP Areas
Text Symbol: SRC = Force Element To Reorganized
Text Symbol: TYP = Stock/Provis.


INCLUDES used within this REPORT /ISDFPS/FDP_CHANGE_WERKS_LGORT

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:

/ISDFPS/FORCE_STRUC_GET CALL FUNCTION '/ISDFPS/FORCE_STRUC_GET' EXPORTING act_otype = 'O ' act_objid = gs_org_um_w-objid act_wegid = ls_cctype-wegid_sa act_svect = '1' act_begda = gs_org_um_w-begda act_endda = gs_org_um_w-endda act_tdepth = 0 act_opexflag = ' ' TABLES result_objec = lt_forces EXCEPTIONS no_plvar_found = 1 OTHERS = 2.

/ISDFPS/FDP_BERID_READ CALL FUNCTION '/ISDFPS/FDP_BERID_READ' EXPORTING i_berid = lv_berid IMPORTING e_mdlv = ls_mdlv.

/ISDFPS/FDP_LGORT_TO_BERID_GET CALL FUNCTION '/ISDFPS/FDP_LGORT_TO_BERID_GET' EXPORTING i_berid = lv_berid IMPORTING e_retcode = lv_retcode TABLES et_mdlg = lt_mdlg_hlp.

ENQUEUE_E_TABLEE CALL FUNCTION 'ENQUEUE_E_TABLEE' EXPORTING mode_rstable = 'E' tabname = l_enqtable-tabname varkey = l_enqtable-varkey _scope = '1' EXCEPTIONS foreign_lock = 1 system_failure = 2 OTHERS = 3.

ENQUEUE_E_TABLEE CALL FUNCTION 'ENQUEUE_E_TABLEE' EXPORTING mode_rstable = 'E' tabname = l_enqtable-tabname varkey = l_enqtable-varkey _scope = '1' EXCEPTIONS foreign_lock = 1 system_failure = 2 OTHERS = 3.

/ISDFPS/FDP_LGORT_ASSIGN_DEL CALL FUNCTION '/ISDFPS/FDP_LGORT_ASSIGN_DEL' EXPORTING i_berid = lt_mdlg-berid i_lgort = lt_mdlg-lgort IMPORTING e_retcode = lv_retcode.

/ISDFPS/FDP_BERID_READ CALL FUNCTION '/ISDFPS/FDP_BERID_READ' EXPORTING i_berid = lt_mdlg-berid IMPORTING e_mdlv = ls_mdlv.

/ISDFPS/FDP_BERID_CHANGE CALL FUNCTION '/ISDFPS/FDP_BERID_CHANGE' EXPORTING i_berid = lt_mdlg-berid i_bertx = ls_mdlv-bertx i_werks = gs_org_um_w-werks_new i_lgort = lgort_ab-lgort_new IMPORTING e_retcode = lv_retcode.

/ISDFPS/FDP_BERID_READ CALL FUNCTION '/ISDFPS/FDP_BERID_READ' EXPORTING i_berid = lt_mdlg-berid IMPORTING e_mdlv = ls_mdlv.

/ISDFPS/FDP_LGORT_ASSIGN CALL FUNCTION '/ISDFPS/FDP_LGORT_ASSIGN' EXPORTING i_lgort = lgort_ab-lgort_new i_berid = lt_mdlg-berid IMPORTING e_retcode = lv_retcode.

/ISDFPS/FDP_BERID_TO_LGORT_GET CALL FUNCTION '/ISDFPS/FDP_BERID_TO_LGORT_GET' EXPORTING i_werks = lt_mdlg-werks i_lgort = lt_mdlg-lgort IMPORTING es_mdlg = ls_mdlg.

/ISDFPS/FDP_LGORT_ASSIGN_DEL CALL FUNCTION '/ISDFPS/FDP_LGORT_ASSIGN_DEL' EXPORTING i_berid = ls_mdlg-berid i_lgort = lt_mdlg-lgort IMPORTING e_retcode = lv_retcode.

/ISDFPS/FORCE_STRUC_GET CALL FUNCTION '/ISDFPS/FORCE_STRUC_GET' EXPORTING act_otype = 'O ' act_objid = gs_org_um_w-objid act_wegid = ls_cctype-wegid_fa act_int_flag = 'X' act_svect = '1234' act_begda = gs_org_um_w-begda act_endda = gs_org_um_w-endda act_tdepth = 5 act_opexflag = ' ' text_buffer_fill = ' ' buffer_mode = 'X' TABLES result_objec = lt_actobjec result_struc = lt_actstruc EXCEPTIONS OTHERS = 0.

/ISDFPS/FDP_LGORT_ASSIGN CALL FUNCTION '/ISDFPS/FDP_LGORT_ASSIGN' EXPORTING i_lgort = lgort_ab-lgort_new i_berid = ls_force-berid_s IMPORTING e_retcode = lv_retcode.

/ISDFPS/FDP_BUFFER_POST CALL FUNCTION '/ISDFPS/FDP_BUFFER_POST' EXPORTING i_dequeue = 'X'.

BAL_DSP_LOG_DISPLAY CALL FUNCTION 'BAL_DSP_LOG_DISPLAY' EXPORTING i_t_log_handle = lt_handles EXCEPTIONS profile_inconsistent = 1 internal_error = 2 no_data_available = 3 no_authority = 4 OTHERS = 5.

BAL_LOG_CREATE * CALL FUNCTION 'BAL_LOG_CREATE' * EXPORTING * i_s_log = gs_log * IMPORTING * e_log_handle = g_loghandle * EXCEPTIONS * log_header_inconsistent = 1 * OTHERS = 2.

REUSE_ALV_GRID_DISPLAY * CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY' * EXPORTING * i_grid_title = text-050 * i_structure_name = 'BAPIRET2' ** IT_FIELDCAT = * TABLES * t_outtab = gt_messages * EXCEPTIONS * program_error = 1 * OTHERS = 2.

BAL_LOG_MSG_ADD





* CALL FUNCTION 'BAL_LOG_MSG_ADD' * EXPORTING * i_log_handle = g_loghandle * i_s_msg = gs_msg * EXCEPTIONS * OTHERS = 4.

BAL_DSP_LOG_DISPLAY * CALL FUNCTION 'BAL_DSP_LOG_DISPLAY' * EXPORTING ** I_S_DISPLAY_PROFILE = * i_t_log_handle = gt_handles ** I_T_MSG_HANDLE = ** I_S_LOG_FILTER = ** I_S_MSG_FILTER = ** I_T_LOG_CONTEXT_FILTER = ** I_T_MSG_CONTEXT_FILTER = ** I_AMODAL = ' ' ** IMPORTING ** E_S_EXIT_COMMAND = * EXCEPTIONS ** PROFILE_INCONSISTENT = 1 ** INTERNAL_ERROR = 2 ** NO_DATA_AVAILABLE = 3 ** NO_AUTHORITY = 4 * OTHERS = 5.

BAL_DB_SAVE * CALL FUNCTION 'BAL_DB_SAVE' * EXPORTING ** I_CLIENT = SY-MANDT ** I_IN_UPDATE_TASK = ' ' ** I_SAVE_ALL = ' ' * i_t_log_handle = gt_handles * IMPORTING * e_new_lognumbers = gt_logs * EXCEPTIONS ** LOG_NOT_FOUND = 1 ** SAVE_NOT_ALLOWED = 2 ** NUMBERING_ERROR = 3 * OTHERS = 0.



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 /ISDFPS/FDP_CHANGE_WERKS_LGORT or its description.