Skip to Content
avatar image
Former Member

Automatic Creation of DIR(CV01N) from Specification Save CG02

Hi,

I have a requirement to create a DIR (CV01N) when a specification is saved using T-code CG02.

The User exits C10Y0001 and C10Y0002 are not getting triggered when I hit save or change status. For Creating DIR I am using BAPI_DOCUMENT_CREATE2. Please suggest from where do I trigger the BAPI from CG02 save

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • Sep 29, 2013 at 01:54 PM

    Dear Umayal

    both exits are related to the "Status" handling. If you are not using "Status" nothing will happen during save in CG02. What is the purpose of creating a "DIR"? Clearly there are alternative exits etc. but I have some doubt regarding your requirement.

    C.B.

    Add comment
    10|10000 characters needed characters exceeded

    • Dear Uma

      before we discuss code (if it is correct or wrong): what is your business demand? Which type of document to be linked to EHS? Should the user be able to retrieve it? Why to create any (???) one a new one during "Save"?

      PS: may be read deeper in: http://www.consolut.com/en/s/sap-ides-access/d/s/doc/YN-IF_EX_EHSS_SPEC_CHECKS~~~~~~~~AT_SAVE_CHECK

      ESTRH might not be the "right" table to check. ESTRH is "triggered" often during SAVE (because of update of administration information). "More" useful might be: ESTMJ, ESTRI. But to "decide" or provide hints I need to understand better the requirement (as you can e.g. store documents on level of identifer if needed and on level of user defined text as well; not talkjing about th eoption to use "Inbound" documents.

      C.B.