<?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: LB01 Creating Transfer Request in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/lb01-creating-transfer-request/m-p/12272515#M1988010</link>
    <description>&lt;P&gt;&lt;SPAN class="mention-scrubbed"&gt;mateuszadamus&lt;/SPAN&gt;, thanks for you comment, otherwise I would be still trying to figure out what the problem is.&lt;/P&gt;</description>
    <pubDate>Fri, 07 Aug 2020 14:22:36 GMT</pubDate>
    <dc:creator>michael_piesche</dc:creator>
    <dc:date>2020-08-07T14:22:36Z</dc:date>
    <item>
      <title>LB01 Creating Transfer Request</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lb01-creating-transfer-request/m-p/12272513#M1988008</link>
      <description>&lt;P&gt;Hi I had a requirement to create a TR using BAPI instead of LB01.&lt;/P&gt;
  &lt;P&gt;You people can use the below code to create it.&lt;/P&gt;
  &lt;P&gt;*&amp;amp;---------------------------------------------------------------------*&lt;BR /&gt;*&amp;amp; Report ZL_TR_CREATE&lt;BR /&gt;*&amp;amp;---------------------------------------------------------------------*&lt;BR /&gt;*&amp;amp;&lt;BR /&gt;*&amp;amp;---------------------------------------------------------------------*&lt;BR /&gt;REPORT zl_tr_create.&lt;BR /&gt;&lt;BR /&gt;DATA: lv_error LIKE sy-subrc.&lt;BR /&gt;&lt;BR /&gt;DATA: lt_ltba LIKE TABLE OF ltba.&lt;BR /&gt;DATA: lw_ltba LIKE ltba.&lt;BR /&gt;&lt;BR /&gt;DATA i_update_task TYPE rl02a-verbu VALUE 'X'.&lt;BR /&gt;DATA i_commit_work TYPE rl02a-commi VALUE 'X'.&lt;BR /&gt;&lt;BR /&gt;lw_ltba-tabix = '1'.&lt;BR /&gt;lw_ltba-lgnum = 'ZWH'.&lt;BR /&gt;lw_ltba-matnr = '70000570'.&lt;BR /&gt;lw_ltba-werks = 'Z110'.&lt;BR /&gt;lw_ltba-lgort = 'WARE'.&lt;BR /&gt;lw_ltba-menga = '1.000'.&lt;BR /&gt;lw_ltba-betyp = 'D'.&lt;BR /&gt;lw_ltba-benum = '4500019789'.&lt;BR /&gt;lw_ltba-bwlvs = '521'.&lt;BR /&gt;APPEND lw_ltba TO lt_ltba.&lt;BR /&gt;&lt;BR /&gt;CALL FUNCTION 'L_TR_CREATE_CHECK'&lt;BR /&gt; EXPORTING&lt;BR /&gt; i_number = 'X'&lt;BR /&gt; i_single_item = 'X'&lt;BR /&gt; TABLES&lt;BR /&gt; t_ltba = lt_ltba&lt;BR /&gt; EXCEPTIONS&lt;BR /&gt; ITEM_ERROR = 1.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;CALL FUNCTION 'L_TR_CREATE'&lt;BR /&gt; EXPORTING&lt;BR /&gt; i_single_item = 'X'&lt;BR /&gt; i_save_only_all = 'X'&lt;BR /&gt; i_update_task = 'X'&lt;BR /&gt; i_commit_work = ' '&lt;BR /&gt; TABLES&lt;BR /&gt; t_ltba = lt_ltba&lt;BR /&gt; EXCEPTIONS&lt;BR /&gt; item_error = 1&lt;BR /&gt; no_entry_in_int_table = 2&lt;BR /&gt; item_without_number = 3&lt;BR /&gt; no_update_item_error = 4&lt;BR /&gt; error_message = 5&lt;BR /&gt; OTHERS = 99.&lt;BR /&gt;&lt;BR /&gt;CASE sy-subrc.&lt;BR /&gt; WHEN 1.&lt;BR /&gt; WRITE : 'item_error'.&lt;BR /&gt; WHEN 2.&lt;BR /&gt; WRITE : 'no_entry_in_int_table'.&lt;BR /&gt; WHEN 3.&lt;BR /&gt; WRITE: 'item_without_number'.&lt;BR /&gt; WHEN 4.&lt;BR /&gt; WRITE : 'no_update_item_error'.&lt;BR /&gt;ENDCASE.&lt;BR /&gt;&lt;BR /&gt;CALL FUNCTION 'L_TR_CREATE_UPDATE'&lt;BR /&gt; EXPORTING&lt;BR /&gt; i_update_task = i_update_task&lt;BR /&gt; i_commit_work = i_commit_work&lt;BR /&gt; EXCEPTIONS&lt;BR /&gt; NO_ENTRY_IN_INT_TABLE = 1&lt;BR /&gt; ITEM_WITHOUT_NUMBER = 2.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Aug 2020 13:43:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lb01-creating-transfer-request/m-p/12272513#M1988008</guid>
      <dc:creator>former_member581061</dc:creator>
      <dc:date>2020-08-07T13:43:17Z</dc:date>
    </item>
    <item>
      <title>Re: LB01 Creating Transfer Request</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lb01-creating-transfer-request/m-p/12272514#M1988009</link>
      <description>&lt;P&gt;Hello Praveen&lt;/P&gt;&lt;P&gt;I think it might be a better solution to create a SAP Blog entry with such information. Giving a bit of background and explaining how the code works in such a post could be very helpful.&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;Mateusz</description>
      <pubDate>Fri, 07 Aug 2020 13:46:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lb01-creating-transfer-request/m-p/12272514#M1988009</guid>
      <dc:creator>MateuszAdamus</dc:creator>
      <dc:date>2020-08-07T13:46:02Z</dc:date>
    </item>
    <item>
      <title>Re: LB01 Creating Transfer Request</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lb01-creating-transfer-request/m-p/12272515#M1988010</link>
      <description>&lt;P&gt;&lt;SPAN class="mention-scrubbed"&gt;mateuszadamus&lt;/SPAN&gt;, thanks for you comment, otherwise I would be still trying to figure out what the problem is.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Aug 2020 14:22:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lb01-creating-transfer-request/m-p/12272515#M1988010</guid>
      <dc:creator>michael_piesche</dc:creator>
      <dc:date>2020-08-07T14:22:36Z</dc:date>
    </item>
    <item>
      <title>Re: LB01 Creating Transfer Request</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lb01-creating-transfer-request/m-p/12272516#M1988011</link>
      <description>&lt;P&gt;Right now i wont have proper source to explain&lt;/P&gt;&lt;P&gt;But if you use the above code it will help to you.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 08 Dec 2020 15:04:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lb01-creating-transfer-request/m-p/12272516#M1988011</guid>
      <dc:creator>former_member581061</dc:creator>
      <dc:date>2020-12-08T15:04:27Z</dc:date>
    </item>
  </channel>
</rss>

