<?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: user exit message only once in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-message-only-once/m-p/9338090#M1729929</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello.&lt;/P&gt;&lt;P&gt;Do the validation at the moment to save the document. So the message will be showed one time.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 Mar 2013 18:22:19 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2013-03-12T18:22:19Z</dc:date>
    <item>
      <title>user exit message only once</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-message-only-once/m-p/9338087#M1729926</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 am currently working on a SD requirement, in VA01 after giving sold to party details on enter it should raise a warning message comparing few conditions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes it is pretty easy, i am using user exit MV45AFZZ and routine USEREXIT_MOVE_FIELD_TO_VBAK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While testing the warning message is displaying again and again like after enter sold to party, its displaying the warning message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;again if we give any line item again the code is executed and displaying the warning message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If we miss any header data along with that message first warning message is displayed and then missing data message is displaying.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can some one tell me how to display this only once.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS: I can do this using EXPORT and IMPORT a flag to memory, but is there any other better way?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;NK&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Mar 2013 16:40:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-message-only-once/m-p/9338087#M1729926</guid>
      <dc:creator>former_member576008</dc:creator>
      <dc:date>2013-03-11T16:40:28Z</dc:date>
    </item>
    <item>
      <title>Re: user exit message only once</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-message-only-once/m-p/9338088#M1729927</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This message was moderated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Mar 2013 17:13:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-message-only-once/m-p/9338088#M1729927</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-03-11T17:13:37Z</dc:date>
    </item>
    <item>
      <title>Re: user exit message only once</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-message-only-once/m-p/9338089#M1729928</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Isn't it possible, please advise.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Mar 2013 16:11:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-message-only-once/m-p/9338089#M1729928</guid>
      <dc:creator>former_member576008</dc:creator>
      <dc:date>2013-03-12T16:11:24Z</dc:date>
    </item>
    <item>
      <title>Re: user exit message only once</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-message-only-once/m-p/9338090#M1729929</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello.&lt;/P&gt;&lt;P&gt;Do the validation at the moment to save the document. So the message will be showed one time.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Mar 2013 18:22:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-message-only-once/m-p/9338090#M1729929</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-03-12T18:22:19Z</dc:date>
    </item>
    <item>
      <title>Re: user exit message only once</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-message-only-once/m-p/9338091#M1729930</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Miguel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need this on ENTER, after entering material and quantity at item level&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Mar 2013 19:21:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-message-only-once/m-p/9338091#M1729930</guid>
      <dc:creator>former_member576008</dc:creator>
      <dc:date>2013-03-14T19:21:05Z</dc:date>
    </item>
    <item>
      <title>Re: user exit message only once</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-message-only-once/m-p/9338092#M1729931</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi NK,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't like to use memory either but in this case I think it will be the most easy (maybe the only) way to.&lt;/P&gt;&lt;P&gt;But use IMPORT/EXPORT instead, this flag checking will be done in same session.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Edgar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Mar 2013 03:21:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-message-only-once/m-p/9338092#M1729931</guid>
      <dc:creator>edgar_nagasaki</dc:creator>
      <dc:date>2013-03-15T03:21:44Z</dc:date>
    </item>
    <item>
      <title>Re: user exit message only once</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-message-only-once/m-p/9338093#M1729932</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi N K,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As Edgar said the only option is to set a flag, import and export is the only option. You may check for any counter if you find any but the best option is to set a flag and check it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Mar 2013 04:40:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-message-only-once/m-p/9338093#M1729932</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-03-15T04:40:45Z</dc:date>
    </item>
    <item>
      <title>Re: user exit message only once</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-message-only-once/m-p/9338094#M1729933</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could define a global variable in INCLUDE MV45ATZZ (pls. remeber the name space for gloable variable: they need to start with ZZ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The globale variable need to be cleared within user-exit: USEREXIT_REFRESH_DOCUMENT in case of a new order.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards Hendrik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Mar 2013 08:30:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-message-only-once/m-p/9338094#M1729933</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-03-15T08:30:05Z</dc:date>
    </item>
    <item>
      <title>Re: user exit message only once</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-message-only-once/m-p/9338095#M1729934</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Fetch all sold to party details that you are entering from the import parameter of&amp;nbsp; exit and use those details in if condition stating not initial and after that write your validations and check and let me know .&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Suman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Mar 2013 10:07:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-message-only-once/m-p/9338095#M1729934</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-03-15T10:07:45Z</dc:date>
    </item>
    <item>
      <title>Re: user exit message only once</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-message-only-once/m-p/9338096#M1729935</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;In this case you can also use a static variable and use it as a flag.The psuedo code could be like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check l_flag is initial&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;Warning message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nitin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Mar 2013 11:45:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-message-only-once/m-p/9338096#M1729935</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-03-15T11:45:50Z</dc:date>
    </item>
    <item>
      <title>Re: user exit message only once</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-message-only-once/m-p/9338097#M1729936</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi nitin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you use a static variable, it should not be only a flag. &lt;/P&gt;&lt;P&gt;When will the flag be cleared if the user save the first order and starts to work on a new order, without leaving the transaction? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You would need to store the sold-to no. in a static variable and check if the sold to no. is changed. This would give you a bit of security, but what will happen if the user work on two orders with the same sold to?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards Hendrik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Mar 2013 11:59:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-message-only-once/m-p/9338097#M1729936</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-03-15T11:59:58Z</dc:date>
    </item>
    <item>
      <title>Re: user exit message only once</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-message-only-once/m-p/9338098#M1729937</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;If this does not work, then there is one more way out.You can display the warning message as a status message.I think that will be displayed only once.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NItin Kacker&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Mar 2013 12:05:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-message-only-once/m-p/9338098#M1729937</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-03-15T12:05:32Z</dc:date>
    </item>
    <item>
      <title>Re: user exit message only once</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-message-only-once/m-p/9338099#M1729938</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Edgar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created a structure with sold to party and a flag, first time after displaying the message i am exporting this to memory when it comes second time checking the flag is initial or not and also the customer is same or not. If not( for different customer) it should raise the warning message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This was working perfectly, but in a case say, i have given the sold to party and got the warning message, instead taking a new screen went back(va01 main screen) and came in. This time again giving the same details, but message is not coming. Because the message was already raised and same customer. The session was not cleared. Though this is rare case, anyway to overcome this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;NK&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 Mar 2013 21:25:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-message-only-once/m-p/9338099#M1729938</guid>
      <dc:creator>former_member576008</dc:creator>
      <dc:date>2013-03-16T21:25:21Z</dc:date>
    </item>
    <item>
      <title>Re: user exit message only once</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-message-only-once/m-p/9338100#M1729939</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nitin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you let me know how to use status message to my scenario. many thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;NK&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 Mar 2013 21:26:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-message-only-once/m-p/9338100#M1729939</guid>
      <dc:creator>former_member576008</dc:creator>
      <dc:date>2013-03-16T21:26:53Z</dc:date>
    </item>
    <item>
      <title>Re: user exit message only once</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-message-only-once/m-p/9338101#M1729940</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;The idea is that you trigger a usual status message in the code , like;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;message s001.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think the message is similar in all the cases, so,in this case, the system will display it only once.This I have seen in one of the objects.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Even, if this does not work, then you can collect all the messages in a memory and then display it in the ALV_POP_UP_DISPLAY, like you get in the enjoy transactions like PO etc.You can collect all the messages and trigger the ALV at the time of save.Please try this out and let me know, if you still face any problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nitin&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NItin Kacker&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Mar 2013 05:54:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-message-only-once/m-p/9338101#M1729940</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-03-18T05:54:11Z</dc:date>
    </item>
    <item>
      <title>Re: user exit message only once</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-message-only-once/m-p/9338102#M1729941</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;did u try checking some other user-exit or BADI..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Mar 2013 11:29:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-message-only-once/m-p/9338102#M1729941</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-03-18T11:29:47Z</dc:date>
    </item>
    <item>
      <title>Re: user exit message only once</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-message-only-once/m-p/9338103#M1729942</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi NK,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry for delay in reply, I guess we're in opposite time zones. &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/1305/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Okay, so whenever you move back to VA01 main screen (to start over new document?) your logic becomes to not work, right? If yes, what you would need to do is to put an initialization routine for your flag in memory and make it "marked" once again. You can do it by adding a routine to MV45AOZZ (but would also need to change screen 8309).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Edgar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Mar 2013 16:13:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-message-only-once/m-p/9338103#M1729942</guid>
      <dc:creator>edgar_nagasaki</dc:creator>
      <dc:date>2013-03-18T16:13:59Z</dc:date>
    </item>
    <item>
      <title>Re: user exit message only once</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-message-only-once/m-p/9338104#M1729943</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Edgar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;right, i will try that and let you know. yeah i am in CST zone.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;NK&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Mar 2013 21:11:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-message-only-once/m-p/9338104#M1729943</guid>
      <dc:creator>former_member576008</dc:creator>
      <dc:date>2013-03-18T21:11:37Z</dc:date>
    </item>
    <item>
      <title>Re: user exit message only once</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-message-only-once/m-p/9338105#M1729944</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi A N,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you don't need to add a new form or to modify screen 8309. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is already a USER-EXIT wich is called befor each new PO: USEREXIT_REFRESH_DOCUMENT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As I already written: Instead using the IMPORT/EXPORT TO MEMORY just define a globale variable in INCLUDE MV45ATZZ. This variable should start with ZZ so you will be save, that there is no varibale defined by SAP with the name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So your coding could look like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INCLUDE MV45ATZZ:&lt;/P&gt;&lt;P&gt;* New flag, to store the information on &lt;/P&gt;&lt;P&gt;DATA: zz_message_soldto TYPE kunnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM USEREXIT_REFRESH_DOCUMENT&lt;/P&gt;&lt;P&gt;*a new PO is oppend, clear the flag here&lt;/P&gt;&lt;P&gt;CLEAR zz_message_soldto.&lt;/P&gt;&lt;P&gt;ENDFORM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM MOVE_FIELDS_TO_VBAK.&lt;/P&gt;&lt;P&gt;* Check if message needs to be raised&lt;/P&gt;&lt;P&gt;IF zz_message_soldto &amp;lt;&amp;gt; vbak-kunnr.&lt;/P&gt;&lt;P&gt;* Check your conditions here:&lt;/P&gt;&lt;P&gt;IF condition are full filled:&lt;/P&gt;&lt;P&gt;* remeber the sold-to&lt;/P&gt;&lt;P&gt;zz_message_soldto = vbak-kunnr.&lt;/P&gt;&lt;P&gt;* Raise the message&lt;/P&gt;&lt;P&gt;MESSAGE 'My Message' TYPE 'S' DISPLAY LIKE 'E'.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards Hendrik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Mar 2013 07:03:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-message-only-once/m-p/9338105#M1729944</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-03-19T07:03:58Z</dc:date>
    </item>
    <item>
      <title>Re: user exit message only once</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-message-only-once/m-p/9338106#M1729945</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yep, I guess my approach was not the best one, sorry for that...&lt;/P&gt;&lt;P&gt;Did a quick checking in system I have and saw same kind of development there but, indeed, was not the best way to do it.&lt;/P&gt;&lt;P&gt;Hendrik's approach is better. &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/1305/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Edgar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Mar 2013 20:46:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-message-only-once/m-p/9338106#M1729945</guid>
      <dc:creator>edgar_nagasaki</dc:creator>
      <dc:date>2013-03-19T20:46:55Z</dc:date>
    </item>
  </channel>
</rss>

