<?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: BDC recording not executing last OK code for order technical completion in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-recording-not-executing-last-ok-code-for-order-technical-completion/m-p/7332820#M1538483</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lw_header-orderid = &amp;lt;gfs_qmel&amp;gt;-aufnr.&lt;/P&gt;&lt;P&gt;append lw_header to lt_header.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lw_header_up-orderid = &amp;lt;gfs_qmel&amp;gt;-aufnr.&lt;/P&gt;&lt;P&gt;append lw_header_up to lt_header_up.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lw_methods-objectkey  = &amp;lt;gfs_qmel&amp;gt;-aufnr.&lt;/P&gt;&lt;P&gt;lw_methods-refnumber = 1.&lt;/P&gt;&lt;P&gt;lw_methods-objecttype = 'HEADER'.&lt;/P&gt;&lt;P&gt;lw_methods-method      = 'TECHNICALCOMPLETE'.&lt;/P&gt;&lt;P&gt;append lw_methods to lt_methods.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lw_methods-objectkey  = &amp;lt;gfs_qmel&amp;gt;-aufnr.&lt;/P&gt;&lt;P&gt;lw_methods-refnumber = 1.&lt;/P&gt;&lt;P&gt;lw_methods-objecttype = ''.&lt;/P&gt;&lt;P&gt; lw_methods-method     = 'SAVE'.&lt;/P&gt;&lt;P&gt;append lw_methods to lt_methods.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      call function 'BAPI_ALM_ORDER_MAINTAIN'&lt;/P&gt;&lt;P&gt;        tables&lt;/P&gt;&lt;P&gt;          it_methods   = lt_methods&lt;/P&gt;&lt;P&gt;          it_header    = lt_header&lt;/P&gt;&lt;P&gt;          it_header_up = lt_header_up&lt;/P&gt;&lt;P&gt;          return       = lt_return.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: gzervas on Oct 20, 2010 4:15 PM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: gzervas on Oct 20, 2010 4:17 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 Oct 2010 14:14:31 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-10-20T14:14:31Z</dc:date>
    <item>
      <title>BDC recording not executing last OK code for order technical completion</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-recording-not-executing-last-ok-code-for-order-technical-completion/m-p/7332816#M1538479</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regarding a QM requirement, I have created a rather simple BDC recording to change the activity type of an order to new ones (based on particular conditions not relevant here) on transaction IW32.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, &lt;STRONG&gt;if the order is technically complete, I have to cancel the technical completion, change the activity type, and then complete the order technically again&lt;/STRONG&gt; (so it remains just the way it was before modification).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only order types relevant in the requirement are &lt;STRONG&gt;YM01 and YM02&lt;/STRONG&gt;. For YM01, the BDC recording works like a charm. But when executing the proper recording for type YM02, &lt;STRONG&gt;the last OK code&lt;/STRONG&gt; &lt;EM&gt;(i.e. pressing the OK button on the Complete subscreen)&lt;/EM&gt; &lt;STRONG&gt;is ignored and the process remains incomplete&lt;/STRONG&gt;: the orders are never completed technically again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the recording:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;0	T	IW32	BS AA X   F
SAPLCOIH                       101	X                                                                                
0	 	BDC_OKCODE	/00
                                        0	 	CAUFVD-AUFNR	80000005
SAPLCOIH                       3000	X                                                                                
0	 	BDC_OKCODE	 =WIAR
SAPLCOIH                       3000	X                                                                                
0	 	BDC_OKCODE	/00
                                        0	 	CAUFVD-ILART	206
SAPLCOIH                       3000	X                                                                                
0	 	BDC_OKCODE	 =ARCH
SAPLIWO1                      	200	        X                                                                                
0	 	BDC_OKCODE	 =WTER
                                        0	 	RIWO1-CLNOT	X&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would greatly appreciated!&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;André Santos&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Oct 2010 12:31:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-recording-not-executing-last-ok-code-for-order-technical-completion/m-p/7332816#M1538479</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-19T12:31:49Z</dc:date>
    </item>
    <item>
      <title>Re: BDC recording not executing last OK code for order technical completion</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-recording-not-executing-last-ok-code-for-order-technical-completion/m-p/7332817#M1538480</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;May be you are receiving a warning message window after "complete the order" ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my system this screen appear and I need to add:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SAPMSSY0	0120	X                                                                                
