<?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: how to write select statement in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-write-select-statement/m-p/4475559#M1059883</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Thanks For your Reply&lt;/P&gt;&lt;P&gt;Can you correct the code send it back to me &lt;/P&gt;&lt;P&gt;i am unable to get it exactly,&lt;/P&gt;&lt;P&gt;in that loop is commented should i write loop to this condition&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 05 Sep 2008 11:36:51 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-09-05T11:36:51Z</dc:date>
    <item>
      <title>how to write select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-write-select-statement/m-p/4475557#M1059881</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 adding an additional tab in Plant maintenance Notification, which is called as Y-Y Analysis,&lt;/P&gt;&lt;P&gt;actually what it does is in notification when we enter an activity for that particular activity it will analyzes the activity&lt;/P&gt;&lt;P&gt;in deep. My problem is its working for only single activity when i select second in activities and click yy analysis its not showing the selected instead of that its showing previous(1st activity) activity.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my code where the values are &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  select single kurztext from qpct into text_i_4&lt;/P&gt;&lt;P&gt;   where katalogart = 'A'&lt;/P&gt;&lt;P&gt;     and codegruppe = e_viqmma-mngrp&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     and code = e_viqmma-mncod&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     and sprache = sy-langu.&lt;/P&gt;&lt;P&gt;  if text_i_4 is initial.&lt;/P&gt;&lt;P&gt;    text_i_4 = e_viqmma-matxt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;  if ( cust_aktyp = 'V' or cust_aktyp = 'A' ) and text_i_4 is initial.&lt;/P&gt;&lt;P&gt;    "Notifn Change/Display&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    select single * from qmma into viqmma&lt;/P&gt;&lt;P&gt;     where qmnum = viqmel-QMNUM and kzloesch = ''.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    loop at t_tc.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    select single kurztext from qpct into text_i_4&lt;/P&gt;&lt;P&gt;     where katalogart = 'A'&lt;/P&gt;&lt;P&gt;       and codegruppe = viqmma-mngrp&lt;/P&gt;&lt;P&gt;       and code = viqmma-mncod&lt;/P&gt;&lt;P&gt;       and sprache = sy-langu.&lt;/P&gt;&lt;P&gt;from here this select statements its collecting the the values of activity tab,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my requirement is it must show what ever i select in activity tab it should display in yy analysis Tab&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance&lt;/P&gt;&lt;P&gt;Rajesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Sep 2008 11:20:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-write-select-statement/m-p/4475557#M1059881</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-05T11:20:11Z</dc:date>
    </item>
    <item>
      <title>Re: how to write select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-write-select-statement/m-p/4475558#M1059882</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi rajesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check u r select query.&lt;/P&gt;&lt;P&gt;U have written like this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select single * from qmma into viqmma  " here u copied all data in viqmma table&lt;/P&gt;&lt;P&gt;where qmnum = viqmel-QMNUM and kzloesch = ''.&lt;/P&gt;&lt;P&gt;&amp;amp;----&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;loop at t_tc. "here u r giving loop for t_tc table&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;select single kurztext from qpct into text_i_4&lt;/P&gt;&lt;P&gt;          where katalogart = 'A'&lt;/P&gt;&lt;P&gt;          and codegruppe = viqmma-mngrp&lt;/P&gt;&lt;P&gt;          and code = viqmma-mncod&lt;/P&gt;&lt;P&gt;          and sprache = sy-langu.  " in this select query u have only written that codegruppe = viqmma-mngrp and code = viqmma-mncod.&lt;/P&gt;&lt;P&gt;Here u have to write "for all entries in viqmma" if u have written like this then put the break point on above select query and chek the value is coming in your where condition field (viqmma-mngrp)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if u have any doubt revert back.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Sanket.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Sep 2008 11:30:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-write-select-statement/m-p/4475558#M1059882</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-05T11:30:19Z</dc:date>
    </item>
    <item>
      <title>Re: how to write select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-write-select-statement/m-p/4475559#M1059883</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Thanks For your Reply&lt;/P&gt;&lt;P&gt;Can you correct the code send it back to me &lt;/P&gt;&lt;P&gt;i am unable to get it exactly,&lt;/P&gt;&lt;P&gt;in that loop is commented should i write loop to this condition&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Sep 2008 11:36:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-write-select-statement/m-p/4475559#M1059883</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-05T11:36:51Z</dc:date>
    </item>
    <item>
      <title>Re: how to write select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-write-select-statement/m-p/4475560#M1059884</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;Pls try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from qpct into text_i_4&lt;/P&gt;&lt;P&gt;for all entries in viqmma&lt;/P&gt;&lt;P&gt;where codegruppe = viqmma-mngrp&lt;/P&gt;&lt;P&gt;and code = viqmma-mncod&lt;/P&gt;&lt;P&gt;and katalogart = 'A'&lt;/P&gt;&lt;P&gt;and sprache = sy-langu.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Gowri Sankar&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Gowri Sankar Dinakaran on Sep 5, 2008 1:44 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Sep 2008 11:43:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-write-select-statement/m-p/4475560#M1059884</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-05T11:43:58Z</dc:date>
    </item>
    <item>
      <title>Re: how to write select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-write-select-statement/m-p/4475561#M1059885</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 try above select query given by gowri shankar.&lt;/P&gt;&lt;P&gt;instead of loop try for all entries in .....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sanket&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Sep 2008 11:49:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-write-select-statement/m-p/4475561#M1059885</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-05T11:49:35Z</dc:date>
    </item>
    <item>
      <title>Re: how to write select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-write-select-statement/m-p/4475562#M1059886</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried the above Select Statement but here its giving an error called as &lt;/P&gt;&lt;P&gt;:VIQMMA" is not an internal table table- the "OCCURS n" Specification is Missing.&lt;/P&gt;&lt;P&gt;Please solve this problem ill be more thank full to you guys&lt;/P&gt;&lt;P&gt;shall i send all the code wriitten in that include.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Sep 2008 11:53:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-write-select-statement/m-p/4475562#M1059886</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-05T11:53:41Z</dc:date>
    </item>
    <item>
      <title>Re: how to write select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-write-select-statement/m-p/4475563#M1059887</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;this the entire where my additional screen works please help me solve the problem&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Module  STATUS_0101  OUTPUT&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;module status_0101 output.&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;SET PF-STATUS 'xxxxxxxx'.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;SET TITLEBAR 'xxx'.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;endmodule.                 " STATUS_0101  OUTPUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;***INCLUDE ZXQQMO02 .&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Module  STATUS_0102  OUTPUT&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE STATUS_0102 OUTPUT.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; SET PF-STATUS 'xxxxxxxx'.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; SET TITLEBAR 'xxx'.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Commented on 31.07.2008&lt;/P&gt;&lt;P&gt;  clear flag_error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  text_i_1 = '                 Question'.&lt;/P&gt;&lt;P&gt;  text_i_2 = '                            Answer'.&lt;/P&gt;&lt;P&gt;  text_i_3 = 'What is your final action, so that it is OK ?'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  text_i_6 = '                 Why'.&lt;/P&gt;&lt;P&gt;  text_i_7 = '            Answer'.&lt;/P&gt;&lt;P&gt;  text_i_8 = '            Action'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  text_i_10 = 'Why do you take the above action?'.&lt;/P&gt;&lt;P&gt;  text_i_11 = '            Due To'.&lt;/P&gt;&lt;P&gt;  text_i_12 = '         Action Needed'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  data : e_viqmma like viqmma OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; data : t_viqmma like viqmma OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; DATA  : wa_viqmma like t_viqmma.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  import e_viqmma from memory id 'Y_VIQMMA'.&lt;/P&gt;&lt;P&gt;*loop at t_why_dtls into wa_ympmt_why_dtls.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;loop at t_tc.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   Loop at T_viqmma into wa_viqmma.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  select single kurztext from qpct into text_i_4&lt;/P&gt;&lt;P&gt;   where katalogart = 'A'&lt;/P&gt;&lt;P&gt;     and codegruppe = e_viqmma-mngrp&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     and code = e_viqmma-mncod&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     and sprache = sy-langu.&lt;/P&gt;&lt;P&gt;  if text_i_4 is initial.&lt;/P&gt;&lt;P&gt;    text_i_4 = e_viqmma-matxt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;  if ( cust_aktyp = 'V' or cust_aktyp = 'A' ) and text_i_4 is initial.&lt;/P&gt;&lt;P&gt;    "Notifn Change/Display&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    select single * from qmma into viqmma&lt;/P&gt;&lt;P&gt;     where qmnum = viqmel-QMNUM and kzloesch = ''.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    loop at t_tc.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   select single kurztext from qpct into text_i_4&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    where katalogart = 'A'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      and codegruppe = viqmma-mngrp&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      and code = viqmma-mncod&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      and sprache = sy-langu .&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;select * from qpct into text_i_4&lt;/P&gt;&lt;P&gt;for all entries in viqmma&lt;/P&gt;&lt;P&gt;where codegruppe = viqmma-mngrp&lt;/P&gt;&lt;P&gt;and code = viqmma-mncod&lt;/P&gt;&lt;P&gt;and katalogart = 'A'&lt;/P&gt;&lt;P&gt;and sprache = sy-langu.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    endselect.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;    else.&lt;/P&gt;&lt;P&gt;      text_i_4 = viqmma-matxt.&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;  if text_i_4 is initial.&lt;/P&gt;&lt;P&gt;    message w537(im).&lt;/P&gt;&lt;P&gt;    flag_error = 'X'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   exit.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  elseif not t_tc[] is initial.&lt;/P&gt;&lt;P&gt;    clear t_tc.&lt;/P&gt;&lt;P&gt;concatenate 'Why' text_i_4 into t_tc-why_quest separated by space.&lt;/P&gt;&lt;P&gt;    modify t_tc index 1 transporting why_quest.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; if act_code_text is initial.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   import act_text from memory id 'YACT_TEXT'.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   if not act_text is initial.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     text_i_4 = act_text.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   endif.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; else.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   text_i_4 = act_code_text.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; endif.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; endloop.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  text_i_14 = '                 Root Cause'.&lt;/P&gt;&lt;P&gt;  text_i_15 = '      JH'.&lt;/P&gt;&lt;P&gt;  text_i_16 = '      PM'.&lt;/P&gt;&lt;P&gt;  text_i_17 = '    Design'.&lt;/P&gt;&lt;P&gt;  text_i_18 = '   E &amp;amp; T'.&lt;/P&gt;&lt;P&gt;**Commented on 31.07.2008&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDMODULE.                 " STATUS_0102  OUTPUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Module  CODE_PF4_I15  INPUT&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;PF4 Worth help to code group and code selection on all screen&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;for problem, object part, cause, measure and action&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;module code_pf4_i15 input.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Commented on 31.07.2008&lt;/P&gt;&lt;P&gt;  perform code_pf4_f40(sapliqs0).&lt;/P&gt;&lt;P&gt;*Commented on 31.07.2008&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endmodule.                             " CODE_PF4_I15  INPUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Module  get_data_tc1  OUTPUT&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE get_data_tc1 OUTPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Commented on 31.07.2008&lt;/P&gt;&lt;P&gt;  clear : t_tc, t_index.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  t_index = tc1-top_line + sy-stepl - 1.&lt;/P&gt;&lt;P&gt;  read table t_tc index t_index.&lt;/P&gt;&lt;P&gt;  if sy-subrc ne 0 and t_index ne 1.&lt;/P&gt;&lt;P&gt;    loop at screen.&lt;/P&gt;&lt;P&gt;      screen-input = '0'.&lt;/P&gt;&lt;P&gt;      screen-output = '1'.&lt;/P&gt;&lt;P&gt;      modify screen.&lt;/P&gt;&lt;P&gt;    endloop.&lt;/P&gt;&lt;P&gt;  elseif cust_aktyp = 'A' or flag_error = 'X'.&lt;/P&gt;&lt;P&gt;    loop at screen.&lt;/P&gt;&lt;P&gt;      screen-input = '0'.&lt;/P&gt;&lt;P&gt;      screen-output = '1'.&lt;/P&gt;&lt;P&gt;      modify screen.&lt;/P&gt;&lt;P&gt;    endloop.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  if t_tc-why_text is initial.&lt;/P&gt;&lt;P&gt;    clear char2.&lt;/P&gt;&lt;P&gt;    char2 = t_index.&lt;/P&gt;&lt;P&gt;    concatenate 'Why' char2 into text_i_13.&lt;/P&gt;&lt;P&gt;  else.&lt;/P&gt;&lt;P&gt;    text_i_13      = t_tc-why_text.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  why_question   = t_tc-why_quest.&lt;/P&gt;&lt;P&gt;  riwo00-txtcdur = t_tc-cause_code.&lt;/P&gt;&lt;P&gt;  cause_text     = t_tc-cause_text.&lt;/P&gt;&lt;P&gt;  riwo00-txtcdma = t_tc-actvt_code.&lt;/P&gt;&lt;P&gt;  actvt_text     = t_tc-actvt_text.&lt;/P&gt;&lt;P&gt;*Commented on 31.07.2008&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDMODULE.                 " get_data_tc1  OUTPUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Module  get_data_tc2  OUTPUT&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE get_data_tc2 OUTPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Commented on 31.07.2008&lt;/P&gt;&lt;P&gt;  clear t_index.&lt;/P&gt;&lt;P&gt;  t_index = tc2-top_line + sy-stepl - 1.&lt;/P&gt;&lt;P&gt;  read table t_tc2 index t_index.&lt;/P&gt;&lt;P&gt;  if sy-subrc ne 0 and t_index ne 1.&lt;/P&gt;&lt;P&gt;    loop at screen.&lt;/P&gt;&lt;P&gt;      screen-input = '0'.&lt;/P&gt;&lt;P&gt;      screen-output = '1'.&lt;/P&gt;&lt;P&gt;      modify screen.&lt;/P&gt;&lt;P&gt;    endloop.&lt;/P&gt;&lt;P&gt;  elseif cust_aktyp = 'A' or flag_error = 'X'.&lt;/P&gt;&lt;P&gt;    loop at screen.&lt;/P&gt;&lt;P&gt;      screen-input = '0'.&lt;/P&gt;&lt;P&gt;      screen-output = '1'.&lt;/P&gt;&lt;P&gt;      modify screen.&lt;/P&gt;&lt;P&gt;    endloop.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  root_cause = t_tc2-root_cause.&lt;/P&gt;&lt;P&gt;  jh = t_tc2-jh.&lt;/P&gt;&lt;P&gt;  pm = t_tc2-pm.&lt;/P&gt;&lt;P&gt;  design = t_tc2-design.&lt;/P&gt;&lt;P&gt;  e_n_t = t_tc2-e_n_t.&lt;/P&gt;&lt;P&gt;*Commented on 31.07.2008&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDMODULE.                 " get_data_tc2  OUTPUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Module  get_tc1  OUTPUT&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE get_tc1 OUTPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Commented on 31.07.2008&lt;/P&gt;&lt;P&gt;  tc1-lines = 3.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; tc1-top_line = 1.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  check flag_error is initial.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;H-Create Notification, V-Change Notification, A-Display Notification&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  clear t_tc.&lt;/P&gt;&lt;P&gt;  read table t_tc index 1.&lt;/P&gt;&lt;P&gt;  if sy-subrc ne 0.&lt;/P&gt;&lt;P&gt;    clear wa_ympmt_why_dtls.&lt;/P&gt;&lt;P&gt;    if cust_aktyp = 'H'.                         "Notification Creation&lt;/P&gt;&lt;P&gt;      clear t_tc.&lt;/P&gt;&lt;P&gt;      concatenate 'Why' text_i_4 into t_tc-why_quest separated by&lt;/P&gt;&lt;P&gt;      space.&lt;/P&gt;&lt;P&gt;      append t_tc.&lt;/P&gt;&lt;P&gt;    elseif cust_aktyp = 'V' or cust_aktyp = 'A'. "Notifn Change/Display&lt;/P&gt;&lt;P&gt;*******************************************************************&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     select single * from qmma into viqmma&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      where qmnum = viqmel-qmnum.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     if text_i_4 is initial.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       select single kurztext from qpct into text_i_4&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        where katalogart = 'A'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;          and codegruppe = viqmma-mngrp&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;          and code = viqmma-mncod&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;          and sprache = sy-langu.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     endif.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*********************************************************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select single * from ympmt_why_dtls into wa_ympmt_why_dtls&lt;/P&gt;&lt;P&gt;       where qmnum = viqmel-qmnum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      concatenate 'Why' text_i_4 into t_tc-why_quest&lt;/P&gt;&lt;P&gt;        separated by space.&lt;/P&gt;&lt;P&gt;      t_tc-cause_code = wa_ympmt_why_dtls-yy_due_cct_1.&lt;/P&gt;&lt;P&gt;      t_tc-cause_text = wa_ympmt_why_dtls-yy_due_cct_tx_1.&lt;/P&gt;&lt;P&gt;      t_tc-actvt_code = wa_ympmt_why_dtls-yy_action_act_1.&lt;/P&gt;&lt;P&gt;      t_tc-actvt_text = wa_ympmt_why_dtls-yy_action_txt_1.&lt;/P&gt;&lt;P&gt;      append t_tc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      check not wa_ympmt_why_dtls-yy_due_cct_1 is initial or&lt;/P&gt;&lt;P&gt;            not wa_ympmt_why_dtls-yy_due_cct_tx_1 is initial.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      check not wa_ympmt_why_dtls-yy_due_cct_2 is initial or&lt;/P&gt;&lt;P&gt;            not wa_ympmt_why_dtls-yy_due_cct_tx_2 is initial or&lt;/P&gt;&lt;P&gt;            not wa_ympmt_why_dtls-yy_action_act_2 is initial or&lt;/P&gt;&lt;P&gt;            not wa_ympmt_why_dtls-yy_action_txt_2 is initial.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      clear t_tc.&lt;/P&gt;&lt;P&gt;      if not wa_ympmt_why_dtls-yy_due_cct_1 is initial.&lt;/P&gt;&lt;P&gt;        concatenate 'Why' wa_ympmt_why_dtls-yy_due_cct_1&lt;/P&gt;&lt;P&gt;               into t_tc-why_quest separated by space.&lt;/P&gt;&lt;P&gt;      elseif not not wa_ympmt_why_dtls-yy_due_cct_tx_1 is initial.&lt;/P&gt;&lt;P&gt;       concatenate 'Why' wa_ympmt_why_dtls-yy_due_cct_tx_1&lt;/P&gt;&lt;P&gt;               into t_tc-why_quest separated by space.&lt;/P&gt;&lt;P&gt;      endif.&lt;/P&gt;&lt;P&gt;      t_tc-cause_code = wa_ympmt_why_dtls-yy_due_cct_2.&lt;/P&gt;&lt;P&gt;      t_tc-cause_text = wa_ympmt_why_dtls-yy_due_cct_tx_2.&lt;/P&gt;&lt;P&gt;      t_tc-actvt_code = wa_ympmt_why_dtls-yy_action_act_2.&lt;/P&gt;&lt;P&gt;      t_tc-actvt_text = wa_ympmt_why_dtls-yy_action_txt_2.&lt;/P&gt;&lt;P&gt;      append t_tc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     check not wa_ympmt_why_dtls-yy_action_act_2 is initial or&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;           not wa_ympmt_why_dtls-yy_action_txt_2 is initial.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      check not wa_ympmt_why_dtls-yy_due_cct_2 is initial or&lt;/P&gt;&lt;P&gt;            not wa_ympmt_why_dtls-yy_due_cct_tx_2 is initial.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      check not wa_ympmt_why_dtls-yy_due_cct_3 is initial or&lt;/P&gt;&lt;P&gt;            not wa_ympmt_why_dtls-yy_due_cct_tx_3 is initial or&lt;/P&gt;&lt;P&gt;            not wa_ympmt_why_dtls-yy_action_act_3 is initial or&lt;/P&gt;&lt;P&gt;            not wa_ympmt_why_dtls-yy_action_txt_3 is initial.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      clear t_tc.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     if not wa_ympmt_why_dtls-yy_action_act_2 is initial.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       concatenate 'Why' wa_ympmt_why_dtls-yy_action_act_2&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;              into t_tc-why_quest separated by space.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     elseif not wa_ympmt_why_dtls-yy_action_txt_2 is initial.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       concatenate 'Why' wa_ympmt_why_dtls-yy_action_txt_2&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;              into t_tc-why_quest separated by space.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     endif.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      if not wa_ympmt_why_dtls-yy_due_cct_2 is initial.&lt;/P&gt;&lt;P&gt;        concatenate 'Why' wa_ympmt_why_dtls-yy_due_cct_2&lt;/P&gt;&lt;P&gt;               into t_tc-why_quest separated by space.&lt;/P&gt;&lt;P&gt;      elseif not wa_ympmt_why_dtls-yy_due_cct_tx_2 is initial.&lt;/P&gt;&lt;P&gt;        concatenate 'Why' wa_ympmt_why_dtls-yy_due_cct_tx_2&lt;/P&gt;&lt;P&gt;               into t_tc-why_quest separated by space.&lt;/P&gt;&lt;P&gt;      endif.&lt;/P&gt;&lt;P&gt;      t_tc-cause_code = wa_ympmt_why_dtls-yy_due_cct_3.&lt;/P&gt;&lt;P&gt;      t_tc-cause_text = wa_ympmt_why_dtls-yy_due_cct_tx_3.&lt;/P&gt;&lt;P&gt;      t_tc-actvt_code = wa_ympmt_why_dtls-yy_action_act_3.&lt;/P&gt;&lt;P&gt;      t_tc-actvt_text = wa_ympmt_why_dtls-yy_action_txt_3.&lt;/P&gt;&lt;P&gt;      append t_tc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     check not wa_ympmt_why_dtls-yy_action_act_3 is initial or&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;           not wa_ympmt_why_dtls-yy_action_txt_3 is initial.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      check not wa_ympmt_why_dtls-yy_due_cct_3 is initial or&lt;/P&gt;&lt;P&gt;            not wa_ympmt_why_dtls-yy_due_cct_tx_3 is initial.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      check not wa_ympmt_why_dtls-yy_due_cct_4 is initial or&lt;/P&gt;&lt;P&gt;            not wa_ympmt_why_dtls-yy_due_cct_tx_4 is initial or&lt;/P&gt;&lt;P&gt;            not wa_ympmt_why_dtls-yy_action_act_4 is initial or&lt;/P&gt;&lt;P&gt;            not wa_ympmt_why_dtls-yy_action_txt_4 is initial.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      clear t_tc.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     if not wa_ympmt_why_dtls-yy_action_act_3 is initial.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       concatenate 'Why' wa_ympmt_why_dtls-yy_action_act_3&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;              into t_tc-why_quest separated by space.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     elseif not wa_ympmt_why_dtls-yy_action_txt_3 is initial.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       concatenate 'Why' wa_ympmt_why_dtls-yy_action_txt_3&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;              into t_tc-why_quest separated by space.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     endif.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      if not wa_ympmt_why_dtls-yy_due_cct_3 is initial.&lt;/P&gt;&lt;P&gt;        concatenate 'Why' wa_ympmt_why_dtls-yy_due_cct_3&lt;/P&gt;&lt;P&gt;               into t_tc-why_quest separated by space.&lt;/P&gt;&lt;P&gt;      elseif not wa_ympmt_why_dtls-yy_due_cct_tx_3 is initial.&lt;/P&gt;&lt;P&gt;        concatenate 'Why' wa_ympmt_why_dtls-yy_due_cct_tx_3&lt;/P&gt;&lt;P&gt;               into t_tc-why_quest separated by space.&lt;/P&gt;&lt;P&gt;      endif.&lt;/P&gt;&lt;P&gt;      t_tc-cause_code = wa_ympmt_why_dtls-yy_due_cct_4.&lt;/P&gt;&lt;P&gt;      t_tc-cause_text = wa_ympmt_why_dtls-yy_due_cct_tx_4.&lt;/P&gt;&lt;P&gt;      t_tc-actvt_code = wa_ympmt_why_dtls-yy_action_act_4.&lt;/P&gt;&lt;P&gt;      t_tc-actvt_text = wa_ympmt_why_dtls-yy_action_txt_4.&lt;/P&gt;&lt;P&gt;      append t_tc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     check not wa_ympmt_why_dtls-yy_action_act_4 is initial or&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;           not wa_ympmt_why_dtls-yy_action_txt_4 is initial.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      check not wa_ympmt_why_dtls-yy_due_cct_4 is initial or&lt;/P&gt;&lt;P&gt;            not wa_ympmt_why_dtls-yy_due_cct_tx_4 is initial.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      check not wa_ympmt_why_dtls-yy_due_cct_5 is initial or&lt;/P&gt;&lt;P&gt;            not wa_ympmt_why_dtls-yy_due_cct_tx_5 is initial or&lt;/P&gt;&lt;P&gt;            not wa_ympmt_why_dtls-yy_action_act_5 is initial or&lt;/P&gt;&lt;P&gt;            not wa_ympmt_why_dtls-yy_action_txt_5 is initial.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      clear t_tc.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     if not wa_ympmt_why_dtls-yy_action_act_4 is initial.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       concatenate 'Why' wa_ympmt_w y_dtls-yy_action_act_4&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;              into t_tc-why_quest separated by space.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     elseif not wa_ympmt_why_dtls-yy_action_txt_4 is initial.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       concatenate 'Why' wa_ympmt_why_dtls-yy_action_txt_4&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;              into t_tc-why_quest separated by space.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     endif.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      if not wa_ympmt_why_dtls-yy_due_cct_4 is initial.&lt;/P&gt;&lt;P&gt;        concatenate 'Why' wa_ympmt_why_dtls-yy_due_cct_4&lt;/P&gt;&lt;P&gt;               into t_tc-why_quest separated by space.&lt;/P&gt;&lt;P&gt;      elseif not wa_ympmt_why_dtls-yy_due_cct_tx_4 is initial.&lt;/P&gt;&lt;P&gt;        concatenate 'Why' wa_ympmt_why_dtls-yy_due_cct_tx_4&lt;/P&gt;&lt;P&gt;               into t_tc-why_quest separated by space.&lt;/P&gt;&lt;P&gt;      endif.&lt;/P&gt;&lt;P&gt;      t_tc-cause_code = wa_ympmt_why_dtls-yy_due_cct_5.&lt;/P&gt;&lt;P&gt;      t_tc-cause_text = wa_ympmt_why_dtls-yy_due_cct_tx_5.&lt;/P&gt;&lt;P&gt;      t_tc-actvt_code = wa_ympmt_why_dtls-yy_action_act_5.&lt;/P&gt;&lt;P&gt;      t_tc-actvt_text = wa_ympmt_why_dtls-yy_action_txt_5.&lt;/P&gt;&lt;P&gt;      append t_tc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     check not wa_ympmt_why_dtls-yy_action_act_5 is initial or&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;           not wa_ympmt_why_dtls-yy_action_txt_5 is initial.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      check not wa_ympmt_why_dtls-yy_due_cct_5 is initial or&lt;/P&gt;&lt;P&gt;            not wa_ympmt_why_dtls-yy_due_cct_tx_5 is initial.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      check not wa_ympmt_why_dtls-yy_due_cct_6 is initial or&lt;/P&gt;&lt;P&gt;            not wa_ympmt_why_dtls-yy_due_cct_tx_6 is initial or&lt;/P&gt;&lt;P&gt;            not wa_ympmt_why_dtls-yy_action_act_6 is initial or&lt;/P&gt;&lt;P&gt;            not wa_ympmt_why_dtls-yy_action_txt_6 is initial.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      clear t_tc.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     if not wa_ympmt_why_dtls-yy_action_act_5 is initial.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       concatenate 'Why' wa_ympmt_why_dtls-yy_action_act_5&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;              into t_tc-why_quest separated by space.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     elseif not wa_ympmt_why_dtls-yy_action_txt_5 is initial.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       concatenate 'Why' wa_ympmt_why_dtls-yy_action_txt_5&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;              into t_tc-why_quest separated by space.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     endif.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      if not wa_ympmt_why_dtls-yy_due_cct_5 is initial.&lt;/P&gt;&lt;P&gt;        concatenate 'Why' wa_ympmt_why_dtls-yy_due_cct_5&lt;/P&gt;&lt;P&gt;               into t_tc-why_quest separated by space.&lt;/P&gt;&lt;P&gt;      elseif not wa_ympmt_why_dtls-yy_due_cct_tx_5 is initial.&lt;/P&gt;&lt;P&gt;        concatenate 'Why' wa_ympmt_why_dtls-yy_due_cct_tx_5&lt;/P&gt;&lt;P&gt;               into t_tc-why_quest separated by space.&lt;/P&gt;&lt;P&gt;      endif.&lt;/P&gt;&lt;P&gt;      t_tc-cause_code = wa_ympmt_why_dtls-yy_due_cct_6.&lt;/P&gt;&lt;P&gt;      t_tc-cause_text = wa_ympmt_why_dtls-yy_due_cct_tx_6.&lt;/P&gt;&lt;P&gt;      t_tc-actvt_code = wa_ympmt_why_dtls-yy_action_act_6.&lt;/P&gt;&lt;P&gt;      t_tc-actvt_text = wa_ympmt_why_dtls-yy_action_txt_6.&lt;/P&gt;&lt;P&gt;      append t_tc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     check not wa_ympmt_why_dtls-yy_action_act_6 is initial or&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;           not wa_ympmt_why_dtls-yy_action_txt_6 is initial.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      check not wa_ympmt_why_dtls-yy_due_cct_6 is initial or&lt;/P&gt;&lt;P&gt;            not wa_ympmt_why_dtls-yy_due_cct_tx_6 is initial.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      check not wa_ympmt_why_dtls-yy_due_cct_7 is initial or&lt;/P&gt;&lt;P&gt;            not wa_ympmt_why_dtls-yy_due_cct_tx_7 is initial or&lt;/P&gt;&lt;P&gt;            not wa_ympmt_why_dtls-yy_action_act_7 is initial or&lt;/P&gt;&lt;P&gt;            not wa_ympmt_why_dtls-yy_action_txt_7 is initial.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      clear t_tc.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     if not wa_ympmt_why_dtls-yy_action_act_6 is initial.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       concatenate 'Why' wa_ympmt_why_dtls-yy_action_act_6&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;              into t_tc-why_quest separated by space.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     elseif not wa_ympmt_why_dtls-yy_action_txt_6 is initial.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       concatenate 'Why' wa_ympmt_why_dtls-yy_action_txt_6&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;              into t_tc-why_quest separated by space.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     endif.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      if not wa_ympmt_why_dtls-yy_due_cct_6 is initial.&lt;/P&gt;&lt;P&gt;        concatenate 'Why' wa_ympmt_why_dtls-yy_due_cct_6&lt;/P&gt;&lt;P&gt;               into t_tc-why_quest separated by space.&lt;/P&gt;&lt;P&gt;      elseif not wa_ympmt_why_dtls-yy_due_cct_tx_6 is initial.&lt;/P&gt;&lt;P&gt;        concatenate 'Why' wa_ympmt_why_dtls-yy_due_cct_tx_6&lt;/P&gt;&lt;P&gt;               into t_tc-why_quest separated by space.&lt;/P&gt;&lt;P&gt;      endif.&lt;/P&gt;&lt;P&gt;      t_tc-cause_code = wa_ympmt_why_dtls-yy_due_cct_7.&lt;/P&gt;&lt;P&gt;      t_tc-cause_text = wa_ympmt_why_dtls-yy_due_cct_tx_7.&lt;/P&gt;&lt;P&gt;      t_tc-actvt_code = wa_ympmt_why_dtls-yy_action_act_7.&lt;/P&gt;&lt;P&gt;      t_tc-actvt_text = wa_ympmt_why_dtls-yy_action_txt_7.&lt;/P&gt;&lt;P&gt;      append t_tc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     check not wa_ympmt_why_dtls-yy_action_act_7 is initial or&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;           not wa_ympmt_why_dtls-yy_action_txt 7 is initial.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      check not wa_ympmt_why_dtls-yy_due_cct_7 is initial or&lt;/P&gt;&lt;P&gt;            not wa_ympmt_why_dtls-yy_due_cct_tx_7 is initial.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      check not wa_ympmt_why_dtls-yy_due_cct_8 is initial or&lt;/P&gt;&lt;P&gt;            not wa_ympmt_why_dtls-yy_due_cct_tx_8 is initial or&lt;/P&gt;&lt;P&gt;            not wa_ympmt_why_dtls-yy_action_act_8 is initial or&lt;/P&gt;&lt;P&gt;            not wa_ympmt_why_dtls-yy_action_txt_8 is initial.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      clear t_tc.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     if not wa_ympmt_why_dtls-yy_action_act_7 is initial.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       concatenate 'Why' wa_ympmt_why_dtls-yy_action_act_7&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;              into t_tc-why_quest separated by space.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     elseif not wa_ympmt_why_dtls-yy_action_txt_7 is initial.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       concatenate 'Why' wa_ympmt_why_dtls-yy_action_txt_7&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;              into t_tc-why_quest separated by space.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     endif.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      if not wa_ympmt_why_dtls-yy_due_cct_7 is initial.&lt;/P&gt;&lt;P&gt;        concatenate 'Why' wa_ympmt_why_dtls-yy_due_cct_7&lt;/P&gt;&lt;P&gt;               into t_tc-why_quest separated by space.&lt;/P&gt;&lt;P&gt;      elseif not wa_ympmt_why_dtls-yy_due_cct_tx_7 is initial.&lt;/P&gt;&lt;P&gt;        concatenate 'Why' wa_ympmt_why_dtls-yy_due_cct_tx_7&lt;/P&gt;&lt;P&gt;               into t_tc-why_quest separated by space.&lt;/P&gt;&lt;P&gt;      endif.&lt;/P&gt;&lt;P&gt;      t_tc-cause_code = wa_ympmt_why_dtls-yy_due_cct_8.&lt;/P&gt;&lt;P&gt;      t_tc-cause_text = wa_ympmt_why_dtls-yy_due_cct_tx_8.&lt;/P&gt;&lt;P&gt;      t_tc-actvt_code = wa_ympmt_why_dtls-yy_action_act_8.&lt;/P&gt;&lt;P&gt;      t_tc-actvt_text = wa_ympmt_why_dtls-yy_action_txt_8.&lt;/P&gt;&lt;P&gt;      append t_tc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     check not wa_ympmt_why_dtls-yy_action_act_8 is initial or&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;           not wa_ympmt_why_dtls-yy_action_txt_8 is initial.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      check not wa_ympmt_why_dtls-yy_due_cct_8 is initial or&lt;/P&gt;&lt;P&gt;            not wa_ympmt_why_dtls-yy_due_cct_tx_8 is initial.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      check not wa_ympmt_why_dtls-yy_due_cct_9 is initial or&lt;/P&gt;&lt;P&gt;            not wa_ympmt_why_dtls-yy_due_cct_tx_9 is initial or&lt;/P&gt;&lt;P&gt;            not wa_ympmt_why_dtls-yy_action_act_9 is initial or&lt;/P&gt;&lt;P&gt;            not wa_ympmt_why_dtls-yy_action_txt_9 is initial.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      clear t_tc.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     if not wa_ympmt_why_dtls-yy_action_act_8 is initial.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       concatenate 'Why' wa_ympmt_why_dtls-yy_action_act_8&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;              into t_tc-why_quest separated by space.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     elseif not wa_ympmt_why_dtls-yy_action_txt_8 is initial.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       concatenate 'Why' wa_ympmt_why_dtls-yy_action_txt_8&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;              into t_tc-why_quest separated by space.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     endif.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      if not wa_ympmt_why_dtls-yy_due_cct_8 is initial.&lt;/P&gt;&lt;P&gt;        concatenate 'Why' wa_ympmt_why_dtls-yy_due_cct_8&lt;/P&gt;&lt;P&gt;               into t_tc-why_quest separated by space.&lt;/P&gt;&lt;P&gt;      elseif not wa_ympmt_why_dtls-yy_due_cct_tx_8 is initial.&lt;/P&gt;&lt;P&gt;        concatenate 'Why' wa_ympmt_why_dtls-yy_due_cct_tx_8&lt;/P&gt;&lt;P&gt;               into t_tc-why_quest separated by space.&lt;/P&gt;&lt;P&gt;      endif.&lt;/P&gt;&lt;P&gt;      t_tc-cause_code = wa_ympmt_why_dtls-yy_due_cct_9.&lt;/P&gt;&lt;P&gt;      t_tc-cause_text = wa_ympmt_why_dtls-yy_due_cct_tx_9.&lt;/P&gt;&lt;P&gt;      t_tc-actvt_code = wa_ympmt_why_dtls-yy_action_act_9.&lt;/P&gt;&lt;P&gt;      t_tc-actvt_text = wa_ympmt_why_dtls-yy_action_txt_9.&lt;/P&gt;&lt;P&gt;      append t_tc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     check not wa_ympmt_why_dtls-yy_action_act_9 is initial or&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;           not wa_ympmt_why_dtls-yy_action_txt_9 is initial.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      check not wa_ympmt_why_dtls-yy_due_cct_9 is initial or&lt;/P&gt;&lt;P&gt;            not wa_ympmt_why_dtls-yy_due_cct_tx_9 is initial.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      check not wa_ympmt_why_dtls-yy_due_cct_10 is initial or&lt;/P&gt;&lt;P&gt;            not wa_ympmt_why_dtls-yy_due_cct_tx_10 is initial or&lt;/P&gt;&lt;P&gt;            not wa_ympmt_why_dtls-yy_action_act_10 is initial or&lt;/P&gt;&lt;P&gt;            not wa_ympmt_why_dtls-yy_action_txt_10 is initial.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      clear t_tc.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     if not wa_ympmt_why_dtls-yy_action_act_9 is initial.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       concatenate 'Why' wa_ympmt_why_dtls-yy_action_act_9&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;              into t_tc-why_quest separated by space.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     elseif not wa_ympmt_why_dtls-yy_action_txt_9 is initial.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       concatenate 'Why' wa_ympmt_why_dtls-yy_action_txt_9&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;              into t_tc-why_quest separated by space.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     endif.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      if not wa_ympmt_why_dtls-yy_due_cct_9 is initial.&lt;/P&gt;&lt;P&gt;        concatenate 'Why' wa_ympmt_why_dtls-yy_due_cct_9&lt;/P&gt;&lt;P&gt;               into t_tc-why_quest separated by space.&lt;/P&gt;&lt;P&gt;      elseif not wa_ympmt_why_dtls-yy_due_cct_tx_9 is initial.&lt;/P&gt;&lt;P&gt;        concatenate 'Why' wa_ympmt_why_dtls-yy_due_cct_tx_9&lt;/P&gt;&lt;P&gt;               into t_tc-why_quest separated by space.&lt;/P&gt;&lt;P&gt;      endif.&lt;/P&gt;&lt;P&gt;      t_tc-cause_code = wa_ympmt_why_dtls-yy_due_cct_10.&lt;/P&gt;&lt;P&gt;      t_tc-cause_text = wa_ympmt_why_dtls-yy_due_cct_tx_10.&lt;/P&gt;&lt;P&gt;      t_tc-actvt_code = wa_ympmt_why_dtls-yy_action_act_10.&lt;/P&gt;&lt;P&gt;      t_tc-actvt_text = wa_ympmt_why_dtls-yy_action_txt_10.&lt;/P&gt;&lt;P&gt;      append t_tc.&lt;/P&gt;&lt;P&gt;&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;ENDMODULE.                 " get_tc1  OUTPUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Module  get_tc2  OUTPUT&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE get_tc2 OUTPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tc2-top_line = 1.&lt;/P&gt;&lt;P&gt;  if t_tc2[] is initial.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    clear t_tc2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    t_tc2-root_cause = '1. Poor Basic Condition'.&lt;/P&gt;&lt;P&gt;    t_tc2-jh = wa_ympmt_why_dtls-yy_pbc_jh.&lt;/P&gt;&lt;P&gt;    t_tc2-pm = wa_ympmt_why_dtls-yy_pbc_pm.&lt;/P&gt;&lt;P&gt;    t_tc2-design = wa_ympmt_why_dtls-yy_pbc_design.&lt;/P&gt;&lt;P&gt;    t_tc2-e_n_t = wa_ympmt_why_dtls-yy_pbc_e_n_t.&lt;/P&gt;&lt;P&gt;    append t_tc2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    t_tc2-root_cause = '2. Poor Operating Condition'.&lt;/P&gt;&lt;P&gt;    t_tc2-jh = wa_ympmt_why_dtls-yy_poc_jh.&lt;/P&gt;&lt;P&gt;    t_tc2-pm = wa_ympmt_why_dtls-yy_poc_pm.&lt;/P&gt;&lt;P&gt;    t_tc2-design = wa_ympmt_why_dtls-yy_poc_design.&lt;/P&gt;&lt;P&gt;    t_tc2-e_n_t = wa_ympmt_why_dtls-yy_poc_e_n_t.&lt;/P&gt;&lt;P&gt;    append t_tc2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    t_tc2-root_cause = '3. Leaving Deterioration Unattended'.&lt;/P&gt;&lt;P&gt;    t_tc2-jh = wa_ympmt_why_dtls-yy_ldu_jh.&lt;/P&gt;&lt;P&gt;    t_tc2-pm = wa_ympmt_why_dtls-yy_ldu_pm.&lt;/P&gt;&lt;P&gt;    t_tc2-design = wa_ympmt_why_dtls-yy_ldu_design.&lt;/P&gt;&lt;P&gt;    t_tc2-e_n_t = wa_ympmt_why_dtls-yy_ldu_e_n_t.&lt;/P&gt;&lt;P&gt;    append t_tc2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    t_tc2-root_cause = '4. Weak Design'.&lt;/P&gt;&lt;P&gt;    t_tc2-jh = wa_ympmt_why_dtls-yy_wd_jh.&lt;/P&gt;&lt;P&gt;    t_tc2-pm = wa_ympmt_why_dtls-yy_wd_pm.&lt;/P&gt;&lt;P&gt;    t_tc2-design = wa_ympmt_why_dtls-yy_wd_design.&lt;/P&gt;&lt;P&gt;    t_tc2-e_n_t = wa_ympmt_why_dtls-yy_wd_e_n_t.&lt;/P&gt;&lt;P&gt;    append t_tc2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    t_tc2-root_cause = '5. Poor Skill'.&lt;/P&gt;&lt;P&gt;    t_tc2-jh = wa_ympmt_why_dtls-yy_ps_jh.&lt;/P&gt;&lt;P&gt;    t_tc2-pm = wa_ympmt_why_dtls-yy_ps_pm.&lt;/P&gt;&lt;P&gt;    t_tc2-design = wa_ympmt_why_dtls-yy_ps_design.&lt;/P&gt;&lt;P&gt;    t_tc2-e_n_t = wa_ympmt_why_dtls-yy_ps_e_n_t.&lt;/P&gt;&lt;P&gt;    append t_tc2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDMODULE.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Sep 2008 12:03:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-write-select-statement/m-p/4475563#M1059887</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-05T12:03:17Z</dc:date>
    </item>
    <item>
      <title>Re: how to write select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-write-select-statement/m-p/4475564#M1059888</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;MODULE STATUS_0102 OUTPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET PF-STATUS 'xxxxxxxx'. &lt;/P&gt;&lt;P&gt;SET TITLEBAR 'xxx'. &lt;/P&gt;&lt;P&gt;*Commented on 31.07.2008&lt;/P&gt;&lt;P&gt;clear flag_error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;text_i_1 = ' Question'.&lt;/P&gt;&lt;P&gt;text_i_2 = ' Answer'.&lt;/P&gt;&lt;P&gt;text_i_3 = 'What is your final action, so that it is OK ?'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;text_i_6 = ' Why'.&lt;/P&gt;&lt;P&gt;text_i_7 = ' Answer'.&lt;/P&gt;&lt;P&gt;text_i_8 = ' Action'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;text_i_10 = 'Why do you take the above action?'.&lt;/P&gt;&lt;P&gt;text_i_11 = ' Due To'.&lt;/P&gt;&lt;P&gt;text_i_12 = ' Action Needed'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : e_viqmma like viqmma OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : t_viqmma like viqmma OCCURS 0 WITH HEADER LINE. &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;data : lt_viqmma litk viqmma OCCURS 0 WITH HEADER LINE.&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;DATA : wa_viqmma like t_viqmma. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;import e_viqmma from memory id 'Y_VIQMMA'.&lt;/P&gt;&lt;P&gt;*loop at t_why_dtls into wa_ympmt_why_dtls.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at t_tc. &lt;/P&gt;&lt;P&gt;Loop at T_viqmma into wa_viqmma. &lt;/P&gt;&lt;P&gt;select single kurztext from qpct into text_i_4&lt;/P&gt;&lt;P&gt;where katalogart = 'A'&lt;/P&gt;&lt;P&gt;and codegruppe = e_viqmma-mngrp&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and code = e_viqmma-mncod&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and sprache = sy-langu.&lt;/P&gt;&lt;P&gt;if text_i_4 is initial.&lt;/P&gt;&lt;P&gt;text_i_4 = e_viqmma-matxt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;if ( cust_aktyp = 'V' or cust_aktyp = 'A' ) and text_i_4 is initial.&lt;/P&gt;&lt;P&gt;"Notifn Change/Display&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*select single * from qmma into lt_viqmma*&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;where qmnum = viqmel-QMNUM and kzloesch = ''.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;amp;----&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*select * from qpct into text_i_4*&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;for all entries in lt_viqmma&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;where codegruppe = lt_viqmma-mngrp&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;and code = lt_viqmma-mncod&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;and katalogart = 'A'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;and sprache = sy-langu.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;endselect. &lt;/P&gt;&lt;P&gt;&amp;amp;----&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;text_i_4 = viqmma-matxt.  &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;&lt;/P&gt;&lt;P&gt;if text_i_4 is initial.&lt;/P&gt;&lt;P&gt;message w537(im).&lt;/P&gt;&lt;P&gt;flag_error = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;exit. &lt;/P&gt;&lt;P&gt;elseif not t_tc[] is initial.&lt;/P&gt;&lt;P&gt;clear t_tc.&lt;/P&gt;&lt;P&gt;concatenate 'Why' text_i_4 into t_tc-why_quest separated by space.&lt;/P&gt;&lt;P&gt;modify t_tc index 1 transporting why_quest.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if act_code_text is initial. &lt;/P&gt;&lt;P&gt;import act_text from memory id 'YACT_TEXT'. &lt;/P&gt;&lt;P&gt;if not act_text is initial. &lt;/P&gt;&lt;P&gt;text_i_4 = act_text. &lt;/P&gt;&lt;P&gt;endif. &lt;/P&gt;&lt;P&gt;else. &lt;/P&gt;&lt;P&gt;text_i_4 = act_code_text. &lt;/P&gt;&lt;P&gt;endif. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;text_i_14 = ' Root Cause'.&lt;/P&gt;&lt;P&gt;text_i_15 = ' JH'.&lt;/P&gt;&lt;P&gt;text_i_16 = ' PM'.&lt;/P&gt;&lt;P&gt;text_i_17 = ' Design'.&lt;/P&gt;&lt;P&gt;text_i_18 = ' E &amp;amp; T'.&lt;/P&gt;&lt;P&gt;**Commented on 31.07.2008&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDMODULE. " STATUS_0102 OUTPUT&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Sep 2008 12:22:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-write-select-statement/m-p/4475564#M1059888</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-05T12:22:32Z</dc:date>
    </item>
    <item>
      <title>Re: how to write select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-write-select-statement/m-p/4475565#M1059889</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry guys the above code is not working,&lt;/P&gt;&lt;P&gt;can you please suggest any other solution&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Sep 2008 12:55:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-write-select-statement/m-p/4475565#M1059889</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-05T12:55:02Z</dc:date>
    </item>
  </channel>
</rss>

