Skip to Content
avatar image
Former Member

BAPI_DOCUMENT_CREATE2 - adding classification data

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Oct 21, 2008 at 09: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! 😔

    Add comment
    10|10000 characters needed characters exceeded