<?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: selecting data from MVKE in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-data-from-mvke/m-p/6937758#M1486817</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SOLVED&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 24 May 2010 21:56:47 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-05-24T21:56:47Z</dc:date>
    <item>
      <title>selecting data from MVKE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-data-from-mvke/m-p/6937752#M1486811</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;I need to fetch the value of field MVGR3 from table MVKE for some MATNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using the FM  "MVKE_READ_WITH_MATNR" to fetch the value for the field MVGR3 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have written something like this :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT t_ltap INTO w_ltap.&lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'MVKE_READ_WITH_MATNR'&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        matnr                = w_ltap-matnr&lt;/P&gt;&lt;P&gt;      TABLES&lt;/P&gt;&lt;P&gt;        mvke_tab             = t_mvgr3&lt;/P&gt;&lt;P&gt;      EXCEPTIONS&lt;/P&gt;&lt;P&gt;        not_found            = 1&lt;/P&gt;&lt;P&gt;        lock_on_mvke         = 2&lt;/P&gt;&lt;P&gt;        lock_system_error    = 3&lt;/P&gt;&lt;P&gt;        enqueue_mode_changed = 4&lt;/P&gt;&lt;P&gt;        OTHERS               = 5.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;t_ltap table contains values for material no.So looping at that tableIm fetcing the MVGR3 field for each matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However when i run this FM explicityly in SE37,I can get the values for each material.However When i call the FM through my program ,i get the exception 1 ie. SY-SUBRC = 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How is this?Please help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 May 2010 19:48:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-data-from-mvke/m-p/6937752#M1486811</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-24T19:48:21Z</dc:date>
    </item>
    <item>
      <title>Re: selecting data from MVKE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-data-from-mvke/m-p/6937753#M1486812</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hard to tell without the rest of your code, but most likely you aren't sending the internal value of the material number in the code-based function call if you are in fact using the same material number for both tests or you didn't refresh the buffer.  The SE37 test workbench is dynpro-based and thus converts the values automatically.  Did you select the values from LTAP directly?  Debugging the function would answer your question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You would be better off selecting the values with a FOR ALL ENTRIES process as well.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 May 2010 20:02:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-data-from-mvke/m-p/6937753#M1486812</guid>
      <dc:creator>brad_bohn</dc:creator>
      <dc:date>2010-05-24T20:02:03Z</dc:date>
    </item>
    <item>
      <title>Re: selecting data from MVKE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-data-from-mvke/m-p/6937754#M1486813</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;Try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL FUNCTION 'MVKE_READ_WITH_MATNR'
EXPORTING
   matnr = w_ltap-matnr
   KZRFB = 'X'
  ...&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Leandro Mengue&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 May 2010 20:04:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-data-from-mvke/m-p/6937754#M1486813</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-24T20:04:50Z</dc:date>
    </item>
    <item>
      <title>Re: selecting data from MVKE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-data-from-mvke/m-p/6937755#M1486814</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Brad,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried using "FOR ALL ENTRIES " in LTAP and then selecting data from MVKE,but still im not getting the entries.&lt;/P&gt;&lt;P&gt;NOTE : Im usng only MATNR as the key for selection of data from MVKE.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 May 2010 21:36:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-data-from-mvke/m-p/6937755#M1486814</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-24T21:36:45Z</dc:date>
    </item>
    <item>
      <title>Re: selecting data from MVKE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-data-from-mvke/m-p/6937756#M1486815</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Leandro,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tried passing the additional parameter as u suggested but still the sam eproblem.Please advise.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 May 2010 21:37:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-data-from-mvke/m-p/6937756#M1486815</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-24T21:37:12Z</dc:date>
    </item>
    <item>
      <title>Re: selecting data from MVKE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-data-from-mvke/m-p/6937757#M1486816</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi - I have written below code and this is working fine for me try the same. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
TYPES : BEGIN OF ty_mara,
          matnr TYPE matnr,
        END OF ty_mara.

DATA : i_mara TYPE STANDARD TABLE OF ty_mara,
       i_mvke TYPE STANDARD TABLE OF MVKE,
       w_mara TYPE ty_mara,
       v_count TYPE c.

SELECT matnr
  FROM mara
  into w_mara.

  CALL FUNCTION 'MVKE_READ_WITH_MATNR'
    EXPORTING
      matnr                = w_mara-matnr
    TABLES
      mvke_tab             = i_mvke
    EXCEPTIONS
      not_found            = 1
      lock_on_mvke         = 2
      lock_system_error    = 3
      enqueue_mode_changed = 4
      OTHERS               = 5.


  v_count = v_count + 1.

  if v_count eq 5.
    exit.
  endif.
ENDSELECT.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 May 2010 21:52:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-data-from-mvke/m-p/6937757#M1486816</guid>
      <dc:creator>former_member376453</dc:creator>
      <dc:date>2010-05-24T21:52:36Z</dc:date>
    </item>
    <item>
      <title>Re: selecting data from MVKE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-data-from-mvke/m-p/6937758#M1486817</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SOLVED&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 May 2010 21:56:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-data-from-mvke/m-p/6937758#M1486817</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-24T21:56:47Z</dc:date>
    </item>
    <item>
      <title>Re: selecting data from MVKE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-data-from-mvke/m-p/6937759#M1486818</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's probably a conversion exit problem. You will likely have to pass your material number through the exit before doing the SELECT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 May 2010 21:58:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-data-from-mvke/m-p/6937759#M1486818</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-24T21:58:47Z</dc:date>
    </item>
    <item>
      <title>Re: selecting data from MVKE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-data-from-mvke/m-p/6937760#M1486819</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;Please, post your solution (may be help another users).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Leandro Mengue&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 May 2010 22:42:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-data-from-mvke/m-p/6937760#M1486819</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-24T22:42:26Z</dc:date>
    </item>
    <item>
      <title>Re: selecting data from MVKE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-data-from-mvke/m-p/6937761#M1486820</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So, you solved it.  Was it the internal/external format issue I mentioned?  If you solve an issue yourself, you need to post the resolution so that others will benefit from your mistakes/experience if they search and find your post.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 May 2010 12:53:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-data-from-mvke/m-p/6937761#M1486820</guid>
      <dc:creator>brad_bohn</dc:creator>
      <dc:date>2010-05-25T12:53:17Z</dc:date>
    </item>
    <item>
      <title>Re: selecting data from MVKE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-data-from-mvke/m-p/6937762#M1486821</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes Brad.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It was the format issue for material no.I was removing the leading zroes and hence the issue.&lt;/P&gt;&lt;P&gt;Thanks for all the help.points rewarded!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 May 2010 22:33:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-data-from-mvke/m-p/6937762#M1486821</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-25T22:33:41Z</dc:date>
    </item>
  </channel>
</rss>

