SAP Function Modules

SO_OBJECT_SEND_ASYNCHRON SAP Function module - Send in SAPoffice and Externally







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

Associated Function Group: SOA2
Released Date: Not Released
Processing type: Remote-Enabled
remote enabled module settings


Pattern for FM SO_OBJECT_SEND_ASYNCHRON - SO OBJECT SEND ASYNCHRON





CALL FUNCTION 'SO_OBJECT_SEND_ASYNCHRON' "Send in SAPoffice and Externally
* EXPORTING
*   folder_id = SPACE           " soodk         Existing object: Folder ID
*   forwarder = SPACE           " soud-usrnam   Existing object: Name of forwarder
*   object_fl_change = SPACE    " sofm1         New object: Folder information
*   object_hd_change = SPACE    " sood1         New object: General header data
*   object_id = SPACE           " soodk         Existing object: ID of object
*   object_type = SPACE         " sood-objtp    New object: Object type
*   outbox_flag = SPACE         " sonv-flag     Object should be stored in outbox
*   store_flag = SPACE          " sonv-flag
*   delete_flag = SPACE         " sonv-flag
*   link_folder_id = SPACE      " soodk
*   originator = SPACE          " soos1-recextnam
*   originator_type = 'J'       " soos1-recesc
*   owner = SPACE               " soud-usrnam   User responsible for the transmission process
  TABLES
*   objcont =                   " soli          New object: Contents
*   objhead =                   " soli          New object: Specific header data
*   objpara =                   " selc          New object: Parameter for transaction/report
*   objparb =                   " soop1         New object: Parameter for dialog/function
    receivers =                 " soos1         Recipient table with send attributes
*   packing_list =              " soxpl
*   att_cont =                  " soli
*   att_head =                  " soli
*   note_text =                 " soli
*   link_list =                 " soxll
*   application_object =        " swotobjid
    .  "  SO_OBJECT_SEND_ASYNCHRON

ABAP code example for Function Module SO_OBJECT_SEND_ASYNCHRON





The ABAP code below is a full code listing to execute function module SO_OBJECT_SEND_ASYNCHRON 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:
it_objcont  TYPE STANDARD TABLE OF SOLI,"TABLES PARAM
wa_objcont  LIKE LINE OF it_objcont ,
it_objhead  TYPE STANDARD TABLE OF SOLI,"TABLES PARAM
wa_objhead  LIKE LINE OF it_objhead ,
it_objpara  TYPE STANDARD TABLE OF SELC,"TABLES PARAM
wa_objpara  LIKE LINE OF it_objpara ,
it_objparb  TYPE STANDARD TABLE OF SOOP1,"TABLES PARAM
wa_objparb  LIKE LINE OF it_objparb ,
it_receivers  TYPE STANDARD TABLE OF SOOS1,"TABLES PARAM
wa_receivers  LIKE LINE OF it_receivers ,
it_packing_list  TYPE STANDARD TABLE OF SOXPL,"TABLES PARAM
wa_packing_list  LIKE LINE OF it_packing_list ,
it_att_cont  TYPE STANDARD TABLE OF SOLI,"TABLES PARAM
wa_att_cont  LIKE LINE OF it_att_cont ,
it_att_head  TYPE STANDARD TABLE OF SOLI,"TABLES PARAM
wa_att_head  LIKE LINE OF it_att_head ,
it_note_text  TYPE STANDARD TABLE OF SOLI,"TABLES PARAM
wa_note_text  LIKE LINE OF it_note_text ,
it_link_list  TYPE STANDARD TABLE OF SOXLL,"TABLES PARAM
wa_link_list  LIKE LINE OF it_link_list ,
it_application_object  TYPE STANDARD TABLE OF SWOTOBJID,"TABLES PARAM
wa_application_object  LIKE LINE OF it_application_object .

DATA(ld_folder_id) = 'Check type of data required'.

SELECT single USRNAM
FROM SOUD
INTO @DATA(ld_forwarder).

DATA(ld_object_fl_change) = 'Check type of data required'.
DATA(ld_object_hd_change) = 'Check type of data required'.
DATA(ld_object_id) = 'Check type of data required'.

SELECT single OBJTP
FROM SOOD
INTO @DATA(ld_object_type).


DATA(ld_outbox_flag) = some text here

DATA(ld_store_flag) = some text here

DATA(ld_delete_flag) = some text here
DATA(ld_link_folder_id) = 'Check type of data required'.

DATA(ld_originator) = Check type of data required

DATA(ld_originator_type) = some text here

SELECT single USRNAM
FROM SOUD
INTO @DATA(ld_owner).


"populate fields of struture and append to itab
append wa_objcont to it_objcont.

"populate fields of struture and append to itab
append wa_objhead to it_objhead.

"populate fields of struture and append to itab
append wa_objpara to it_objpara.

