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 in GL Account Posting ?

Former Member
0 Likes
634

I am posting the GL a/c line items using BAPI_ACC_GL_Doc_post ...!!

In the flat file , i get the dates as '01/01/2006' and i convert it to 8 format by using :

split and concatenate .

The internal table (line_t) for line items has posting date as '01012006' , when i debug ...but then I keep on getting this error message : ' 20/06/0101 is incorrect in item 001...!! Though the line table has date has '01012006' , the BAPI returns this message ?

Can anyone tell what can be the issue ?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
573

Hi,

Please try this FM CONVERSION_EXIT_PDATE_INPUT to convert date.

Regards,

Ferry Lianto

I am posting the GL a/c line items using BAPI_ACC_GL_Doc_post ...!!

In the flat file , i get the dates as '01/01/2006' and i convert it to 8 format by using :

split and concatenate .

The internal table (line_t) for line items has posting date as '01012006' , when i debug ...but then I keep on getting this error message : ' 20/06/0101 is incorrect in item 001...!! Though the line table has date has '01012006' , the BAPI returns this message ?

Can anyone tell what can be the issue ?

2 REPLIES 2
Read only

Former Member
0 Likes
574

Hi,

Please try this FM CONVERSION_EXIT_PDATE_INPUT to convert date.

Regards,

Ferry Lianto

Read only

Former Member
0 Likes
573

Hi

You have to insert the date in the format YYYYMMDD:

If DATE_IN = 01/01/2006 =>

DATE_OUT(4) = DATE_IN+6(4).

DATE_OUT4(2) = DATE_IN3(2).

DATE_OUT+6(2) = DATE_IN(2).

Max