Ansicht
Dokumentation

ABENOO_OBS_CONVERT_2 - OO OBS CONVERT 2

ABENOO_OBS_CONVERT_2 - OO OBS CONVERT 2

Fill RESBD Structure from EBP Component Structure   ABAP Short Reference  
This documentation is copyright by SAP AG.
SAP E-Book

Cannot Convert Dates

The statements CONVERT DATE and CONVERT INVERTED DATE are not allowed.

An error message occurs in ABAP Objects if the following syntax is used:

CONVERT DATE f1 INTO INVERTED-DATE f2.

CONVERT INVERTED-DATE f2 INTO DATE f1.

Correct syntax:

CONSTANTS comp_nine(20) TYPE c VALUE '09182736455463728190'.

f2 = f1.
TRANSLATE f2 USING comp_nine.

f1 = f2.
TRANSLATE f1 USING comp_nine.

Reason:

Date conversions are used mainly to influence the sort direction in internal tables. This function can be replaced by the additions ASCENDING or DESCENDING of the statement SORT. If required, you can easily program the nines complement yourself using TRANSLATE.






Addresses (Business Address Services)   ROGBILLS - Synchronize billing plans  
This documentation is copyright by SAP AG.

Length: 1022 Date: 20240424 Time: 133748     sap01-206 ( 23 ms )