"populate fields of struture and append to itab
append wa_objparb to it_objparb.

"populate fields of struture and append to itab
append wa_receivers to it_receivers.

"populate fields of struture and append to itab
append wa_packing_list to it_packing_list.

"populate fields of struture and append to itab
append wa_att_cont to it_att_cont.

"populate fields of struture and append to itab
append wa_att_head to it_att_head.

"populate fields of struture and append to itab
append wa_note_text to it_note_text.

"populate fields of struture and append to itab
append wa_link_list to it_link_list.

"populate fields of struture and append to itab
append wa_application_object to it_application_object. . CALL FUNCTION 'SO_OBJECT_SEND_ASYNCHRON' * EXPORTING * folder_id = ld_folder_id * forwarder = ld_forwarder * object_fl_change = ld_object_fl_change * object_hd_change = ld_object_hd_change * object_id = ld_object_id * object_type = ld_object_type * outbox_flag = ld_outbox_flag * store_flag = ld_store_flag * delete_flag = ld_delete_flag * link_folder_id = ld_link_folder_id * originator = ld_originator * originator_type = ld_originator_type * owner = ld_owner TABLES * objcont = it_objcont * objhead = it_objhead * objpara = it_objpara * objparb = it_objparb receivers = it_receivers * packing_list = it_packing_list * att_cont = it_att_cont * att_head = it_att_head * note_text = it_note_text * link_list = it_link_list * application_object = it_application_object . " SO_OBJECT_SEND_ASYNCHRON
IF SY-SUBRC EQ 0. "All OK 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_folder_id  TYPE SOODK ,
it_objcont  TYPE STANDARD TABLE OF SOLI ,
wa_objcont  LIKE LINE OF it_objcont,
ld_forwarder  TYPE SOUD-USRNAM ,
it_objhead  TYPE STANDARD TABLE OF SOLI ,
wa_objhead  LIKE LINE OF it_objhead,
ld_object_fl_change  TYPE SOFM1 ,
it_objpara  TYPE STANDARD TABLE OF SELC ,
wa_objpara  LIKE LINE OF it_objpara,
ld_object_hd_change  TYPE SOOD1 ,
it_objparb  TYPE STANDARD TABLE OF SOOP1 ,
wa_objparb  LIKE LINE OF it_objparb,
ld_object_id  TYPE SOODK ,
it_receivers  TYPE STANDARD TABLE OF SOOS1 ,
wa_receivers  LIKE LINE OF it_receivers,
ld_object_type  TYPE SOOD-OBJTP ,
it_packing_list  TYPE STANDARD TABLE OF SOXPL ,
wa_packing_list  LIKE LINE OF it_packing_list,
ld_outbox_flag  TYPE SONV-FLAG ,
it_att_cont  TYPE STANDARD TABLE OF SOLI ,
wa_att_cont  LIKE LINE OF it_att_cont,
ld_store_flag  TYPE SONV-FLAG ,
it_att_head  TYPE STANDARD TABLE OF SOLI ,
wa_att_head  LIKE LINE OF it_att_head,
ld_delete_flag  TYPE SONV-FLAG ,
it_note_text  TYPE STANDARD TABLE OF SOLI ,
wa_note_text  LIKE LINE OF it_note_text,
ld_link_folder_id  TYPE SOODK ,
it_link_list  TYPE STANDARD TABLE OF SOXLL ,
wa_link_list  LIKE LINE OF it_link_list,
it_application_object  TYPE STANDARD TABLE OF SWOTOBJID ,
wa_application_object  LIKE LINE OF it_application_object,
ld_originator  TYPE SOOS1-RECEXTNAM ,
ld_originator_type  TYPE SOOS1-RECESC ,
ld_owner  TYPE SOUD-USRNAM .

ld_folder_id = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_objcont to it_objcont.

SELECT single USRNAM
FROM SOUD
INTO ld_forwarder.


"populate fields of struture and append to itab
append wa_objhead to it_objhead.
ld_object_fl_change = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_objpara to it_objpara.
ld_object_hd_change = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_objparb to it_objparb.
ld_object_id = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_receivers to it_receivers.

SELECT single OBJTP
FROM SOOD
INTO ld_object_type.


"populate fields of struture and append to itab
append wa_packing_list to it_packing_list.

ld_outbox_flag = some text here

"populate fields of struture and append to itab
append wa_att_cont to it_att_cont.

ld_store_flag = some text here

"populate fields of struture and append to itab
append wa_att_head to it_att_head.

ld_delete_flag = some text here

"populate fields of struture and append to itab
append wa_note_text to it_note_text.
ld_link_folder_id = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_link_list to it_link_list.

"populate fields of struture and append to itab
append wa_application_object to it_application_object.

ld_originator = Check type of data required

ld_originator_type = some text here

SELECT single USRNAM
FROM SOUD
INTO ld_owner.

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