<?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: display as log in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/display-as-log/m-p/5337322#M1229670</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;let me try to understand ur requirement first,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u want to collect ur messages into a table and display them right,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and what abt buttons, u mean icons , red and green icons?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i did not understand by colored buttons.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 14 Mar 2009 22:17:54 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-03-14T22:17:54Z</dc:date>
    <item>
      <title>display as log</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/display-as-log/m-p/5337318#M1229666</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;Im doing some validation in the program, and saving the result in internal table. Based on the validation internal table contains messages as well as status ('E' or 'S'). Can i display it in ALV as a pop-up with button for status as red for 'E' and green for 'S'? Can you please tell how can we display like that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Amal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 14 Mar 2009 19:39:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/display-as-log/m-p/5337318#M1229666</guid>
      <dc:creator>former_member671224</dc:creator>
      <dc:date>2009-03-14T19:39:37Z</dc:date>
    </item>
    <item>
      <title>Re: display as log</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/display-as-log/m-p/5337319#M1229667</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Function Modlue: REUSE_ALV_POPUP _ TO _ SELECT &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OR&lt;/P&gt;&lt;P&gt;It will just give popup..&lt;/P&gt;&lt;P&gt;Message 'XXXX' TYPE 'E' DISPLAY LIKE 'I'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message 'XXXX' TYPE 'S' DISPLAY LIKE 'I'.&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;Gurpreet&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 14 Mar 2009 19:46:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/display-as-log/m-p/5337319#M1229667</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-14T19:46:44Z</dc:date>
    </item>
    <item>
      <title>Re: display as log</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/display-as-log/m-p/5337320#M1229668</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;for one field(status) , need to display as button, if the value is 'E' red button and if the value is 'S' green button.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 14 Mar 2009 19:52:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/display-as-log/m-p/5337320#M1229668</guid>
      <dc:creator>former_member671224</dc:creator>
      <dc:date>2009-03-14T19:52:15Z</dc:date>
    </item>
    <item>
      <title>Re: display as log</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/display-as-log/m-p/5337321#M1229669</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Amal,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once you give &lt;/P&gt;&lt;P&gt;message XXXX type 'S' or TYPE 'E'.&lt;/P&gt;&lt;P&gt;the system variable sy-msgty is set which gives the type of the messages displayed..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;there is another way you can also store the messages by declaring a table with the structure type&lt;/P&gt;&lt;P&gt;bdcmsgcoll , which will also hold type of the message by msgty field...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use if conditions...&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;if sy-msgty = 'S'.
