SAP SLIM_CREATE_PDF Function Module for
SLIM_CREATE_PDF is a standard slim create pdf SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 slim create pdf FM, simply by entering the name SLIM_CREATE_PDF into the relevant SAP transaction such as SE37 or SE38.
Function Group: SLIM_TOOLS
Program Name: SAPLSLIM_TOOLS
Main Program: SAPLSLIM_TOOLS
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function SLIM_CREATE_PDF 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 'SLIM_CREATE_PDF'".
EXPORTING
* IV_MEAS_GUID = "
* IV_COMMIT = 'X' "
* IV_SAVE = 'X' "
IMPORTING
EV_PDF_DATA = "
EV_PDF_SIZE = "
TABLES
* ET_MESS = "
IMPORTING Parameters details for SLIM_CREATE_PDF
IV_MEAS_GUID -
Data type: GUID_16Optional: Yes
Call by Reference: No ( called with pass by value option)
IV_COMMIT -
Data type: FLAGDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
IV_SAVE -
Data type: FLAGDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for SLIM_CREATE_PDF
EV_PDF_DATA -
Data type: XSTRINGOptional: No
Call by Reference: No ( called with pass by value option)
EV_PDF_SIZE -
Data type: IOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for SLIM_CREATE_PDF
ET_MESS -
Data type: RSUVM_MSGOptional: Yes
Call by Reference: Yes
Copy and paste ABAP code example for SLIM_CREATE_PDF 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: | ||||
| lt_et_mess | TYPE STANDARD TABLE OF RSUVM_MSG, " | |||
| lv_ev_pdf_data | TYPE XSTRING, " | |||
| lv_iv_meas_guid | TYPE GUID_16, " | |||
| lv_iv_commit | TYPE FLAG, " 'X' | |||
| lv_ev_pdf_size | TYPE I, " | |||
| lv_iv_save | TYPE FLAG. " 'X' |
|   CALL FUNCTION 'SLIM_CREATE_PDF' " |
| EXPORTING | ||
| IV_MEAS_GUID | = lv_iv_meas_guid | |
| IV_COMMIT | = lv_iv_commit | |
| IV_SAVE | = lv_iv_save | |
| IMPORTING | ||
| EV_PDF_DATA | = lv_ev_pdf_data | |
| EV_PDF_SIZE | = lv_ev_pdf_size | |
| TABLES | ||
| ET_MESS | = lt_et_mess | |
| . " SLIM_CREATE_PDF | ||
ABAP code using 7.40 inline data declarations to call FM SLIM_CREATE_PDF
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.| DATA(ld_iv_commit) | = 'X'. | |||
| DATA(ld_iv_save) | = 'X'. | |||
Search for further information about these or an SAP related objects