SAP SO_WIND_OBJECT_HEADER Function Module for Header of an object









SO_WIND_OBJECT_HEADER is a standard so wind object header SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Header of an object 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 so wind object header FM, simply by entering the name SO_WIND_OBJECT_HEADER into the relevant SAP transaction such as SE37 or SE38.

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



Function SO_WIND_OBJECT_HEADER 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 'SO_WIND_OBJECT_HEADER'"Header of an object
EXPORTING
FOLDER_ID = "Folder ID
* OBJECT_HD_DISPLAY = "Header data of object
OBJECT_ID = "Object ID (see also comments)
* OK_CODE_CALLER = ' ' "Operation code for object itself
* OK_CODE_IN = 'DISP' "Operation code for header (see comments)
OWNER = "Owner of object
FOLDER_REGION = "
* FORWARDER = ' ' "Forwarder
* F_OBJTYPE_NO_CHANGE = ' ' "
* LOCAL_SELECT = ' ' "Target folder can only be selected from current folder area
* MULTIPLE_OBJECTS = 'X' "Flag: Possible to navigate between objects
* NO_DIALOG = ' ' "
* SELECTIONS = "
* OBJECT_FL_DISPLAY_IN = "Storage parameter for object

IMPORTING
CHANGE_FLAG = "Change made
FOLDER_ID = "Folder ID
FOLDER_REGION = "
OBJECT_FL_DISPLAY_OUT = "Storage parameter for object
OBJECT_HD_DISPLAY_OUT = "Header data of object
OBJECT_ID = "Object ID (see also comments)
OK_CODE_OUT = "The function with which the FM was exited
.



IMPORTING Parameters details for SO_WIND_OBJECT_HEADER

FOLDER_ID - Folder ID

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

OBJECT_HD_DISPLAY - Header data of object

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

OBJECT_ID - Object ID (see also comments)

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

OK_CODE_CALLER - Operation code for object itself

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

OK_CODE_IN - Operation code for header (see comments)

Data type: SY-UCOMM
Default: 'DISP'
Optional: Yes
Call by Reference: No ( called with pass by value option)

OWNER - Owner of object

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

FOLDER_REGION -

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

FORWARDER - Forwarder

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

F_OBJTYPE_NO_CHANGE -

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

LOCAL_SELECT - Target folder can only be selected from current folder area

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

MULTIPLE_OBJECTS - Flag: Possible to navigate between objects

Data type: SONV-FLAG
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

NO_DIALOG -

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

SELECTIONS -

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

OBJECT_FL_DISPLAY_IN - Storage parameter for object

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

EXPORTING Parameters details for SO_WIND_OBJECT_HEADER

CHANGE_FLAG - Change made

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

FOLDER_ID - Folder ID

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

FOLDER_REGION -

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

OBJECT_FL_DISPLAY_OUT - Storage parameter for object

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

OBJECT_HD_DISPLAY_OUT - Header data of object

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

OBJECT_ID - Object ID (see also comments)

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

OK_CODE_OUT - The function with which the FM was exited

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

Copy and paste ABAP code example for SO_WIND_OBJECT_HEADER 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_folder_id  TYPE SOODK, "   
lv_change_flag  TYPE SONV-FLAG, "   
lv_object_hd_display  TYPE SOOD2, "   
lv_object_id  TYPE SOODK, "   
lv_ok_code_caller  TYPE SY-UCOMM, "   SPACE
lv_ok_code_in  TYPE SY-UCOMM, "   'DISP'
lv_owner  TYPE SOUD-USRNAM, "   
lv_folder_id  TYPE SOODK, "   
lv_folder_region  TYPE SOFH-FOLRG, "   
lv_forwarder  TYPE SOUD-USRNAM, "   SPACE
lv_folder_region  TYPE SOFH-FOLRG, "   
lv_f_objtype_no_change  TYPE SONV-FLAG, "   SPACE
lv_object_fl_display_out  TYPE SOFM2, "   
lv_local_select  TYPE SONV-FLAG, "   SPACE
lv_object_hd_display_out  TYPE SOOD2, "   
lv_object_id  TYPE SOODK, "   
lv_multiple_objects  TYPE SONV-FLAG, "   'X'
lv_no_dialog  TYPE SONV-FLAG, "   SPACE
lv_ok_code_out  TYPE SY-UCOMM, "   
lv_selections  TYPE SOXMS, "   
lv_object_fl_display_in  TYPE SOFM2. "   

  CALL FUNCTION 'SO_WIND_OBJECT_HEADER'  "Header of an object
    EXPORTING
         FOLDER_ID = lv_folder_id
         OBJECT_HD_DISPLAY = lv_object_hd_display
         OBJECT_ID = lv_object_id
         OK_CODE_CALLER = lv_ok_code_caller
         OK_CODE_IN = lv_ok_code_in
         OWNER = lv_owner
         FOLDER_REGION = lv_folder_region
         FORWARDER = lv_forwarder
         F_OBJTYPE_NO_CHANGE = lv_f_objtype_no_change
         LOCAL_SELECT = lv_local_select
         MULTIPLE_OBJECTS = lv_multiple_objects
         NO_DIALOG = lv_no_dialog
         SELECTIONS = lv_selections
         OBJECT_FL_DISPLAY_IN = lv_object_fl_display_in
    IMPORTING
         CHANGE_FLAG = lv_change_flag
         FOLDER_ID = lv_folder_id
         FOLDER_REGION = lv_folder_region
         OBJECT_FL_DISPLAY_OUT = lv_object_fl_display_out
         OBJECT_HD_DISPLAY_OUT = lv_object_hd_display_out
         OBJECT_ID = lv_object_id
         OK_CODE_OUT = lv_ok_code_out
. " SO_WIND_OBJECT_HEADER




ABAP code using 7.40 inline data declarations to call FM SO_WIND_OBJECT_HEADER

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 FLAG FROM SONV INTO @DATA(ld_change_flag).
 
 
 
"SELECT single UCOMM FROM SY INTO @DATA(ld_ok_code_caller).
DATA(ld_ok_code_caller) = ' '.
 
"SELECT single UCOMM FROM SY INTO @DATA(ld_ok_code_in).
DATA(ld_ok_code_in) = 'DISP'.
 
"SELECT single USRNAM FROM SOUD INTO @DATA(ld_owner).
 
 
"SELECT single FOLRG FROM SOFH INTO @DATA(ld_folder_region).
 
"SELECT single USRNAM FROM SOUD INTO @DATA(ld_forwarder).
DATA(ld_forwarder) = ' '.
 
"SELECT single FOLRG FROM SOFH INTO @DATA(ld_folder_region).
 
"SELECT single FLAG FROM SONV INTO @DATA(ld_f_objtype_no_change).
DATA(ld_f_objtype_no_change) = ' '.
 
 
"SELECT single FLAG FROM SONV INTO @DATA(ld_local_select).
DATA(ld_local_select) = ' '.
 
 
 
"SELECT single FLAG FROM SONV INTO @DATA(ld_multiple_objects).
DATA(ld_multiple_objects) = 'X'.
 
"SELECT single FLAG FROM SONV INTO @DATA(ld_no_dialog).
DATA(ld_no_dialog) = ' '.
 
"SELECT single UCOMM FROM SY INTO @DATA(ld_ok_code_out).
 
 
 


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!