‎2016 Jun 06 8:25 AM
Dear all,
i am trying to change the classification for an material object, using BAPI_OBJCL_CHANGE and BAPI_TRANSACTION_COMMIT.
The values i am exporting are following;
OBJECTTABLE "MARA"
CLASSTYPE "001"
CLASSNUM "spezific classname"
OBJECTKEY "materialnumber"
and the tables
- ALLOCVALUESNUMNEW
- ALLOCVALUESCHARNEW
- ALLOCVALUESCURRNEW
after invoking both bapis, OBJCL_CHANGE returns a success-message (CL-506), the returnstructure from TRANSACTION_COMMIT is empty.
Even though a success is returned, the database is not updated.
(BAPI_OBJCL_GETDETAIL works fine with mentioned export-parameters).
Any idea about theProblem?
thanks and regards!
‎2016 Jun 06 9:14 AM
Hello Dominic,
does your material number already have a class assigned ?
If so and you like to change the class itself (not the values) please use BAPI_OBJCL_DELETE before as described in the SE37 function module doc for BAPI_OBJCL_CHANGE.
Sometimes BAPIs returns a S-message with content "I did nothing". So your result is void without getting a reason.
Best regards,
Matthias
‎2016 Jun 06 9:00 AM
‎2016 Jun 06 9:05 AM
‎2016 Jun 06 10:05 AM
Look first for available OSS notes for your version (at least one was released in April 2016)
Due to the BAPI behavior for existing data I would suggest following sequence
Also is there any difference between values displayed in
Regards,
Raymond
‎2016 Jun 06 2:16 PM
Hi Raymond,
this is the actually sequence im using.
Also, there is no difference between the two sights.
Regards,
Dominic
‎2016 Jun 06 9:14 AM
Hello Dominic,
does your material number already have a class assigned ?
If so and you like to change the class itself (not the values) please use BAPI_OBJCL_DELETE before as described in the SE37 function module doc for BAPI_OBJCL_CHANGE.
Sometimes BAPIs returns a S-message with content "I did nothing". So your result is void without getting a reason.
Best regards,
Matthias
‎2016 Jun 06 10:04 AM
Hello Matthias,
i tried it both with assigned class and without, getting the same result.
Interesting: when i use OBJCL_DELETE & COMMIT only, i get a success-message too, but the classification is not deleted.
(I am able to change the classifications manually in MM02)
Regards,
Dominic