OIJ_3WP_PEG_ITEMS is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.
See here to view full function module documentation and code listing, simply by entering the name OIJ_3WP_PEG_ITEMS into the relevant SAP transaction such as SE37 or SE80.
Associated Function Group:
OIJ_3WP_BCKEND
Released Date:
Not Released
Processing type: Normal fucntion module
CALL FUNCTION 'OIJ_3WP_PEG_ITEMS' "Peg Items
EXPORTING
iv_g_unit = " oij_unit General unit of measure
* iv_ps_flag = GC_FALSE " oij_xflag_ps Pegging to Stock
it_marked_rows_dmd = " lvc_t_row ALV control: Table rows
it_marked_rows_sup = " lvc_t_row ALV control: Table rows
it_marked_rows_ds = " lvc_t_row ALV control: Table rows
IMPORTING
ev_refresh_ds = " xfeld Refresh Outtab for Distribution Schedule
ev_refresh_dmd = " xfeld Refresh Outtab for Demand Items
ev_refresh_sup = " xfeld Refresh Outtab for Supply Avails
CHANGING
xt_outtab_ds = " roij_3wp_grid_t Table type for ROIJ_3WP_GRID
xt_outtab_dmd = " roij_3wp_grid_t Table type for ROIJ_3WP_GRID
xt_outtab_sup = " roij_3wp_grid_t Table type for ROIJ_3WP_GRID
EXCEPTIONS
MULTIPLE_PEGGING = 1 " m --> n relationship!
PEGGING_ERROR = 2 " Pegging Error
. " OIJ_3WP_PEG_ITEMS
The ABAP code below is a full code listing to execute function module OIJ_3WP_PEG_ITEMS including all data declarations. The code uses the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the original method of declaring data variables up front. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8).
| ld_ev_refresh_ds | TYPE XFELD , |
| ld_ev_refresh_dmd | TYPE XFELD , |
| ld_ev_refresh_sup | TYPE XFELD . |
The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.
DATA:
| ld_xt_outtab_ds | TYPE ROIJ_3WP_GRID_T , |
| ld_ev_refresh_ds | TYPE XFELD , |
| ld_iv_g_unit | TYPE OIJ_UNIT , |
| ld_xt_outtab_dmd | TYPE ROIJ_3WP_GRID_T , |
| ld_ev_refresh_dmd | TYPE XFELD , |
| ld_iv_ps_flag | TYPE OIJ_XFLAG_PS , |
| ld_xt_outtab_sup | TYPE ROIJ_3WP_GRID_T , |
| ld_ev_refresh_sup | TYPE XFELD , |
| ld_it_marked_rows_dmd | TYPE LVC_T_ROW , |
| ld_it_marked_rows_sup | TYPE LVC_T_ROW , |
| ld_it_marked_rows_ds | TYPE LVC_T_ROW . |
Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name OIJ_3WP_PEG_ITEMS or its description.
OIJ_3WP_PEG_ITEMS - Peg Items OIJ_3WP_PEG_AUTO - Peg Items OIJ_3WP_PEGGING_TO_STOCK - Calculations for Pegging to Stock in 3WP OIJ_3WP_MESSAGE_STORE - Writing the application log and storing the messages OIJ_3WP_MESSAGE_SHOW - Show messages OIJ_3WP_MERGE_ITEMS - Merge Items to one voyage (Carrier Nomination)