Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

date format

Former Member
0 Likes
540

hi gurus !!!!!!!!

i am dealing with an inbound - outbound interface.

I have a date field that i am sending in to the outbound.

in the program its is the format YYYYMMDD.

But when i look for the resultant outbound message in transaction SXMB_MONI, the date is getting transformed to YYYY-MM-DD.

If I am sending a blank in this date field, then the result is - - ....

I get two hipens. This is undesireable. Can I remove this hipens if i dont send any date?

Need help on this.

regards,

Balaji

2 REPLIES 2
Read only

Former Member
0 Likes
457

Hallo,

it seems like you´ll deal with a modification to the standard code. Probably your date field is being formated either per code or with another data element, which has the YYYY-MM-DD configuration.

Try to find enhancement points in the program´s code if you really need to change the date´s format.

Read only

former_member386202
Active Contributor
0 Likes
457

Hi,

Use this FM to convert the date into current user format

CALL FUNCTION 'CY_CONVERT_DATE'

EXPORTING

date_string_imp = lv_lfdate

IMPORTING

date_string_exp = lv_fdate1

date_exp = lv_fdate2.

Regards,

Prashant