Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Inverte - Date function in Update Rules

Hi All,

We are writing a code for converting the data into a date field using INVERTE-DATE function.

The field GDATU in the Table TCURR needs to be converted.

GDATU - Date As of Which the Exchange Rate Is Effective. This is not in proper format, hence we used the below code to converte in to a proper one.

TABLES: TCURR.

DATA: tcurr_tab TYPE TABLE OF tcurr.

data: date_normal type sy-datum.

FIELD-SYMBOLS

<tcurr_wa> TYPE tcurr.

SELECT gdatu FROM tcurr INTO corresponding fields of

TABLE tcurr_tab.

SORT tcurr_tab BY gdatu.

LOOP AT tcurr_tab ASSIGNING <tcurr_wa>.

break-point.

CONVERT INVERTED-DATE <tcurr_wa>-gdatu

INTO DATE date_normal. "move that to normal date field

write:/ date_normal. "take a normal date field

ENDLOOP.

when I check for this code... it gives us the below error message

E:Variants with INVERTED-DATE are no longer supported in the OO context.

Use TRANSLATE ... USING '1928374664738291' instead

Can anyone suggest me what could be done to solve this issue.

Thanks,

Maddy

Tags:
Not what you were looking for? View more on this topic or Ask a question