Application Development 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: 

BAPI_DOCUMENT_CREATE2 - adding classification data

Former Member
0 Kudos

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

1 REPLY 1

Former Member
0 Kudos

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!