<?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 Error while adding table entries to transport request in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-adding-table-entries-to-transport-request/m-p/12353322#M1992797</link>
    <description>&lt;P&gt;Hey Experts!&lt;/P&gt;I currently got an error, so that I cannot add a new entry to a transport request programmatically.I am using two function TR_GET_REQUEST_TYPE and TR_REQUEST_CHOICE.I integrated them in the code as following
  &lt;PRE&gt;&lt;CODE&gt;...
CALL FUNCTION 'TR_GET_REQUEST_TYPE'
  EXPORTING
    iv_pgmid          = 'R3TR'
    iv_object         = 'TABU'
    iv_obj_name       = 'ZSFLIGHT'
  IMPORTING
    ev_request_type   = lv_request_type
  EXCEPTIONS
    no_request_needed = 1
    invalid_object    = 2
    system_error      = 3.

CALL FUNCTION 'TR_REQUEST_CHOICE'
  EXPORTING
    iv_suppress_dialog = 'X'
    iv_request         = 'S4HK901283'
    iv_request_types   = lv_request_type
    it_e071k           = lt_e071k.
...&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;My workbeanch request&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1876495-tr.png" /&gt;&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1876497-objects.png" /&gt;&lt;/P&gt;
  &lt;P&gt;And the error message when running the report&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1876496-error.png" /&gt;&lt;/P&gt;I've already tried different transport request types. Unlocking the object doesn't help either.I don't know exactly where s the problem.
  &lt;P&gt;I would be very happy if someone has any idea. &lt;/P&gt;
  &lt;P&gt;Thanks &lt;span class="lia-unicode-emoji" title=":face_with_tongue:"&gt;😛&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 14 Jan 2021 20:28:17 GMT</pubDate>
    <dc:creator>former_member690993</dc:creator>
    <dc:date>2021-01-14T20:28:17Z</dc:date>
    <item>
      <title>Error while adding table entries to transport request</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-adding-table-entries-to-transport-request/m-p/12353322#M1992797</link>
      <description>&lt;P&gt;Hey Experts!&lt;/P&gt;I currently got an error, so that I cannot add a new entry to a transport request programmatically.I am using two function TR_GET_REQUEST_TYPE and TR_REQUEST_CHOICE.I integrated them in the code as following
  &lt;PRE&gt;&lt;CODE&gt;...
CALL FUNCTION 'TR_GET_REQUEST_TYPE'
  EXPORTING
    iv_pgmid          = 'R3TR'
    iv_object         = 'TABU'
    iv_obj_name       = 'ZSFLIGHT'
  IMPORTING
    ev_request_type   = lv_request_type
  EXCEPTIONS
    no_request_needed = 1
    invalid_object    = 2
    system_error      = 3.

CALL FUNCTION 'TR_REQUEST_CHOICE'
  EXPORTING
    iv_suppress_dialog = 'X'
    iv_request         = 'S4HK901283'
    iv_request_types   = lv_request_type
    it_e071k           = lt_e071k.
...&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;My workbeanch request&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1876495-tr.png" /&gt;&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1876497-objects.png" /&gt;&lt;/P&gt;
  &lt;P&gt;And the error message when running the report&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1876496-error.png" /&gt;&lt;/P&gt;I've already tried different transport request types. Unlocking the object doesn't help either.I don't know exactly where s the problem.
  &lt;P&gt;I would be very happy if someone has any idea. &lt;/P&gt;
  &lt;P&gt;Thanks &lt;span class="lia-unicode-emoji" title=":face_with_tongue:"&gt;😛&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jan 2021 20:28:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-adding-table-entries-to-transport-request/m-p/12353322#M1992797</guid>
      <dc:creator>former_member690993</dc:creator>
      <dc:date>2021-01-14T20:28:17Z</dc:date>
    </item>
    <item>
      <title>Re: Error while adding table entries to transport request</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-adding-table-entries-to-transport-request/m-p/12353323#M1992798</link>
      <description>&lt;P&gt;The message that is outputed is about wrong transport type.&lt;/P&gt;&lt;P&gt;K - is for workbench request.&lt;BR /&gt;But it is seems that your table is client-dependent (standard SFLIGHT is client dependent). And in that case you need W-type of request (means Customizing Request).&lt;/P&gt;&lt;P&gt;You can check the IDs of request type in table E070 (field TRFUNCTION ).&lt;/P&gt;&lt;P&gt;So, you need another request type, S4HK901283 is not sufficient.&lt;/P&gt;&lt;P&gt;My sugestion:&lt;/P&gt;&lt;P&gt;1) for function &lt;STRONG&gt;TR_REQUEST_CHOICE&lt;/STRONG&gt; do not provide &lt;STRONG&gt;IV_REQUEST_TYPES&lt;/STRONG&gt; parameters (put here a space).&lt;BR /&gt;2) specify the number of request (S4HK901282), not a task (S4HK901283)&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jan 2021 22:13:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-adding-table-entries-to-transport-request/m-p/12353323#M1992798</guid>
      <dc:creator>OlegBash</dc:creator>
      <dc:date>2021-01-14T22:13:35Z</dc:date>
    </item>
    <item>
      <title>Re: Error while adding table entries to transport request</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-adding-table-entries-to-transport-request/m-p/12353324#M1992799</link>
      <description>&lt;P&gt;Thank you Oleg, it works now&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jan 2021 08:14:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-adding-table-entries-to-transport-request/m-p/12353324#M1992799</guid>
      <dc:creator>former_member690993</dc:creator>
      <dc:date>2021-01-15T08:14:26Z</dc:date>
    </item>
    <item>
      <title>Re: Error while adding table entries to transport request</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-adding-table-entries-to-transport-request/m-p/12353325#M1992800</link>
      <description>&lt;P&gt;Is there also a way to write the entires in the task (S4HK901283) instead of request (S4HK901282)?&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jan 2021 10:18:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-adding-table-entries-to-transport-request/m-p/12353325#M1992800</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2021-01-15T10:18:11Z</dc:date>
    </item>
  </channel>
</rss>

