<?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: How to set BDCDATA table for a SELECT-OPTIONS object? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-set-bdcdata-table-for-a-select-options-object/m-p/8165572#M1622701</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please use this code for the purpose, I am sure you must have get the relavant help in that relation:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF BLOCK b3 WITH FRAME TITLE text-102.&lt;/P&gt;&lt;P&gt;PARAMETERS:  p_fmode  RADIOBUTTON GROUP r1,&lt;/P&gt;&lt;P&gt;             p_bmode  RADIOBUTTON GROUP r1.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF BLOCK b3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;  PERFORM data_upload.&lt;/P&gt;&lt;P&gt;END-OF-SELECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Akg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 03 Sep 2011 06:10:34 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-09-03T06:10:34Z</dc:date>
    <item>
      <title>How to set BDCDATA table for a SELECT-OPTIONS object?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-set-bdcdata-table-for-a-select-options-object/m-p/8165568#M1622697</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a transaction with PARAMETERS and SELECT-OPTIONS objects. This transaction will be called by another program by using &lt;EM&gt;CALL TRANSACTION 'mytransaction' USING mybdcdata&lt;/EM&gt; statement. Below is some of the called transaction's source code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA:
  date TYPE sflight-fldate.
 
PARAMETERS:
  p_carid TYPE sflight-carrid,
  p_conid TYPE sflight-connid.
 
SELECT-OPTIONS:
  so_date FOR date.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is what I wrote in the calling program to define the values of the called transaction PARAMETERS fields:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA:
  wa_bdcdata TYPE bdcdata,
  it_bdcdata TYPE TABLE OF bdcdata.
 
wa_bdcdata-program = 'MYPROGRAM'.
wa_bdcdata-dynpro = '1000'.
wa_bdcdata-dynbegin = 'X'.
 
APPEND wa_bdcdata TO it_bdcdata.
CLEAR wa_bdcdata.
 
wa_bdcdata-fnam = 'P_CARID'.
wa_bdcdata-fval = 'AA'.
 
APPEND wa_bdcdata TO it_bdcdata.
CLEAR wa_bdcdata.
 
wa_bdcdata-fnam = 'P_CONID'.
wa_bdcdata-fval = '017'.
 
APPEND wa_bdcdata TO it_bdcdata.
 
