sapdev logo background
sapdev logo sapdev logo
Comments

ABAP IMPORT OBSOLETE ID Statement syntax, information and example SAP source code



Return to Statement index



IMPORT - obs_id

Short Reference

ABAP Syntax(Obsolete) ... MAJOR-ID id1 [MINOR-ID id2] ... .

What does it do? Outside of classes, you can replace the ID addition in the IMPORT FROM DATABASE statement with these additions when importing database tables. When you specify id1 and id2 , the same rules apply as for id .
The data cluster with an ID in which the first part matches the value of id1 is imported. If MINOR-ID id2 is also specified, the data cluster with an ID in which the second part (in the positions after the number of characters specified in id1 ) is larger or equal to the value of id2 is imported. The search ends once the first matching ID is found.

Latest notes: When using id2 , it is important to note that this data object must contain either only digits or only letters, because mixed forms can lead to differing search results (depending on the platform).
The use of MAJOR-ID and MINOR-ID is obsolete because the specified ID is not unique. The required ID can be generated by a program instead.

Example ABAP Coding If a data cluster was exported with the ID "Sausage", this record is found if "Sau" is specified as MAJOR-ID . It is also found if you additionally specify "ab" as MINOR-ID , but is not found if you specify "yz" as MINOR-ID .
Documentation extract taken from SAP system, � Copyright SAP AG. All rights reserved




IMPORT_NAMETAB
IMPORT_PARAMETERLIST




comments powered by Disqus