<?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: Executing subroutine after commit work, not on commit work in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/executing-subroutine-after-commit-work-not-on-commit-work/m-p/945490#M64064</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In my example if you give level '99' then it will be the last one in the commit work execution. Could you try this out pls?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 Jul 2005 10:45:06 GMT</pubDate>
    <dc:creator>Vinod_Chandran</dc:creator>
    <dc:date>2005-07-20T10:45:06Z</dc:date>
    <item>
      <title>Executing subroutine after commit work, not on commit work</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/executing-subroutine-after-commit-work-not-on-commit-work/m-p/945485#M64059</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;I want to execute my sub-routine after commit work, not on commit work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If any one have answer please me at &lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;&lt;STRONG&gt;&amp;lt;REMOVED BY MODERATOR&amp;gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;&lt;STRONG&gt;&amp;lt;LOCKED BY MODERATOR - USE BC FOR DIRECT CONTACT&amp;gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Alvaro Tejada Galindo on Jun 1, 2010 3:58 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jul 2005 10:23:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/executing-subroutine-after-commit-work-not-on-commit-work/m-p/945485#M64059</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-07-20T10:23:47Z</dc:date>
    </item>
    <item>
      <title>Re: Executing subroutine after commit work, not on commit work</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/executing-subroutine-after-commit-work-not-on-commit-work/m-p/945486#M64060</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;just do:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;...some actions...
