SAP SF_SO_UPDATE Function Module for SAPfind: Update SHL object in SAPoffice file









SF_SO_UPDATE is a standard sf so update SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for SAPfind: Update SHL object in SAPoffice file 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 sf so update FM, simply by entering the name SF_SO_UPDATE into the relevant SAP transaction such as SE37 or SE38.

Function Group: SFSO
Program Name: SAPLSFSO
Main Program: SAPLSFSO
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function SF_SO_UPDATE 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 'SF_SO_UPDATE'"SAPfind: Update SHL object in SAPoffice file
EXPORTING
DESC_FLAG = "Flag for existence of descriptors
FOL_ID = "ID of folder where object lies
* FORWARDER = ' ' "
OBJECT_FL_CHANGE = "File information for object
OBJECT_HD_CHANGE = "Header data of object
OBJ_ID = "ID of object
SCRHEAD = "SAPscript text header
SHELL_CLASS = "Information class to which folder

TABLES
SHLDES = "List of descriptors
SHLTXT = "Contents of object

EXCEPTIONS
ACTIVE_USER_NOT_EXIST = 1 COMPONENT_NOT_AVAILABLE = 2 FOLDER_NOT_EXIST = 3 INTERN_ERROR = 4 NO_AUTHORIZATION = 5 SUBSTITUTE_NOT_ACTIVE = 6 TEXT_NOT_FOUND = 7
.



IMPORTING Parameters details for SF_SO_UPDATE

DESC_FLAG - Flag for existence of descriptors

Data type: RSFIN-BOOL
Optional: No
Call by Reference: No ( called with pass by value option)

FOL_ID - ID of folder where object lies

Data type: SOODK
Optional: No
Call by Reference: No ( called with pass by value option)

FORWARDER -

Data type: SOUD-USRNAM
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

OBJECT_FL_CHANGE - File information for object

Data type: SOFM1
Optional: No
Call by Reference: No ( called with pass by value option)

OBJECT_HD_CHANGE - Header data of object

Data type: SOOD1
Optional: No
Call by Reference: No ( called with pass by value option)

OBJ_ID - ID of object

Data type: SOODK
Optional: No
Call by Reference: No ( called with pass by value option)

SCRHEAD - SAPscript text header

Data type: THEAD
Optional: No
Call by Reference: No ( called with pass by value option)

SHELL_CLASS - Information class to which folder

Data type: TFIT-SHCLASS
Optional: No
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for SF_SO_UPDATE

SHLDES - List of descriptors

Data type: SOLI
Optional: No
Call by Reference: No ( called with pass by value option)

SHLTXT - Contents of object

Data type: TLINE
Optional: No
Call by Reference: No ( called with pass by value option)

EXCEPTIONS details

ACTIVE_USER_NOT_EXIST - Active user is not a SAPoffice use

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

COMPONENT_NOT_AVAILABLE - SAPoffice component is not availab

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

FOLDER_NOT_EXIST - Folder does not exist

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

INTERN_ERROR - Internal error

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

NO_AUTHORIZATION - No authorization for this object/f

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

SUBSTITUTE_NOT_ACTIVE - Substitute inactive/not defined

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

TEXT_NOT_FOUND - Object does not exist

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for SF_SO_UPDATE 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_shldes  TYPE STANDARD TABLE OF SOLI, "   
lv_desc_flag  TYPE RSFIN-BOOL, "   
lv_active_user_not_exist  TYPE RSFIN, "   
lv_fol_id  TYPE SOODK, "   
lt_shltxt  TYPE STANDARD TABLE OF TLINE, "   
lv_component_not_available  TYPE TLINE, "   
lv_forwarder  TYPE SOUD-USRNAM, "   SPACE
lv_folder_not_exist  TYPE SOUD, "   
lv_intern_error  TYPE SOUD, "   
lv_object_fl_change  TYPE SOFM1, "   
lv_no_authorization  TYPE SOFM1, "   
lv_object_hd_change  TYPE SOOD1, "   
lv_obj_id  TYPE SOODK, "   
lv_substitute_not_active  TYPE SOODK, "   
lv_scrhead  TYPE THEAD, "   
lv_text_not_found  TYPE THEAD, "   
lv_shell_class  TYPE TFIT-SHCLASS. "   

  CALL FUNCTION 'SF_SO_UPDATE'  "SAPfind: Update SHL object in SAPoffice file
    EXPORTING
         DESC_FLAG = lv_desc_flag
         FOL_ID = lv_fol_id
         FORWARDER = lv_forwarder
         OBJECT_FL_CHANGE = lv_object_fl_change
         OBJECT_HD_CHANGE = lv_object_hd_change
         OBJ_ID = lv_obj_id
         SCRHEAD = lv_scrhead
         SHELL_CLASS = lv_shell_class
    TABLES
         SHLDES = lt_shldes
         SHLTXT = lt_shltxt
    EXCEPTIONS
        ACTIVE_USER_NOT_EXIST = 1
        COMPONENT_NOT_AVAILABLE = 2
        FOLDER_NOT_EXIST = 3
        INTERN_ERROR = 4
        NO_AUTHORIZATION = 5
        SUBSTITUTE_NOT_ACTIVE = 6
        TEXT_NOT_FOUND = 7
. " SF_SO_UPDATE




ABAP code using 7.40 inline data declarations to call FM SF_SO_UPDATE

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 BOOL FROM RSFIN INTO @DATA(ld_desc_flag).
 
 
 
 
 
"SELECT single USRNAM FROM SOUD INTO @DATA(ld_forwarder).
DATA(ld_forwarder) = ' '.
 
 
 
 
 
 
 
 
 
 
"SELECT single SHCLASS FROM TFIT INTO @DATA(ld_shell_class).
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!