SAP Function Modules

GET_VERIFY_TO SAP Function module - Verify transfer order







GET_VERIFY_TO 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 GET_VERIFY_TO 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 GET_VERIFY_TO - GET VERIFY TO





CALL FUNCTION 'GET_VERIFY_TO' "Verify transfer order
  EXPORTING
    i_whs_id =                  " ltak-lgnum    Warehouse id
    i_to_id =                   " ltak-tanum    Transfer order
    i_uprof =                   " lrf_wkqu-queue  Queue
  IMPORTING
    o_warning =                 " c
  TABLES
    t_to_header_record =        " ltak          TO header data
  EXCEPTIONS
    NO_RECORD_FOUND = 1         "
    TO_DOESNOT_MATCH = 2        "
    TO_CONFIRMED = 3            "
    .  "  GET_VERIFY_TO

ABAP code example for Function Module GET_VERIFY_TO





The ABAP code below is a full code listing to execute function module GET_VERIFY_TO 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_warning  TYPE C ,
it_t_to_header_record  TYPE STANDARD TABLE OF LTAK,"TABLES PARAM
wa_t_to_header_record  LIKE LINE OF it_t_to_header_record .


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


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


SELECT single QUEUE
FROM LRF_WKQU
INTO @DATA(ld_i_uprof).


"populate fields of struture and append to itab
append wa_t_to_header_record to it_t_to_header_record. . CALL FUNCTION 'GET_VERIFY_TO' EXPORTING i_whs_id = ld_i_whs_id i_to_id = ld_i_to_id i_uprof = ld_i_uprof IMPORTING o_warning = ld_o_warning TABLES t_to_header_record = it_t_to_header_record EXCEPTIONS NO_RECORD_FOUND = 1 TO_DOESNOT_MATCH = 2 TO_CONFIRMED = 3 . " GET_VERIFY_TO
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 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_warning  TYPE C ,
ld_i_whs_id  TYPE LTAK-LGNUM ,
it_t_to_header_record  TYPE STANDARD TABLE OF LTAK ,
wa_t_to_header_record  LIKE LINE OF it_t_to_header_record,
ld_i_to_id  TYPE LTAK-TANUM ,
ld_i_uprof  TYPE LRF_WKQU-QUEUE .


SELECT single LGNUM
FROM LTAK
INTO ld_i_whs_id.


"populate fields of struture and append to itab
append wa_t_to_header_record to it_t_to_header_record.

SELECT single TANUM
FROM LTAK
INTO ld_i_to_id.


SELECT single QUEUE
FROM LRF_WKQU
INTO ld_i_uprof.

SAP Documentation for FM GET_VERIFY_TO


This function checks, if

  • the transfer order exists. ...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 GET_VERIFY_TO or its description.