<?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 Transaction CS12 problem in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/transaction-cs12-problem/m-p/1885843#M371552</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to populate the ALV Grid shown in the CS12 transaction in a program without calling the transaction ,I have written the code to select the data from the tables , but I am not sure whether it will give all the correct data or not, if some field is missing please suggest from which tables i have to take the data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT matnr&lt;/P&gt;&lt;P&gt;       werks&lt;/P&gt;&lt;P&gt;       stlal&lt;/P&gt;&lt;P&gt;       stlnr&lt;/P&gt;&lt;P&gt;       FROM mast&lt;/P&gt;&lt;P&gt;       INTO CORRESPONDING FIELDS OF&lt;/P&gt;&lt;P&gt;       TABLE it_mast&lt;/P&gt;&lt;P&gt;       WHERE matnr IN p_matnr&lt;/P&gt;&lt;P&gt;       AND   werks IN p_werks&lt;/P&gt;&lt;P&gt;       AND   stlal IN p_stlal.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*selecting material description from makt&lt;/P&gt;&lt;P&gt;IF it_mast[] IS NOT INITIAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SELECT maktx&lt;/P&gt;&lt;P&gt;         FROM makt&lt;/P&gt;&lt;P&gt;         INTO CORRESPONDING FIELDS OF&lt;/P&gt;&lt;P&gt;         TABLE it_makt FOR ALL ENTRIES IN it_mast&lt;/P&gt;&lt;P&gt;         WHERE matnr = it_mast-matnr.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;*selecting information about BOM Item from table STPO&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF it_mast[] IS NOT INITIAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SELECT menge&lt;/P&gt;&lt;P&gt;         postp&lt;/P&gt;&lt;P&gt;         meins&lt;/P&gt;&lt;P&gt;         aennr&lt;/P&gt;&lt;P&gt;         pswrk&lt;/P&gt;&lt;P&gt;         stlnr&lt;/P&gt;&lt;P&gt;         stlkn&lt;/P&gt;&lt;P&gt;         FROM stpo&lt;/P&gt;&lt;P&gt;         INTO CORRESPONDING FIELDS OF&lt;/P&gt;&lt;P&gt;         TABLE it_stpo FOR ALL ENTRIES IN it_mast WHERE&lt;/P&gt;&lt;P&gt;         stlnr = it_mast-stlnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 13 Jan 2007 04:25:05 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-01-13T04:25:05Z</dc:date>
    <item>
      <title>Transaction CS12 problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transaction-cs12-problem/m-p/1885843#M371552</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to populate the ALV Grid shown in the CS12 transaction in a program without calling the transaction ,I have written the code to select the data from the tables , but I am not sure whether it will give all the correct data or not, if some field is missing please suggest from which tables i have to take the data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT matnr&lt;/P&gt;&lt;P&gt;       werks&lt;/P&gt;&lt;P&gt;       stlal&lt;/P&gt;&lt;P&gt;       stlnr&lt;/P&gt;&lt;P&gt;       FROM mast&lt;/P&gt;&lt;P&gt;       INTO CORRESPONDING FIELDS OF&lt;/P&gt;&lt;P&gt;       TABLE it_mast&lt;/P&gt;&lt;P&gt;       WHERE matnr IN p_matnr&lt;/P&gt;&lt;P&gt;       AND   werks IN p_werks&lt;/P&gt;&lt;P&gt;       AND   stlal IN p_stlal.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*selecting material description from makt&lt;/P&gt;&lt;P&gt;IF it_mast[] IS NOT INITIAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SELECT maktx&lt;/P&gt;&lt;P&gt;         FROM makt&lt;/P&gt;&lt;P&gt;         INTO CORRESPONDING FIELDS OF&lt;/P&gt;&lt;P&gt;         TABLE it_makt FOR ALL ENTRIES IN it_mast&lt;/P&gt;&lt;P&gt;         WHERE matnr = it_mast-matnr.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;*selecting information about BOM Item from table STPO&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF it_mast[] IS NOT INITIAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SELECT menge&lt;/P&gt;&lt;P&gt;         postp&lt;/P&gt;&lt;P&gt;         meins&lt;/P&gt;&lt;P&gt;         aennr&lt;/P&gt;&lt;P&gt;         pswrk&lt;/P&gt;&lt;P&gt;         stlnr&lt;/P&gt;&lt;P&gt;         stlkn&lt;/P&gt;&lt;P&gt;         FROM stpo&lt;/P&gt;&lt;P&gt;         INTO CORRESPONDING FIELDS OF&lt;/P&gt;&lt;P&gt;         TABLE it_stpo FOR ALL ENTRIES IN it_mast WHERE&lt;/P&gt;&lt;P&gt;         stlnr = it_mast-stlnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 13 Jan 2007 04:25:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transaction-cs12-problem/m-p/1885843#M371552</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-13T04:25:05Z</dc:date>
    </item>
    <item>
      <title>Re: Transaction CS12 problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transaction-cs12-problem/m-p/1885844#M371553</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;please try to use &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CS_BOM_EXPL_MAT_V2 fm it can give you lot of things by passing the header material you can get all the information about BOM.&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;shiba dutta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 13 Jan 2007 04:42:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transaction-cs12-problem/m-p/1885844#M371553</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-13T04:42:13Z</dc:date>
    </item>
  </channel>
</rss>

