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

LSMW

Former Member
0 Likes
620

Hi,

In my lsmw prgram, i use recording option. Here to one of the field i need to assign Todays date.

But the date displayed in the Transaction is yyyymmdd.

I need in the format mm/dd/yyyy. How to change the format

Pls help

Thanks

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
602

Hi prabha,

In the sixth step of LSMW before assigning file we write routine of user define. here change the date format to desired format using concatenate stmt.

regrds

alson

Hi,

In my lsmw prgram, i use recording option. Here to one of the field i need to assign Todays date.

But the date displayed in the Transaction is yyyymmdd.

I need in the format mm/dd/yyyy. How to change the format

Pls help

Thanks

4 REPLIES 4
Read only

sreeramkumar_madisetty
Active Contributor
0 Likes
602

Hi

In LSMW's 4th step you have some ABAP part na.

There u can change it na?

Regards,

Sreeram

Read only

Former Member
0 Likes
602

Hi

In SAP all date fieldsa re stored in YYYYMMDD format only

You can assign the same date to that field or assign SY-DATUM to that field

You can convert the format using EDIT MASK

or split the date,month and year and concatenate and can use

Reward points if useful

Regards

Anji

Read only

Former Member
0 Likes
602

Hi

Create a routine to convert the format:

WRITE SY-DATUM TO WA MM/DD/YYYY

Max

Read only

Former Member
0 Likes
603

Hi prabha,

In the sixth step of LSMW before assigning file we write routine of user define. here change the date format to desired format using concatenate stmt.

regrds

alson