10-27-2007 9:47 AM
Hi
I have to convert the Date(Select-Options) filed to display in ALV in Month format.
The date can be in range or current date,accoring to the user.Can you tell me if any FM exit there in SAP or plz tell me the code, than it will be a great help.
Even I have to display it in ALV format,according to the PO done in each month.Give me some hint for this also.
Your kind help will be highly appriciated.
Regards
Vipin
10-28-2007 10:46 AM
Well it somewhat depends on what your user wants - but it would be easy enough to have a "month" column in your ALV which comes from the PO creation date e.g.
ls_alv_data-month = ekko-aedat+4(2). "take dd from ccyyddmm
You could also have a column "ls_alv_data-count like sy-tabix" which you set to 1 for every row - then the user can count and total by month.
Jonathan
10-28-2007 10:46 AM
Well it somewhat depends on what your user wants - but it would be easy enough to have a "month" column in your ALV which comes from the PO creation date e.g.
ls_alv_data-month = ekko-aedat+4(2). "take dd from ccyyddmm
You could also have a column "ls_alv_data-count like sy-tabix" which you set to 1 for every row - then the user can count and total by month.
Jonathan
10-28-2007 10:54 AM
You can convert date format as your requirement before appending into internal table. so that it can be displayed in ALV as you require