<?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 Remove Schedule line Block in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/remove-schedule-line-block/m-p/494183#M16785</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
  &lt;P&gt;thru ABAP, is it possible to remove 'schedule line' for item(s) (make this field blank) using BAPI_SALESORDER_CHANGE ?&lt;/P&gt;
  &lt;P&gt;I tried using it, may be am missing something.&lt;/P&gt;
  &lt;P&gt;Aditya V&lt;/P&gt;</description>
    <pubDate>Tue, 12 Dec 2017 07:00:07 GMT</pubDate>
    <dc:creator>former_member184495</dc:creator>
    <dc:date>2017-12-12T07:00:07Z</dc:date>
    <item>
      <title>Remove Schedule line Block</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/remove-schedule-line-block/m-p/494183#M16785</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
  &lt;P&gt;thru ABAP, is it possible to remove 'schedule line' for item(s) (make this field blank) using BAPI_SALESORDER_CHANGE ?&lt;/P&gt;
  &lt;P&gt;I tried using it, may be am missing something.&lt;/P&gt;
  &lt;P&gt;Aditya V&lt;/P&gt;</description>
      <pubDate>Tue, 12 Dec 2017 07:00:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/remove-schedule-line-block/m-p/494183#M16785</guid>
      <dc:creator>former_member184495</dc:creator>
      <dc:date>2017-12-12T07:00:07Z</dc:date>
    </item>
    <item>
      <title>Re: Remove Schedule line Block</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/remove-schedule-line-block/m-p/494184#M16786</link>
      <description>&lt;P&gt;You need to brief more on what exactly your requirement is. Also, I am not sure, whether you have already discussed with the SD functional consultant if you are not a functional consultant. If discussed, share the screen where you want the control.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Dec 2017 08:15:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/remove-schedule-line-block/m-p/494184#M16786</guid>
      <dc:creator>Lakshmipathi</dc:creator>
      <dc:date>2017-12-12T08:15:45Z</dc:date>
    </item>
    <item>
      <title>Re: Remove Schedule line Block</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/remove-schedule-line-block/m-p/494185#M16787</link>
      <description>&lt;P&gt;I do not know what exactly you passed as parameters, so I will share what I populated for a blocked schedule line from 06 to ' ' via a test sequence of this bapi and bapi_transaction_commit:&lt;/P&gt;
  &lt;P&gt;SALESDOCUMENT = '13761'&lt;/P&gt;
  &lt;P&gt;ORDER_HEADER_INX-UPDATEFLAG = 'U'&lt;/P&gt;
  &lt;P&gt;SCHEDULE_LINESX:&lt;/P&gt;
  &lt;P&gt;ITM_NUMBER = '000010'&lt;/P&gt;
  &lt;P&gt;SCHED_LINE = '0001'&lt;/P&gt;
  &lt;P&gt;UPDATEFLAG = 'U'&lt;/P&gt;
  &lt;P&gt;REQ_DLV_BL = X&lt;/P&gt;
  &lt;P&gt;SCHEDULE_LINES:&lt;/P&gt;
  &lt;P&gt;ITM_NUMBER = '000010'&lt;/P&gt;
  &lt;P&gt;SCHED_LINE = '0001'&lt;/P&gt;
  &lt;P&gt;REQ_DLV_BL = ' '&lt;/P&gt;
  &lt;P&gt;Is it possible that you are trying to modify the wrong schedule line? I used BAPISDORDER_GETDETAILEDLIST to check the right schedule line number for my item.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Dec 2017 08:21:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/remove-schedule-line-block/m-p/494185#M16787</guid>
      <dc:creator>VeselinaPeykova</dc:creator>
      <dc:date>2017-12-12T08:21:37Z</dc:date>
    </item>
    <item>
      <title>Re: Remove Schedule line Block</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/remove-schedule-line-block/m-p/494186#M16788</link>
      <description>&lt;P&gt;Hi Lakshmipathi,&lt;/P&gt;
  &lt;P&gt;my requirement is that thru ABAP I want to remove the entry for schedule line (VBEP-LIFSP, which you see under Schedule lines tab and field is 'Delivery Block') item to blank.&lt;/P&gt;
  &lt;P&gt;Thanks,&lt;/P&gt;
  &lt;P&gt;Aditya V&lt;/P&gt;</description>
      <pubDate>Tue, 12 Dec 2017 12:16:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/remove-schedule-line-block/m-p/494186#M16788</guid>
      <dc:creator>former_member184495</dc:creator>
      <dc:date>2017-12-12T12:16:45Z</dc:date>
    </item>
    <item>
      <title>Re: Remove Schedule line Block</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/remove-schedule-line-block/m-p/494187#M16789</link>
      <description>&lt;P&gt;Hi Vaselina,&lt;/P&gt;
  &lt;P&gt;thanks for the response, below is my code.&lt;/P&gt;
  &lt;P&gt;-------------&lt;/P&gt;
  &lt;P&gt;l_salesdocument = '211435122'. &lt;/P&gt;
  &lt;P&gt;ls_bapisdhlx-updateflag = 'U'. &lt;/P&gt;
  &lt;P&gt;ls_bapischdlx-ITM_NUMBER = '000010'. &lt;/P&gt;
  &lt;P&gt;ls_bapischdlx-SCHED_LINE = '0001'. &lt;/P&gt;
  &lt;P&gt;ls_bapischdlx-updateflag = 'U'. &lt;/P&gt;
  &lt;P&gt;ls_bapischdlx-REQ_DLV_BL = 'X'. &lt;/P&gt;
  &lt;P&gt;APPEND ls_bapischdlx to lt_bapischdlx. &lt;/P&gt;
  &lt;P&gt;ls_bapischdl-ITM_NUMBER = '000010'. &lt;/P&gt;
  &lt;P&gt;ls_bapischdl-SCHED_LINE = '0001'. &lt;/P&gt;
  &lt;P&gt;ls_bapischdl-REQ_DLV_BL = ''. &lt;/P&gt;
  &lt;P&gt;APPEND ls_bapischdl to lt_bapischdl. &lt;/P&gt;
  &lt;P&gt;CALL FUNCTION 'BAPI_SALESORDER_CHANGE' &lt;/P&gt;
  &lt;P&gt; EXPORTING SALESDOCUMENT = l_salesdocument &lt;/P&gt;
  &lt;P&gt; ORDER_HEADER_INX = lt_bapisdhlx &lt;/P&gt;
  &lt;P&gt; TABLES RETURN = ireturn &lt;/P&gt;
  &lt;P&gt; SCHEDULE_LINES = lt_bapischdl &lt;/P&gt;
  &lt;P&gt;SCHEDULE_LINESX = lt_bapischdlx. &lt;/P&gt;
  &lt;P&gt;CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.&lt;/P&gt;
  &lt;P&gt;-------------&lt;/P&gt;
  &lt;P&gt;Anything missing? &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
  &lt;P&gt;Thanks,&lt;/P&gt;
  &lt;P&gt;Aditya V&lt;/P&gt;</description>
      <pubDate>Tue, 12 Dec 2017 12:20:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/remove-schedule-line-block/m-p/494187#M16789</guid>
      <dc:creator>former_member184495</dc:creator>
      <dc:date>2017-12-12T12:20:53Z</dc:date>
    </item>
    <item>
      <title>Re: Remove Schedule line Block</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/remove-schedule-line-block/m-p/494188#M16790</link>
      <description>&lt;P&gt;I am not a developer, but your code looks OK assuming that this is the right item and schedule line and that the schedule line block is modifiable in the order.&lt;/P&gt;
  &lt;P&gt;I apologize for asking about something that you have probably checked already, but do you see something out of the ordinary in the return table? For example if I try to clear the block of a rejected item, I will have &lt;EM&gt;Field 'LIFSP' cannot be changed, VBEPKOM 000010 0001 ready for input&lt;/EM&gt;.&lt;/P&gt;
  &lt;P&gt;If you see nothing unusual, only success infos - is there any possibility that the schedule line block is set automatically after you save via some custom code?&lt;/P&gt;</description>
      <pubDate>Tue, 12 Dec 2017 12:40:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/remove-schedule-line-block/m-p/494188#M16790</guid>
      <dc:creator>VeselinaPeykova</dc:creator>
      <dc:date>2017-12-12T12:40:50Z</dc:date>
    </item>
    <item>
      <title>Re: Remove Schedule line Block</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/remove-schedule-line-block/m-p/494189#M16791</link>
      <description>&lt;P&gt;You can try with USEREXIT_MOVE_FIELD_TO_VBEP&lt;/P&gt;</description>
      <pubDate>Tue, 12 Dec 2017 13:11:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/remove-schedule-line-block/m-p/494189#M16791</guid>
      <dc:creator>Lakshmipathi</dc:creator>
      <dc:date>2017-12-12T13:11:06Z</dc:date>
    </item>
    <item>
      <title>Re: Remove Schedule line Block</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/remove-schedule-line-block/m-p/494190#M16792</link>
      <description>&lt;P&gt;Hi Veselina,&lt;/P&gt;
  &lt;P&gt;why apologies &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; you helping me out &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
  &lt;P&gt;However in return table I see "Field header_inx-updateflag0 is not an input field" though I am filling that field with 'U'.&lt;/P&gt;
  &lt;P&gt;Aditya V&lt;/P&gt;</description>
      <pubDate>Wed, 13 Dec 2017 07:00:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/remove-schedule-line-block/m-p/494190#M16792</guid>
      <dc:creator>former_member184495</dc:creator>
      <dc:date>2017-12-13T07:00:31Z</dc:date>
    </item>
    <item>
      <title>Re: Remove Schedule line Block</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/remove-schedule-line-block/m-p/494191#M16793</link>
      <description>&lt;P&gt;Sometimes developers get offended if you ask them to check something that they have already done &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
  &lt;P&gt;If I understood correctly, the reason why the delivery block is not cleared is the error that you get in the return table. &lt;/P&gt;
  &lt;P&gt;I only used a test sequence, I did not try your code. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; &lt;/P&gt;
  &lt;P&gt;It is strange that you receive an error for updateflag0 (if this is not a typo), because in my system there is no such field in header_inx, I have just header_inx-updateflag.&lt;/P&gt;
  &lt;P&gt;This is probably a dumb question, but you set l&lt;STRONG&gt;s&lt;/STRONG&gt;_bapisdhlx-updateflag = 'U', but when you call the first BAPI you use ORDER_HEADER_INX = l&lt;STRONG&gt;t&lt;/STRONG&gt;_bapisdhlx. I do not see in the code sample where you populate lt_bapisdhlx with values and I did not understand why you need to use lt_bapisdhlx instead of ls_bapisdhlx when you require a single line. My guess is that this is where your problem lies, because I tried with a test sequence with the same data and only removed updateflag. As a result I got E 00 347 "Field header_inx-updateflag is not an input field". If the message that you have is exactly like mine - please try using ls instead of lt.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Dec 2017 07:41:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/remove-schedule-line-block/m-p/494191#M16793</guid>
      <dc:creator>VeselinaPeykova</dc:creator>
      <dc:date>2017-12-13T07:41:05Z</dc:date>
    </item>
  </channel>
</rss>

