<?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 ALV GRID MODIFICATIONS in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-modifications/m-p/2058337#M425111</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;here is one field in the field catalog...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;fieldcatalog-fieldname = 'LGOBE'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-seltext_m = 'ST.LOC DESCRIPTION'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-col_pos = 14.&lt;/P&gt;&lt;P&gt;  fieldcatalog-ref_tabname = 'T001L'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-ref_fieldname = 'LGOBE'.&lt;/P&gt;&lt;P&gt;  APPEND fieldcatalog TO fieldcatalog.&lt;/P&gt;&lt;P&gt;  CLEAR fieldcatalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I designed this same field 3 times to get the different details in different columns&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and select statements...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT ebeln aedat ekgrp ekorg lifnr&lt;/P&gt;&lt;P&gt;         INTO CORRESPONDING FIELDS OF TABLE IT_EKKO_HDR FROM ekko&lt;/P&gt;&lt;P&gt;          WHERE lifnr IN p_lifnr&lt;/P&gt;&lt;P&gt;          AND ebeln IN p_ebeln&lt;/P&gt;&lt;P&gt;          AND ekgrp IN p_ekgrp&lt;/P&gt;&lt;P&gt;          AND aedat IN p_aedat&lt;/P&gt;&lt;P&gt;          AND ernam IN p_ernam.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SELECT  ekpo~ebeln&lt;/P&gt;&lt;P&gt;          ekpo~ebelp&lt;/P&gt;&lt;P&gt;          ekpo~menge&lt;/P&gt;&lt;P&gt;          ekpo~meins&lt;/P&gt;&lt;P&gt;          ekpo~matnr&lt;/P&gt;&lt;P&gt;          ekpo~txz01&lt;/P&gt;&lt;P&gt;          ekpo~idnlf&lt;/P&gt;&lt;P&gt;          MARD~WERKS&lt;/P&gt;&lt;P&gt;          mard~lgort&lt;/P&gt;&lt;P&gt;          mard~lgpbe&lt;/P&gt;&lt;P&gt;          t001l~lgobe&lt;/P&gt;&lt;P&gt;          ekes~menge&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;         eket~wemng&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  INTO TABLE it_ekko_itm FROM ekpo&lt;/P&gt;&lt;P&gt;  INNER JOIN eket ON ekpo&lt;SUB&gt;ebeln = eket&lt;/SUB&gt;ebeln AND ekpo&lt;SUB&gt;ebelp = eket&lt;/SUB&gt;ebelp&lt;/P&gt;&lt;P&gt;  INNER JOIN t001l ON ekpo&lt;SUB&gt;werks = t001l&lt;/SUB&gt;werks&lt;/P&gt;&lt;P&gt;  INNER JOIN mard ON ekpo&lt;SUB&gt;matnr = mard&lt;/SUB&gt;matnr AND ekpo&lt;SUB&gt;werks = mard&lt;/SUB&gt;werks&lt;/P&gt;&lt;P&gt;  INNER JOIN ekes ON ekpo&lt;SUB&gt;ebeln = ekes&lt;/SUB&gt;ebeln AND ekpo&lt;SUB&gt;ebelp = ekes&lt;/SUB&gt;ebelp&lt;/P&gt;&lt;P&gt;  FOR ALL entries IN it_ekko_hdr WHERE ekpo~ebeln = it_ekko_hdr-ebeln&lt;/P&gt;&lt;P&gt;                                   AND ekpo~matnr IN p_matnr.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                                  AND eket~eindt IN p_eindt.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT IT_EKKO_itm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    MOVE-CORRESPONDING IT_EKKO_ITM TO IT_EKKO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    READ TABLE IT_EKKO_HDR WITH KEY EBELN = IT_EKKO-EBELN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    IF SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      IT_EKKO-aedat = IT_EKKO_HDR-AEDAT.&lt;/P&gt;&lt;P&gt;      IT_EKKO-ekgrp = IT_EKKO_HDR-EKGRP.&lt;/P&gt;&lt;P&gt;      IT_EKKO-ekorg = IT_EKKO_HDR-EKORG.&lt;/P&gt;&lt;P&gt;      IT_EKKO-lifnr = IT_EKKO_HDR-LIFNR.&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;    APPEND IT_EKKO.&lt;/P&gt;&lt;P&gt;    CLEAR: IT_EKKO.&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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ya with this coding, I am getting the result like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;St location 1    TEST2&lt;/P&gt;&lt;P&gt;St location 2    TEST2&lt;/P&gt;&lt;P&gt;St location 3    TEST2&lt;/P&gt;&lt;P&gt;Returns Location TEST2&lt;/P&gt;&lt;P&gt;St location 1    TEST1&lt;/P&gt;&lt;P&gt;St location 2    TEST1&lt;/P&gt;&lt;P&gt;St location 3    TEST1&lt;/P&gt;&lt;P&gt;Returns Location TEST1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but what i want is, I have to seperate the same field like for the storage location here i am having 3 different descriptions, i have to maintain those in different colums ... so the output should be&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;storagelocation1 test1 storagelocation2 test2 storagelocation3 test3.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can anyone guide me to distribute the data from the select statement so that i can get the storage location in different columns&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;plz its bit urgent&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;/P&gt;&lt;P&gt;SIRI&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 22 Mar 2007 16:03:12 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-03-22T16:03:12Z</dc:date>
    <item>
      <title>ALV GRID MODIFICATIONS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-modifications/m-p/2058337#M425111</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;here is one field in the field catalog...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;fieldcatalog-fieldname = 'LGOBE'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-seltext_m = 'ST.LOC DESCRIPTION'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-col_pos = 14.&lt;/P&gt;&lt;P&gt;  fieldcatalog-ref_tabname = 'T001L'.&lt;/P&gt;&lt;P&gt;  fieldcatalog-ref_fieldname = 'LGOBE'.&lt;/P&gt;&lt;P&gt;  APPEND fieldcatalog TO fieldcatalog.&lt;/P&gt;&lt;P&gt;  CLEAR fieldcatalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I designed this same field 3 times to get the different details in different columns&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and select statements...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT ebeln aedat ekgrp ekorg lifnr&lt;/P&gt;&lt;P&gt;         INTO CORRESPONDING FIELDS OF TABLE IT_EKKO_HDR FROM ekko&lt;/P&gt;&lt;P&gt;          WHERE lifnr IN p_lifnr&lt;/P&gt;&lt;P&gt;          AND ebeln IN p_ebeln&lt;/P&gt;&lt;P&gt;          AND ekgrp IN p_ekgrp&lt;/P&gt;&lt;P&gt;          AND aedat IN p_aedat&lt;/P&gt;&lt;P&gt;          AND ernam IN p_ernam.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SELECT  ekpo~ebeln&lt;/P&gt;&lt;P&gt;          ekpo~ebelp&lt;/P&gt;&lt;P&gt;          ekpo~menge&lt;/P&gt;&lt;P&gt;          ekpo~meins&lt;/P&gt;&lt;P&gt;          ekpo~matnr&lt;/P&gt;&lt;P&gt;          ekpo~txz01&lt;/P&gt;&lt;P&gt;          ekpo~idnlf&lt;/P&gt;&lt;P&gt;          MARD~WERKS&lt;/P&gt;&lt;P&gt;          mard~lgort&lt;/P&gt;&lt;P&gt;          mard~lgpbe&lt;/P&gt;&lt;P&gt;          t001l~lgobe&lt;/P&gt;&lt;P&gt;          ekes~menge&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;         eket~wemng&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  INTO TABLE it_ekko_itm FROM ekpo&lt;/P&gt;&lt;P&gt;  INNER JOIN eket ON ekpo&lt;SUB&gt;ebeln = eket&lt;/SUB&gt;ebeln AND ekpo&lt;SUB&gt;ebelp = eket&lt;/SUB&gt;ebelp&lt;/P&gt;&lt;P&gt;  INNER JOIN t001l ON ekpo&lt;SUB&gt;werks = t001l&lt;/SUB&gt;werks&lt;/P&gt;&lt;P&gt;  INNER JOIN mard ON ekpo&lt;SUB&gt;matnr = mard&lt;/SUB&gt;matnr AND ekpo&lt;SUB&gt;werks = mard&lt;/SUB&gt;werks&lt;/P&gt;&lt;P&gt;  INNER JOIN ekes ON ekpo&lt;SUB&gt;ebeln = ekes&lt;/SUB&gt;ebeln AND ekpo&lt;SUB&gt;ebelp = ekes&lt;/SUB&gt;ebelp&lt;/P&gt;&lt;P&gt;  FOR ALL entries IN it_ekko_hdr WHERE ekpo~ebeln = it_ekko_hdr-ebeln&lt;/P&gt;&lt;P&gt;                                   AND ekpo~matnr IN p_matnr.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                                  AND eket~eindt IN p_eindt.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT IT_EKKO_itm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    MOVE-CORRESPONDING IT_EKKO_ITM TO IT_EKKO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    READ TABLE IT_EKKO_HDR WITH KEY EBELN = IT_EKKO-EBELN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    IF SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      IT_EKKO-aedat = IT_EKKO_HDR-AEDAT.&lt;/P&gt;&lt;P&gt;      IT_EKKO-ekgrp = IT_EKKO_HDR-EKGRP.&lt;/P&gt;&lt;P&gt;      IT_EKKO-ekorg = IT_EKKO_HDR-EKORG.&lt;/P&gt;&lt;P&gt;      IT_EKKO-lifnr = IT_EKKO_HDR-LIFNR.&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;    APPEND IT_EKKO.&lt;/P&gt;&lt;P&gt;    CLEAR: IT_EKKO.&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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ya with this coding, I am getting the result like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;St location 1    TEST2&lt;/P&gt;&lt;P&gt;St location 2    TEST2&lt;/P&gt;&lt;P&gt;St location 3    TEST2&lt;/P&gt;&lt;P&gt;Returns Location TEST2&lt;/P&gt;&lt;P&gt;St location 1    TEST1&lt;/P&gt;&lt;P&gt;St location 2    TEST1&lt;/P&gt;&lt;P&gt;St location 3    TEST1&lt;/P&gt;&lt;P&gt;Returns Location TEST1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but what i want is, I have to seperate the same field like for the storage location here i am having 3 different descriptions, i have to maintain those in different colums ... so the output should be&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;storagelocation1 test1 storagelocation2 test2 storagelocation3 test3.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can anyone guide me to distribute the data from the select statement so that i can get the storage location in different columns&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;plz its bit urgent&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;/P&gt;&lt;P&gt;SIRI&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Mar 2007 16:03:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-modifications/m-p/2058337#M425111</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-22T16:03:12Z</dc:date>
    </item>
    <item>
      <title>Re: ALV GRID MODIFICATIONS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-modifications/m-p/2058338#M425112</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;If I understand you good...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You declare 3 fields for LGOBE, for example LGOBE1, LGOBE2, LGOBE3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the selection, you can code it like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT mard&lt;SUB&gt;lgobe AS lgobe1 mard&lt;/SUB&gt;lgobe AS lgobe2 mard~lgobe AS lgobe3 ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This coding will move the mard~lgobe value into the 3 fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Tamá&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Mar 2007 17:16:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-modifications/m-p/2058338#M425112</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-22T17:16:13Z</dc:date>
    </item>
  </channel>
</rss>

