<?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 Writing Code logic for the below scenario in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/writing-code-logic-for-the-below-scenario/m-p/9155773#M1710784</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;Sample data available in one table has the following format:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;TABLE border="1" cellpadding="0" cellspacing="0" style="border: none; padding: 0 5.4pt 0 5.4pt;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD style="border: solid black 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="116"&gt;&lt;P align="center" style="margin-bottom: 0.0001pt; text-align: center;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;ID&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border: solid black 1.0pt; border-left: none; padding: 0 5.4pt 0 5.4pt;" valign="top" width="116"&gt;&lt;P align="center" style="margin-bottom: 0.0001pt; text-align: center;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;Column1&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border: solid black 1.0pt; border-left: none; padding: 0 5.4pt 0 5.4pt;" valign="top" width="116"&gt;&lt;P align="center" style="margin-bottom: 0.0001pt; text-align: center;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;Column2&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border: solid black 1.0pt; border-left: none; padding: 0 5.4pt 0 5.4pt;" valign="top" width="116"&gt;&lt;P align="center" style="margin-bottom: 0.0001pt; text-align: center;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;Column3&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border: solid black 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" valign="top" width="116"&gt;&lt;P align="center" style="margin-bottom: 0.0001pt; text-align: center;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;1&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid black 1.0pt; border-right: solid black 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="116"&gt;&lt;P align="center" style="margin-bottom: 0.0001pt; text-align: center;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;X1&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid black 1.0pt; border-right: solid black 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="116"&gt;&lt;P align="center" style="margin-bottom: 0.0001pt; text-align: center;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;#&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid black 1.0pt; border-right: solid black 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="116"&gt;&lt;P align="center" style="margin-bottom: 0.0001pt; text-align: center;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;#&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border: solid black 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" valign="top" width="116"&gt;&lt;P align="center" style="margin-bottom: 0.0001pt; text-align: center;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;1&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid black 1.0pt; border-right: solid black 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="116"&gt;&lt;P align="center" style="margin-bottom: 0.0001pt; text-align: center;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;X2&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid black 1.0pt; border-right: solid black 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="116"&gt;&lt;P align="center" style="margin-bottom: 0.0001pt; text-align: center;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;Y1&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid black 1.0pt; border-right: solid black 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="116"&gt;&lt;P align="center" style="margin-bottom: 0.0001pt; text-align: center;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;#&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border: solid black 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" valign="top" width="116"&gt;&lt;P align="center" style="margin-bottom: 0.0001pt; text-align: center;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;1&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid black 1.0pt; border-right: solid black 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="116"&gt;&lt;P align="center" style="margin-bottom: 0.0001pt; text-align: center;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;#&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid black 1.0pt; border-right: solid black 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="116"&gt;&lt;P align="center" style="margin-bottom: 0.0001pt; text-align: center;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;#&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid black 1.0pt; border-right: solid black 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="116"&gt;&lt;P align="center" style="margin-bottom: 0.0001pt; text-align: center;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;Z1&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border: solid black 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" valign="top" width="116"&gt;&lt;P align="center" style="margin-bottom: 0.0001pt; text-align: center;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;1&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid black 1.0pt; border-right: solid black 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="116"&gt;&lt;P align="center" style="margin-bottom: 0.0001pt; text-align: center;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;#&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid black 1.0pt; border-right: solid black 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="116"&gt;&lt;P align="center" style="margin-bottom: 0.0001pt; text-align: center;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;#&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid black 1.0pt; border-right: solid black 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="116"&gt;&lt;P align="center" style="margin-bottom: 0.0001pt; text-align: center;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;Z2&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border: solid black 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" valign="top" width="116"&gt;&lt;P align="center" style="margin-bottom: 0.0001pt; text-align: center;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;2&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid black 1.0pt; border-right: solid black 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="116"&gt;&lt;P align="center" style="margin-bottom: 0.0001pt; text-align: center;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;X1&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid black 1.0pt; border-right: solid black 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="116"&gt;&lt;P align="center" style="margin-bottom: 0.0001pt; text-align: center;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;#&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid black 1.0pt; border-right: solid black 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="116"&gt;&lt;P align="center" style="margin-bottom: 0.0001pt; text-align: center;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;#&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border: solid black 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" valign="top" width="116"&gt;&lt;P align="center" style="margin-bottom: 0.0001pt; text-align: center;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;2&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid black 1.0pt; border-right: solid black 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="116"&gt;&lt;P align="center" style="margin-bottom: 0.0001pt; text-align: center;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;#&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid black 1.0pt; border-right: solid black 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="116"&gt;&lt;P align="center" style="margin-bottom: 0.0001pt; text-align: center;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;Y1&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid black 1.0pt; border-right: solid black 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="116"&gt;&lt;P align="center" style="margin-bottom: 0.0001pt; text-align: center;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;#&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border: solid black 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" valign="top" width="116"&gt;&lt;P align="center" style="margin-bottom: 0.0001pt; text-align: center;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;2&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid black 1.0pt; border-right: solid black 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="116"&gt;&lt;P align="center" style="margin-bottom: 0.0001pt; text-align: center;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;#&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid black 1.0pt; border-right: solid black 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="116"&gt;&lt;P align="center" style="margin-bottom: 0.0001pt; text-align: center;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;Y2&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid black 1.0pt; border-right: solid black 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="116"&gt;&lt;P align="center" style="margin-bottom: 0.0001pt; text-align: center;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;#&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border: solid black 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" valign="top" width="116"&gt;&lt;P align="center" style="margin-bottom: 0.0001pt; text-align: center;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;2&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid black 1.0pt; border-right: solid black 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="116"&gt;&lt;P align="center" style="margin-bottom: 0.0001pt; text-align: center;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;#&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid black 1.0pt; border-right: solid black 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="116"&gt;&lt;P align="center" style="margin-bottom: 0.0001pt; text-align: center;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;#&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid black 1.0pt; border-right: solid black 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="116"&gt;&lt;P align="center" style="margin-bottom: 0.0001pt; text-align: center;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;Z1&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;Actual requirement is to display All column data in the same line item against each unique ID (suppressing the #(Not Assigned) value) in the target object(table) as given below:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;TABLE border="1" cellpadding="0" cellspacing="0" style="border: none; padding: 0 5.4pt 0 5.4pt;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD style="border: solid black 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="116"&gt;&lt;P align="center" style="margin-bottom: 0.0001pt; text-align: center;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;ID&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border: solid black 1.0pt; border-left: none; padding: 0 5.4pt 0 5.4pt;" valign="top" width="116"&gt;&lt;P align="center" style="margin-bottom: 0.0001pt; text-align: center;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;Column1&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border: solid black 1.0pt; border-left: none; padding: 0 5.4pt 0 5.4pt;" valign="top" width="116"&gt;&lt;P align="center" style="margin-bottom: 0.0001pt; text-align: center;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;Column2&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border: solid black 1.0pt; border-left: none; padding: 0 5.4pt 0 5.4pt;" valign="top" width="116"&gt;&lt;P align="center" style="margin-bottom: 0.0001pt; text-align: center;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;Column3&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border: solid black 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" valign="top" width="116"&gt;&lt;P align="center" style="margin-bottom: 0.0001pt; text-align: center;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;1&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid black 1.0pt; border-right: solid black 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="116"&gt;&lt;P align="center" style="margin-bottom: 0.0001pt; text-align: center;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;X1&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid black 1.0pt; border-right: solid black 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="116"&gt;&lt;P align="center" style="margin-bottom: 0.0001pt; text-align: center;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;Y1&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid black 1.0pt; border-right: solid black 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="116"&gt;&lt;P align="center" style="margin-bottom: 0.0001pt; text-align: center;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;Z1&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border: solid black 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" valign="top" width="116"&gt;&lt;P align="center" style="margin-bottom: 0.0001pt; text-align: center;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;1&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid black 1.0pt; border-right: solid black 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="116"&gt;&lt;P align="center" style="margin-bottom: 0.0001pt; text-align: center;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;X2&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid black 1.0pt; border-right: solid black 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="116"&gt;&lt;P align="center" style="margin-bottom: 0.0001pt; text-align: center;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;#&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid black 1.0pt; border-right: solid black 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="116"&gt;&lt;P align="center" style="margin-bottom: 0.0001pt; text-align: center;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;Z2&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border: solid black 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" valign="top" width="116"&gt;&lt;P align="center" style="margin-bottom: 0.0001pt; text-align: center;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;2&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid black 1.0pt; border-right: solid black 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="116"&gt;&lt;P align="center" style="margin-bottom: 0.0001pt; text-align: center;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;X1&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid black 1.0pt; border-right: solid black 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="116"&gt;&lt;P align="center" style="margin-bottom: 0.0001pt; text-align: center;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;Y1&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid black 1.0pt; border-right: solid black 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="116"&gt;&lt;P align="center" style="margin-bottom: 0.0001pt; text-align: center;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;Z1&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border: solid black 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" valign="top" width="116"&gt;&lt;P align="center" style="margin-bottom: 0.0001pt; text-align: center;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;2&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid black 1.0pt; border-right: solid black 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="116"&gt;&lt;P align="center" style="margin-bottom: 0.0001pt; text-align: center;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;#&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid black 1.0pt; border-right: solid black 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="116"&gt;&lt;P align="center" style="margin-bottom: 0.0001pt; text-align: center;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;Y2&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid black 1.0pt; border-right: solid black 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="116"&gt;&lt;P align="center" style="margin-bottom: 0.0001pt; text-align: center;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;#&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone please tell me the logic to implement the above scenario through ABAP code?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Responses would be appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks in advance..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'book antiqua', palatino; color: #ff0000;"&gt;Moderator message : Requirement dumping not allowed, discussion locked.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Vinod Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 12 Dec 2012 19:46:23 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2012-12-12T19:46:23Z</dc:date>
    <item>
      <title>Writing Code logic for the below scenario</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/writing-code-logic-for-the-below-scenario/m-p/9155773#M1710784</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;Sample data available in one table has the following format:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;TABLE border="1" cellpadding="0" cellspacing="0" style="border: none; padding: 0 5.4pt 0 5.4pt;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD style="border: solid black 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="116"&gt;&lt;P align="center" style="margin-bottom: 0.0001pt; text-align: center;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;ID&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border: solid black 1.0pt; border-left: none; padding: 0 5.4pt 0 5.4pt;" valign="top" width="116"&gt;&lt;P align="center" style="margin-bottom: 0.0001pt; text-align: center;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;Column1&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border: solid black 1.0pt; border-left: none; padding: 0 5.4pt 0 5.4pt;" valign="top" width="116"&gt;&lt;P align="center" style="margin-bottom: 0.0001pt; text-align: center;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;Column2&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border: solid black 1.0pt; border-left: none; padding: 0 5.4pt 0 5.4pt;" valign="top" width="116"&gt;&lt;P align="center" style="margin-bottom: 0.0001pt; text-align: center;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;Column3&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border: solid black 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" valign="top" width="116"&gt;&lt;P align="center" style="margin-bottom: 0.0001pt; text-align: center;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;1&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid black 1.0pt; border-right: solid black 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="116"&gt;&lt;P align="center" style="margin-bottom: 0.0001pt; text-align: center;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;X1&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid black 1.0pt; border-right: solid black 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="116"&gt;&lt;P align="center" style="margin-bottom: 0.0001pt; text-align: center;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;#&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid black 1.0pt; border-right: solid black 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="116"&gt;&lt;P align="center" style="margin-bottom: 0.0001pt; text-align: center;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;#&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border: solid black 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" valign="top" width="116"&gt;&lt;P align="center" style="margin-bottom: 0.0001pt; text-align: center;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;1&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid black 1.0pt; border-right: solid black 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="116"&gt;&lt;P align="center" style="margin-bottom: 0.0001pt; text-align: center;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;X2&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid black 1.0pt; border-right: solid black 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="116"&gt;&lt;P align="center" style="margin-bottom: 0.0001pt; text-align: center;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;Y1&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid black 1.0pt; border-right: solid black 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="116"&gt;&lt;P align="center" style="margin-bottom: 0.0001pt; text-align: center;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;#&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border: solid black 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" valign="top" width="116"&gt;&lt;P align="center" style="margin-bottom: 0.0001pt; text-align: center;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;1&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid black 1.0pt; border-right: solid black 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="116"&gt;&lt;P align="center" style="margin-bottom: 0.0001pt; text-align: center;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;#&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid black 1.0pt; border-right: solid black 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="116"&gt;&lt;P align="center" style="margin-bottom: 0.0001pt; text-align: center;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;#&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid black 1.0pt; border-right: solid black 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="116"&gt;&lt;P align="center" style="margin-bottom: 0.0001pt; text-align: center;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;Z1&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border: solid black 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" valign="top" width="116"&gt;&lt;P align="center" style="margin-bottom: 0.0001pt; text-align: center;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;1&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid black 1.0pt; border-right: solid black 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="116"&gt;&lt;P align="center" style="margin-bottom: 0.0001pt; text-align: center;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;#&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid black 1.0pt; border-right: solid black 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="116"&gt;&lt;P align="center" style="margin-bottom: 0.0001pt; text-align: center;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;#&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid black 1.0pt; border-right: solid black 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="116"&gt;&lt;P align="center" style="margin-bottom: 0.0001pt; text-align: center;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;Z2&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border: solid black 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" valign="top" width="116"&gt;&lt;P align="center" style="margin-bottom: 0.0001pt; text-align: center;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;2&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid black 1.0pt; border-right: solid black 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="116"&gt;&lt;P align="center" style="margin-bottom: 0.0001pt; text-align: center;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;X1&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid black 1.0pt; border-right: solid black 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="116"&gt;&lt;P align="center" style="margin-bottom: 0.0001pt; text-align: center;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;#&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid black 1.0pt; border-right: solid black 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="116"&gt;&lt;P align="center" style="margin-bottom: 0.0001pt; text-align: center;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;#&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border: solid black 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" valign="top" width="116"&gt;&lt;P align="center" style="margin-bottom: 0.0001pt; text-align: center;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;2&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid black 1.0pt; border-right: solid black 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="116"&gt;&lt;P align="center" style="margin-bottom: 0.0001pt; text-align: center;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;#&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid black 1.0pt; border-right: solid black 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="116"&gt;&lt;P align="center" style="margin-bottom: 0.0001pt; text-align: center;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;Y1&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid black 1.0pt; border-right: solid black 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="116"&gt;&lt;P align="center" style="margin-bottom: 0.0001pt; text-align: center;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;#&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border: solid black 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" valign="top" width="116"&gt;&lt;P align="center" style="margin-bottom: 0.0001pt; text-align: center;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;2&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid black 1.0pt; border-right: solid black 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="116"&gt;&lt;P align="center" style="margin-bottom: 0.0001pt; text-align: center;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;#&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid black 1.0pt; border-right: solid black 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="116"&gt;&lt;P align="center" style="margin-bottom: 0.0001pt; text-align: center;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;Y2&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid black 1.0pt; border-right: solid black 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="116"&gt;&lt;P align="center" style="margin-bottom: 0.0001pt; text-align: center;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;#&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border: solid black 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" valign="top" width="116"&gt;&lt;P align="center" style="margin-bottom: 0.0001pt; text-align: center;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;2&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid black 1.0pt; border-right: solid black 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="116"&gt;&lt;P align="center" style="margin-bottom: 0.0001pt; text-align: center;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;#&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid black 1.0pt; border-right: solid black 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="116"&gt;&lt;P align="center" style="margin-bottom: 0.0001pt; text-align: center;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;#&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid black 1.0pt; border-right: solid black 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="116"&gt;&lt;P align="center" style="margin-bottom: 0.0001pt; text-align: center;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;Z1&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;Actual requirement is to display All column data in the same line item against each unique ID (suppressing the #(Not Assigned) value) in the target object(table) as given below:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;TABLE border="1" cellpadding="0" cellspacing="0" style="border: none; padding: 0 5.4pt 0 5.4pt;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD style="border: solid black 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="116"&gt;&lt;P align="center" style="margin-bottom: 0.0001pt; text-align: center;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;ID&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border: solid black 1.0pt; border-left: none; padding: 0 5.4pt 0 5.4pt;" valign="top" width="116"&gt;&lt;P align="center" style="margin-bottom: 0.0001pt; text-align: center;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;Column1&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border: solid black 1.0pt; border-left: none; padding: 0 5.4pt 0 5.4pt;" valign="top" width="116"&gt;&lt;P align="center" style="margin-bottom: 0.0001pt; text-align: center;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;Column2&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border: solid black 1.0pt; border-left: none; padding: 0 5.4pt 0 5.4pt;" valign="top" width="116"&gt;&lt;P align="center" style="margin-bottom: 0.0001pt; text-align: center;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;Column3&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border: solid black 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" valign="top" width="116"&gt;&lt;P align="center" style="margin-bottom: 0.0001pt; text-align: center;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;1&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid black 1.0pt; border-right: solid black 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="116"&gt;&lt;P align="center" style="margin-bottom: 0.0001pt; text-align: center;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;X1&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid black 1.0pt; border-right: solid black 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="116"&gt;&lt;P align="center" style="margin-bottom: 0.0001pt; text-align: center;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;Y1&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid black 1.0pt; border-right: solid black 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="116"&gt;&lt;P align="center" style="margin-bottom: 0.0001pt; text-align: center;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;Z1&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border: solid black 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" valign="top" width="116"&gt;&lt;P align="center" style="margin-bottom: 0.0001pt; text-align: center;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;1&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid black 1.0pt; border-right: solid black 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="116"&gt;&lt;P align="center" style="margin-bottom: 0.0001pt; text-align: center;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;X2&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid black 1.0pt; border-right: solid black 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="116"&gt;&lt;P align="center" style="margin-bottom: 0.0001pt; text-align: center;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;#&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid black 1.0pt; border-right: solid black 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="116"&gt;&lt;P align="center" style="margin-bottom: 0.0001pt; text-align: center;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;Z2&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border: solid black 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" valign="top" width="116"&gt;&lt;P align="center" style="margin-bottom: 0.0001pt; text-align: center;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;2&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid black 1.0pt; border-right: solid black 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="116"&gt;&lt;P align="center" style="margin-bottom: 0.0001pt; text-align: center;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;X1&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid black 1.0pt; border-right: solid black 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="116"&gt;&lt;P align="center" style="margin-bottom: 0.0001pt; text-align: center;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;Y1&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid black 1.0pt; border-right: solid black 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="116"&gt;&lt;P align="center" style="margin-bottom: 0.0001pt; text-align: center;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;Z1&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border: solid black 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" valign="top" width="116"&gt;&lt;P align="center" style="margin-bottom: 0.0001pt; text-align: center;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;2&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid black 1.0pt; border-right: solid black 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="116"&gt;&lt;P align="center" style="margin-bottom: 0.0001pt; text-align: center;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;#&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid black 1.0pt; border-right: solid black 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="116"&gt;&lt;P align="center" style="margin-bottom: 0.0001pt; text-align: center;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;Y2&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid black 1.0pt; border-right: solid black 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="116"&gt;&lt;P align="center" style="margin-bottom: 0.0001pt; text-align: center;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;#&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone please tell me the logic to implement the above scenario through ABAP code?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Responses would be appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks in advance..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'book antiqua', palatino; color: #ff0000;"&gt;Moderator message : Requirement dumping not allowed, discussion locked.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Vinod Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Dec 2012 19:46:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/writing-code-logic-for-the-below-scenario/m-p/9155773#M1710784</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-12-12T19:46:23Z</dc:date>
    </item>
    <item>
      <title>Re: Writing Code logic for the below scenario</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/writing-code-logic-for-the-below-scenario/m-p/9155774#M1710785</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;It is only a pesudo code.&amp;nbsp; I didn't test it.&amp;nbsp; The idea is to search for a column in the input table.&amp;nbsp; Erase the value in the input table after you move the value to the output table.&amp;nbsp; The algorithm stops when the input table contains 0 lines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I didn't optimize the algorithm, either.&amp;nbsp; The performance is bad, O(M*N^2) where N is the lines of table and M is the number of columns.&amp;nbsp; The pesudo code is just a briefing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By the way, could anyone tell me how to write my code in an editor-like section in SDN?&amp;nbsp; I read lots of code in an editor-like section.&amp;nbsp; It is neat and beautiful, but I don't know how to use it in SDN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT itab_in ASSIGNING &amp;lt;fs_in&amp;gt;.&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;APPEND INITIAL LINE TO itab_out ASSIGNING &amp;lt;fs_out&amp;gt;.&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;lv_id = &amp;lt;fs_in&amp;gt;-id.&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;DO 3 TIMES.&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;lv_col_index = sy-index + 1.&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;PERFORM search_and_erase USING lv_col_index lv_id &lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CHANGING itab_in &amp;lt;fs_out&amp;gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;ENDDO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;IF &amp;lt;fs_out&amp;gt; IS INITIAL.&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;DELETE itab_out INDEX lines( itab_out ).&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;ELSE.&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&amp;lt;fs_out&amp;gt;-id = lv_id.&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;ENDIF. &lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM search_and_erase &lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;USING p_col_index p_id &lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;CHANGING itab_in p_out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;ASSIGN COMPONENT p_col_index OF STRUCTURE p_out TO &amp;lt;fs_target&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;LOOP AT itab_in ASSIGNING &amp;lt;fs_in_2&amp;gt; WHERE id = p_id.&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;ASSIGN COMPONENT p_col_index OF STRUCTURE &amp;lt;fs_in_2&amp;gt; TO &amp;lt;fs_source&amp;gt;.&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;IF &amp;lt;fs_source&amp;gt; IS NOT INITIAL.&lt;/P&gt;&lt;P style="padding-left: 90px;"&gt;&amp;lt;fs_target&amp;gt; = &amp;lt;fs_source&amp;gt;.&lt;/P&gt;&lt;P style="padding-left: 90px;"&gt;CLEAR &amp;lt;fs_source&amp;gt;.&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;ENDIF.&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Dec 2012 04:13:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/writing-code-logic-for-the-below-scenario/m-p/9155774#M1710785</guid>
      <dc:creator>former_member129652</dc:creator>
      <dc:date>2012-12-13T04:13:45Z</dc:date>
    </item>
  </channel>
</rss>

