<?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: Delay the posting with Bapi in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/delay-the-posting-with-bapi/m-p/7657324#M1573714</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;@Keshav, Would we be able to post another goods movement from the BADI of the preceding goods movement? wouldn't it end up in the same LUW (unless we are going for V2 update)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a option to configure a Output type for Y08 posting? and this output type can be set up to generate a MBGMCR*  IDOC  for 541 posting?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 Mar 2011 19:45:16 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-03-03T19:45:16Z</dc:date>
    <item>
      <title>Delay the posting with Bapi</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delay-the-posting-with-bapi/m-p/7657318#M1573708</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;&lt;/P&gt;&lt;P&gt;thre 3 types of move ment type postings,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;101,541and y08&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here iam Posting movement type 541 using bapi BAPI_GOODSMVT_CREATE&lt;/P&gt;&lt;P&gt;before that system posting 101&lt;/P&gt;&lt;P&gt;after 541 posting yo8 is posting sytem only&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sequence is  101(system posting) --&amp;gt; 541with custem programe using Bapi ---&amp;gt; yo8 (system posting)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my requirement is  delay the posting of 541 upto completing of y08 ( sysem posting)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Required sequence is  101 (system posting) --&amp;gt; yo8 (system posting) --&amp;gt;541with custem programe using Bapi &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how can i resolve this problem , Please advice me .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&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;Saimedha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Mar 2011 12:12:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delay-the-posting-with-bapi/m-p/7657318#M1573708</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-03-03T12:12:54Z</dc:date>
    </item>
    <item>
      <title>Re: Delay the posting with Bapi</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delay-the-posting-with-bapi/m-p/7657319#M1573709</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;at the end of bapi you can put this piece of code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

          call function 'BAPI_TRANSACTION_COMMIT'
            exporting
              wait = 'X'.

*or*

COMMIT WORK.
WAIT UP TO 5 SECONDS.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Mar 2011 15:27:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delay-the-posting-with-bapi/m-p/7657319#M1573709</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-03-03T15:27:02Z</dc:date>
    </item>
    <item>
      <title>Re: Delay the posting with Bapi</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delay-the-posting-with-bapi/m-p/7657320#M1573710</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sai, &lt;/P&gt;&lt;P&gt;Could you please be more clear about your requirement? What is your requirement and what are you trying to achieve? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please do note that consecutive goods movement posting is not allowed with in same LUW...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Mar 2011 15:51:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delay-the-posting-with-bapi/m-p/7657320#M1573710</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-03-03T15:51:32Z</dc:date>
    </item>
    <item>
      <title>Re: Delay the posting with Bapi</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delay-the-posting-with-bapi/m-p/7657321#M1573711</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;There is no need of any wait statements&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
