cancel
Showing results for 
Search instead for 
Did you mean: 

Function modules to update a characteristic in DMS

Former Member
0 Kudos

Dear Experts,

Is there any standard function module to update the characteristic value in DMS module?

The requirement is:

A document is having a superior document. This superior document is having a characteristic field. And the status of this superior document is released (and locked). On assigning some value to a characteristic of child document, the characteristic of superior document should be populated with some value.

Is this possible through function module? please provide solution aif any...

Thanks

Sandeep

Accepted Solutions (0)

Answers (2)

Answers (2)

christoph_hopf
Advisor
Advisor

Dear Sandeep,

based on your description I think that the DMS BAPI_DOCUMENT_CHANGE2 could be useful for this action. This BAPI could be used to change existing document info record data and also its classification.

First I would recomment you to use BAPI_DOCUMENT_GETDETAIL2 which reads out the current data for a document info record. This data can then be modified by you and handed over to BAPI_DOCUMENT_CHANGE2. After the CHANGE2 BAPI was executed please use BAPI_TRANSACTION_COMMIT to realise the changes also in the database tables.

Best regards,

Christoph

former_member216702
Active Participant
0 Kudos

Hello,

You populate an internal table with :

DATA wt_classalocation TYPE TABLE OF bapi_class_allocation WITH HEADER LINE.

DATA wt_characteristicvalues TYPE TABLE OF bapi_characteristic_values WITH HEADER LINE.

wt_characteristicvalues-classtype = '017'.

wt_characteristicvalues-classname = 'CUS_XXX'.

wt_characteristicvalues-charname = 'CUS_DATE_CREATE'.

WRITE sy-datum to wt_characteristicvalues-charvalue.

APPEND wt_characteristicvalues.

wt_classalocation-classtype = '017'.

wt_classalocation-classname = 'CUS_XXX'.

APPEND wt_classalocation.

CALL FUNCTION 'BAPI_DOCUMENT_CREATE2'

......

TABLES

characteristicvalues = wt_characteristicvalues

classallocations = wt_classalocation

.....

Thierry

MangeshP
Active Contributor
0 Kudos

Dear Sheild

This can be done with BAPI. Get in touch with your ABABP consultant he will guide you.

With Regards

Mangesh Pande