UPSCU_CONSTRUCTOR 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 UPSCU_CONSTRUCTOR into the relevant SAP transaction such as SE37 or SE80.
Associated Function Group:
UPSCU
Released Date:
Not Released
Processing type: Normal fucntion module
CALL FUNCTION 'UPSCU_CONSTRUCTOR' "
EXPORTING
im_packagename = " api_upshdr-upsnam ALE Distribution Packet: Name
im_owner = " api_upshdr-owner ALE Distribution Packet : Owner
im_partner = " api_upshdr-logsys ALE Distribution Packet : Partner
im_direction = " api_upshdr-direct ALE Distribution Packet: Distribution Direction
* im_editmode = KUPS_DISPLAY " ups_editmode Processing type
* flg_error_if_not_exist = KUPS_TRUE " xfeld Error Message if Unit Does Not Exist
* flg_error_if_exist = KUPS_TRUE " xfeld Error Message if Unit Already Exists
* flg_appl_log = KUPS_FALSE " xfeld Write application log
* flg_msg_collect = KUPS_FALSE " xfeld Collect messages
* flg_itm_dscrpt = KUPS_FALSE " xfeld
* flg_itm_idoc = KUPS_FALSE " xfeld
* flg_dialog = KUPS_FALSE " xfeld Call in Dialog
* im_handle = " balloghndl Application Log: Log Handle
* im_trustlevel_check = 0 " i
* im_trustlevel_log = 0 " i
IMPORTING
ex_instid = " ups_instid ALE Distribution Packet: ID for Instantiation
* TABLES
* ex_messages = " tupsbapiret2 Accumulated messages
EXCEPTIONS
FAILING_INSTANCE = 1 " Object instance of packet could not be created
UNITY_NOT_EXISTS = 2 " Distribution unit is not available
UNITY_EXISTS = 3 " Distribution Packet Already Exists
NO_AUTHORITY = 4 " No Authorization
DISPLAY_ONLY = 5 "
ERROR = 6 " Unclassified error
. " UPSCU_CONSTRUCTOR
The ABAP code below is a full code listing to execute function module UPSCU_CONSTRUCTOR 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).
| ld_ex_instid | TYPE UPS_INSTID , |
| it_ex_messages | TYPE STANDARD TABLE OF TUPSBAPIRET2,"TABLES PARAM |
| wa_ex_messages | LIKE LINE OF it_ex_messages . |
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_ex_instid | TYPE UPS_INSTID , |
| ld_im_packagename | TYPE API_UPSHDR-UPSNAM , |
| it_ex_messages | TYPE STANDARD TABLE OF TUPSBAPIRET2 , |
| wa_ex_messages | LIKE LINE OF it_ex_messages, |
| ld_im_owner | TYPE API_UPSHDR-OWNER , |
| ld_im_partner | TYPE API_UPSHDR-LOGSYS , |
| ld_im_direction | TYPE API_UPSHDR-DIRECT , |
| ld_im_editmode | TYPE UPS_EDITMODE , |
| ld_flg_error_if_not_exist | TYPE XFELD , |
| ld_flg_error_if_exist | TYPE XFELD , |
| ld_flg_appl_log | TYPE XFELD , |
| ld_flg_msg_collect | TYPE XFELD , |
| ld_flg_itm_dscrpt | TYPE XFELD , |
| ld_flg_itm_idoc | TYPE XFELD , |
| ld_flg_dialog | TYPE XFELD , |
| ld_im_handle | TYPE BALLOGHNDL , |
| ld_im_trustlevel_check | TYPE I , |
| ld_im_trustlevel_log | TYPE I . |
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 UPSCU_CONSTRUCTOR or its description.