<?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: BAPI_ALM_ORDER_MAINTAIN in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-alm-order-maintain/m-p/2858638#M670270</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;"BAPI_ALM_ORDER_MAINTAIN"  is working fine. Code in the above segment of thread&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 08 Oct 2007 21:19:59 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-10-08T21:19:59Z</dc:date>
    <item>
      <title>BAPI_ALM_ORDER_MAINTAIN</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-alm-order-maintain/m-p/2858635#M670267</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 change the main work center , basic start date and basic end date which are in the header of the maintenance order. I tried using BAPI_ALM_ORDER_MAINTAIN but it is not working . It says Bapi call must have a save or dialog method. Can anyone give a sample code for the same - updating the header details of a maintenance order. Useful answers will be rewarded. Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Prabaharan.G&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Oct 2007 18:57:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-alm-order-maintain/m-p/2858635#M670267</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-04T18:57:54Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_ALM_ORDER_MAINTAIN</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-alm-order-maintain/m-p/2858636#M670268</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Prabaharan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am on ECC 6.0...I was looking at one of the hits for this BAPI and came at this Include &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/NRX/ALM_ORDER_PROC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;which uses the BAPI...I thought it might be of some help to you....Here is a part of the code from above mentioned Include&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
*--Create lines in method &amp;amp; text table
      CLEAR f_method.
      MOVE sy-tabix TO ref.
      MOVE ref TO f_method-refnumber.
      MOVE 'TEXT' TO f_method-objecttype.
      MOVE 'CREATE' TO f_method-method.
      MOVE order TO f_method-objectkey.
      APPEND f_method.

      CLEAR f_text.
      MOVE order TO f_text-orderid.
      MOVE i_resb-rsnum TO f_text-reserv_no.
      MOVE i_resb-rspos TO f_text-res_item.
      MOVE t_text-langu TO f_text-langu.
      MOVE counter TO f_text-textstart.

*----Add text lines to table
      LOOP AT t_text WHERE item_number EQ i_resb-posnr
                       AND activity EQ i_resb-vornr.
        CLEAR f_lines.
        MOVE t_text-tdformat TO f_lines-tdformat.
        MOVE t_text-tdline TO f_lines-tdline.
        APPEND f_lines.
        counter = counter + 1.
      ENDLOOP.
      counter = counter - 1.
      MOVE counter TO f_text-textend.
      APPEND f_text.
      counter = counter + 1.
    ENDLOOP.

*--Add SAVE line to method
    CLEAR f_method.
    MOVE 'SAVE' TO f_method-method.
    APPEND f_method.

    CALL FUNCTION 'BAPI_ALM_ORDER_MAINTAIN'
      TABLES
        it_methods    = f_method
        it_text       = f_text
        it_text_lines = f_lines
        return        = f_return.