"  logic to display green button
else sy-msgty = 'E'
"  logic to display red button
endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Siddarth&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Siddharth Chordia on Mar 14, 2009 11:19 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 14 Mar 2009 21:22:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/display-as-log/m-p/5337321#M1229669</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-14T21:22:20Z</dc:date>
    </item>
    <item>
      <title>Re: display as log</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/display-as-log/m-p/5337322#M1229670</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;let me try to understand ur requirement first,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u want to collect ur messages into a table and display them right,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and what abt buttons, u mean icons , red and green icons?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i did not understand by colored buttons.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 14 Mar 2009 22:17:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/display-as-log/m-p/5337322#M1229670</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-14T22:17:54Z</dc:date>
    </item>
    <item>
      <title>Re: display as log</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/display-as-log/m-p/5337323#M1229671</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes, its colored Icons.&lt;/P&gt;&lt;P&gt;Now im thinking of displaying it as application log. can you tell me how to display our own(custom) mesage as long text?&lt;/P&gt;&lt;P&gt;i.e., Im displaying message as application log for error and success message types. But for error message type i need to give more information like what the next action to be taken to resolve the error. Thinking of having that in long text option. but i dont know how give custom message as long text. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone let me know how to do this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Amal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 15 Mar 2009 18:33:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/display-as-log/m-p/5337323#M1229671</guid>
      <dc:creator>former_member671224</dc:creator>
      <dc:date>2009-03-15T18:33:44Z</dc:date>
    </item>
    <item>
      <title>Re: display as log</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/display-as-log/m-p/5337324#M1229672</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Amal,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;First of all, you are breaking the rules of SDN....&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Rule says every new question has to be asked in the new thread,&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the answer to your question is as follows....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To create a long text....&lt;/P&gt;&lt;P&gt;you need to follow certain steps by which you can achieve the requirement...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Go to SE91, create your own custom message class.   ( say you are creating by name yamal )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. do not enter any messages in that just create it and give the short text for it that all, save and activate it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. now go to your program...&lt;/P&gt;&lt;P&gt;        the place where you are writing &lt;/P&gt;&lt;P&gt; message 'XXXX' type 'S' or type 'E'.&lt;/P&gt;&lt;P&gt;comment this line and copy 'XXXX'.&lt;/P&gt;&lt;P&gt;then write                      ( say for example the message type was 'S' ) then&lt;/P&gt;&lt;P&gt;message s001(yamal).&lt;/P&gt;&lt;P&gt;now double click on yamal it will take you to the message class and 001 row...&lt;/P&gt;&lt;P&gt;now paste the 'XXXX' which you copied from message....&lt;/P&gt;&lt;P&gt;at the right of the row 001  you will find one push button &lt;/P&gt;&lt;P&gt;click on it &lt;/P&gt;&lt;P&gt;there you can enter long text for the message....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;next time for another message you want a long text &lt;/P&gt;&lt;P&gt;write &lt;/P&gt;&lt;P&gt;message e002(yamal).&lt;/P&gt;&lt;P&gt;double click and follow the same procedure...&lt;/P&gt;&lt;P&gt;REMEMBER : every new message should appear on a new line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Siddarth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 15 Mar 2009 18:43:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/display-as-log/m-p/5337324#M1229672</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-15T18:43:33Z</dc:date>
    </item>
    <item>
      <title>Re: display as log</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/display-as-log/m-p/5337325#M1229673</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i dont think he's breaking rules. Asking multiple different questions is not allowed but his questions are interrelated they both actually point to same requirement . Isn't it?&lt;/P&gt;&lt;P&gt;So i think continuing in same thread is fair enough.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 15 Mar 2009 21:05:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/display-as-log/m-p/5337325#M1229673</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-15T21:05:04Z</dc:date>
    </item>
    <item>
      <title>Re: display as log</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/display-as-log/m-p/5337326#M1229674</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think if moderators look at it, then it would be fair enough...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Mar 2009 00:20:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/display-as-log/m-p/5337326#M1229674</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-16T00:20:30Z</dc:date>
    </item>
    <item>
      <title>Re: display as log</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/display-as-log/m-p/5337327#M1229675</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Siddharth,&lt;/P&gt;&lt;P&gt;Is it possible to pass the value dynamically to long text?&lt;/P&gt;&lt;P&gt;i.e., In message using 'WITH' we can pass the dynamic values to message. We can replace the &amp;amp; with values dynamically. Same can we do for ling text?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Amal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Mar 2009 08:47:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/display-as-log/m-p/5337327#M1229675</guid>
      <dc:creator>former_member671224</dc:creator>
      <dc:date>2009-03-16T08:47:13Z</dc:date>
    </item>
    <item>
      <title>Re: display as log</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/display-as-log/m-p/5337328#M1229676</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Amal,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use Function Module:&lt;/P&gt;&lt;P&gt;REUSE_ALV_POPUP_TO_SELECT,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where in that set PF status by this and add button on it:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

FORM pf_status USING rt_extab TYPE slis_t_extab.
 
  SET PF-STATUS 'FIRST'.
 
ENDFORM.                    "PF_STATUS
 &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then capture the user command of the button added through pf-status:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
 
FORM comm USING ucomm LIKE sy-ucomm selfield TYPE slis_selfield.
 
  DATA: okcode TYPE sy-ucomm.
 
  okcode = ucomm.
  CASE okcode.
 
    WHEN 'REF'.
    CALL FUNCTION 'POPUP_TO_INFORM'
      EXPORTING
        titel         = 'MANSI'
        txt1          = 'CREATED BY'
        txt2          = SY-UNAME
*       TXT3          = ' '
*       TXT4          = ' '
 
              .
 
endcase.
 

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And then in the function module,REUSE_ALV_POPUP_TO_SELECT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regrds&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mansi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Mar 2009 08:55:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/display-as-log/m-p/5337328#M1229676</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-16T08:55:50Z</dc:date>
    </item>
    <item>
      <title>Re: display as log</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/display-as-log/m-p/5337329#M1229677</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Used application log.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Mar 2009 13:42:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/display-as-log/m-p/5337329#M1229677</guid>
      <dc:creator>former_member671224</dc:creator>
      <dc:date>2009-03-19T13:42:17Z</dc:date>
    </item>
  </channel>
</rss>

