<?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: ABAP - Upload method based on user selection in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-upload-method-based-on-user-selection/m-p/12404630#M1995944</link>
    <description>&lt;P&gt;put radiobutton with condition.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;if rb1.
excel to internal table.
elseif rb2.
excel to db table.
endif.&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 01 Sep 2021 11:32:19 GMT</pubDate>
    <dc:creator>irfanjazz1</dc:creator>
    <dc:date>2021-09-01T11:32:19Z</dc:date>
    <item>
      <title>ABAP - Upload method based on user selection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-upload-method-based-on-user-selection/m-p/12404626#M1995940</link>
      <description>&lt;P&gt;Hello All,&lt;/P&gt;
  &lt;P&gt;I have a program which uploads excel data to database table.&lt;/P&gt;
  &lt;P&gt;Now I would like to split the program:&lt;/P&gt;
  &lt;P&gt;based on User decision whether it gets uploaded to internal table only or directly to database.&lt;/P&gt;
  &lt;P&gt;Can you please suggest the way how I could process this? I tried with radiobutton, I could not manage, though might be a solution.&lt;/P&gt;
  &lt;P&gt;So far I have written below:&lt;/P&gt;
  &lt;P&gt;REPORT ZBB_TEST01.&lt;/P&gt;
  &lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;TYPE-POOLS truxs.&lt;/P&gt;
  &lt;P&gt;&lt;BR /&gt;TABLES : wcamb.&lt;/P&gt;
  &lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;PARAMETER p_file TYPE rlgrap-filename DEFAULT 'C:\Users\......XLSX'.&lt;/P&gt;
  &lt;P&gt;&lt;BR /&gt;TYPES:&lt;BR /&gt; BEGIN OF t_tab,&lt;BR /&gt; userid TYPE wcamb-userid,&lt;BR /&gt; iwerk TYPE wcamb-iwerk,&lt;BR /&gt; worklist_variant type wcamb-worklist_variant,&lt;BR /&gt; END OF t_tab.&lt;/P&gt;
  &lt;P&gt;&lt;BR /&gt;DATA :&lt;BR /&gt; t_upload TYPE STANDARD TABLE OF t_tab,&lt;BR /&gt; wa_upload TYPE t_tab,&lt;BR /&gt; it_type TYPE truxs_t_text_data.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.&lt;/P&gt;
  &lt;P&gt;&lt;BR /&gt; CALL FUNCTION 'F4_FILENAME'&lt;BR /&gt; EXPORTING&lt;BR /&gt;* PROGRAM_NAME = SYST-CPROG&lt;BR /&gt;* DYNPRO_NUMBER = SYST-DYNNR&lt;BR /&gt; field_name = 'P_FILE'&lt;BR /&gt; IMPORTING&lt;BR /&gt; file_name = p_file.&lt;/P&gt;
  &lt;P&gt;&lt;BR /&gt;START-OF-SELECTION.&lt;BR /&gt;* Uploading the data in the file into internal table&lt;BR /&gt; CALL FUNCTION 'TEXT_CONVERT_XLS_TO_SAP'&lt;BR /&gt; EXPORTING&lt;BR /&gt;* I_FIELD_SEPERATOR =&lt;BR /&gt;* I_LINE_HEADER = 'X'&lt;BR /&gt; i_tab_raw_data = it_type&lt;BR /&gt; i_filename = p_file&lt;BR /&gt; TABLES&lt;BR /&gt; i_tab_converted_data = t_upload[]&lt;BR /&gt; EXCEPTIONS&lt;BR /&gt; conversion_failed = 1&lt;BR /&gt; OTHERS = 2.&lt;BR /&gt; IF sy-subrc NE 0.&lt;BR /&gt; MESSAGE ID sy-msgid&lt;BR /&gt; TYPE sy-msgty&lt;BR /&gt; NUMBER sy-msgno&lt;BR /&gt; WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.&lt;BR /&gt; ENDIF.&lt;BR /&gt;END-OF-SELECTION.&lt;/P&gt;
  &lt;P&gt;&lt;BR /&gt;* Uploading the data into the database table&lt;BR /&gt; LOOP AT T_UPLOAD INTO WA_UPLOAD.&lt;BR /&gt; wcamb-userid = WA_UPLOAD-userid.&lt;BR /&gt; wcamb-iwerk = WA_UPLOAD-iwerk.&lt;BR /&gt;Wcamb-worklist_variant = WA_UPLOAD-worklist_variant. MODIFY wcamb.&lt;/P&gt;
  &lt;P&gt;ENDLOOP.&lt;/P&gt;
  &lt;P&gt;Thanks a lot.&lt;/P&gt;
  &lt;P&gt;Brg&lt;/P&gt;</description>
      <pubDate>Tue, 31 Aug 2021 13:46:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-upload-method-based-on-user-selection/m-p/12404626#M1995940</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2021-08-31T13:46:18Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP - Upload method based on user selection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-upload-method-based-on-user-selection/m-p/12404627#M1995941</link>
      <description>&lt;P&gt;Welcome
