SAP Function Modules

CO_RU_PLANNED_DATA_PRE_READ SAP Function module







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
Normal function module settings


Pattern for FM CO_RU_PLANNED_DATA_PRE_READ - CO RU PLANNED DATA PRE READ





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

ABAP code example for Function Module 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).

DATA:
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 .


DATA(ld_check_only) = some text here

DATA(ld_goods_receipts) = some text here

DATA(ld_goods_issues) = some text here

DATA(ld_failed_goodsmove) = some text here

DATA(ld_failed_goodsmove_wa) = some text here

DATA(ld_failed_goodsmove_we) = some text here

DATA(ld_actual_costs) = some text here

DATA(ld_failed_costs) = some text here

DATA(ld_hr_data_transfer) = some text here
DATA(ld_i_inact) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_ord_pre_tab to it_ord_pre_tab.

"populate fields of struture and append to itab
append wa_f_costs_tab to it_f_costs_tab.

"populate fields of struture and append to itab
append wa_p_receipts_tab to it_p_receipts_tab.

"populate fields of struture and append to itab
append wa_p_issues_tab to it_p_issues_tab.

"populate fields of struture and append to itab
append wa_p_costs_tab to it_p_costs_tab.

"populate fields of struture and append to itab
append wa_p_hr_data_tab to it_p_hr_data_tab.

"populate fields of struture and append to itab
append wa_f_goodsmove_tab to it_f_goodsmove_tab.

"populate fields of struture and append to itab
append wa_f_goodsmove_wa_tab to it_f_goodsmove_wa_tab.

"populate fields of struture and append to itab
append wa_f_goodsmove_we_tab to it_f_goodsmove_we_tab. . CALL FUNCTION 'CO_RU_PLANNED_DATA_PRE_READ' * EXPORTING * check_only = ld_check_only * goods_receipts = ld_goods_receipts * goods_issues = ld_goods_issues * failed_goodsmove = ld_failed_goodsmove * failed_goodsmove_wa = ld_failed_goodsmove_wa * failed_goodsmove_we = ld_failed_goodsmove_we * actual_costs = ld_actual_costs * failed_costs = ld_failed_costs * hr_data_transfer = ld_hr_data_transfer * i_inact = ld_i_inact * TABLES * ord_pre_tab = it_ord_pre_tab * f_costs_tab = it_f_costs_tab * p_receipts_tab = it_p_receipts_tab * p_issues_tab = it_p_issues_tab * p_costs_tab = it_p_costs_tab * p_hr_data_tab = it_p_hr_data_tab * f_goodsmove_tab = it_f_goodsmove_tab * f_goodsmove_wa_tab = it_f_goodsmove_wa_tab * f_goodsmove_we_tab = it_f_goodsmove_we_tab EXCEPTIONS NOT_FOUND = 1 . " CO_RU_PLANNED_DATA_PRE_READ
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

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 .


ld_check_only = some text here

"populate fields of struture and append to itab
append wa_ord_pre_tab to it_ord_pre_tab.

ld_goods_receipts = some text here

"populate fields of struture and append to itab
append wa_f_costs_tab to it_f_costs_tab.

ld_goods_issues = some text here

"populate fields of struture and append to itab
append wa_p_receipts_tab to it_p_receipts_tab.

ld_failed_goodsmove = some text here

"populate fields of struture and append to itab
append wa_p_issues_tab to it_p_issues_tab.

ld_failed_goodsmove_wa = some text here

"populate fields of struture and append to itab
append wa_p_costs_tab to it_p_costs_tab.

ld_failed_goodsmove_we = some text here

"populate fields of struture and append to itab
append wa_p_hr_data_tab to it_p_hr_data_tab.

ld_actual_costs = some text here

"populate fields of struture and append to itab
append wa_f_goodsmove_tab to it_f_goodsmove_tab.

ld_failed_costs = some text here

"populate fields of struture and append to itab
append wa_f_goodsmove_wa_tab to it_f_goodsmove_wa_tab.

ld_hr_data_transfer = some text here

"populate fields of struture and append to itab
append wa_f_goodsmove_we_tab to it_f_goodsmove_we_tab.
ld_i_inact = 'Check type of data required'.

Contribute (Add Comments)

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.