10-16-2008 8:28 AM
Hello,
I want to create document data with the named BAPI.
Not that bad, I thought, implemented the BAPI in my program, provided the required data and then made my first tests.
Result:
- document created
- no classification data added
And the return message from the program part were the classification is added is....
ID = CC / Number 164
"Date is in the past".
Thats lovely and I don´t understand whats wrong here!
I provided the same data that I use when I create documents via transaction!
Did anybody have similar experience and a solution for that, means an idea, what´s going wrong?
What I found out is that in the called function module in API_DOCUMENT_MAINTAIN2 (perform save_classification_data -> CACL_OBJECT_ALLOCATION_MAINT) named CLAP_DDB_GET_CLASSIFICATION the value for the date is set empty and the function comes back with an exception 4!
Any help is really appreciated!
Regards
Dirk
Edited by: Dirk Meinhard on Oct 20, 2008 4:49 PM
10-21-2008 10:32 AM
Answered on my own!
Ok, this is for you:
Why the hell is there a field for the change no. in the structure BAPI_CLASS_ALLOCATION (ECNUMBER)?
If you use it, you will fail!
Leave it empty and it runs!