SAP SO_OBJECT_SEND_NEW_TASK Function Module for









SO_OBJECT_SEND_NEW_TASK is a standard so object send new task 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 so object send new task FM, simply by entering the name SO_OBJECT_SEND_NEW_TASK into the relevant SAP transaction such as SE37 or SE38.

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



Function SO_OBJECT_SEND_NEW_TASK 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_OBJECT_SEND_NEW_TASK'"
EXPORTING
* FOLDER_ID = ' ' "Existing object: Folder ID
* FORWARDER = ' ' "Existing object: Name of forwarder
* OBJECT_FL_CHANGE = ' ' "New object: Folder information
* OBJECT_HD_CHANGE = ' ' "New object: General header data
* OBJECT_ID = ' ' "Existing object: ID of object
* OBJECT_TYPE = ' ' "New object: Object type
* OUTBOX_FLAG = ' ' "Object should be stored in outbox
* OWNER = ' ' "User responsible for the transmission process

TABLES
* OBJCONT = "New object: Contents
* OBJHEAD = "New object: Specific header data
* OBJPARA = "New object: Parameter for transaction/report
* OBJPARB = "New object: Parameter for dialog/function
RECEIVERS = "Recipient table with send attributes
* PACKING_LIST = "
* ATT_CONT = "
* ATT_HEAD = "
.



IMPORTING Parameters details for SO_OBJECT_SEND_NEW_TASK

FOLDER_ID - Existing object: Folder ID

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

FORWARDER - Existing object: Name of forwarder

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

OBJECT_FL_CHANGE - New object: Folder information

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

OBJECT_HD_CHANGE - New object: General header data

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

OBJECT_ID - Existing object: ID of object

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

OBJECT_TYPE - New object: Object type

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

OUTBOX_FLAG - Object should be stored in outbox

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

OWNER - User responsible for the transmission process

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

TABLES Parameters details for SO_OBJECT_SEND_NEW_TASK

OBJCONT - New object: Contents

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

OBJHEAD - New object: Specific header data

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

OBJPARA - New object: Parameter for transaction/report

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

OBJPARB - New object: Parameter for dialog/function

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

RECEIVERS - Recipient table with send attributes

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

PACKING_LIST -

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

ATT_CONT -

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

ATT_HEAD -

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

Copy and paste ABAP code example for SO_OBJECT_SEND_NEW_TASK 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_objcont  TYPE STANDARD TABLE OF SOLI, "   
lv_folder_id  TYPE SOODK, "   SPACE
lt_objhead  TYPE STANDARD TABLE OF SOLI, "   
lv_forwarder  TYPE SOUD-USRNAM, "   SPACE
lt_objpara  TYPE STANDARD TABLE OF SELC, "   
lv_object_fl_change  TYPE SOFM1, "   SPACE
lt_objparb  TYPE STANDARD TABLE OF SOOP1, "   
lv_object_hd_change  TYPE SOOD1, "   SPACE
lv_object_id  TYPE SOODK, "   SPACE
lt_receivers  TYPE STANDARD TABLE OF SOOS1, "   
lv_object_type  TYPE SOOD-OBJTP, "   SPACE
lt_packing_list  TYPE STANDARD TABLE OF SOXPL, "   
lt_att_cont  TYPE STANDARD TABLE OF SOLI, "   
lv_outbox_flag  TYPE SONV-FLAG, "   SPACE
lv_owner  TYPE SOUD-USRNAM, "   SPACE
lt_att_head  TYPE STANDARD TABLE OF SOLI. "   

  CALL FUNCTION 'SO_OBJECT_SEND_NEW_TASK'  "
    EXPORTING
         FOLDER_ID = lv_folder_id
         FORWARDER = lv_forwarder
         OBJECT_FL_CHANGE = lv_object_fl_change
         OBJECT_HD_CHANGE = lv_object_hd_change
         OBJECT_ID = lv_object_id
         OBJECT_TYPE = lv_object_type
         OUTBOX_FLAG = lv_outbox_flag
         OWNER = lv_owner
    TABLES
         OBJCONT = lt_objcont
         OBJHEAD = lt_objhead
         OBJPARA = lt_objpara
         OBJPARB = lt_objparb
         RECEIVERS = lt_receivers
         PACKING_LIST = lt_packing_list
         ATT_CONT = lt_att_cont
         ATT_HEAD = lt_att_head
. " SO_OBJECT_SEND_NEW_TASK




ABAP code using 7.40 inline data declarations to call FM SO_OBJECT_SEND_NEW_TASK

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.

 
DATA(ld_folder_id) = ' '.
 
 
"SELECT single USRNAM FROM SOUD INTO @DATA(ld_forwarder).
DATA(ld_forwarder) = ' '.
 
 
DATA(ld_object_fl_change) = ' '.
 
 
DATA(ld_object_hd_change) = ' '.
 
DATA(ld_object_id) = ' '.
 
 
"SELECT single OBJTP FROM SOOD INTO @DATA(ld_object_type).
DATA(ld_object_type) = ' '.
 
 
 
"SELECT single FLAG FROM SONV INTO @DATA(ld_outbox_flag).
DATA(ld_outbox_flag) = ' '.
 
"SELECT single USRNAM FROM SOUD INTO @DATA(ld_owner).
DATA(ld_owner) = ' '.
 
 


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!