<?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 Problem with updatin Ztable while blocking PGI in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-updatin-ztable-while-blocking-pgi/m-p/7495987#M1557784</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;My requirement is as follows: When ever user tries to do PGI using VL02N or VL06G I need to block them depending on some criteria and update the Ztable with the delivery no and blocked date.&lt;/P&gt;&lt;P&gt;I am able to block the PGI by using the user exit USEREXIT_SAVE_DOCUMENT_PREPARE and giving an error message saying PGI blocked for so ans so reason.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;*- Update table ZDE_GI_BLOCKED with blocked deliveries
    PERFORM update_gi_blocked USING lt_gi_blocked.
IF sy-ucomm = 'WABU'.
      MESSAGE text-e01 TYPE 'E' .
    ELSEIF sy-ucomm = 'WABU_T'.
*      lv_var1 = 'B'.
*      case lv_var1.
*        when 'A'.
          MESSAGE text-e01 TYPE 'S' DISPLAY LIKE 'E'.
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the problem is if we are ung VL06G the Ztable is not being updated whereas for VL02N it is being updated.&lt;/P&gt;&lt;P&gt;I think as we are in userexit writing commit statement is prohibited.&lt;/P&gt;&lt;P&gt;Kindly give your suggestions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Aravind&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 09 Dec 2010 09:19:41 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-12-09T09:19:41Z</dc:date>
    <item>
      <title>Problem with updatin Ztable while blocking PGI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-updatin-ztable-while-blocking-pgi/m-p/7495987#M1557784</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;My requirement is as follows: When ever user tries to do PGI using VL02N or VL06G I need to block them depending on some criteria and update the Ztable with the delivery no and blocked date.&lt;/P&gt;&lt;P&gt;I am able to block the PGI by using the user exit USEREXIT_SAVE_DOCUMENT_PREPARE and giving an error message saying PGI blocked for so ans so reason.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;*- Update table ZDE_GI_BLOCKED with blocked deliveries
    PERFORM update_gi_blocked USING lt_gi_blocked.
IF sy-ucomm = 'WABU'.
      MESSAGE text-e01 TYPE 'E' .
    ELSEIF sy-ucomm = 'WABU_T'.
*      lv_var1 = 'B'.
*      case lv_var1.
*        when 'A'.
          MESSAGE text-e01 TYPE 'S' DISPLAY LIKE 'E'.
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the problem is if we are ung VL06G the Ztable is not being updated whereas for VL02N it is being updated.&lt;/P&gt;&lt;P&gt;I think as we are in userexit writing commit statement is prohibited.&lt;/P&gt;&lt;P&gt;Kindly give your suggestions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Aravind&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Dec 2010 09:19:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-updatin-ztable-while-blocking-pgi/m-p/7495987#M1557784</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-12-09T09:19:41Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with updatin Ztable while blocking PGI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-updatin-ztable-while-blocking-pgi/m-p/7495988#M1557785</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You're correct in that we don't want COMMIT WORK in userexits, due to pushing the update queues to the database before SAP has finished constructing all the updates. This can have undesirable results, obviously.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Question:  have you debugged your VL06G to be certain you're entering this exit coding?  If so, perhaps you could post your update subroutine instead of the message processing....Apparently the message aren't the problem, so not sure why you posted that instead of the contents of the perform just above the message routine.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Dec 2010 15:43:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-updatin-ztable-while-blocking-pgi/m-p/7495988#M1557785</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-12-09T15:43:33Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with updatin Ztable while blocking PGI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-updatin-ztable-while-blocking-pgi/m-p/7495989#M1557786</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;Yes I have debugged and my code is going into that user exit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have called the function module in new task and comittted. This is the remedy I could find.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2010 07:15:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-updatin-ztable-while-blocking-pgi/m-p/7495989#M1557786</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-12-12T07:15:59Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with updatin Ztable while blocking PGI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-updatin-ztable-while-blocking-pgi/m-p/7495990#M1557787</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;solved by myself&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2010 07:16:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-updatin-ztable-while-blocking-pgi/m-p/7495990#M1557787</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-12-12T07:16:24Z</dc:date>
    </item>
  </channel>
</rss>