to the SAP Community! We
wanted to give you the opportunity to take the tutorial to get started in
SAP Community: &lt;U&gt;&lt;A href="https://developers.sap.com/tutorials/community-qa.html"&gt;https://developers.sap.com/tutorials/community-qa.html&lt;/A&gt;&lt;/U&gt;,
as it provides tips for preparing questions that draw responses from our
members. Additionally, by adding a picture to your profile you
encourage readers to respond to your question. Learn more about your profile
here: &lt;U&gt;&lt;A href="https://developers.sap.com/tutorials/community-profile.html"&gt;https://developers.sap.com/tutorials/community-profile.html&lt;/A&gt;&lt;/U&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 31 Aug 2021 13:46:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-upload-method-based-on-user-selection/m-p/12404627#M1995941</guid>
      <dc:creator>former_member751964</dc:creator>
      <dc:date>2021-08-31T13:46:32Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP - Upload method based on user selection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-upload-method-based-on-user-selection/m-p/12404628#M1995942</link>
      <description>&lt;P&gt;what is the problem with radiobutton ? &lt;/P&gt;</description>
      <pubDate>Tue, 31 Aug 2021 13:47:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-upload-method-based-on-user-selection/m-p/12404628#M1995942</guid>
      <dc:creator>FredericGirod</dc:creator>
      <dc:date>2021-08-31T13:47:40Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP - Upload method based on user selection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-upload-method-based-on-user-selection/m-p/12404629#M1995943</link>
      <description>&lt;P&gt;Please edit your question, select your code and press the "CODE" button to make it correctly colorized/indented, so that it's easier for us to analyze it. Thank you.&lt;/P&gt;</description>
      <pubDate>Tue, 31 Aug 2021 14:21:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-upload-method-based-on-user-selection/m-p/12404629#M1995943</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2021-08-31T14:21:51Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP - Upload method based on user selection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-upload-method-based-on-user-selection/m-p/12404630#M1995944</link>
      <description>&lt;P&gt;put radiobutton with condition.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;if rb1.
excel to internal table.
elseif rb2.
excel to db table.
endif.&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 01 Sep 2021 11:32:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-upload-method-based-on-user-selection/m-p/12404630#M1995944</guid>
      <dc:creator>irfanjazz1</dc:creator>
      <dc:date>2021-09-01T11:32:19Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP - Upload method based on user selection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-upload-method-based-on-user-selection/m-p/12404631#M1995945</link>
      <description>&lt;P&gt;You wrote 'I tried with radiobutton[S],' but there are no radiobutton in your code?&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Add two radiobuttons in same group (one for itab one for table, itab by default?)&lt;BR /&gt;(or a 'test' checkbox)&lt;/LI&gt;&lt;LI&gt;Check which rariobutton is checked and either display data (ALV) or update the database (z) table&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Mon, 06 Sep 2021 13:09:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-upload-method-based-on-user-selection/m-p/12404631#M1995945</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2021-09-06T13:09:42Z</dc:date>
    </item>
  </channel>
</rss>