*--Check the return structure, ensure no errors occured
    CLEAR f_error.
    LOOP AT f_return WHERE type EQ 'E'.
      MOVE 'X' TO f_error.
    ENDLOOP.

    IF f_error NE 'X'.
      CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
        EXPORTING
          wait   = 'X'
        IMPORTING
          return = f_return.
    ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you haven't done Where-Used List for this BAPI, I suggest you to do it...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vivek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Oct 2007 19:05:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-alm-order-maintain/m-p/2858636#M670268</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-04T19:05:51Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_ALM_ORDER_MAINTAIN</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-alm-order-maintain/m-p/2858637#M670269</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Viv,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Thanks for the immediate information. I checked the where used list but it has been coded to add text, but my req is to change the existing header data however I managed to find a solution for this and now the order got updated. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; I am pasting the code below,&lt;/P&gt;&lt;P&gt;   ata: I_METHODS type table of  BAPI_ALM_ORDER_METHOD with header line,&lt;/P&gt;&lt;P&gt;      I_HEADER type table of  BAPI_ALM_ORDER_HEADERS_I with header line,&lt;/P&gt;&lt;P&gt;      I_HEADERUP type table of  BAPI_ALM_ORDER_HEADERS_UP with header line,&lt;/P&gt;&lt;P&gt;      i_return type table of bapiret2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i_methods-refnumber = '000001'.&lt;/P&gt;&lt;P&gt;i_methods-OBJECTTYPE = 'HEADER'.&lt;/P&gt;&lt;P&gt;i_methods-METHOD = 'CHANGE'.&lt;/P&gt;&lt;P&gt;i_methods-OBJECTKEY = '000005000018'.&lt;/P&gt;&lt;P&gt;append i_methods.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i_methods-OBJECTTYPE = ' '.&lt;/P&gt;&lt;P&gt;i_methods-METHOD = 'SAVE'.&lt;/P&gt;&lt;P&gt;append i_methods.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i_header-orderid = '000005000018'.&lt;/P&gt;&lt;P&gt;i_header-MN_WK_CTR = 'MPEAST'.&lt;/P&gt;&lt;P&gt;append i_header.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i_headerup-orderid = '000005000018'.&lt;/P&gt;&lt;P&gt;i_headerup-mn_wk_ctr = 'X'.&lt;/P&gt;&lt;P&gt;append i_headerup.&lt;/P&gt;&lt;P&gt;&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             = i_methods&lt;/P&gt;&lt;P&gt;   IT_HEADER              = i_header&lt;/P&gt;&lt;P&gt;   IT_HEADER_UP           = i_headerup&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  IT_HEADER_SRV          =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  IT_HEADER_SRV_UP       =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  IT_USERSTATUS          =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  IT_PARTNER             =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  IT_PARTNER_UP          =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  IT_OPERATION           =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  IT_OPERATION_UP        =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  IT_RELATION            =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  IT_RELATION_UP         =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  IT_COMPONENT           =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  IT_COMPONENT_UP        =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  IT_TEXT                =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  IT_TEXT_LINES          =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  EXTENSION_IN           =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   RETURN                 = i_return&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  ET_NUMBERS             =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  WAIT          =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  RETURN        =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;          .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Oct 2007 19:25:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-alm-order-maintain/m-p/2858637#M670269</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-04T19:25:03Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_ALM_ORDER_MAINTAIN</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-alm-order-maintain/m-p/2858638#M670270</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;"BAPI_ALM_ORDER_MAINTAIN"  is working fine. Code in the above segment of thread&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Oct 2007 21:19:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-alm-order-maintain/m-p/2858638#M670270</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-08T21:19:59Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_ALM_ORDER_MAINTAIN</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-alm-order-maintain/m-p/2858639#M670271</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;How did you solved this problem..&lt;/P&gt;&lt;P&gt;I want change the user status.. Iam passinmg the methods table with refernce key,object type with operation type exiseted in iw33, method save or Change..., and the object key is order prefixed with or..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and the user stas table status zstg , language e, lanag en .. but still iam getting the message S  operation type is not valid in method table...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;its not updating the user status..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;give me the reply...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 Nov 2007 10:23:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-alm-order-maintain/m-p/2858639#M670271</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-17T10:23:17Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_ALM_ORDER_MAINTAIN</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-alm-order-maintain/m-p/2858640#M670272</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sampath,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you need to update order header status or operation status?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For updating  status use the function module which are discussed in the below link,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://forums.sdn.sap.com/click.jspa?searchID=6752154&amp;amp;messageID=3710549" target="test_blank"&gt;https://forums.sdn.sap.com/click.jspa?searchID=6752154&amp;amp;messageID=3710549&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Prabaharan.G&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 18 Nov 2007 04:22:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-alm-order-maintain/m-p/2858640#M670272</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-18T04:22:17Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_ALM_ORDER_MAINTAIN</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-alm-order-maintain/m-p/2858641#M670273</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;iam having same requirement , want to up update basic start date for wbs number based on order and system ststus.&lt;/P&gt;&lt;P&gt;system status not to be in teco,clsd,dlfl,dlt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have checked  u r bapi Suggest me how to update start date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Durgaprasad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Aug 2010 09:28:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-alm-order-maintain/m-p/2858641#M670273</guid>
      <dc:creator>P507709</dc:creator>
      <dc:date>2010-08-17T09:28:34Z</dc:date>
    </item>
  </channel>
</rss>

