GHO_PP_INSERT_PTABLE 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 GHO_PP_INSERT_PTABLE into the relevant SAP transaction such as SE37 or SE80.
Associated Function Group:
GHO_PP_DB
Released Date:
Not Released
Processing type: Start update immediately (start immed)
CALL FUNCTION 'GHO_PP_INSERT_PTABLE' "Insert Planning Table Results into DB
* EXPORTING
* is_ptable_hd_ins = " gho_pp_ptable_hd Header Table for Results of GHO Planning Table
* it_ptable_it_ins = " gho_pp_t_ptable_it_db GHO-PP: Table Type for Planning Table
* it_ptable_iv_ins = " gho_pp_t_valid_tab_db Table Type for Validity of Items in Planning Table
* it_ptable_ln_ins = " gho_pp_t_ptable_ln_db Table Type for Planning Tables Schedule Lines
. " GHO_PP_INSERT_PTABLE
The ABAP code below is a full code listing to execute function module GHO_PP_INSERT_PTABLE 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).
DATA(ld_is_ptable_hd_ins) = 'Check type of data required'.
DATA(ld_it_ptable_it_ins) = 'Check type of data required'.
DATA(ld_it_ptable_iv_ins) = 'Check type of data required'.
DATA(ld_it_ptable_ln_ins) = 'Check type of data required'. . CALL FUNCTION 'GHO_PP_INSERT_PTABLE' * EXPORTING * is_ptable_hd_ins = ld_is_ptable_hd_ins * it_ptable_it_ins = ld_it_ptable_it_ins * it_ptable_iv_ins = ld_it_ptable_iv_ins * it_ptable_ln_ins = ld_it_ptable_ln_ins . " GHO_PP_INSERT_PTABLE
IF SY-SUBRC EQ 0. "All OK ENDIF.
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_is_ptable_hd_ins | TYPE GHO_PP_PTABLE_HD , |
| ld_it_ptable_it_ins | TYPE GHO_PP_T_PTABLE_IT_DB , |
| ld_it_ptable_iv_ins | TYPE GHO_PP_T_VALID_TAB_DB , |
| ld_it_ptable_ln_ins | TYPE GHO_PP_T_PTABLE_LN_DB . |
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 GHO_PP_INSERT_PTABLE or its description.
GHO_PP_INSERT_PTABLE - Insert Planning Table Results into DB GHO_PP_DELETE_PTABLE_TOTAL - Delete all Planning Data for Header GHO_PP_DELETE_PTABLE_HEADER - Delete Planning Table Header Data GHO_PP_DELETE_PTABLE - Delete Planning Table Results from DB GHO_PN_RELEVANT_MED_SRCH_EXIT - Production network relevant medium search help exit GHO_PN_MEDIUM_UPD - GHO: Update Production network Mediums