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 not valid

Former Member
0 Likes
1,731

I'm trying to call BAPI_SALESORDER_CREATEFROMDAT2 from an ASP .NET page

using SAP .NET connector. But, I keep getting the following message(V1 091)

in the

return table:

"Date / / is not valid"

Has anyone run into this?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,178

Just check the date format of the date field in ur file. Pass the date to the BAPI without any delimiters

6 REPLIES 6
Read only

rahulkavuri
Active Contributor
0 Likes
1,178

Pass the date in the format YYYYMMDD

The format in BAPI is here

BILL_DATE	FKDAT	DATS	8

so it should not cross 8 chars

Read only

0 Likes
1,178

Should be noted that the format is YYYYMMDD.

Read only

Former Member
0 Likes
1,178

It looks like the date you are passing is blank, but needs to be filled in.

Rob

Read only

Former Member
0 Likes
1,178

Try supplying 00000000 whenever the date value is blank on your side.

Read only

Former Member
0 Likes
1,178

Use FM CONVERT_DATE_TO_INTERNAL to convert MM/DD/YY to YYYYMMDD

Thanks,

SKJ

Read only

Former Member
0 Likes
1,179

Just check the date format of the date field in ur file. Pass the date to the BAPI without any delimiters