<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Activate user exit for BAPI_DOCUMENT_CREATENEWVRS2 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/activate-user-exit-for-bapi-document-createnewvrs2/m-p/5840848#M1317958</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;Can you please tell me what are the mandatory parameters for BAPI_DOCUMENT_CREATENEWVRS2 and what values to pass through it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shilpa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 21 Mar 2012 15:19:50 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2012-03-21T15:19:50Z</dc:date>
    <item>
      <title>Activate user exit for BAPI_DOCUMENT_CREATENEWVRS2</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/activate-user-exit-for-bapi-document-createnewvrs2/m-p/5840846#M1317956</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where I work we  are using BAPI_DOCUMENT_CREATENEWVRS2 to create new versions of a document (DMS module). The problem we have is that the BAPI copies all values from the original version. We are looking for a way to leave blank fields RES1, RES2 and RES3 from table DRAW. Debugging the code takes us to a user exit section, but apparently no user exit is active. The code takes you to source code of method IF_EX_DOCUMENT_MAIN01~BEFORE_SAVE, but a validation forces the program to exit the routine. See last statement of the ABAP code below. Does anyone know how to activate the user exit in a method?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Carlos&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;method IF_EX_DOCUMENT_MAIN01~BEFORE_SAVE.&lt;/P&gt;&lt;P&gt;CLASS CL_EXIT_MASTER DEFINITION LOAD.&lt;/P&gt;&lt;P&gt;DATA: EXIT_OBJ_TAB TYPE SEEX_EXIT_TAB,&lt;/P&gt;&lt;P&gt;      EXIT_OBJ TYPE SEEX_EXIT_TAB_STRUCT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: EXITINTF TYPE REF TO IF_EX_DOCUMENT_MAIN01.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT INSTANCE_BADI_TABLE INTO EXIT_OBJ WHERE&lt;/P&gt;&lt;P&gt;       INTER_NAME = 'IF_EX_DOCUMENT_MAIN01' AND&lt;/P&gt;&lt;P&gt;       FLT_VAL    = SPACE.&lt;/P&gt;&lt;P&gt;    APPEND EXIT_OBJ TO EXIT_OBJ_TAB.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF SY-SUBRC = 4.&lt;/P&gt;&lt;P&gt;    CALL METHOD CL_EXIT_MASTER=&amp;gt;CREATE_OBJ_BY_INTERFACE_FILTER&lt;/P&gt;&lt;P&gt;       EXPORTING&lt;/P&gt;&lt;P&gt;          INTER_NAME   = 'IF_EX_DOCUMENT_MAIN01'&lt;/P&gt;&lt;P&gt;          FLT_VAL      = SPACE&lt;/P&gt;&lt;P&gt;       IMPORTING&lt;/P&gt;&lt;P&gt;          EXIT_OBJ_TAB = EXIT_OBJ_TAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    APPEND LINES OF EXIT_OBJ_TAB TO INSTANCE_BADI_TABLE.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT EXIT_OBJ_TAB INTO EXIT_OBJ.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CHECK NOT EXIT_OBJ-OBJ IS INITIAL.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jun 2009 18:04:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/activate-user-exit-for-bapi-document-createnewvrs2/m-p/5840846#M1317956</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-16T18:04:14Z</dc:date>
    </item>
    <item>
      <title>Re: Activate user exit for BAPI_DOCUMENT_CREATENEWVRS2</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/activate-user-exit-for-bapi-document-createnewvrs2/m-p/5840847#M1317957</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hai coherna, u r not using any user exit&lt;/P&gt;&lt;P&gt;instead u r using the  DOCUMENT_MAIN01 badi and it is implementated u can change the code also&lt;/P&gt;&lt;P&gt;as it is exiting so u change the code accordign to ur requirement and activate it and it will work fine&lt;/P&gt;&lt;P&gt;m.a&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jun 2009 05:21:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/activate-user-exit-for-bapi-document-createnewvrs2/m-p/5840847#M1317957</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-17T05:21:55Z</dc:date>
    </item>
    <item>
      <title>Re: Activate user exit for BAPI_DOCUMENT_CREATENEWVRS2</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/activate-user-exit-for-bapi-document-createnewvrs2/m-p/5840848#M1317958</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;Can you please tell me what are the mandatory parameters for BAPI_DOCUMENT_CREATENEWVRS2 and what values to pass through it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shilpa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Mar 2012 15:19:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/activate-user-exit-for-bapi-document-createnewvrs2/m-p/5840848#M1317958</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-03-21T15:19:50Z</dc:date>
    </item>
  </channel>
</rss>

