SAP Reports / Programs | Basis Components | Business Management | SAP Business Workflow(BC-BMT-WFM) SAP BC

FSWUBE09 SAP ABAP INCLUDE - Creates the workflow rfc destination







FSWUBE09 is a standard ABAP INCLUDE available within your SAP system (depending on your version and release level). Below is the basic information available for this SAP report including which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC. Also check out the submitted Comments related to this SAP report or see any standard documentation available.

If you would like to execute this report or see the full code listing simply enter FSWUBE09 into the relevant SAP transactions such as SE38 or SE80


ABAP code to call this SAP report using the submit statement

This report can be called from another progam/report simply by using the ABAP SUBMIT statement, see below for example ABAP code snipts of how to do this.






SUBMIT FSWUBE09. "Basic submit
SUBMIT FSWUBE09 AND RETURN. "Return to original report after report execution complete
SUBMIT FSWUBE09 VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


Text pool values


Title: Creates the workflow rfc destination


INCLUDES used within this REPORT FSWUBE09

No INCLUDES are used within this REPORT code!


TABLES used within REPORT and the associated SELECT statement:





No SAP DATABASE tables are accessed within this REPORT code!


Function Modules used within report and the associated call statement:

SWW_WIM_RFC_DESTINATION_NAME CALL FUNCTION 'SWW_WIM_RFC_DESTINATION_NAME' IMPORTING workflow_destination = new_workflow_local EXCEPTIONS OTHERS = 1.

RFC_READ_L_DESTINATION CALL FUNCTION 'RFC_READ_L_DESTINATION' EXPORTING destination = new_workflow_local authority_check = ' ' "No authority check IMPORTING user = rfc_user EXCEPTIONS authority_not_available = 1 destination_not_exist = 2 information_failure = 3 internal_failure = 4 OTHERS = 5.

SWA_MESSAGE_STORE CALL FUNCTION 'SWA_MESSAGE_STORE' EXPORTING exception_if_not_active = space arbgb = errmsg-msgid msgty = errmsg-msgty msgv1 = errmsg-msgv1 msgv2 = errmsg-msgv2 msgv3 = errmsg-msgv3 msgv4 = errmsg-msgv4 txtnr = errmsg-msgno EXCEPTIONS OTHERS = 1.

RFC_MODIFY_L_DESTINATION CALL FUNCTION 'RFC_MODIFY_L_DESTINATION' EXPORTING destination = new_workflow_local action = 'I' user = rfc_user password = password description = text-002 client = sy-mandt destlock = 'X' authority_check = ' ' "No authority check rfcunicode = l_rfcunicode EXCEPTIONS authority_not_available = 1 destination_already_exist = 2 destination_not_exist = 3 destination_enqueue_reject = 4 information_failure = 5 trfc_entry_invalid = 6 internal_failure = 7 OTHERS = 8.

SWA_MESSAGE_STORE CALL FUNCTION 'SWA_MESSAGE_STORE' EXPORTING exception_if_not_active = space arbgb = errmsg-msgid msgty = errmsg-msgty msgv1 = errmsg-msgv1 msgv2 = errmsg-msgv2 msgv3 = errmsg-msgv3 msgv4 = errmsg-msgv4 txtnr = errmsg-msgno EXCEPTIONS OTHERS = 1.

SWW_WIM_RFC_DESTINATION_SET CALL FUNCTION 'SWW_WIM_RFC_DESTINATION_SET' EXCEPTIONS OTHERS = 1.

RFC_MODIFY_L_DESTINATION CALL FUNCTION 'RFC_MODIFY_L_DESTINATION' EXPORTING destination = new_workflow_local action = 'D' authority_check = ' ' "No authority check rfcunicode = l_rfcunicode EXCEPTIONS authority_not_available = 1 destination_already_exist = 2 destination_not_exist = 3 destination_enqueue_reject = 4 information_failure = 5 trfc_entry_invalid = 6 internal_failure = 7 OTHERS = 8.

SWA_MESSAGE_STORE CALL FUNCTION 'SWA_MESSAGE_STORE' EXPORTING exception_if_not_active = space arbgb = errmsg-msgid msgty = 'I' msgv1 = errmsg-msgv1 msgv2 = errmsg-msgv2 msgv3 = errmsg-msgv3 msgv4 = errmsg-msgv4 txtnr = errmsg-msgno EXCEPTIONS OTHERS = 1.

SWA_MESSAGE_STORE CALL FUNCTION 'SWA_MESSAGE_STORE' EXPORTING exception_if_not_active = space arbgb = errmsg-msgid msgty = errmsg-msgty msgv1 = errmsg-msgv1 txtnr = errmsg-msgno.

SWA_MESSAGE_STORE CALL FUNCTION 'SWA_MESSAGE_STORE' EXPORTING exception_if_not_active = space arbgb = errmsg-msgid msgty = errmsg-msgty msgv1 = errmsg-msgv1 txtnr = errmsg-msgno.

SUSR_RFC_USER_INTERFACE CALL FUNCTION 'SUSR_RFC_USER_INTERFACE' EXPORTING user = sy-uname activity = '03'"Read IMPORTING login_time = l_time EXCEPTIONS user_dont_exist = 1 user_allready_exists = 2 not_authorized = 3 username_required = 4 bad_method = 5 password_required = 6 usergroup_dont_exist = 7 bad_time_rage = 8 bad_usertype = 9 update_error = 10 OTHERS = 11.

BAPI_USER_CREATE CALL FUNCTION 'BAPI_USER_CREATE' EXPORTING username = ls_username-bapibname logondata = ls_logondata password = ls_password address = ls_address TABLES return = lt_return.

BAPI_USER_PROFILES_ASSIGN CALL FUNCTION 'BAPI_USER_PROFILES_ASSIGN' EXPORTING username = ls_username-bapibname TABLES profiles = lt_profiles return = lt_return.

SWA_MESSAGE_STORE CALL FUNCTION 'SWA_MESSAGE_STORE' EXPORTING exception_if_not_active = space arbgb = errmsg-msgid msgty = errmsg-msgty msgv1 = errmsg-msgv1 msgv2 = errmsg-msgv2 msgv3 = errmsg-msgv3 msgv4 = errmsg-msgv4 txtnr = errmsg-msgno EXCEPTIONS OTHERS = 1.



Contribute (Add Comments)

Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.







The contribute/comments section below therefore offer's an opportunity for anyone to add additional information. This can be anything from useful hints, tips and screen shots to relevant SAP notes or anything else you feel is relevant to this report.

This will then be available for everyone to easily find by simply searching on the report name FSWUBE09 or its description.