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

issue with date in function module PRELIMINARY_POSTING_FB01

Former Member
0 Likes
355

when we run the funtion module named 'PRELIMINARY_POSTING_FB01' we got messege called profit center is expired and when we debug we found that the date format is going wrong '20.11.1224' instead of '24.12.2011'

Please suggest us.. <removed by moderator>

Edited by: Thomas Zloch on Dec 23, 2011 8:38 PM

2 REPLIES 2
Read only

Former Member
0 Likes
319

everything we do is very important, isn't it?

convert your date with code, considering user's settings... or change your user settings to match the date format that you are receiving. If your transaction requires a specific format, use abap code to convert you incoming date value to the correct format.

This is a very basic question, really..... Search the forum for posts about user date and currency settings!

Read only

surajarafath
Contributor
0 Likes
319

Before moving the date to functional module convert it.

declare another variable.

DATA: WF_DATE(10) TYPE C.
WRITE <YOUR_DATE> TO WF_DATE DD/MM/YYYY.

and pass WF_DATE to your Functional Module.

try this,,..