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: 

Problem with DMS Classification data

Former Member
0 Kudos

Hello Friends,

Iam working in SAP DMS (Document Management System).

I want to change the Classification data of a given Document Number. Iam using BAPI_DOCUMENT_CHANGE2 for this purpose.

<b> CALL FUNCTION 'BAPI_DOCUMENT_CHANGE2'

EXPORTING

documenttype = documenttype

documentnumber = documentnumber

documentpart = documentpart

documentversion = documentversion

documentdata = documentdata

documentdatax = documentdatax

IMPORTING

return = return

TABLES

characteristicvalues = characteristicvalues[]

classallocation = classallocation.</b>

And in the characteristicvalues table I pass,

<b> CLEAR wa_char_value.

wa_char_value-classtype = '017'.

wa_char_value-classname = 'ESE_DCN'.

wa_char_value-charname = 'SALES_ORDER_NUM'.

wa_char_value-charvalue = vbeln.

APPEND wa_char_value TO characteristicvalues.</b>

And in the classallocation table I pass,

<b> classallocation-classtype = '017'.

classallocation-classname = 'ESE_DCN'.

APPEND classallocation.</b>.

The return code of my FM is 0. It does not give any error. BUt when I look into transaction cv02n for that particular document number, it does not display any classsfication data., it is empty.

Why the classification data is not getting populated using this BAPI_DOCUMENT_CHANGE2.

Regards,

Raju...

2 REPLIES 2

Former Member
0 Kudos

Hello Friends,

I didnt get any reply for my question.

I just want to know whether I have given the correct details to the FM. And why doesnt my FM changes the Document Classification data.

0 Kudos

Hi Raju,

Just check out the documentation of the BAPI.

There u find an example..

U can follow it and can make the necessary changes...

If not. Try to debug it...

Hope this helps...

Cheers,

SImha.