CALL TRANSACTION 'MYTRANSACTION' USING it_bdcdata.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately, I don't know how to set the values for the SELECT-OPTIONS screen fields. How to do this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've Googled this and tried several guesses but none was found or successful. Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Haris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Sep 2011 16:02:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-set-bdcdata-table-for-a-select-options-object/m-p/8165568#M1622697</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-02T16:02:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to set BDCDATA table for a SELECT-OPTIONS object?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-set-bdcdata-table-for-a-select-options-object/m-p/8165569#M1622698</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you would supply the field name like s_option-low s_option-high, etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A better way, if possible, would be to set parameter ids to a value and call the transaction skipping the first screen.  This may not be possible, though, in your case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have developed a report, record the session (bdc recorder) to the point when it is past your selection screen...the recording will show you the fields, screen actions, etc.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Sep 2011 16:11:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-set-bdcdata-table-for-a-select-options-object/m-p/8165569#M1622698</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-02T16:11:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to set BDCDATA table for a SELECT-OPTIONS object?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-set-bdcdata-table-for-a-select-options-object/m-p/8165570#M1622699</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you program is a report it would be much easier to use the SUBMIT statement instead of a CALL TRANSACTION.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  SUBMIT 'your_report' WITH p_param = value
                                 WITH s_sel   IN values
                       AND RETURN.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Sep 2011 16:17:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-set-bdcdata-table-for-a-select-options-object/m-p/8165570#M1622699</guid>
      <dc:creator>arseni_gallardo</dc:creator>
      <dc:date>2011-09-02T16:17:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to set BDCDATA table for a SELECT-OPTIONS object?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-set-bdcdata-table-for-a-select-options-object/m-p/8165571#M1622700</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Haris,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have fixed values in your selection screen, I suggest you to create a program variant and call/create a transaction with this variant&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If these values are determined at runtime, then you could create a Z transaction which calls the program the way suggested by  Arseni Gallardo, and you call the Z transaction in batch input.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Other solution, you can use this simple framework which fills the SELECT-OPTIONS for you, I just posted it in this wiki : &lt;A href="http://wiki.sdn.sap.com/wiki/display/ABAP/Fill" target="test_blank"&gt;http://wiki.sdn.sap.com/wiki/display/ABAP/Fill&lt;/A&gt;&lt;EM&gt;SELECT-OPTIONS&lt;/EM&gt;in+BDCDATA&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sandra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Sep 2011 18:07:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-set-bdcdata-table-for-a-select-options-object/m-p/8165571#M1622700</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2011-09-02T18:07:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to set BDCDATA table for a SELECT-OPTIONS object?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-set-bdcdata-table-for-a-select-options-object/m-p/8165572#M1622701</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please use this code for the purpose, I am sure you must have get the relavant help in that relation:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF BLOCK b3 WITH FRAME TITLE text-102.&lt;/P&gt;&lt;P&gt;PARAMETERS:  p_fmode  RADIOBUTTON GROUP r1,&lt;/P&gt;&lt;P&gt;             p_bmode  RADIOBUTTON GROUP r1.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF BLOCK b3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;  PERFORM data_upload.&lt;/P&gt;&lt;P&gt;END-OF-SELECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Akg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 03 Sep 2011 06:10:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-set-bdcdata-table-for-a-select-options-object/m-p/8165572#M1622701</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-03T06:10:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to set BDCDATA table for a SELECT-OPTIONS object?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-set-bdcdata-table-for-a-select-options-object/m-p/8165573#M1622702</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Haris,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select-options fields can be referred to as SO_DATE-LOW and SO_DATE-HIGH.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want extended selections, it gets a bit more tricky as you use function code and have one more screen with tabs and stuff.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can still run batch recorder to answer such basic question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BTW: akg.amit post seems to be completely misrouted as there is no reference to the question at all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 03 Sep 2011 19:08:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-set-bdcdata-table-for-a-select-options-object/m-p/8165573#M1622702</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2011-09-03T19:08:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to set BDCDATA table for a SELECT-OPTIONS object?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-set-bdcdata-table-for-a-select-options-object/m-p/8165574#M1622703</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;  Better go for  SUBMIT report   instead of CALL transaction  ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  find the name  of  report being called  on that transaction which you will be calling  . Use that report name in SUBMIT  &lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;Just take help from  below code . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Before using do please read  by pressing f1 on SUBMIT  syntax .&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; data:seltab     type table of rsparams,&lt;/P&gt;&lt;P&gt;         seltab_wa  like line of seltab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    move: 'LANGU'  to seltab_wa-selname,&lt;/P&gt;&lt;P&gt;          'S'      to seltab_wa-kind,&lt;/P&gt;&lt;P&gt;          'I'      to seltab_wa-sign,&lt;/P&gt;&lt;P&gt;          'BT'     to seltab_wa-option,&lt;/P&gt;&lt;P&gt;          'D'      to seltab_wa-low,&lt;/P&gt;&lt;P&gt;          'I'      to seltab_wa-high.&lt;/P&gt;&lt;P&gt;    append seltab_wa to seltab.&lt;/P&gt;&lt;P&gt;    clear seltab_wa.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    move: 'E'      to seltab_wa-sign,&lt;/P&gt;&lt;P&gt;          'EQ'     to seltab_wa-option,&lt;/P&gt;&lt;P&gt;          'F'      to seltab_wa-low,&lt;/P&gt;&lt;P&gt;          space    to seltab_wa-high.&lt;/P&gt;&lt;P&gt;    append seltab_wa to seltab.&lt;/P&gt;&lt;P&gt;    clear seltab_wa.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    move: 'AUFNR' to seltab_wa-selname,&lt;/P&gt;&lt;P&gt;          p_aufnr to seltab_wa-low.&lt;/P&gt;&lt;P&gt;    append seltab_wa to seltab.&lt;/P&gt;&lt;P&gt;    clear seltab_wa.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    submit rkaep000  using selection-set 'VARIANT1'&lt;/P&gt;&lt;P&gt;                      with aufnr = p_aufnr&lt;/P&gt;&lt;P&gt;                      with selection-table seltab&lt;/P&gt;&lt;P&gt;                      exporting list to memory&lt;/P&gt;&lt;P&gt;                      and return .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Deepak.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Sep 2011 05:36:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-set-bdcdata-table-for-a-select-options-object/m-p/8165574#M1622703</guid>
      <dc:creator>deepak_dhamat</dc:creator>
      <dc:date>2011-09-05T05:36:43Z</dc:date>
    </item>
  </channel>
</rss>

