SAP Function Modules

SSF_DEVELOPE SAP Function module







SSF_DEVELOPE 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 SSF_DEVELOPE into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: SSFG
Released Date: Not Released
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM SSF_DEVELOPE - SSF DEVELOPE





CALL FUNCTION 'SSF_DEVELOPE' "
  EXPORTING
    ssf_dest =                  " rfcdes-rfcdest  RFC Destination
*   str_format = 'PKCS7'        " ssfparms-ssfformat
*   b_outdec = 'X'              " ssfparms-boutdec  Decode output data
*   io_spec = 'T'               " ssfparms-iospec
    ostr_enveloped_data_l =     " ssfparms-envdatalen
  IMPORTING
    ostr_output_data_l =        " ssfparms-outdatalen
    crc =                       " ssfparms-ssfcrc  SSF Return code
  TABLES
    ostr_enveloped_data =       " ssfbin
    recipient =                 " ssfinfo       Payee information
    ostr_output_data =          "
  EXCEPTIONS
    SSF_RFC_ERROR = 1           "
    SSF_RFC_NO_MEMORY = 2       "
    SSF_RFC_GET_DATA_ERROR = 3  "
    SSF_RFC_SEND_DATA_ERROR = 4  "
    SSF_RFC_RECIPIENT_ERROR = 5  "              Error Occurred During Reading of Recipient Line
    SSF_RFC_INPUT_DATA_ERROR = 6  "
    SSF_FB_INPUT_PARAMETER_ERROR = 7  "         Function Module Parameter Error
    SSF_RFC_DESTINATION_ERROR = 8  "
    .  "  SSF_DEVELOPE

ABAP code example for Function Module SSF_DEVELOPE





The ABAP code below is a full code listing to execute function module SSF_DEVELOPE 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:
ld_ostr_output_data_l  TYPE SSFPARMS-OUTDATALEN ,
ld_crc  TYPE SSFPARMS-SSFCRC ,
it_ostr_enveloped_data  TYPE STANDARD TABLE OF SSFBIN,"TABLES PARAM
wa_ostr_enveloped_data  LIKE LINE OF it_ostr_enveloped_data ,
it_recipient  TYPE STANDARD TABLE OF SSFINFO,"TABLES PARAM
wa_recipient  LIKE LINE OF it_recipient ,
it_ostr_output_data  TYPE STANDARD TABLE OF STRING,"TABLES PARAM
wa_ostr_output_data  LIKE LINE OF it_ostr_output_data .


SELECT single RFCDEST
FROM RFCDES
INTO @DATA(ld_ssf_dest).


DATA(ld_str_format) = some text here

DATA(ld_b_outdec) = some text here

DATA(ld_io_spec) = some text here

DATA(ld_ostr_enveloped_data_l) = 123

"populate fields of struture and append to itab
append wa_ostr_enveloped_data to it_ostr_enveloped_data.

"populate fields of struture and append to itab
append wa_recipient to it_recipient.

"populate fields of struture and append to itab
append wa_ostr_output_data to it_ostr_output_data. . CALL FUNCTION 'SSF_DEVELOPE' EXPORTING ssf_dest = ld_ssf_dest * str_format = ld_str_format * b_outdec = ld_b_outdec * io_spec = ld_io_spec ostr_enveloped_data_l = ld_ostr_enveloped_data_l IMPORTING ostr_output_data_l = ld_ostr_output_data_l crc = ld_crc TABLES ostr_enveloped_data = it_ostr_enveloped_data recipient = it_recipient ostr_output_data = it_ostr_output_data EXCEPTIONS SSF_RFC_ERROR = 1 SSF_RFC_NO_MEMORY = 2 SSF_RFC_GET_DATA_ERROR = 3 SSF_RFC_SEND_DATA_ERROR = 4 SSF_RFC_RECIPIENT_ERROR = 5 SSF_RFC_INPUT_DATA_ERROR = 6 SSF_FB_INPUT_PARAMETER_ERROR = 7 SSF_RFC_DESTINATION_ERROR = 8 . " SSF_DEVELOPE
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 2. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 3. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 4. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 5. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 6. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 7. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 8. "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_ostr_output_data_l  TYPE SSFPARMS-OUTDATALEN ,
ld_ssf_dest  TYPE RFCDES-RFCDEST ,
it_ostr_enveloped_data  TYPE STANDARD TABLE OF SSFBIN ,
wa_ostr_enveloped_data  LIKE LINE OF it_ostr_enveloped_data,
ld_crc  TYPE SSFPARMS-SSFCRC ,
ld_str_format  TYPE SSFPARMS-SSFFORMAT ,
it_recipient  TYPE STANDARD TABLE OF SSFINFO ,
wa_recipient  LIKE LINE OF it_recipient,
ld_b_outdec  TYPE SSFPARMS-BOUTDEC ,
it_ostr_output_data  TYPE STANDARD TABLE OF STRING ,
wa_ostr_output_data  LIKE LINE OF it_ostr_output_data,
ld_io_spec  TYPE SSFPARMS-IOSPEC ,
ld_ostr_enveloped_data_l  TYPE SSFPARMS-ENVDATALEN .


SELECT single RFCDEST
FROM RFCDES
INTO ld_ssf_dest.


"populate fields of struture and append to itab
append wa_ostr_enveloped_data to it_ostr_enveloped_data.

ld_str_format = some text here

"populate fields of struture and append to itab
append wa_recipient to it_recipient.

ld_b_outdec = some text here

"populate fields of struture and append to itab
append wa_ostr_output_data to it_ostr_output_data.

ld_io_spec = some text here

ld_ostr_enveloped_data_l = 123

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 SSF_DEVELOPE or its description.