Ansicht
Dokumentation

EXIT_/SAPAPO/SAPLATPT_004 - Obsolete - APO ATP: Check for the Existence of a Location Alias

EXIT_/SAPAPO/SAPLATPT_004 - Obsolete - APO ATP: Check for the Existence of a Location Alias

rdisp/max_wprun_time - Maximum work process run time   Vendor Master (General Section)  
This documentation is copyright by SAP AG.
SAP E-Book

Functionality

This user exit is called up after the RBA substitutions have returned to the availability check, and the ATP segment (esp. for locations to be checked for the substitution) was changed using the enhancement APOAT001.

The substitutions are then checked for availability.

For each substitution, this user exit uses the exception ALIAS_NOT_FOUND to return whether a location alias exists for the location and system ransferred for it.

Example

If you want to use the standard table /SAPAPO/LOC_ALI, which is available in the system for location aliases, you can determine location aliases by copying the following coding to the user exit:

CALL FUNCTION '/SAPAPO/DM_LOCID_GET_ALIAS'

EXPORTING
  iv_logsys       = iv_logsys
  iv_locid        = iv_locid
EXCEPTIONS
  alias_not_found = 1
  OTHERS          = 2.
CASE sy-subrc.
WHEN 0.
WHEN 1.
  RAISE alias_not_found.
WHEN OTHERS.
  RAISE internal_error.
ENDCASE.

The table /SAPOAPO/LOC_ALI can be called up by way of the transaction /SAPAPO/LOCALI.

Notes

This user exit must be activated if the "old" cross-system third-party order processing is used. An alias must be maintained for all locations that take part in the availability check in APO and are not maintained in the system called.

If an alias is set for a location, special temporary objects are written during the availability check that are not deleted when LUW ( Logical Unit of Work) is ended with COMMIT, but rather stay on the APO server.
Data for substitutions whose location has an alias maintained is written to the APO database when LUW is ended with COMMIT. Especially the insection result is saved there.

Further information

Enhancement APOAT004





Parameters

IT_ATPFIELD
IV_ANWDG
IV_ATPCAT
IV_LOCID
IV_LOGSYS
IV_PRDID

Exceptions

ALIAS_NOT_FOUND
INTERNAL_ERROR

Function Group

XATPTUSER

PERFORM Short Reference   Vendor Master (General Section)  
This documentation is copyright by SAP AG.

Length: 3669 Date: 20240523 Time: 045035     sap01-206 ( 59 ms )