<?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: regarding bdc(views problem in mm01 while uploading the data) in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-bdc-views-problem-in-mm01-while-uploading-the-data/m-p/2096681#M436620</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;        Read this code for getting the views.&lt;/P&gt;&lt;P&gt;tables: mara,&lt;/P&gt;&lt;P&gt;        t134,&lt;/P&gt;&lt;P&gt;        t133a.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of bildtab occurs 30.&lt;/P&gt;&lt;P&gt;        include structure mbildtab.&lt;/P&gt;&lt;P&gt;data: end of bildtab.&lt;/P&gt;&lt;P&gt;data: tkstatus(15),&lt;/P&gt;&lt;P&gt;      dispstatus like t130m-pstat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parameters: p_matnr like mara-matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function 'MATERIAL_INIT'&lt;/P&gt;&lt;P&gt;     exporting&lt;/P&gt;&lt;P&gt;          tcode                = 'MM02'&lt;/P&gt;&lt;P&gt;          kz_berprf            = 'X'&lt;/P&gt;&lt;P&gt;     importing&lt;/P&gt;&lt;P&gt;          tkstatus             = tkstatus&lt;/P&gt;&lt;P&gt;     exceptions&lt;/P&gt;&lt;P&gt;          no_authority         = 01.&lt;/P&gt;&lt;P&gt;call function 'SELECTION_VIEWS_FIND'&lt;/P&gt;&lt;P&gt;     exporting&lt;/P&gt;&lt;P&gt;          bildsequenz     = '21'&lt;/P&gt;&lt;P&gt;          pflegestatus    =  tkstatus"mara-pstat&lt;/P&gt;&lt;P&gt;     tables&lt;/P&gt;&lt;P&gt;          bildtab         = bildtab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*select single * from mara where matnr = p_matnr.&lt;/P&gt;&lt;P&gt;call function 'MARA_SINGLE_READ'&lt;/P&gt;&lt;P&gt;     exporting&lt;/P&gt;&lt;P&gt;          matnr             = p_matnr "material&lt;/P&gt;&lt;P&gt;     importing&lt;/P&gt;&lt;P&gt;          wmara             = mara&lt;/P&gt;&lt;P&gt;     exceptions&lt;/P&gt;&lt;P&gt;          lock_on_material  = 01&lt;/P&gt;&lt;P&gt;          lock_system_error = 02&lt;/P&gt;&lt;P&gt;          not_found         = 03&lt;/P&gt;&lt;P&gt;          others            = 04.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function 'MARA_DUMMY_STATUS'&lt;/P&gt;&lt;P&gt;     exporting&lt;/P&gt;&lt;P&gt;          wmara_in    = mara&lt;/P&gt;&lt;P&gt;     importing&lt;/P&gt;&lt;P&gt;          wmara_out   = mara&lt;/P&gt;&lt;P&gt;     exceptions&lt;/P&gt;&lt;P&gt;          call_wrong  = 1&lt;/P&gt;&lt;P&gt;          imara_error = 2&lt;/P&gt;&lt;P&gt;          tmara_error = 3&lt;/P&gt;&lt;P&gt;          others      = 4.&lt;/P&gt;&lt;P&gt;if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;  message id sy-msgid type sy-msgty number sy-msgno&lt;/P&gt;&lt;P&gt;          with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;select single * from t134 where mtart = mara-mtart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function 'ANZGSTATUS_SETZEN'&lt;/P&gt;&lt;P&gt;      exporting&lt;/P&gt;&lt;P&gt;           aktyp      = 'V'&lt;/P&gt;&lt;P&gt;           marastatus = mara-vpsta&lt;/P&gt;&lt;P&gt;           t134status = t134-pstat&lt;/P&gt;&lt;P&gt;           tkstatus   = tkstatus "mara-pstat&lt;/P&gt;&lt;P&gt;      importing&lt;/P&gt;&lt;P&gt;           anzgstatus = dispstatus&lt;/P&gt;&lt;P&gt;           tkbstatus  = tkstatus.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;translate dispstatus using ' $'..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at bildtab.&lt;/P&gt;&lt;P&gt;  if bildtab-pstat ca dispstatus.&lt;/P&gt;&lt;P&gt;     if bildtab-kzanz is initial.&lt;/P&gt;&lt;P&gt;        bildtab-kzanz = 'X'.&lt;/P&gt;&lt;P&gt;        modify bildtab.&lt;/P&gt;&lt;P&gt;     endif.&lt;/P&gt;&lt;P&gt;  else.&lt;/P&gt;&lt;P&gt;     if not bildtab-kzanz is initial.&lt;/P&gt;&lt;P&gt;        clear bildtab-kzanz.&lt;/P&gt;&lt;P&gt;        modify bildtab.&lt;/P&gt;&lt;P&gt;     endif.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Other function modules are Selection_Views_Find.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please reward if useful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 01 Apr 2007 15:45:02 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-04-01T15:45:02Z</dc:date>
    <item>
      <title>regarding bdc(views problem in mm01 while uploading the data)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-bdc-views-problem-in-mm01-while-uploading-the-data/m-p/2096680#M436619</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;&lt;/P&gt;&lt;P&gt;              i have coded a bdc in which i m using mm01 and extending the material to the different plant ,but here in some cases depending upon the material the views get changed  for solving this i have to deselect and again select the views which i want and also i have to provide the valuation type for this material, so plz suggest me  how to rectifie the views problem.......&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 31 Mar 2007 12:34:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-bdc-views-problem-in-mm01-while-uploading-the-data/m-p/2096680#M436619</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-31T12:34:44Z</dc:date>
    </item>
    <item>
      <title>Re: regarding bdc(views problem in mm01 while uploading the data)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-bdc-views-problem-in-mm01-while-uploading-the-data/m-p/2096681#M436620</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;        Read this code for getting the views.&lt;/P&gt;&lt;P&gt;tables: mara,&lt;/P&gt;&lt;P&gt;        t134,&lt;/P&gt;&lt;P&gt;        t133a.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of bildtab occurs 30.&lt;/P&gt;&lt;P&gt;        include structure mbildtab.&lt;/P&gt;&lt;P&gt;data: end of bildtab.&lt;/P&gt;&lt;P&gt;data: tkstatus(15),&lt;/P&gt;&lt;P&gt;      dispstatus like t130m-pstat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parameters: p_matnr like mara-matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function 'MATERIAL_INIT'&lt;/P&gt;&lt;P&gt;     exporting&lt;/P&gt;&lt;P&gt;          tcode                = 'MM02'&lt;/P&gt;&lt;P&gt;          kz_berprf            = 'X'&lt;/P&gt;&lt;P&gt;     importing&lt;/P&gt;&lt;P&gt;          tkstatus             = tkstatus&lt;/P&gt;&lt;P&gt;     exceptions&lt;/P&gt;&lt;P&gt;          no_authority         = 01.&lt;/P&gt;&lt;P&gt;call function 'SELECTION_VIEWS_FIND'&lt;/P&gt;&lt;P&gt;     exporting&lt;/P&gt;&lt;P&gt;          bildsequenz     = '21'&lt;/P&gt;&lt;P&gt;          pflegestatus    =  tkstatus"mara-pstat&lt;/P&gt;&lt;P&gt;     tables&lt;/P&gt;&lt;P&gt;          bildtab         = bildtab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*select single * from mara where matnr = p_matnr.&lt;/P&gt;&lt;P&gt;call function 'MARA_SINGLE_READ'&lt;/P&gt;&lt;P&gt;     exporting&lt;/P&gt;&lt;P&gt;          matnr             = p_matnr "material&lt;/P&gt;&lt;P&gt;     importing&lt;/P&gt;&lt;P&gt;          wmara             = mara&lt;/P&gt;&lt;P&gt;     exceptions&lt;/P&gt;&lt;P&gt;          lock_on_material  = 01&lt;/P&gt;&lt;P&gt;          lock_system_error = 02&lt;/P&gt;&lt;P&gt;          not_found         = 03&lt;/P&gt;&lt;P&gt;          others            = 04.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function 'MARA_DUMMY_STATUS'&lt;/P&gt;&lt;P&gt;     exporting&lt;/P&gt;&lt;P&gt;          wmara_in    = mara&lt;/P&gt;&lt;P&gt;     importing&lt;/P&gt;&lt;P&gt;          wmara_out   = mara&lt;/P&gt;&lt;P&gt;     exceptions&lt;/P&gt;&lt;P&gt;          call_wrong  = 1&lt;/P&gt;&lt;P&gt;          imara_error = 2&lt;/P&gt;&lt;P&gt;          tmara_error = 3&lt;/P&gt;&lt;P&gt;          others      = 4.&lt;/P&gt;&lt;P&gt;if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;  message id sy-msgid type sy-msgty number sy-msgno&lt;/P&gt;&lt;P&gt;          with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;select single * from t134 where mtart = mara-mtart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function 'ANZGSTATUS_SETZEN'&lt;/P&gt;&lt;P&gt;      exporting&lt;/P&gt;&lt;P&gt;           aktyp      = 'V'&lt;/P&gt;&lt;P&gt;           marastatus = mara-vpsta&lt;/P&gt;&lt;P&gt;           t134status = t134-pstat&lt;/P&gt;&lt;P&gt;           tkstatus   = tkstatus "mara-pstat&lt;/P&gt;&lt;P&gt;      importing&lt;/P&gt;&lt;P&gt;           anzgstatus = dispstatus&lt;/P&gt;&lt;P&gt;           tkbstatus  = tkstatus.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;translate dispstatus using ' $'..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at bildtab.&lt;/P&gt;&lt;P&gt;  if bildtab-pstat ca dispstatus.&lt;/P&gt;&lt;P&gt;     if bildtab-kzanz is initial.&lt;/P&gt;&lt;P&gt;        bildtab-kzanz = 'X'.&lt;/P&gt;&lt;P&gt;        modify bildtab.&lt;/P&gt;&lt;P&gt;     endif.&lt;/P&gt;&lt;P&gt;  else.&lt;/P&gt;&lt;P&gt;     if not bildtab-kzanz is initial.&lt;/P&gt;&lt;P&gt;        clear bildtab-kzanz.&lt;/P&gt;&lt;P&gt;        modify bildtab.&lt;/P&gt;&lt;P&gt;     endif.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Other function modules are Selection_Views_Find.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please reward if useful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 01 Apr 2007 15:45:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-bdc-views-problem-in-mm01-while-uploading-the-data/m-p/2096681#M436620</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-01T15:45:02Z</dc:date>
    </item>
  </channel>
</rss>

