<?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 Regading New record in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/regading-new-record/m-p/4282285#M1021632</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;Please consider the scenario:&lt;/P&gt;&lt;P&gt;I have a table itab1 i which I have data for shipmet no, shipment type and corresponding delivery like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shipment no  | Shipment type |  Delivery Number&lt;/P&gt;&lt;P&gt;123                    X                       1&lt;/P&gt;&lt;P&gt;123                    X                       2&lt;/P&gt;&lt;P&gt;123                   X                        3&lt;/P&gt;&lt;P&gt;456                   Y                       4&lt;/P&gt;&lt;P&gt;456                   Y                       5&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table 2 itab2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Delivery No |  Delivery Date|  &lt;/P&gt;&lt;P&gt;1                    01.08.2008&lt;/P&gt;&lt;P&gt;2                    03.08.2008&lt;/P&gt;&lt;P&gt;3                    04.08.2008&lt;/P&gt;&lt;P&gt;4                    04.08.2008&lt;/P&gt;&lt;P&gt;5                    04.08.2008&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I want to dispay like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shipment No : 123             Shipment type : X&lt;/P&gt;&lt;P&gt;....................................................................&lt;/P&gt;&lt;P&gt;1                    01.08.2008&lt;/P&gt;&lt;P&gt;2                    03.08.2008&lt;/P&gt;&lt;P&gt;3                    04.08.2008&lt;/P&gt;&lt;P&gt;...................................................................&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shipment No : 456               Shipment type : Y&lt;/P&gt;&lt;P&gt;.......................................................................&lt;/P&gt;&lt;P&gt;4                    04.08.2008&lt;/P&gt;&lt;P&gt;5                    04.08.2008&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not able to group similar deliveries under a shipment . Please help me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Krishan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 02 Aug 2008 17:48:11 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-08-02T17:48:11Z</dc:date>
    <item>
      <title>Regading New record</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regading-new-record/m-p/4282285#M1021632</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;Please consider the scenario:&lt;/P&gt;&lt;P&gt;I have a table itab1 i which I have data for shipmet no, shipment type and corresponding delivery like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shipment no  | Shipment type |  Delivery Number&lt;/P&gt;&lt;P&gt;123                    X                       1&lt;/P&gt;&lt;P&gt;123                    X                       2&lt;/P&gt;&lt;P&gt;123                   X                        3&lt;/P&gt;&lt;P&gt;456                   Y                       4&lt;/P&gt;&lt;P&gt;456                   Y                       5&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table 2 itab2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Delivery No |  Delivery Date|  &lt;/P&gt;&lt;P&gt;1                    01.08.2008&lt;/P&gt;&lt;P&gt;2                    03.08.2008&lt;/P&gt;&lt;P&gt;3                    04.08.2008&lt;/P&gt;&lt;P&gt;4                    04.08.2008&lt;/P&gt;&lt;P&gt;5                    04.08.2008&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I want to dispay like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shipment No : 123             Shipment type : X&lt;/P&gt;&lt;P&gt;....................................................................&lt;/P&gt;&lt;P&gt;1                    01.08.2008&lt;/P&gt;&lt;P&gt;2                    03.08.2008&lt;/P&gt;&lt;P&gt;3                    04.08.2008&lt;/P&gt;&lt;P&gt;...................................................................&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shipment No : 456               Shipment type : Y&lt;/P&gt;&lt;P&gt;.......................................................................&lt;/P&gt;&lt;P&gt;4                    04.08.2008&lt;/P&gt;&lt;P&gt;5                    04.08.2008&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not able to group similar deliveries under a shipment . Please help me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Krishan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 02 Aug 2008 17:48:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regading-new-record/m-p/4282285#M1021632</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-02T17:48:11Z</dc:date>
    </item>
    <item>
      <title>Re: Regading New record</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regading-new-record/m-p/4282286#M1021633</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Krishan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  for DDIC table it is easier - it is enough to use join and group by. For internal table I suggest following (I don't have access to the SAP right now so if there are some small errors please correct them).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data: lv_counter type i.
SORT itab1 by Shipment no, Shipment type.

loop at itab1 into wa_itab1.
add 1 to lv_counter.
  loop at itab2 into wa_itab2 where Delivery no = wa_itab1-Delivery no.
   write: / lv_counter, wa_itab2-delivery date.
  endloop.
at new Shipment type or new Shipment no.
write: / 'Shipment No :',  wa_itab1-Shipment no,  'Shipment type :', wa_itab1-Shipment type.
write: / '....................................................................'.
endloop.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Karol&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 02 Aug 2008 18:07:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regading-new-record/m-p/4282286#M1021633</guid>
      <dc:creator>karol_seman</dc:creator>
      <dc:date>2008-08-02T18:07:00Z</dc:date>
    </item>
    <item>
      <title>Re: Regading New record</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regading-new-record/m-p/4282287#M1021634</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Karol,&lt;/P&gt;&lt;P&gt;Thanks a lot. I will try it.&lt;/P&gt;&lt;P&gt;Krishan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 02 Aug 2008 18:12:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regading-new-record/m-p/4282287#M1021634</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-02T18:12:06Z</dc:date>
    </item>
    <item>
      <title>Re: Regading New record</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regading-new-record/m-p/4282288#M1021635</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;data: wa1 like line of itab1.
sort itab1 by shipment shipmenttype.
sort itab2 by Deliveryno.
loop at itab1.
wa1 = itab1.
at new  shipemtype.
write:/ '....................................................................'.
 write :/ 'Shipment no:', itab1-shipmentno , 
           'Shipment type:', itab1-shipmentype.
 write:/ '....................................................................'.
 loop at itab2 where delivernumber = wa1-deliverynumber.
  write:/ itab2-deliverynumber, itab2-deliverydate.
endloop.
endat.
endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the above code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 02 Aug 2008 19:37:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regading-new-record/m-p/4282288#M1021635</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-02T19:37:48Z</dc:date>
    </item>
  </channel>
</rss>

