SAP ISU_SAMPLE_R825 Function Module for IS-U: Print Welcome Letter (Old)
ISU_SAMPLE_R825 is a standard isu sample r825 SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for IS-U: Print Welcome Letter (Old) 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 isu sample r825 FM, simply by entering the name ISU_SAMPLE_R825 into the relevant SAP transaction such as SE37 or SE38.
Function Group: EC_PRINT
Program Name: SAPLEC_PRINT
Main Program: SAPLEC_PRINT
Appliation area: E
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function ISU_SAMPLE_R825 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 'ISU_SAMPLE_R825'"IS-U: Print Welcome Letter (Old).
EXPORTING
X_OPBEL = "Move-in document number
* X_ONLY_NOT_PRINTED = "Indicator
* X_NO_DIALOG = "Indicator
* X_LANGU = "Language
* X_GPART = "Business Partner
* X_VKONT = "Contract Account
* X_MOVEINDATE = "Collection Date
* X_FORMKEY = "Application Form
* X_DELAYED_PRINT = "Create Print Request Instead Of Printout
* X_AUSWBEGR = "Form selection dialog for welcome letter
* X_REPRINT = "Indicator: Reprint
IMPORTING
Y_FORMKEY = "Application Form
YT_EINZBELEG = "
EXCEPTIONS
ACTION_CANCELLED = 1 ACTION_FAILED = 2 BCONTACT_FAILED = 3
IMPORTING Parameters details for ISU_SAMPLE_R825
X_OPBEL - Move-in document number
Data type: FKKOP-OPBELOptional: No
Call by Reference: No ( called with pass by value option)
X_ONLY_NOT_PRINTED - Indicator
Data type: KENNZXOptional: Yes
Call by Reference: No ( called with pass by value option)
X_NO_DIALOG - Indicator
Data type: KENNZXOptional: Yes
Call by Reference: No ( called with pass by value option)
X_LANGU - Language
Data type: SY-LANGUOptional: Yes
Call by Reference: No ( called with pass by value option)
X_GPART - Business Partner
Data type: FKKOP-GPARTOptional: Yes
Call by Reference: No ( called with pass by value option)
X_VKONT - Contract Account
Data type: FKKOP-VKONTOptional: Yes
Call by Reference: No ( called with pass by value option)
X_MOVEINDATE - Collection Date
Data type: EEINV-EINZDATOptional: Yes
Call by Reference: No ( called with pass by value option)
X_FORMKEY - Application Form
Data type: EPRINTPARAMS-FORMKEYOptional: Yes
Call by Reference: No ( called with pass by value option)
X_DELAYED_PRINT - Create Print Request Instead Of Printout
Data type: EPRINTPARAMS-DELAYED_PRINTOptional: Yes
Call by Reference: No ( called with pass by value option)
X_AUSWBEGR - Form selection dialog for welcome letter
Data type: EEIN-AUSWBEGROptional: Yes
Call by Reference: No ( called with pass by value option)
X_REPRINT - Indicator: Reprint
Data type: REGEN-KENNZXOptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for ISU_SAMPLE_R825
Y_FORMKEY - Application Form
Data type: EPRINTPARAMS-FORMKEYOptional: No
Call by Reference: No ( called with pass by value option)
YT_EINZBELEG -
Data type: ISU_EINZBELEG_TABOptional: No
Call by Reference: Yes
EXCEPTIONS details
ACTION_CANCELLED - Action canceled
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
ACTION_FAILED - Action Failed
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
BCONTACT_FAILED - Cannot create custome contact for welcome letter
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for ISU_SAMPLE_R825 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_x_opbel | TYPE FKKOP-OPBEL, " | |||
| lv_y_formkey | TYPE EPRINTPARAMS-FORMKEY, " | |||
| lv_action_cancelled | TYPE EPRINTPARAMS, " | |||
| lv_x_only_not_printed | TYPE KENNZX, " | |||
| lv_x_no_dialog | TYPE KENNZX, " | |||
| lv_x_langu | TYPE SY-LANGU, " | |||
| lv_yt_einzbeleg | TYPE ISU_EINZBELEG_TAB, " | |||
| lv_action_failed | TYPE ISU_EINZBELEG_TAB, " | |||
| lv_x_gpart | TYPE FKKOP-GPART, " | |||
| lv_bcontact_failed | TYPE FKKOP, " | |||
| lv_x_vkont | TYPE FKKOP-VKONT, " | |||
| lv_x_moveindate | TYPE EEINV-EINZDAT, " | |||
| lv_x_formkey | TYPE EPRINTPARAMS-FORMKEY, " | |||
| lv_x_delayed_print | TYPE EPRINTPARAMS-DELAYED_PRINT, " | |||
| lv_x_auswbegr | TYPE EEIN-AUSWBEGR, " | |||
| lv_x_reprint | TYPE REGEN-KENNZX. " |
|   CALL FUNCTION 'ISU_SAMPLE_R825' "IS-U: Print Welcome Letter (Old) |
| EXPORTING | ||
| X_OPBEL | = lv_x_opbel | |
| X_ONLY_NOT_PRINTED | = lv_x_only_not_printed | |
| X_NO_DIALOG | = lv_x_no_dialog | |
| X_LANGU | = lv_x_langu | |
| X_GPART | = lv_x_gpart | |
| X_VKONT | = lv_x_vkont | |
| X_MOVEINDATE | = lv_x_moveindate | |
| X_FORMKEY | = lv_x_formkey | |
| X_DELAYED_PRINT | = lv_x_delayed_print | |
| X_AUSWBEGR | = lv_x_auswbegr | |
| X_REPRINT | = lv_x_reprint | |
| IMPORTING | ||
| Y_FORMKEY | = lv_y_formkey | |
| YT_EINZBELEG | = lv_yt_einzbeleg | |
| EXCEPTIONS | ||
| ACTION_CANCELLED = 1 | ||
| ACTION_FAILED = 2 | ||
| BCONTACT_FAILED = 3 | ||
| . " ISU_SAMPLE_R825 | ||
ABAP code using 7.40 inline data declarations to call FM ISU_SAMPLE_R825
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 OPBEL FROM FKKOP INTO @DATA(ld_x_opbel). | ||||
| "SELECT single FORMKEY FROM EPRINTPARAMS INTO @DATA(ld_y_formkey). | ||||
| "SELECT single LANGU FROM SY INTO @DATA(ld_x_langu). | ||||
| "SELECT single GPART FROM FKKOP INTO @DATA(ld_x_gpart). | ||||
| "SELECT single VKONT FROM FKKOP INTO @DATA(ld_x_vkont). | ||||
| "SELECT single EINZDAT FROM EEINV INTO @DATA(ld_x_moveindate). | ||||
| "SELECT single FORMKEY FROM EPRINTPARAMS INTO @DATA(ld_x_formkey). | ||||
| "SELECT single DELAYED_PRINT FROM EPRINTPARAMS INTO @DATA(ld_x_delayed_print). | ||||
| "SELECT single AUSWBEGR FROM EEIN INTO @DATA(ld_x_auswbegr). | ||||
| "SELECT single KENNZX FROM REGEN INTO @DATA(ld_x_reprint). | ||||
Search for further information about these or an SAP related objects