<?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: append with condition in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/append-with-condition/m-p/1927517#M384649</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what is this f1?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 08 Feb 2007 15:17:15 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-02-08T15:17:15Z</dc:date>
    <item>
      <title>append with condition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/append-with-condition/m-p/1927515#M384647</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi i have to 2 tables 1 contains the text and the other my final output table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the report shud display line by line for the line items &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if tried to do the code like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: j type i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;j = 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at it_lines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*concatenate v_text it_lines into v_text separated by space.&lt;/P&gt;&lt;P&gt;wa_output-tdline = it_lines-tdline.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if j = 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;modify it_output from wa_output transporting tdline&lt;/P&gt;&lt;P&gt;where tdname = it_stxh-tdname.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;j = j + 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;append wa_output to it_output.&lt;/P&gt;&lt;P&gt;&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;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so that first time it will modify the text column with the first line and the next corresponding lines will be appended but it s getting appended with some other sales order the text and sales order are mismatching and also the it_lines is of structure in which only the text can be maintained and there s no common fields between the tables how can i overcome ths error&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Feb 2007 14:14:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/append-with-condition/m-p/1927515#M384647</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-08T14:14:24Z</dc:date>
    </item>
    <item>
      <title>Re: append with condition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/append-with-condition/m-p/1927516#M384648</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use the read option for this .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;f1 is the link between the two tables .&lt;/P&gt;&lt;P&gt;declare &lt;/P&gt;&lt;P&gt;data : cntr like Sy-tabix .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;loop at itab.
Read table jtab with key f1 = itab-f1. " use this option

if sy-subrc eq 0.
jtab-fx = itab-fx.
append jtab / modify transporting index cntr . " cntr = sy-tabix.
endif.
endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so only the values pertaining to criteria are entered into the table .&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;vijay.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Feb 2007 14:19:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/append-with-condition/m-p/1927516#M384648</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-08T14:19:18Z</dc:date>
    </item>
    <item>
      <title>Re: append with condition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/append-with-condition/m-p/1927517#M384649</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what is this f1?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Feb 2007 15:17:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/append-with-condition/m-p/1927517#M384649</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-08T15:17:15Z</dc:date>
    </item>
    <item>
      <title>Re: append with condition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/append-with-condition/m-p/1927518#M384650</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can u post how your internal tables are defined and can u be more clear on what is ur requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Rajasekhar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Feb 2007 15:20:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/append-with-condition/m-p/1927518#M384650</guid>
      <dc:creator>rajasekhar_matukumalli3</dc:creator>
      <dc:date>2007-02-08T15:20:26Z</dc:date>
    </item>
    <item>
      <title>Re: append with condition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/append-with-condition/m-p/1927519#M384651</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;data: IT_LINES LIKE TLINE OCCURS 0 WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it_output is declared based on a structure &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here i get the values of it_lines&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'READ_TEXT'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  CLIENT                        = SY-MANDT&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    ID                            = '0002'&lt;/P&gt;&lt;P&gt;    LANGUAGE                      = SY-LANGU&lt;/P&gt;&lt;P&gt;    NAME                          = it_stxh-tdname&lt;/P&gt;&lt;P&gt;    OBJECT                        = 'VBBP'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  ARCHIVE_HANDLE                = 0&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  LOCAL_CAT                     = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  HEADER                        = header&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;    LINES                         = IT_LINES&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  ID                            = 1&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  LANGUAGE                      = 2&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  NAME                          = 3&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  NOT_FOUND                     = 4&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  OBJECT                        = 5&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  REFERENCE_CHECK               = 6&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  WRONG_ACCESS_TO_ARCHIVE       = 7&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  OTHERS                        = 8&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in it_lines i will hav eonly text value bcos the structure is defined in that way&lt;/P&gt;&lt;P&gt;in it_output i have line item level data&lt;/P&gt;&lt;P&gt;i will modify the cotents with text if it s with the first loop , if there s so many liines maintained for a single line item i will append , when i do append it s appending with some other sales order's line ite.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Feb 2007 15:32:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/append-with-condition/m-p/1927519#M384651</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-08T15:32:03Z</dc:date>
    </item>
    <item>
      <title>Re: append with condition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/append-with-condition/m-p/1927520#M384652</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is the common field in both the tables like a unique key field .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;vijay.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Feb 2007 15:33:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/append-with-condition/m-p/1927520#M384652</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-08T15:33:22Z</dc:date>
    </item>
    <item>
      <title>Re: append with condition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/append-with-condition/m-p/1927521#M384653</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i said know there is no common fields between those two tables&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Feb 2007 15:44:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/append-with-condition/m-p/1927521#M384653</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-08T15:44:54Z</dc:date>
    </item>
    <item>
      <title>Re: append with condition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/append-with-condition/m-p/1927522#M384654</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Change the code like this and try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at it_lines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;clear wa_output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_output-tdline = it_lines-tdline.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-tabix = 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;modify it_output from wa_output transporting tdline&lt;/P&gt;&lt;P&gt;where tdname = it_stxh-tdname.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt; move-corresponding wa_output to it_output.&lt;/P&gt;&lt;P&gt; append it_output.&lt;/P&gt;&lt;P&gt; clear it_output.&lt;/P&gt;&lt;P&gt;endif.&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;&lt;/P&gt;&lt;P&gt;Not sure of the result. Just check and inform us.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Subramanian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Feb 2007 17:21:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/append-with-condition/m-p/1927522#M384654</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-08T17:21:53Z</dc:date>
    </item>
  </channel>
</rss>