call function 'BAPI_TRANSACTION_COMMIT'
            exporting
              wait = 'X'.  "Make sure you are passing this
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;@Kris - &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please do note that consecutive goods movement posting is not allowed with in same LUW&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It creates problem only when we use the bapi in migo transaction badis' or exits like one after another because MB_GOODS&lt;STRONG&gt;MOVEMENT&lt;/STRONG&gt;CREATE can be called only once not twice before a commit work. But if the bapi is executed from progarm for different movement types there wont be any problem( witha commit work and wait after each bapi call ). Correct me if i am wrong &lt;SPAN __jive_emoticon_name="wink"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Mar 2011 17:51:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delay-the-posting-with-bapi/m-p/7657321#M1573711</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2011-03-03T17:51:45Z</dc:date>
    </item>
    <item>
      <title>Re: Delay the posting with Bapi</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delay-the-posting-with-bapi/m-p/7657322#M1573712</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Keshav,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;But if the bapi is executed from progarm for different movement types there wont be any problem( witha commit work and wait after each bapi call )&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;COMMIT WORK AND WAIT just makes the update process synchronous i.e., the cursor is held till the LUW is complete. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How will this behaviour ensure that Mvmt YO8 is completed before 541 given that both are executed in separate LUWs? As per the OP, 541 Mvmt is updated via BAPI whereas YO8 is a system posting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know your thoughts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Mar 2011 18:06:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delay-the-posting-with-bapi/m-p/7657322#M1573712</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2011-03-03T18:06:22Z</dc:date>
    </item>
    <item>
      <title>Re: Delay the posting with Bapi</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delay-the-posting-with-bapi/m-p/7657323#M1573713</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Suhas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;541 Mvmt is updated via BAPI whereas YO8 is a system posting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if this is the case then it will create problem. I meant if both the movements were posted from program. If the scenario is like migo posts one movement and after that a movement needs to be posted by bapi then some thing like a call function in background task should do.This must be placed in the appropriate method of badi.&lt;/P&gt;&lt;P&gt;We had a similar case once...so a remote fm was created and executed in background task as a seperate unit in the method of badi. It worked fine. To be frank i am not too much familiar with the RFC types etc &lt;SPAN __jive_emoticon_name="wink"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Mar 2011 19:10:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delay-the-posting-with-bapi/m-p/7657323#M1573713</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2011-03-03T19:10:51Z</dc:date>
    </item>
    <item>
      <title>Re: Delay the posting with Bapi</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delay-the-posting-with-bapi/m-p/7657324#M1573714</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;@Keshav, Would we be able to post another goods movement from the BADI of the preceding goods movement? wouldn't it end up in the same LUW (unless we are going for V2 update)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a option to configure a Output type for Y08 posting? and this output type can be set up to generate a MBGMCR*  IDOC  for 541 posting?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Mar 2011 19:45:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delay-the-posting-with-bapi/m-p/7657324#M1573714</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-03-03T19:45:16Z</dc:date>
    </item>
    <item>
      <title>Re: Delay the posting with Bapi</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delay-the-posting-with-bapi/m-p/7657325#M1573715</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kris,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A special function 08 output type should do. But if you see the call function in background task as seperate unit will do. This is what SAP help says about CALL FUNCTION - IN BACKGROUND TASK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When the transactional call is made, the name of the called function, together with the destination and the actual parameters given in parameter list, are registered for the current SAP LUW in the database tables ARFCSSTATE and ARFCSDATA of the current SAP system under a unique transaction ID (abbreviated as TID, stored in a structure of type ARFCTID from the ABAP Dictionary, view using transaction SM58). Following this registration, the program making the call is continued by way of the statement CALL FUNCTION. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When executing the COMMIT WORK statement, the function modules registered for the current SAP LUW are started in the sequence in which they were registered&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Mar 2011 20:04:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delay-the-posting-with-bapi/m-p/7657325#M1573715</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2011-03-03T20:04:22Z</dc:date>
    </item>
    <item>
      <title>Re: Delay the posting with Bapi</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delay-the-posting-with-bapi/m-p/7657326#M1573716</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My mistake... I was reading it as update task rather than background task &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Mar 2011 20:13:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delay-the-posting-with-bapi/m-p/7657326#M1573716</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-03-03T20:13:50Z</dc:date>
    </item>
    <item>
      <title>Re: Delay the posting with Bapi</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delay-the-posting-with-bapi/m-p/7657327#M1573717</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for quick reply,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But iam not resolved this issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when iam delaying 541 posting using waite up to 20 second s&lt;/P&gt;&lt;P&gt;same time y08(system posting) also delaying 20 seconds .&lt;/P&gt;&lt;P&gt;iam not getting required sequnce ie &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;101(system  posting ) --&amp;gt; Y08 (system posting) --&amp;gt;541(manuval posting)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Saimedha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Mar 2011 06:49:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delay-the-posting-with-bapi/m-p/7657327#M1573717</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-03-04T06:49:31Z</dc:date>
    </item>
    <item>
      <title>Re: Delay the posting with Bapi</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delay-the-posting-with-bapi/m-p/7657328#M1573718</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;It seems like your Y08 depends on the completion of 101 &amp;amp; 541, If this is the case then, may be you can try posting 542 after executing your transaction and then post Y08. You can create an event(SM62) for this purpose which will trigger another program(need to schedule this program through SM36) that will execute 542 &amp;amp; Y08. Though this is not a solution, I mean it will just solve your purpose, in case you are not able to seperate the two movements(541 &amp;amp; Y08) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also there is some setting in SPRO from where you can maintain these movements. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gopal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Mar 2011 07:34:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delay-the-posting-with-bapi/m-p/7657328#M1573718</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-03-04T07:34:26Z</dc:date>
    </item>
  </channel>
</rss>

