当前位置:网站首页>ABAP editor in SAP segw transaction code

ABAP editor in SAP segw transaction code

2022-07-05 12:54:00 Wang Zixi

Because it can help Entity Type Properties of , Set up EDM Type and internal ABAP type , So these types must be verified , To ensure that there is no mismatch between hedging .

This type of mismatch may result in data loss , With DateTime and Date For example , The former type is more restrictive than the latter , Therefore, it will cause data loss .

If EDM The type and ABAP incompatible types , The error prompt is returned .

Use ABAP Type editor and corresponding ABAP Field names define additional type information about attributes , convenient ABAP The type and EDM Mapping between types .

Use ABAP Type editor to define about attributes and corresponding ABAP Additional type information for field names . For convenience ABAP The type and EDM Mapping between types , You can choose the definitive mode to use , Entity or complex type structure binding , Explicit assignment or determination of the runtime object generator .

If you choose entity or complex type structure binding , The system will assign a ABAP structure . Automatically ABAP The type assignment is derived from EDM type . You can assign at the entity type or complex type level ABAP structure , But it cannot be assigned at a single attribute level . The distribution of ABAP The structure is then used by the generator . If it is not specified in the design ABAP structure , The generator will generate a new structure based on the displayed information .

If you choose explicit assignment , You can maintain categories , Then the fields available for this category can be entered . Inapplicable fields are still read-only . If the actual demand , In particular, automatic assignment is not expected , Please use explicit assignment . Be careful , Structure binding overrides all maintained explicit assignments .

ABAP The type and EDM Precise associations between types do not always 100% Realization , Because of all their aspects , And automatically determine the corresponding ABAP or EDM The type may not be a perfect match . therefore , Developers must always check the identified type mappings , To ensure that the best possible match is selected .

Service Builder Include a validation check , Used to identify possible inconsistencies , And display the appropriate warning message , In order to prevent passing ABAP Type maps to EDM The type and / Or conversely, data loss may occur . This check distinguishes between potential data loss 、 Possible conversion errors and ABAP Applicability of type .

原网站

版权声明
本文为[Wang Zixi]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/186/202207051239013200.html