CO_RU_PLANNED_DATA_PRE_READ 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 CO_RU_PLANNED_DATA_PRE_READ into the relevant SAP transaction such as SE37 or SE80.
Associated Function Group:
CORB
Released Date:
Not Released
Processing type: Normal fucntion module
CALL FUNCTION 'CO_RU_PLANNED_DATA_PRE_READ' "
* EXPORTING
* check_only = SPACE " rc27x-flg_sel
* goods_receipts = SPACE " rc27x-flg_sel
* goods_issues = SPACE " rc27x-flg_sel
* failed_goodsmove = SPACE " rc27x-flg_sel
* failed_goodsmove_wa = SPACE " rc27x-flg_sel
* failed_goodsmove_we = SPACE " rc27x-flg_sel
* actual_costs = SPACE " rc27x-flg_sel
* failed_costs = SPACE " rc27x-flg_sel
* hr_data_transfer = SPACE " rc27x-flg_sel
* i_inact = SPACE " ru_vrmkz
* TABLES
* ord_pre_tab = " ord_pre
* f_costs_tab = " afrcb
* p_receipts_tab = " afrp1b
* p_issues_tab = " afrp2b
* p_costs_tab = " afrp3b
* p_hr_data_tab = " afrp4b
* f_goodsmove_tab = " affwb
* f_goodsmove_wa_tab = " affwb
* f_goodsmove_we_tab = " affwb
EXCEPTIONS
NOT_FOUND = 1 "
. " CO_RU_PLANNED_DATA_PRE_READ
The ABAP code below is a full code listing to execute function module CO_RU_PLANNED_DATA_PRE_READ 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).
| it_ord_pre_tab | TYPE STANDARD TABLE OF ORD_PRE,"TABLES PARAM |
| wa_ord_pre_tab | LIKE LINE OF it_ord_pre_tab , |
| it_f_costs_tab | TYPE STANDARD TABLE OF AFRCB,"TABLES PARAM |
| wa_f_costs_tab | LIKE LINE OF it_f_costs_tab , |
| it_p_receipts_tab | TYPE STANDARD TABLE OF AFRP1B,"TABLES PARAM |
| wa_p_receipts_tab | LIKE LINE OF it_p_receipts_tab , |
| it_p_issues_tab | TYPE STANDARD TABLE OF AFRP2B,"TABLES PARAM |
| wa_p_issues_tab | LIKE LINE OF it_p_issues_tab , |
| it_p_costs_tab | TYPE STANDARD TABLE OF AFRP3B,"TABLES PARAM |
| wa_p_costs_tab | LIKE LINE OF it_p_costs_tab , |
| it_p_hr_data_tab | TYPE STANDARD TABLE OF AFRP4B,"TABLES PARAM |
| wa_p_hr_data_tab | LIKE LINE OF it_p_hr_data_tab , |
| it_f_goodsmove_tab | TYPE STANDARD TABLE OF AFFWB,"TABLES PARAM |
| wa_f_goodsmove_tab | LIKE LINE OF it_f_goodsmove_tab , |
| it_f_goodsmove_wa_tab | TYPE STANDARD TABLE OF AFFWB,"TABLES PARAM |
| wa_f_goodsmove_wa_tab | LIKE LINE OF it_f_goodsmove_wa_tab , |
| it_f_goodsmove_we_tab | TYPE STANDARD TABLE OF AFFWB,"TABLES PARAM |
| wa_f_goodsmove_we_tab | LIKE LINE OF it_f_goodsmove_we_tab . |
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_check_only | TYPE RC27X-FLG_SEL , |
| it_ord_pre_tab | TYPE STANDARD TABLE OF ORD_PRE , |
| wa_ord_pre_tab | LIKE LINE OF it_ord_pre_tab, |
| ld_goods_receipts | TYPE RC27X-FLG_SEL , |
| it_f_costs_tab | TYPE STANDARD TABLE OF AFRCB , |
| wa_f_costs_tab | LIKE LINE OF it_f_costs_tab, |
| ld_goods_issues | TYPE RC27X-FLG_SEL , |
| it_p_receipts_tab | TYPE STANDARD TABLE OF AFRP1B , |
| wa_p_receipts_tab | LIKE LINE OF it_p_receipts_tab, |
| ld_failed_goodsmove | TYPE RC27X-FLG_SEL , |
| it_p_issues_tab | TYPE STANDARD TABLE OF AFRP2B , |
| wa_p_issues_tab | LIKE LINE OF it_p_issues_tab, |
| ld_failed_goodsmove_wa | TYPE RC27X-FLG_SEL , |
| it_p_costs_tab | TYPE STANDARD TABLE OF AFRP3B , |
| wa_p_costs_tab | LIKE LINE OF it_p_costs_tab, |
| ld_failed_goodsmove_we | TYPE RC27X-FLG_SEL , |
| it_p_hr_data_tab | TYPE STANDARD TABLE OF AFRP4B , |
| wa_p_hr_data_tab | LIKE LINE OF it_p_hr_data_tab, |
| ld_actual_costs | TYPE RC27X-FLG_SEL , |
| it_f_goodsmove_tab | TYPE STANDARD TABLE OF AFFWB , |
| wa_f_goodsmove_tab | LIKE LINE OF it_f_goodsmove_tab, |
| ld_failed_costs | TYPE RC27X-FLG_SEL , |
| it_f_goodsmove_wa_tab | TYPE STANDARD TABLE OF AFFWB , |
| wa_f_goodsmove_wa_tab | LIKE LINE OF it_f_goodsmove_wa_tab, |
| ld_hr_data_transfer | TYPE RC27X-FLG_SEL , |
| it_f_goodsmove_we_tab | TYPE STANDARD TABLE OF AFFWB , |
| wa_f_goodsmove_we_tab | LIKE LINE OF it_f_goodsmove_we_tab, |
| ld_i_inact | TYPE RU_VRMKZ . |
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 CO_RU_PLANNED_DATA_PRE_READ or its description.