‎2006 Oct 03 10:47 AM
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...
‎2006 Oct 04 5:11 AM
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.
‎2006 Oct 04 5:31 AM
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.