on 11-08-2021 2:44 PM
Hello everyone,
I have a simple select query,
Select gdatu, ukurs
FROM tcurr
INTO TABLE it_currency
But the values for GDATU I'm getting are like this for example 79889393. How can I solve this so I can get this type 06062011?
Hello,
This value is an inverted date, so you have 2 possibilities..
Kind regards,
Yor
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Just to add to my previous comment, if anybody else needs this. Since the Tcurr table is not that big i added loop after my select statement to change the values of that GDATU field.
LOOP AT it_currency INTO wa_currency.
TRANSLATE wa_currency-gdatu USING '09182736455463728190'.
APPEND wa_currency TO it_currency2.
ENDLOOP.
But if the table is bigger, this would slow the web service down. There's gotta be a faster and more efficient solution to this, If anyone knows it I would be happy to rewrite this code.
Regards,
Dame.
User | Count |
---|---|
97 | |
9 | |
8 | |
6 | |
3 | |
3 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.