on 02-10-2009 12:45 PM
Hello,
I am using BAPI_DOCUMENT_CREATE2 for creating document info records, which works great. I make an object links to an equipment number and you can classify this object link in CV02N with class 048 object link. This also works in transaction CV02N, but how can i classify the object links in the BAPI?
Kind regards,
Nick
Fixed the problem to put the classications on the picture instead
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear Nick,
to achieve this the BAPI_DOCUMENT_CREATE2 is not the correct one. This BAPI only allows to create document info records and do nearly the same actions as in CV01N. But here it is not possible to classify object links.
For this specific case the following BAPI sequence could be useful:
BAPI_OBJCL_GETDETAIL - read the existing classification data
BAPI_OBJCL_CHANGE - edits the classification data
BAPI_TRANSACTION_COMMIT - necessary to write the whole changes to the database.
Instead of BAPI_OBJCL_CHANGE you can also use BAPI_OBJCL_CREATE to generate an assignment.
Further information on these BAPIs you will find in transaction BAPI under Cross-Application Components >> Classification.
Best regards,
Christoph
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Nick,
You should be able to create a Document info record with a link to an object with the BAPI you stated.
Find below an example of the code you should be using.
Object link to material master
CLEAR lt_drad.
REFRESH lt_drad.
lt_drad-objecttype = 'MARA'.
lt_drad-objectkey = 'M4711'.
APPEND lt_drad.
Regards,
Johan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
11 | |
6 | |
6 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.