DOCU_CHANGE_ORIG_LANGUAGE 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 DOCU_CHANGE_ORIG_LANGUAGE into the relevant SAP transaction such as SE37 or SE80.
Associated Function Group:
SDOC
Released Date:
Not Released
Processing type: Normal fucntion module
CALL FUNCTION 'DOCU_CHANGE_ORIG_LANGUAGE' "
EXPORTING
iv_id = " doku_id
iv_object = " doku_obj
iv_new_orig_langu = " doku_langu
* iv_pop_up = 'X' " char1
* iv_suppress_transport = 'X' " char1
* iv_suppress_authority = 'X' " char1
* iv_suppress_enqueue = 'X' " char1
EXCEPTIONS
MEW_ORIG_EQUAL_OLD_ORIG_LANGU = 1 "
NO_DOCU_IN_NEW_ORIG_LANGU = 2 "
MORE_THAN_1_ORIG_LANGU = 3 "
ENTRY_IS_SELF_EXPLANATORY = 4 "
NO_AUTHORISATION = 5 "
OBJECT_IS_ALREADY_ENQUEUED = 6 "
TECHN_ENQUEUE_PROBLEM = 7 "
SAP_NAMESPACE = 8 "
. " DOCU_CHANGE_ORIG_LANGUAGE
The ABAP code below is a full code listing to execute function module DOCU_CHANGE_ORIG_LANGUAGE 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(ld_iv_id) = 'Check type of data required'.
DATA(ld_iv_object) = 'Check type of data required'.
DATA(ld_iv_new_orig_langu) = 'Check type of data required'.
DATA(ld_iv_pop_up) = 'Check type of data required'.
DATA(ld_iv_suppress_transport) = 'Check type of data required'.
DATA(ld_iv_suppress_authority) = 'Check type of data required'.
DATA(ld_iv_suppress_enqueue) = 'Check type of data required'. . CALL FUNCTION 'DOCU_CHANGE_ORIG_LANGUAGE' EXPORTING iv_id = ld_iv_id iv_object = ld_iv_object iv_new_orig_langu = ld_iv_new_orig_langu * iv_pop_up = ld_iv_pop_up * iv_suppress_transport = ld_iv_suppress_transport * iv_suppress_authority = ld_iv_suppress_authority * iv_suppress_enqueue = ld_iv_suppress_enqueue EXCEPTIONS MEW_ORIG_EQUAL_OLD_ORIG_LANGU = 1 NO_DOCU_IN_NEW_ORIG_LANGU = 2 MORE_THAN_1_ORIG_LANGU = 3 ENTRY_IS_SELF_EXPLANATORY = 4 NO_AUTHORISATION = 5 OBJECT_IS_ALREADY_ENQUEUED = 6 TECHN_ENQUEUE_PROBLEM = 7 SAP_NAMESPACE = 8 . " DOCU_CHANGE_ORIG_LANGUAGE
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 2. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 3. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 4. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 5. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 6. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 7. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 8. "Exception "Add code for exception here ENDIF.
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_iv_id | TYPE DOKU_ID , |
| ld_iv_object | TYPE DOKU_OBJ , |
| ld_iv_new_orig_langu | TYPE DOKU_LANGU , |
| ld_iv_pop_up | TYPE CHAR1 , |
| ld_iv_suppress_transport | TYPE CHAR1 , |
| ld_iv_suppress_authority | TYPE CHAR1 , |
| ld_iv_suppress_enqueue | TYPE CHAR1 . |
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 DOCU_CHANGE_ORIG_LANGUAGE or its description.