<?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: Update in user exit. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-in-user-exit/m-p/3761068#M904843</link>
    <description>&lt;P&gt;  &lt;SPAN class="mention-scrubbed"&gt;philpchingwaro&lt;/SPAN&gt; &lt;/P&gt;&lt;BR /&gt;Hello,  While we're happy that you've come to SAP Community to get an answer to your question, you posted your question as an answer in an old thread.&lt;BR /&gt;I've converted your answer to a comment, but even so -- posting in older threads is not the best way to get guidance.&lt;BR /&gt;If you're looking for help, you should ask a new question: &lt;A href="https://answers.sap.com/questions/ask.html" target="test_blank"&gt;https://answers.sap.com/questions/ask.html&lt;/A&gt;.&lt;BR /&gt;Here are some tips to help you craft an effective question for our community: &lt;A href="https://community.sap.com/resources/questions-and-answers" target="test_blank"&gt;https://community.sap.com/resources/questions-and-answers&lt;/A&gt;, &lt;A href="https://developers.sap.com/tutorials/community-qa.html" target="test_blank"&gt;https://developers.sap.com/tutorials/community-qa.html&lt;/A&gt;, &lt;A href="https://groups.community.sap.com/t5/welcome-corner-discussions/advice-from-sap-champions-questions-and-answers/m-p/123609" target="test_blank"&gt;https://groups.community.sap.com/t5/welcome-corner-discussions/advice-from-sap-champions-questions-and-answers/m-p/123609&lt;/A&gt;.&lt;BR /&gt;I encourage you to follow this guidance, as I'd really like to see you get a solution to your problem.&lt;BR /&gt;I hope you find this advice useful!</description>
    <pubDate>Thu, 04 May 2023 05:32:56 GMT</pubDate>
    <dc:creator>moshenaveh</dc:creator>
    <dc:date>2023-05-04T05:32:56Z</dc:date>
    <item>
      <title>Update in user exit.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-in-user-exit/m-p/3761059#M904834</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 have code in the User exit - EXIT_RFEBBU10_001 - which will be triggered by the transaction code &lt;STRONG&gt;FF.5&lt;/STRONG&gt;. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My code is to update the Standard Database table &lt;STRONG&gt;FEBEP&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;My code  is.  &lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;Update FEBEP&lt;/P&gt;&lt;P&gt;           SET FWAER = ''&lt;/P&gt;&lt;P&gt;               FWBTR = '0.00'&lt;/P&gt;&lt;P&gt;            where KUKEY = i_febep-kukey AND&lt;/P&gt;&lt;P&gt;                  ESNUM = i_febep-esnum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But this is not updating the database table with FWBTR as 0.00 and FWEAR as nothing, but &lt;STRONG&gt;SY-SUBRC&lt;/STRONG&gt; is 0 while debugging. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used the same code in a seperate executable program that time it is updating the table, but inside the User Exit it is not doing. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please tell me how to solve this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Points assured&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Prabhu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Apr 2008 07:25:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-in-user-exit/m-p/3761059#M904834</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-29T07:25:22Z</dc:date>
    </item>
    <item>
      <title>Re: Update in user exit.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-in-user-exit/m-p/3761060#M904835</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There can be multiple reasons, may be after you change the value SAP it self overrides the value which makes it zero. so when is this table populated during the same transaction or it is already there when this transaction is executed?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Apr 2008 07:29:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-in-user-exit/m-p/3761060#M904835</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-29T07:29:06Z</dc:date>
    </item>
    <item>
      <title>Re: Update in user exit.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-in-user-exit/m-p/3761061#M904836</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;         Yes this can be a problem that value is been overwritten after update statement.&lt;/P&gt;&lt;P&gt;Also, try commit work statement after the update query.&lt;/P&gt;&lt;P&gt;Please reward points if it works.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Apr 2008 07:29:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-in-user-exit/m-p/3761061#M904836</guid>
      <dc:creator>jaideepsharma</dc:creator>
      <dc:date>2008-04-29T07:29:23Z</dc:date>
    </item>
    <item>
      <title>Re: Update in user exit.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-in-user-exit/m-p/3761062#M904837</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;Can we use &lt;STRONG&gt;COMMIT WORK&lt;/STRONG&gt; in the user exit.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Prabhu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Apr 2008 07:31:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-in-user-exit/m-p/3761062#M904837</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-29T07:31:04Z</dc:date>
    </item>
    <item>
      <title>Re: Update in user exit.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-in-user-exit/m-p/3761063#M904838</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;    after using the update statement to modify a table record u must use COMMIT WORK statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Aravind M&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Apr 2008 07:32:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-in-user-exit/m-p/3761063#M904838</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-29T07:32:46Z</dc:date>
    </item>
    <item>
      <title>Re: Update in user exit.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-in-user-exit/m-p/3761064#M904839</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try and avoid using COMMIT WORK in a user exit. This could also commit data to database which is not (yet) supposed to be stored. Maybe there are some checks that still need to be performed or whatever. Let SAP do the commit in this case, to make sure data remains consistent.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If problem is within COMMIT WORK, try and use a perform on commit, or use FM in update task.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Apr 2008 07:34:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-in-user-exit/m-p/3761064#M904839</guid>
      <dc:creator>Sm1tje</dc:creator>
      <dc:date>2008-04-29T07:34:28Z</dc:date>
    </item>
    <item>
      <title>Re: Update in user exit.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-in-user-exit/m-p/3761065#M904840</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;  commit statement in userexit:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;You should not do that.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;After the user exits code is triggered, the transaction's own commits statements will commit the database anyway&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Kiran Sure&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Apr 2008 07:34:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-in-user-exit/m-p/3761065#M904840</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-29T07:34:46Z</dc:date>
    </item>
    <item>
      <title>Re: Update in user exit.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-in-user-exit/m-p/3761066#M904841</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Prabhu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm sorry to say that your whole approach is incorrect i.e. everything you are doing in this user-exit from start to finish is incorrect and it is against SAP Best Practice!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Firstly, you are trying to modify (update) a SAP standard database table - which is not recommended in the first place but then again I see you are trying to change a database full with highly sensitive information (The Electronic Bank Statement Line Item table)!!! Not only you may land up in big trouble personally for doing this but also I don't think your client's system auditors will be too pleased about that. So, &lt;STRONG&gt;Never Do This&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then, you are wondering if you could use a Commit Work statement in your user-exit - which is again not recommended. Let the system take care of that after it leaves your exit and before completing the transaction. So, again, &lt;STRONG&gt;Never Do This&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, to solve your issue, you should be first reading the documentation of SAP Enhancement FEB00001 because your user-exit function module is linked to this enhancement. This is well documented and shows you how to code this exit. I think if you require any changes in the line items you should make changes in the export parameter &lt;STRONG&gt;E_FEBEP&lt;/STRONG&gt; because SAP allows you to change E_FEBEP and finally don't forget to set the export parameter &lt;STRONG&gt;E_UPDATE = 'X'&lt;/STRONG&gt; after you have changed data in any structure or table parameters to confirm changes back to SAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Sougata.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Apr 2008 08:05:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-in-user-exit/m-p/3761066#M904841</guid>
      <dc:creator>Sougata</dc:creator>
      <dc:date>2008-04-29T08:05:12Z</dc:date>
    </item>
    <item>
      <title>Re: Update in user exit.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-in-user-exit/m-p/3761067#M904842</link>
      <description>&lt;P&gt;Good day &lt;/P&gt;&lt;P&gt;This is the piece of code i added to my user exit EXIT_RFEBBU10_001 &lt;/P&gt;&lt;P&gt;IF I_FEBKO-KTONR = '01122387740019' AND I_FEBEP-TEXTS = 'FIMT' AND I_FEBEP-VGINT = 'ZR07'.&lt;/P&gt; E_FEBEP-KOSTL = 'REGION1'.&lt;BR /&gt;  E_FEBEP-GSBER = 'ZB14'.&lt;BR /&gt;E_UPDATE = 'X'.&lt;BR /&gt;COMMIT WORK.&lt;P&gt;endif. &lt;/P&gt;&lt;P&gt;The challenge now is the program is not updating the cost centre field and business area field returning an error &lt;/P&gt;&lt;P&gt;Error during update of table FEBEP &lt;/P&gt;&lt;P&gt;Kindly assist so that the cost centre field is update as these transaction are Bank charges and must include cost centre field not covered in the MT940 EBS file from the Bank &lt;/P&gt;&lt;P&gt;Regards &lt;/P&gt;&lt;P&gt;Phillip &lt;/P&gt;</description>
      <pubDate>Wed, 03 May 2023 12:06:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-in-user-exit/m-p/3761067#M904842</guid>
      <dc:creator>former_member59231</dc:creator>
      <dc:date>2023-05-03T12:06:07Z</dc:date>
    </item>
    <item>
      <title>Re: Update in user exit.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-in-user-exit/m-p/3761068#M904843</link>
      <description>&lt;P&gt;  &lt;SPAN class="mention-scrubbed"&gt;philpchingwaro&lt;/SPAN&gt; &lt;/P&gt;&lt;BR /&gt;Hello,  While we're happy that you've come to SAP Community to get an answer to your question, you posted your question as an answer in an old thread.&lt;BR /&gt;I've converted your answer to a comment, but even so -- posting in older threads is not the best way to get guidance.&lt;BR /&gt;If you're looking for help, you should ask a new question: &lt;A href="https://answers.sap.com/questions/ask.html" target="test_blank"&gt;https://answers.sap.com/questions/ask.html&lt;/A&gt;.&lt;BR /&gt;Here are some tips to help you craft an effective question for our community: &lt;A href="https://community.sap.com/resources/questions-and-answers" target="test_blank"&gt;https://community.sap.com/resources/questions-and-answers&lt;/A&gt;, &lt;A href="https://developers.sap.com/tutorials/community-qa.html" target="test_blank"&gt;https://developers.sap.com/tutorials/community-qa.html&lt;/A&gt;, &lt;A href="https://groups.community.sap.com/t5/welcome-corner-discussions/advice-from-sap-champions-questions-and-answers/m-p/123609" target="test_blank"&gt;https://groups.community.sap.com/t5/welcome-corner-discussions/advice-from-sap-champions-questions-and-answers/m-p/123609&lt;/A&gt;.&lt;BR /&gt;I encourage you to follow this guidance, as I'd really like to see you get a solution to your problem.&lt;BR /&gt;I hope you find this advice useful!</description>
      <pubDate>Thu, 04 May 2023 05:32:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-in-user-exit/m-p/3761068#M904843</guid>
      <dc:creator>moshenaveh</dc:creator>
      <dc:date>2023-05-04T05:32:56Z</dc:date>
    </item>
  </channel>
</rss>