BDC_OKCODE	=&amp;amp;ONT&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In step by step (or visible) your BDC works?&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>Tue, 19 Oct 2010 14:50:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-recording-not-executing-last-ok-code-for-order-technical-completion/m-p/7332817#M1538480</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-19T14:50:38Z</dc:date>
    </item>
    <item>
      <title>Re: BDC recording not executing last OK code for order technical completion</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-recording-not-executing-last-ok-code-for-order-technical-completion/m-p/7332818#M1538481</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Leandro, thanks for the answer!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The BDC recording does not work when executed visibly or step by step. After some extensive debugging, I realized that the final screen (the technical complete confirmation screen) is &lt;STRONG&gt;not an actual subscreen&lt;/STRONG&gt;, even though it has its own number. That screen is actually generated by an FM, so apparently that's why it's ignored when the BDC is executed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I found a BAPI to replace that missing step: &lt;STRONG&gt;BAPI_ALM_ORDER_MAINTAIN&lt;/STRONG&gt;. However, I'm having a hard time figuring out how to reference the orders I need it to complete. The FM asks for an IT_METHODS table and I couldn't tie the method to the orders:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;it_methods-refnumber = ???
it_methods-objecttype = 'HEADER'. "That's what I found on the example, not sure whether this is right or not.
it_methods-method = 'TECHNICALCOMPLETE'.
it_methods-objectkey = ??? "Maybe the order number itself?
APPEND it_methods.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has anyone used this BAPI before?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: André Felipe Oliveira dos Santos on Oct 20, 2010 2:18 PM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Oct 2010 12:16:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-recording-not-executing-last-ok-code-for-order-technical-completion/m-p/7332818#M1538481</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-20T12:16:51Z</dc:date>
    </item>
    <item>
      <title>Re: BDC recording not executing last OK code for order technical completion</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-recording-not-executing-last-ok-code-for-order-technical-completion/m-p/7332819#M1538482</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Apparently I got this to work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;REFNUMBER&lt;/STRONG&gt; is a counter of record blocks to be processed (e.g. 1 for the first order, 2 for the second, etc.).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HEADER is the structure/table to change order details and perform order related actions, such as the method TECHNICALCOMPLETE. It has to be passed on as the value for &lt;STRONG&gt;OBJECTTYPE&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Whenever you add HEADER to the &lt;STRONG&gt;IT_METHODS&lt;/STRONG&gt; table, you have to fill in at least the order number and order plant in the &lt;STRONG&gt;IT_HEADER&lt;/STRONG&gt; table, and mark both with an X on in the &lt;STRONG&gt;IT_HEADER_UP&lt;/STRONG&gt; table (being these tables of FM &lt;STRONG&gt;BAPI_ALM_ORDER_MAINTAIN&lt;/STRONG&gt; ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Oct 2010 13:57:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-recording-not-executing-last-ok-code-for-order-technical-completion/m-p/7332819#M1538482</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-20T13:57:08Z</dc:date>
    </item>
    <item>
      <title>Re: BDC recording not executing last OK code for order technical completion</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-recording-not-executing-last-ok-code-for-order-technical-completion/m-p/7332820#M1538483</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lw_header-orderid = &amp;lt;gfs_qmel&amp;gt;-aufnr.&lt;/P&gt;&lt;P&gt;append lw_header to lt_header.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lw_header_up-orderid = &amp;lt;gfs_qmel&amp;gt;-aufnr.&lt;/P&gt;&lt;P&gt;append lw_header_up to lt_header_up.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lw_methods-objectkey  = &amp;lt;gfs_qmel&amp;gt;-aufnr.&lt;/P&gt;&lt;P&gt;lw_methods-refnumber = 1.&lt;/P&gt;&lt;P&gt;lw_methods-objecttype = 'HEADER'.&lt;/P&gt;&lt;P&gt;lw_methods-method      = 'TECHNICALCOMPLETE'.&lt;/P&gt;&lt;P&gt;append lw_methods to lt_methods.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lw_methods-objectkey  = &amp;lt;gfs_qmel&amp;gt;-aufnr.&lt;/P&gt;&lt;P&gt;lw_methods-refnumber = 1.&lt;/P&gt;&lt;P&gt;lw_methods-objecttype = ''.&lt;/P&gt;&lt;P&gt; lw_methods-method     = 'SAVE'.&lt;/P&gt;&lt;P&gt;append lw_methods to lt_methods.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      call function 'BAPI_ALM_ORDER_MAINTAIN'&lt;/P&gt;&lt;P&gt;        tables&lt;/P&gt;&lt;P&gt;          it_methods   = lt_methods&lt;/P&gt;&lt;P&gt;          it_header    = lt_header&lt;/P&gt;&lt;P&gt;          it_header_up = lt_header_up&lt;/P&gt;&lt;P&gt;          return       = lt_return.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: gzervas on Oct 20, 2010 4:15 PM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: gzervas on Oct 20, 2010 4:17 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Oct 2010 14:14:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-recording-not-executing-last-ok-code-for-order-technical-completion/m-p/7332820#M1538483</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-20T14:14:31Z</dc:date>
    </item>
  </channel>
</rss>

