SAP Function Modules

CHECK_TO_IF_ANOTHER_USER SAP Function module - Check assignment of a selected TO to another user (1st step)







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

Associated Function Group: LMGT
Released Date: Not Released
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM CHECK_TO_IF_ANOTHER_USER - CHECK TO IF ANOTHER USER





CALL FUNCTION 'CHECK_TO_IF_ANOTHER_USER' "Check assignment of a selected TO to another user (1st step)
  EXPORTING
    i_whs_id =                  " lrf_wkqu-lgnum  Warehouse id
    i_tanum =                   " ltak-tanum    Transfer order
*   i_uprof =                   " lrf_wkqu-queue  Queue
  IMPORTING
    o_wkqu =                    " lrf_wkqu      User data
    .  "  CHECK_TO_IF_ANOTHER_USER

ABAP code example for Function Module CHECK_TO_IF_ANOTHER_USER





The ABAP code below is a full code listing to execute function module CHECK_TO_IF_ANOTHER_USER 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_o_wkqu  TYPE LRF_WKQU .


SELECT single LGNUM
FROM LRF_WKQU
INTO @DATA(ld_i_whs_id).


SELECT single TANUM
FROM LTAK
INTO @DATA(ld_i_tanum).


SELECT single QUEUE
FROM LRF_WKQU
INTO @DATA(ld_i_uprof).
. CALL FUNCTION 'CHECK_TO_IF_ANOTHER_USER' EXPORTING i_whs_id = ld_i_whs_id i_tanum = ld_i_tanum * i_uprof = ld_i_uprof IMPORTING o_wkqu = ld_o_wkqu . " CHECK_TO_IF_ANOTHER_USER
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_o_wkqu  TYPE LRF_WKQU ,
ld_i_whs_id  TYPE LRF_WKQU-LGNUM ,
ld_i_tanum  TYPE LTAK-TANUM ,
ld_i_uprof  TYPE LRF_WKQU-QUEUE .


SELECT single LGNUM
FROM LRF_WKQU
INTO ld_i_whs_id.


SELECT single TANUM
FROM LTAK
INTO ld_i_tanum.


SELECT single QUEUE
FROM LRF_WKQU
INTO ld_i_uprof.

SAP Documentation for FM CHECK_TO_IF_ANOTHER_USER


The function checks, if the selected transfer order has already been processed by another user and has been assigned to this user after the ...See here for full SAP fm documentation







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