SAP RMPS_ADDSIGN_DOCUMENT Function Module for
RMPS_ADDSIGN_DOCUMENT is a standard rmps addsign document 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 rmps addsign document FM, simply by entering the name RMPS_ADDSIGN_DOCUMENT into the relevant SAP transaction such as SE37 or SE38.
Function Group: RMPS_DSIG
Program Name: SAPLRMPS_DSIG
Main Program: SAPLRMPS_DSIG
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function RMPS_ADDSIGN_DOCUMENT 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 'RMPS_ADDSIGN_DOCUMENT'".
EXPORTING
* TXTDOCUMENT = "
* BINDOCUMENT = "
* DOC_TYPE = 'PDF' "
* SIG_FORMAT = 'PKCS7' "
* B_DETACHED = ' ' "
* SSF_ID = ' ' "
* SSF_PROF = ' ' "
* GUI_TYPE = 'WIN_GUI' "
IMPORTING
CRC = "
RESULT = "
SIGNATURE = "
EXCEPTIONS
PARAMETER_ERROR = 1 SSF_FB_INPUT_PARAMETER_ERROR = 10 SSF_RFC_DESTINATION_ERROR = 11 NO_SSF_INFO_FOUND = 12 CANCELED_BY_USER = 13 SSF_RFC_SIGNER_LIST_ERROR = 14 CONVERSION_ERROR = 2 CONTROL_ERROR = 3 FRONTEND_ERROR = 4 SSF_RFC_ERROR = 5 SSF_RFC_NO_MEMORY = 6 SSF_RFC_GET_DATA_ERROR = 7 SSF_RFC_SEND_DATA_ERROR = 8 SSF_RFC_INPUT_DATA_ERROR = 9
IMPORTING Parameters details for RMPS_ADDSIGN_DOCUMENT
TXTDOCUMENT -
Data type: SSFTXTTABOptional: Yes
Call by Reference: Yes
BINDOCUMENT -
Data type: XSTRINGOptional: Yes
Call by Reference: Yes
DOC_TYPE -
Data type: STRINGDefault: 'PDF'
Optional: Yes
Call by Reference: No ( called with pass by value option)
SIG_FORMAT -
Data type: SSFFORMDefault: 'PKCS7'
Optional: Yes
Call by Reference: No ( called with pass by value option)
B_DETACHED -
Data type: SSFBDETADefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
SSF_ID -
Data type: SSFIDDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
SSF_PROF -
Data type: SSFPROFDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
GUI_TYPE -
Data type: STRINGDefault: 'WIN_GUI'
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for RMPS_ADDSIGN_DOCUMENT
CRC -
Data type: IOptional: No
Call by Reference: No ( called with pass by value option)
RESULT -
Data type: SSFINFO-RESULTOptional: No
Call by Reference: No ( called with pass by value option)
SIGNATURE -
Data type: XSTRINGOptional: No
Call by Reference: Yes
EXCEPTIONS details
PARAMETER_ERROR -
Data type:Optional: No
Call by Reference: Yes
SSF_FB_INPUT_PARAMETER_ERROR -
Data type:Optional: No
Call by Reference: Yes
SSF_RFC_DESTINATION_ERROR -
Data type:Optional: No
Call by Reference: Yes
NO_SSF_INFO_FOUND -
Data type:Optional: No
Call by Reference: Yes
CANCELED_BY_USER -
Data type:Optional: No
Call by Reference: Yes
SSF_RFC_SIGNER_LIST_ERROR -
Data type:Optional: No
Call by Reference: Yes
CONVERSION_ERROR -
Data type:Optional: No
Call by Reference: Yes
CONTROL_ERROR -
Data type:Optional: No
Call by Reference: Yes
FRONTEND_ERROR -
Data type:Optional: No
Call by Reference: Yes
SSF_RFC_ERROR -
Data type:Optional: No
Call by Reference: Yes
SSF_RFC_NO_MEMORY -
Data type:Optional: No
Call by Reference: Yes
SSF_RFC_GET_DATA_ERROR -
Data type:Optional: No
Call by Reference: Yes
SSF_RFC_SEND_DATA_ERROR -
Data type:Optional: No
Call by Reference: Yes
SSF_RFC_INPUT_DATA_ERROR -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for RMPS_ADDSIGN_DOCUMENT 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_crc | TYPE I, " | |||
| lv_txtdocument | TYPE SSFTXTTAB, " | |||
| lv_parameter_error | TYPE SSFTXTTAB, " | |||
| lv_ssf_fb_input_parameter_error | TYPE SSFTXTTAB, " | |||
| lv_ssf_rfc_destination_error | TYPE SSFTXTTAB, " | |||
| lv_no_ssf_info_found | TYPE SSFTXTTAB, " | |||
| lv_canceled_by_user | TYPE SSFTXTTAB, " | |||
| lv_ssf_rfc_signer_list_error | TYPE SSFTXTTAB, " | |||
| lv_result | TYPE SSFINFO-RESULT, " | |||
| lv_bindocument | TYPE XSTRING, " | |||
| lv_conversion_error | TYPE XSTRING, " | |||
| lv_doc_type | TYPE STRING, " 'PDF' | |||
| lv_signature | TYPE XSTRING, " | |||
| lv_control_error | TYPE XSTRING, " | |||
| lv_sig_format | TYPE SSFFORM, " 'PKCS7' | |||
| lv_frontend_error | TYPE SSFFORM, " | |||
| lv_b_detached | TYPE SSFBDETA, " SPACE | |||
| lv_ssf_rfc_error | TYPE SSFBDETA, " | |||
| lv_ssf_id | TYPE SSFID, " SPACE | |||
| lv_ssf_rfc_no_memory | TYPE SSFID, " | |||
| lv_ssf_prof | TYPE SSFPROF, " SPACE | |||
| lv_ssf_rfc_get_data_error | TYPE SSFPROF, " | |||
| lv_gui_type | TYPE STRING, " 'WIN_GUI' | |||
| lv_ssf_rfc_send_data_error | TYPE STRING, " | |||
| lv_ssf_rfc_input_data_error | TYPE STRING. " |
|   CALL FUNCTION 'RMPS_ADDSIGN_DOCUMENT' " |
| EXPORTING | ||
| TXTDOCUMENT | = lv_txtdocument | |
| BINDOCUMENT | = lv_bindocument | |
| DOC_TYPE | = lv_doc_type | |
| SIG_FORMAT | = lv_sig_format | |
| B_DETACHED | = lv_b_detached | |
| SSF_ID | = lv_ssf_id | |
| SSF_PROF | = lv_ssf_prof | |
| GUI_TYPE | = lv_gui_type | |
| IMPORTING | ||
| CRC | = lv_crc | |
| RESULT | = lv_result | |
| SIGNATURE | = lv_signature | |
| EXCEPTIONS | ||
| PARAMETER_ERROR = 1 | ||
| SSF_FB_INPUT_PARAMETER_ERROR = 10 | ||
| SSF_RFC_DESTINATION_ERROR = 11 | ||
| NO_SSF_INFO_FOUND = 12 | ||
| CANCELED_BY_USER = 13 | ||
| SSF_RFC_SIGNER_LIST_ERROR = 14 | ||
| CONVERSION_ERROR = 2 | ||
| CONTROL_ERROR = 3 | ||
| FRONTEND_ERROR = 4 | ||
| SSF_RFC_ERROR = 5 | ||
| SSF_RFC_NO_MEMORY = 6 | ||
| SSF_RFC_GET_DATA_ERROR = 7 | ||
| SSF_RFC_SEND_DATA_ERROR = 8 | ||
| SSF_RFC_INPUT_DATA_ERROR = 9 | ||
| . " RMPS_ADDSIGN_DOCUMENT | ||
ABAP code using 7.40 inline data declarations to call FM RMPS_ADDSIGN_DOCUMENT
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 RESULT FROM SSFINFO INTO @DATA(ld_result). | ||||
| DATA(ld_doc_type) | = 'PDF'. | |||
| DATA(ld_sig_format) | = 'PKCS7'. | |||
| DATA(ld_b_detached) | = ' '. | |||
| DATA(ld_ssf_id) | = ' '. | |||
| DATA(ld_ssf_prof) | = ' '. | |||
| DATA(ld_gui_type) | = 'WIN_GUI'. | |||
Search for further information about these or an SAP related objects