commit work.
perform subroutine.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jul 2005 10:29:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/executing-subroutine-after-commit-work-not-on-commit-work/m-p/945486#M64060</guid>
      <dc:creator>christian_wohlfahrt</dc:creator>
      <dc:date>2005-07-20T10:29:08Z</dc:date>
    </item>
    <item>
      <title>Re: Executing subroutine after commit work, not on commit work</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/executing-subroutine-after-commit-work-not-on-commit-work/m-p/945487#M64061</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want to execute this sub routine after all the other subroutines on commit work are finished then use the addition LEVEL idx after the ON COMMIT statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data w_idx type i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;w_idx = '99'.&lt;/P&gt;&lt;P&gt;PERFORM form ON COMMIT LEVEL w_idx.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jul 2005 10:34:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/executing-subroutine-after-commit-work-not-on-commit-work/m-p/945487#M64061</guid>
      <dc:creator>Vinod_Chandran</dc:creator>
      <dc:date>2005-07-20T10:34:49Z</dc:date>
    </item>
    <item>
      <title>Re: Executing subroutine after commit work, not on commit work</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/executing-subroutine-after-commit-work-not-on-commit-work/m-p/945488#M64062</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;But I want to execute my subroutine after commit statement, but I am not able to keep subroutine after commit statement, because it is sap standard program&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jul 2005 10:39:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/executing-subroutine-after-commit-work-not-on-commit-work/m-p/945488#M64062</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-07-20T10:39:53Z</dc:date>
    </item>
    <item>
      <title>Re: Executing subroutine after commit work, not on commit work</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/executing-subroutine-after-commit-work-not-on-commit-work/m-p/945489#M64063</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;But I want to execute my subroutine after commit statement, but I am not able to keep subroutine after commit statement, because it is sap standard program&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jul 2005 10:40:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/executing-subroutine-after-commit-work-not-on-commit-work/m-p/945489#M64063</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-07-20T10:40:46Z</dc:date>
    </item>
    <item>
      <title>Re: Executing subroutine after commit work, not on commit work</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/executing-subroutine-after-commit-work-not-on-commit-work/m-p/945490#M64064</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In my example if you give level '99' then it will be the last one in the commit work execution. Could you try this out pls?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jul 2005 10:45:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/executing-subroutine-after-commit-work-not-on-commit-work/m-p/945490#M64064</guid>
      <dc:creator>Vinod_Chandran</dc:creator>
      <dc:date>2005-07-20T10:45:06Z</dc:date>
    </item>
    <item>
      <title>Re: Executing subroutine after commit work, not on commit work</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/executing-subroutine-after-commit-work-not-on-commit-work/m-p/945491#M64065</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you call a standard program, or do you want to add some coding to a standard transaction?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jul 2005 11:05:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/executing-subroutine-after-commit-work-not-on-commit-work/m-p/945491#M64065</guid>
      <dc:creator>christian_wohlfahrt</dc:creator>
      <dc:date>2005-07-20T11:05:12Z</dc:date>
    </item>
    <item>
      <title>Re: Executing subroutine after commit work, not on commit work</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/executing-subroutine-after-commit-work-not-on-commit-work/m-p/945492#M64066</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No vinod,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Still it is not working, it is related to VL02N Tcode, here user is entering long text and pressing PGI button with out saving , in my userexit I have to catch that text. text is saving into database after commit only. but my userexit is triggering before that.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jul 2005 11:23:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/executing-subroutine-after-commit-work-not-on-commit-work/m-p/945492#M64066</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-07-20T11:23:20Z</dc:date>
    </item>
    <item>
      <title>Re: Executing subroutine after commit work, not on commit work</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/executing-subroutine-after-commit-work-not-on-commit-work/m-p/945493#M64067</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i had a similar problem with longtext for FI-Documents to catch the text in an user exit, before the text is written to DB. Normally the lontext is hold in the global memory of the function pool (or main program where it has been maintained). So you can try to catch these values from the global memory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Enclosed the coding for my solution in FI. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM get_longtext_from_buffer USING p_l_bseg TYPE bseg.&lt;/P&gt;&lt;P&gt;  DATA: l_eenot_notice        TYPE eenot_notice,&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       l_tdname              TYPE tdobname,&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        l_texte               TYPE eenot_single_notice,&lt;/P&gt;&lt;P&gt;        l_tline               TYPE tline.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  FIELD-SYMBOLS: &amp;lt;notice&amp;gt; TYPE eenot_notice.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CLEAR:   gs_z1castxh, gs_z1castxl.&lt;/P&gt;&lt;P&gt;  REFRESH: gt_z1castxl.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Get Text from Buffer&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  ASSIGN ('(SAPLFTXT)WA_DOC_NOTE-NOTE') TO &amp;lt;notice&amp;gt;.&lt;/P&gt;&lt;P&gt;  IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;    l_eenot_notice = &amp;lt;notice&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    READ TABLE l_eenot_notice-notizen&lt;/P&gt;&lt;P&gt;         INTO l_texte INDEX l_eenot_notice-c-index.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;      gs_z1castxh-tdobject = l_texte-head-tdobject.&lt;/P&gt;&lt;P&gt;      gs_z1castxh-tdname   = l_texte-head-tdname.&lt;/P&gt;&lt;P&gt;      gs_z1castxh-tdid     = l_texte-head-tdid.&lt;/P&gt;&lt;P&gt;      gs_z1castxh-tdspras  = l_texte-head-tdspras.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      LOOP AT l_texte-lines INTO l_tline.&lt;/P&gt;&lt;P&gt;        MOVE-CORRESPONDING l_tline TO gs_z1castxl.&lt;/P&gt;&lt;P&gt;        APPEND gs_z1castxl TO gt_z1castxl.&lt;/P&gt;&lt;P&gt;      ENDLOOP.&lt;/P&gt;&lt;P&gt;     ENDIF.&lt;/P&gt;&lt;P&gt;   ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.                               " GET_LONGTEXT_FROM_BUFFER&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;May be this solution gives you a help, taht you can di it similar for your transaction. I think you have another function pool, but you can see it in the debugger when you maintain your longtext.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;best regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jul 2005 12:26:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/executing-subroutine-after-commit-work-not-on-commit-work/m-p/945493#M64067</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-07-20T12:26:58Z</dc:date>
    </item>
    <item>
      <title>Re: Executing subroutine after commit work, not on commit work</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/executing-subroutine-after-commit-work-not-on-commit-work/m-p/945494#M64068</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Get Text from Buffer&lt;/P&gt;&lt;P&gt;ASSIGN ('(SAPLFTXT)WA_DOC_NOTE-NOTE') TO &amp;lt;notice&amp;gt;.&lt;/P&gt;&lt;P&gt;IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;l_eenot_notice = &amp;lt;notice&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here I am getting sy-subrc eq 4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please suggest me any&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jul 2005 13:44:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/executing-subroutine-after-commit-work-not-on-commit-work/m-p/945494#M64068</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-07-20T13:44:24Z</dc:date>
    </item>
    <item>
      <title>Re: Executing subroutine after commit work, not on commit work</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/executing-subroutine-after-commit-work-not-on-commit-work/m-p/945495#M64069</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as i said it was an example how i did it in FI. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The approach for finding a solution for your problem should be similar. I debugged the longtext screen of your transaction and as far as i see the main program that is used is SAPLV70T (Function Pool V70T).&lt;/P&gt;&lt;P&gt;Maintaining text the workarea TLINETAB of this mainprogram is filled. &lt;/P&gt;&lt;P&gt;So my proposal is to access this workarea &lt;/P&gt;&lt;P&gt;ASSIGN('(SAPLV70T)TLINETAB) TO &amp;lt;TLINE&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;TLINE&amp;gt; should have the same structure as TLINETAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But this is only the first step. You have to debug the longtext logic or to analyze to mainprogram to get the rest of information you need. It is a laborious work and my coding could not be taken 1:1 but the way to get the data is the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jul 2005 15:06:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/executing-subroutine-after-commit-work-not-on-commit-work/m-p/945495#M64069</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-07-20T15:06:51Z</dc:date>
    </item>
  </channel>
</rss>

