cancel
Showing results for 
Search instead for 
Did you mean: 

Is there a date validation in BAPI_ASSET_ACQUISITION_POST

Former Member
0 Kudos

We are using BAPI_ASSET_ACQUISITION_POST in a Z program and posting asset transaction. When the Asset value Date is passed as 31/00/2017, the system is accepting without any error. Internally will there be any date validation in this BAPI.

Regards,

Sathesh

Former Member
0 Kudos

Finally, I solved the issue with a work around. I validated the date field using a custom validation before passing the information to BAPI.

Accepted Solutions (1)

Accepted Solutions (1)

iklovski
Active Contributor
0 Kudos

Hi,

That's very strange... What is posted in the document, then?

What do you mean by 'acceptance of the system"? Of course, you are free to pass whatever parameter to BAPI, but it will be resulted in error if the value is not compliant with the rules.

Regards,

Eli

former_member345626
Participant
0 Kudos

Dear All,

Couple of weeks back, I saw same post, check the link below that the system accepted wrong dates.

https://answers.sap.com/storage/attachments/80857-avd.jpg

Answers (1)

Answers (1)

umayaraj
Participant
0 Kudos

hi,

try with this FM: DATE_CHECK_PLAUSIBILITY .

Former Member
0 Kudos

Hi Umayaraj,

Thanks for the reply. But I think your suggestion is a work arround. before passing the dates in the BAPI, I can validate. But the question is why does BAPI_ASSET_ACQUISITION_POST does not validate. Hope I am clear now.