<?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: data selected only in debug mode in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-selected-only-in-debug-mode/m-p/11944883#M1965916</link>
    <description>&lt;P&gt;Hello , &lt;/P&gt;&lt;P&gt;Thank you for answer. What I need to do is after migo is done and material  document is created &lt;/P&gt;&lt;P&gt;I want to continue  with processing in Z program. The problem is when I set  function parameter  &lt;/P&gt;&lt;P&gt;i_leave_after_post = 'X'. The flow gets out migo straigth after execution of 'MIGO_DIALOG' so it doesn't get to  logic I developed .&lt;/P&gt;&lt;P&gt;I other case when parameter  i_leave_after_post in BLANK , user needs to hit the 'BACK' button to continue fow.&lt;/P&gt;&lt;P&gt;I didi try with user exits after ( posting is done in migo  and material document is created) ,but all of them  comes in execution after creation of material document but BEFORE comit is  done. &lt;/P&gt;&lt;P&gt;So marterial documen, that I ma suposed to use in my program is  not valid .&lt;/P&gt;</description>
    <pubDate>Tue, 16 Apr 2019 13:18:03 GMT</pubDate>
    <dc:creator>k_gjergja</dc:creator>
    <dc:date>2019-04-16T13:18:03Z</dc:date>
    <item>
      <title>data selected only in debug mode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-selected-only-in-debug-mode/m-p/11944881#M1965914</link>
      <description>&lt;P&gt;Hello , &lt;/P&gt;
  &lt;P&gt;Aftere execution function 'MIGO_DIALOG' i need to select data from MKPF table usin values in parameters &lt;/P&gt;
  &lt;P&gt;MBN and MJA as key fields ( mkpf-mblnr for mkpf-mblnr). &lt;/P&gt;
  &lt;P&gt;Problem is that selection gives results ONLY in debuge mode. &lt;/P&gt;
  &lt;P&gt;When I run the program (without break points) data is NOT selected &lt;/P&gt;
  &lt;P&gt;Please advice &lt;/P&gt;
  &lt;P&gt;-code&lt;/P&gt;
  &lt;P&gt;GET PARAMETER ID 'MBN' FIELD gv_mblnr.&lt;/P&gt;
  &lt;P&gt; GET PARAMETER ID 'MJA' FIELD gv_mjahr.&lt;BR /&gt;&lt;/P&gt;
  &lt;P&gt;SELECT SINGLE * FROM mkpf INTO ls_mkpf &lt;/P&gt;
  &lt;P&gt; WHERE mblnr = gv_mblnr &lt;/P&gt;
  &lt;P&gt; AND mjahr = gv_mjahr .&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Apr 2019 13:49:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-selected-only-in-debug-mode/m-p/11944881#M1965914</guid>
      <dc:creator>k_gjergja</dc:creator>
      <dc:date>2019-04-03T13:49:04Z</dc:date>
    </item>
    <item>
      <title>Re: data selected only in debug mode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-selected-only-in-debug-mode/m-p/11944882#M1965915</link>
      <description>&lt;P&gt;(The MIGO dialog is executed in another LUW and use a COMMIT AND WAIT as almost every SAP transaction)&lt;/P&gt;&lt;P&gt;You have to wait until the update task are run and database buffer are updated (FAQ)&lt;/P&gt;</description>
      <pubDate>Wed, 03 Apr 2019 14:49:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-selected-only-in-debug-mode/m-p/11944882#M1965915</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2019-04-03T14:49:49Z</dc:date>
    </item>
    <item>
      <title>Re: data selected only in debug mode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-selected-only-in-debug-mode/m-p/11944883#M1965916</link>
      <description>&lt;P&gt;Hello , &lt;/P&gt;&lt;P&gt;Thank you for answer. What I need to do is after migo is done and material  document is created &lt;/P&gt;&lt;P&gt;I want to continue  with processing in Z program. The problem is when I set  function parameter  &lt;/P&gt;&lt;P&gt;i_leave_after_post = 'X'. The flow gets out migo straigth after execution of 'MIGO_DIALOG' so it doesn't get to  logic I developed .&lt;/P&gt;&lt;P&gt;I other case when parameter  i_leave_after_post in BLANK , user needs to hit the 'BACK' button to continue fow.&lt;/P&gt;&lt;P&gt;I didi try with user exits after ( posting is done in migo  and material document is created) ,but all of them  comes in execution after creation of material document but BEFORE comit is  done. &lt;/P&gt;&lt;P&gt;So marterial documen, that I ma suposed to use in my program is  not valid .&lt;/P&gt;</description>
      <pubDate>Tue, 16 Apr 2019 13:18:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-selected-only-in-debug-mode/m-p/11944883#M1965916</guid>
      <dc:creator>k_gjergja</dc:creator>
      <dc:date>2019-04-16T13:18:03Z</dc:date>
    </item>
    <item>
      <title>Re: data selected only in debug mode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-selected-only-in-debug-mode/m-p/11944884#M1965917</link>
      <description>&lt;P&gt;I Agree with Raymond Giuseppi, U need to wait till tables are getting updated. When you execute in debug mode, program will have sufficient time to update tables.&lt;/P&gt;&lt;P&gt;Please get me more details, I have done such requirement.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Apr 2019 13:44:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-selected-only-in-debug-mode/m-p/11944884#M1965917</guid>
      <dc:creator>pramod_singh4</dc:creator>
      <dc:date>2019-04-16T13:44:31Z</dc:date>
    </item>
    <item>
      <title>Re: data selected only in debug mode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-selected-only-in-debug-mode/m-p/11944885#M1965918</link>
      <description>&lt;P&gt;Indeed   WAIT UP 30 SECONDS  solved the problem &lt;/P&gt;&lt;P&gt;Thank you &lt;/P&gt;</description>
      <pubDate>Wed, 17 Apr 2019 07:11:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-selected-only-in-debug-mode/m-p/11944885#M1965918</guid>
      <dc:creator>k_gjergja</dc:creator>
      <dc:date>2019-04-17T07:11:16Z</dc:date>
    </item>
    <item>
      <title>Re: data selected only in debug mode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-selected-only-in-debug-mode/m-p/11944886#M1965919</link>
      <description>&lt;P&gt;To avoid waiting an arbitrary number of seconds, you may tell the system to do the updates synchronously (they are asynchronous by default), by using a batch input with the parameter UPDATE 'S' or OPTIONS FROM with ctu_params-updmode = 'S'. That way, all COMMIT WORK will be considered as being COMMIT WORK AND WAIT. For example :&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA ctu_params TYPE ctu_params.
DATA bdcdata TYPE TABLE OF bdcdata.
ctu_params-updmode = 'S'. " synchronous updates 
CALL TRANSACTION '...' USING bdcdata OPTIONS FROM ctu_params.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;In your case, you may create a custom transaction code which calls MIGO_DIALOG. You do a CALL TRANSACTION as above + ctu_params-dismode = 'E' because MIGO_DIALOG displays screens, and you must use RACOMMIT because maybe the Save action does more than one COMMIT WORK:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;ctu_params-dismode = 'E'. " keep screen displayed
ctu_params-racommit = 'X'. " continue after first COMMIT
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Note that you pass an empty BDCDATA internal table to USING.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Apr 2019 19:31:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-selected-only-in-debug-mode/m-p/11944886#M1965919</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2019-04-17T19:31:44Z</dc:date>
    </item>
  </channel>
</rss>

