SAP HR_FBN_FORM_WRITE_PLAN Function Module for Eintrag der Plandaten in ein Formular (SAPscript)
HR_FBN_FORM_WRITE_PLAN is a standard hr fbn form write plan SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Eintrag der Plandaten in ein Formular (SAPscript) processing and below is the pattern details for this FM, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.
See here to view full function module documentation and code listing for hr fbn form write plan FM, simply by entering the name HR_FBN_FORM_WRITE_PLAN into the relevant SAP transaction such as SE37 or SE38.
Function Group: HRFBN00FORMS
Program Name: SAPLHRFBN00FORMS
Main Program:
Appliation area: P
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function HR_FBN_FORM_WRITE_PLAN pattern details
In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.CALL FUNCTION 'HR_FBN_FORM_WRITE_PLAN'"Eintrag der Plandaten in ein Formular (SAPscript).
EXPORTING
BPCAT = "
* AT_IMINC_HEADER = ' ' "
* AT_NEW_LEVEL1 = ' ' "
* AT_NEW_LEVEL2 = ' ' "
* AT_END_OF_LEVEL1 = ' ' "
AT_END_OF_BPLAN = "
AT_END_OF_PLTYP = "
AT_LAST = "
* FORM_TYPE = 'E' "
* DEPEND_RELEVANT = ' ' "
* BENEFI_RELEVANT = ' ' "
BAREA = "
* CONTIN_RELEVANT = ' ' "
* INVEST_RELEVANT = ' ' "
REACTION = "
BPLAN = "
BEGDA = "
ENDDA = "
AT_FIRST = "
AT_NEW_PLTYP = "
AT_NEW_BPLAN = "
* AT_PTCST_HEADER = ' ' "
IMPORTING
SUBRC = "
TABLES
ERROR_TABLE = "
IMPORTING Parameters details for HR_FBN_FORM_WRITE_PLAN
BPCAT -
Data type: T5UB1-BPCATOptional: No
Call by Reference: No ( called with pass by value option)
AT_IMINC_HEADER -
Data type:Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
AT_NEW_LEVEL1 -
Data type:Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
AT_NEW_LEVEL2 -
Data type:Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
AT_END_OF_LEVEL1 -
Data type:Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
AT_END_OF_BPLAN -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
AT_END_OF_PLTYP -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
AT_LAST -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
FORM_TYPE -
Data type: CDefault: 'E'
Optional: Yes
Call by Reference: No ( called with pass by value option)
DEPEND_RELEVANT -
Data type:Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
BENEFI_RELEVANT -
Data type:Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
BAREA -
Data type: T5UB3-BAREAOptional: No
Call by Reference: No ( called with pass by value option)
CONTIN_RELEVANT -
Data type:Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
INVEST_RELEVANT -
Data type:Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
REACTION -
Data type: SY-MSGTYOptional: No
Call by Reference: No ( called with pass by value option)
BPLAN -
Data type: T5UBA-BPLANOptional: No
Call by Reference: No ( called with pass by value option)
BEGDA -
Data type: SY-DATUMOptional: No
Call by Reference: No ( called with pass by value option)
ENDDA -
Data type: SY-DATUMOptional: No
Call by Reference: No ( called with pass by value option)
AT_FIRST -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
AT_NEW_PLTYP -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
AT_NEW_BPLAN -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
AT_PTCST_HEADER -
Data type:Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for HR_FBN_FORM_WRITE_PLAN
SUBRC -
Data type: SY-SUBRCOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for HR_FBN_FORM_WRITE_PLAN
ERROR_TABLE -
Data type: RPBENERROptional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for HR_FBN_FORM_WRITE_PLAN Function Module
The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than 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 newer method of declaring data variables on the fly. 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), which i why i have stuck to the origianl for this example.| DATA: | ||||
| lv_bpcat | TYPE T5UB1-BPCAT, " | |||
| lv_subrc | TYPE SY-SUBRC, " | |||
| lt_error_table | TYPE STANDARD TABLE OF RPBENERR, " | |||
| lv_at_iminc_header | TYPE RPBENERR, " ' ' | |||
| lv_at_new_level1 | TYPE RPBENERR, " ' ' | |||
| lv_at_new_level2 | TYPE RPBENERR, " ' ' | |||
| lv_at_end_of_level1 | TYPE RPBENERR, " ' ' | |||
| lv_at_end_of_bplan | TYPE RPBENERR, " | |||
| lv_at_end_of_pltyp | TYPE RPBENERR, " | |||
| lv_at_last | TYPE RPBENERR, " | |||
| lv_form_type | TYPE C, " 'E' | |||
| lv_depend_relevant | TYPE C, " ' ' | |||
| lv_benefi_relevant | TYPE C, " ' ' | |||
| lv_barea | TYPE T5UB3-BAREA, " | |||
| lv_contin_relevant | TYPE T5UB3, " ' ' | |||
| lv_invest_relevant | TYPE T5UB3, " ' ' | |||
| lv_reaction | TYPE SY-MSGTY, " | |||
| lv_bplan | TYPE T5UBA-BPLAN, " | |||
| lv_begda | TYPE SY-DATUM, " | |||
| lv_endda | TYPE SY-DATUM, " | |||
| lv_at_first | TYPE SY, " | |||
| lv_at_new_pltyp | TYPE SY, " | |||
| lv_at_new_bplan | TYPE SY, " | |||
| lv_at_ptcst_header | TYPE SY. " ' ' |
|   CALL FUNCTION 'HR_FBN_FORM_WRITE_PLAN' "Eintrag der Plandaten in ein Formular (SAPscript) |
| EXPORTING | ||
| BPCAT | = lv_bpcat | |
| AT_IMINC_HEADER | = lv_at_iminc_header | |
| AT_NEW_LEVEL1 | = lv_at_new_level1 | |
| AT_NEW_LEVEL2 | = lv_at_new_level2 | |
| AT_END_OF_LEVEL1 | = lv_at_end_of_level1 | |
| AT_END_OF_BPLAN | = lv_at_end_of_bplan | |
| AT_END_OF_PLTYP | = lv_at_end_of_pltyp | |
| AT_LAST | = lv_at_last | |
| FORM_TYPE | = lv_form_type | |
| DEPEND_RELEVANT | = lv_depend_relevant | |
| BENEFI_RELEVANT | = lv_benefi_relevant | |
| BAREA | = lv_barea | |
| CONTIN_RELEVANT | = lv_contin_relevant | |
| INVEST_RELEVANT | = lv_invest_relevant | |
| REACTION | = lv_reaction | |
| BPLAN | = lv_bplan | |
| BEGDA | = lv_begda | |
| ENDDA | = lv_endda | |
| AT_FIRST | = lv_at_first | |
| AT_NEW_PLTYP | = lv_at_new_pltyp | |
| AT_NEW_BPLAN | = lv_at_new_bplan | |
| AT_PTCST_HEADER | = lv_at_ptcst_header | |
| IMPORTING | ||
| SUBRC | = lv_subrc | |
| TABLES | ||
| ERROR_TABLE | = lt_error_table | |
| . " HR_FBN_FORM_WRITE_PLAN | ||
ABAP code using 7.40 inline data declarations to call FM HR_FBN_FORM_WRITE_PLAN
The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.| "SELECT single BPCAT FROM T5UB1 INTO @DATA(ld_bpcat). | ||||
| "SELECT single SUBRC FROM SY INTO @DATA(ld_subrc). | ||||
| DATA(ld_at_iminc_header) | = ' '. | |||
| DATA(ld_at_new_level1) | = ' '. | |||
| DATA(ld_at_new_level2) | = ' '. | |||
| DATA(ld_at_end_of_level1) | = ' '. | |||
| DATA(ld_form_type) | = 'E'. | |||
| DATA(ld_depend_relevant) | = ' '. | |||
| DATA(ld_benefi_relevant) | = ' '. | |||
| "SELECT single BAREA FROM T5UB3 INTO @DATA(ld_barea). | ||||
| DATA(ld_contin_relevant) | = ' '. | |||
| DATA(ld_invest_relevant) | = ' '. | |||
| "SELECT single MSGTY FROM SY INTO @DATA(ld_reaction). | ||||
| "SELECT single BPLAN FROM T5UBA INTO @DATA(ld_bplan). | ||||
| "SELECT single DATUM FROM SY INTO @DATA(ld_begda). | ||||
| "SELECT single DATUM FROM SY INTO @DATA(ld_endda). | ||||
| DATA(ld_at_ptcst_header) | = ' '. | |||
Search for further information about these or an SAP related objects