SAP Function Modules

SSFPSE_LINK SAP Function module







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

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


Pattern for FM SSFPSE_LINK - SSFPSE LINK





CALL FUNCTION 'SSFPSE_LINK' "
  EXPORTING
    psename =                   " ssf_pse_h-filename
    id =                        " ssf_pse_h-id
    host = ' '                  " ssf_pse_h-host
    instanceid = '00'           " ssf_pse_h-instanceid
*   type = 'PSE'                " ssf_pse_h-type
*   format = 'RAW'              " ssf_pse_h-dataformat
*   b_cleanup = 'X'             " ssfflag
*   b_distribute =              " ssfflag
*   psepin =                    " ssfparms-pabpw
  EXCEPTIONS
    PSE_NOT_FOUND = 1           "
    STORING_FAILED = 2          "
    AUTHORITY_MISSING = 3       "               No authorization for this function
    .  "  SSFPSE_LINK

ABAP code example for Function Module SSFPSE_LINK





The ABAP code below is a full code listing to execute function module SSFPSE_LINK 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).

 

SELECT single FILENAME
FROM SSF_PSE_H
INTO @DATA(ld_psename).


SELECT single ID
FROM SSF_PSE_H
INTO @DATA(ld_id).


SELECT single HOST
FROM SSF_PSE_H
INTO @DATA(ld_host).


SELECT single INSTANCEID
FROM SSF_PSE_H
INTO @DATA(ld_instanceid).


SELECT single TYPE
FROM SSF_PSE_H
INTO @DATA(ld_type).


SELECT single DATAFORMAT
FROM SSF_PSE_H
INTO @DATA(ld_format).

DATA(ld_b_cleanup) = 'Check type of data required'.
DATA(ld_b_distribute) = 'Check type of data required'.

DATA(ld_psepin) = some text here . CALL FUNCTION 'SSFPSE_LINK' EXPORTING psename = ld_psename id = ld_id host = ld_host instanceid = ld_instanceid * type = ld_type * format = ld_format * b_cleanup = ld_b_cleanup * b_distribute = ld_b_distribute * psepin = ld_psepin EXCEPTIONS PSE_NOT_FOUND = 1 STORING_FAILED = 2 AUTHORITY_MISSING = 3 . " SSFPSE_LINK
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 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_psename  TYPE SSF_PSE_H-FILENAME ,
ld_id  TYPE SSF_PSE_H-ID ,
ld_host  TYPE SSF_PSE_H-HOST ,
ld_instanceid  TYPE SSF_PSE_H-INSTANCEID ,
ld_type  TYPE SSF_PSE_H-TYPE ,
ld_format  TYPE SSF_PSE_H-DATAFORMAT ,
ld_b_cleanup  TYPE SSFFLAG ,
ld_b_distribute  TYPE SSFFLAG ,
ld_psepin  TYPE SSFPARMS-PABPW .


SELECT single FILENAME
FROM SSF_PSE_H
INTO ld_psename.


SELECT single ID
FROM SSF_PSE_H
INTO ld_id.


SELECT single HOST
FROM SSF_PSE_H
INTO ld_host.


SELECT single INSTANCEID
FROM SSF_PSE_H
INTO ld_instanceid.


SELECT single TYPE
FROM SSF_PSE_H
INTO ld_type.


SELECT single DATAFORMAT
FROM SSF_PSE_H
INTO ld_format.

ld_b_cleanup = 'Check type of data required'.
ld_b_distribute = 'Check type of data required'.

ld_psepin = some text here

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