<?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: Get OT immediatly after processing bapi BAPI_REPMANCONF1_CREATE_MTS in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-ot-immediatly-after-processing-bapi-bapi-repmanconf1-create-mts/m-p/11211168#M1910933</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Let me clarify the problem:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
&lt;P&gt;.&lt;/P&gt;
&lt;P&gt;.&lt;/P&gt;
&lt;P&gt;.&lt;/P&gt;
&lt;P&gt;set update local&lt;/P&gt;
&lt;P&gt;call function 'BAPI_REPMANCONF1_CREATE_MTS'&lt;/P&gt;
&lt;P&gt;.&lt;/P&gt;
&lt;P&gt;.&lt;/P&gt;
&lt;P&gt;.&lt;/P&gt;
&lt;P&gt;if ( t_return-type eq 'S' ) or (t_return-type eq ' ')&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;commit work and wait&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;do.....&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;select single b~tanum&lt;/P&gt;
&lt;P&gt;into ot&lt;/P&gt;
&lt;P&gt;from mseg as a inner join ltbp as b on&lt;/P&gt;
&lt;P&gt;a~lgnum eq b~lgnum and&lt;/P&gt;
&lt;P&gt;a~tbnum eq b~tbnum and&lt;BR /&gt;a~tbpos&amp;nbsp; eq b~tbpos&lt;/P&gt;
&lt;P&gt;where a~mblnr = belnr.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;if sy-subrc eq 0.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; exit.&lt;/P&gt;
&lt;P&gt;else.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; wait up to 3 seconds.&lt;/P&gt;
&lt;P&gt;endif.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;enddo.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The issue is that I am not getting the Transfer Order Number at runtime. I need to show the TO before the end of the report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please help me?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;Joao Gaia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 21 Aug 2015 18:20:35 GMT</pubDate>
    <dc:creator>joo_gaia</dc:creator>
    <dc:date>2015-08-21T18:20:35Z</dc:date>
    <item>
      <title>Get OT immediatly after processing bapi BAPI_REPMANCONF1_CREATE_MTS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-ot-immediatly-after-processing-bapi-bapi-repmanconf1-create-mts/m-p/11211167#M1910932</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;The requirement is to develop a custom program that after runs BAPI_REPMANCONF1_CREATE_MTS and BAPI_TRANSACTION_COMMIT exporting wait = 'X'....&lt;/P&gt;&lt;P&gt;At the same program I need to obtain the OT number. The problem is that although everthing runs OK - I can see OT at LB03 transaction after the end of the program - I can't obtain the OT number at runtime.&lt;/P&gt;&lt;P&gt;I tried:&lt;/P&gt;&lt;P&gt;- BAPI_TRANSACTION_COMMIT exporting WAIT = 'X' ;&lt;/P&gt;&lt;P&gt;- wait up to '5' seconds&lt;/P&gt;&lt;P&gt;- do ... enddo&lt;/P&gt;&lt;P&gt;- commit work and wait&lt;/P&gt;&lt;P&gt;but nothing is working.&lt;/P&gt;&lt;P&gt;If I stop the program and debug it, then my SELECT to obtain the OT number, runs OK.&lt;/P&gt;&lt;P&gt;Probably there is a delay between the creation of the OT and the end of the program.&lt;/P&gt;&lt;P&gt;Could you help me?&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;Joao Gaia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Aug 2015 21:29:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-ot-immediatly-after-processing-bapi-bapi-repmanconf1-create-mts/m-p/11211167#M1910932</guid>
      <dc:creator>jgaia</dc:creator>
      <dc:date>2015-08-19T21:29:27Z</dc:date>
    </item>
    <item>
      <title>Re: Get OT immediatly after processing bapi BAPI_REPMANCONF1_CREATE_MTS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-ot-immediatly-after-processing-bapi-bapi-repmanconf1-create-mts/m-p/11211168#M1910933</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Let me clarify the problem:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
&lt;P&gt;.&lt;/P&gt;
&lt;P&gt;.&lt;/P&gt;
&lt;P&gt;.&lt;/P&gt;
&lt;P&gt;set update local&lt;/P&gt;
&lt;P&gt;call function 'BAPI_REPMANCONF1_CREATE_MTS'&lt;/P&gt;
&lt;P&gt;.&lt;/P&gt;
&lt;P&gt;.&lt;/P&gt;
&lt;P&gt;.&lt;/P&gt;
&lt;P&gt;if ( t_return-type eq 'S' ) or (t_return-type eq ' ')&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;commit work and wait&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;do.....&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;select single b~tanum&lt;/P&gt;
&lt;P&gt;into ot&lt;/P&gt;
&lt;P&gt;from mseg as a inner join ltbp as b on&lt;/P&gt;
&lt;P&gt;a~lgnum eq b~lgnum and&lt;/P&gt;
&lt;P&gt;a~tbnum eq b~tbnum and&lt;BR /&gt;a~tbpos&amp;nbsp; eq b~tbpos&lt;/P&gt;
&lt;P&gt;where a~mblnr = belnr.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;if sy-subrc eq 0.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; exit.&lt;/P&gt;
&lt;P&gt;else.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; wait up to 3 seconds.&lt;/P&gt;
&lt;P&gt;endif.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;enddo.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The issue is that I am not getting the Transfer Order Number at runtime. I need to show the TO before the end of the report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please help me?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;Joao Gaia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Aug 2015 18:20:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-ot-immediatly-after-processing-bapi-bapi-repmanconf1-create-mts/m-p/11211168#M1910933</guid>
      <dc:creator>joo_gaia</dc:creator>
      <dc:date>2015-08-21T18:20:35Z</dc:date>
    </item>
    <item>
      <title>Re: Get OT immediatly after processing bapi BAPI_REPMANCONF1_CREATE_MTS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-ot-immediatly-after-processing-bapi-bapi-repmanconf1-create-mts/m-p/11211169#M1910934</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi João&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The OT creation is called in the update process, after the confirmation. That means, it happens after the BAPI commit. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you get the number when your are running the loop and waiting for 3 seconds?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;BR /&gt;Caetano &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Aug 2015 19:13:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-ot-immediatly-after-processing-bapi-bapi-repmanconf1-create-mts/m-p/11211169#M1910934</guid>
      <dc:creator>Caetano</dc:creator>
      <dc:date>2015-08-21T19:13:04Z</dc:date>
    </item>
    <item>
      <title>Re: Get OT immediatly after processing bapi BAPI_REPMANCONF1_CREATE_MTS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-ot-immediatly-after-processing-bapi-bapi-repmanconf1-create-mts/m-p/11211170#M1910935</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Caetano&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I debug the program I can see that the select statment is OK - I get the OT number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the strange thing is that when I run the program (in fact an&amp;nbsp; "Z"&amp;nbsp; RFC ) , I can't get the OT number and the WAIT instruction is not working. But after the end of the program, I can see the OT number OK in the transaction LB03.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please advise?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;Joao Gaia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Aug 2015 20:59:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-ot-immediatly-after-processing-bapi-bapi-repmanconf1-create-mts/m-p/11211170#M1910935</guid>
      <dc:creator>joo_gaia</dc:creator>
      <dc:date>2015-08-21T20:59:03Z</dc:date>
    </item>
  </channel>
</rss>

