Skip to Content
avatar image
Former Member

Set characteristics values for a document while creation

Hi all,

I want to set some characteristics values from a customizing table when a user creates an document, BEFORE the new document is displayed in the SAPGUI.

Also the solution should work for BAPI-Calls to create a document.

And - additionally also when the user creates a document via EasyDMS.

I think, the best place would be, to use the BADI DOCUMENT_MAIN01 - and method BEFORE_READ_DATA or AFTER_READ_DATA.

But my problem is, where to set the characteristic values, so that they can be used by BAPI, SAPGUI, EasyDMS.

Does anyone have a suggestion for one part or all parts of the requirement?

Thanks,

Roland

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    avatar image
    Former Member
    Aug 19, 2009 at 07:22 AM

    Hi Roland,

    why don't you use dependencies to set the default value of your characteristics ?

    Iring

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Iring,

      thanks for your suggestion.

      But - a user can set customizing value itself independent of document- and in dependence of this value, a characteristics value should be set for document creation.

      I think, for your suggestion is needed, that the user sets one value within den document, and then the system sets other characteristics values.

      Is there a possibility to set the characteristic values in memory?

      To get the values for check while save the document, I use CVBAPI_DATA_GET and CLFM_GET_INTERNAL_TABLES. Are there corresponding functions to set this values?

      Roland