<?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 SUBMIT using FREE SELECTIONS in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit-using-free-selections/m-p/8514287#M1655135</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;I have gone through a few threads on this topic, but have not got the answer yet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to trigger transaction WESOUT for some specific values in Dynamic selection from a background program.&lt;/P&gt;&lt;P&gt;This means I would have to use SUBMIT with FREE SELECTIONS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

DATA: trange TYPE rsds_trange,
trange_line
  LIKE LINE OF trange,
trange_frange_t_line
  LIKE LINE OF trange_line-frange_t,
trange_frange_t_selopt_t_line
  LIKE LINE OF trange_frange_t_line-selopt_t,
texpr TYPE rsds_texpr.

trange_line-tablename = 'WES_S_FILTER_WERKS_T001W'.
trange_frange_t_line-fieldname = 'WERKS'.
trange_frange_t_selopt_t_line-sign   = 'I'.
trange_frange_t_selopt_t_line-option = 'EQ'.
trange_frange_t_selopt_t_line-low    = '1054'.
APPEND trange_frange_t_selopt_t_line
  TO trange_frange_t_line-selopt_t.
APPEND trange_frange_t_line TO trange_line-frange_t.
APPEND trange_line TO trange.


CLEAR: trange_frange_t_selopt_t_line, trange_frange_t_line,
trange_line-frange_t,trange_line  .

trange_line-tablename = 'WES_S_FILTER_MATNR_MARA'.
trange_frange_t_line-fieldname = 'MATNR'.
trange_frange_t_selopt_t_line-sign   = 'I'.
trange_frange_t_selopt_t_line-option = 'EQ'.
trange_frange_t_selopt_t_line-low    = '000000000000011050'.
APPEND trange_frange_t_selopt_t_line
  TO trange_frange_t_line-selopt_t.
APPEND trange_frange_t_line TO trange_line-frange_t.
APPEND trange_line TO trange.

CALL FUNCTION 'FREE_SELECTIONS_RANGE_2_EX'
  EXPORTING
    field_ranges = trange
  IMPORTING
    expressions  = texpr.



SUBMIT rwes_message_out USING SELECTION-SCREEN '1000'
      WITH PA_APPL EQ 'POS'
      WITH SO_SRV EQ '0100'
      WITH PA_MAN EQ 'X'
      WITH PA_FILT EQ 'X'
      WITH PA_DISP EQ 'X'
      WITH FREE SELECTIONS texpr
      AND RETURN.


&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is, it doesn't seem to consider the free selection at all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this because the called program is not attached to an LDB?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does SUBMIT with FREE SELECTIONS work only with LDB?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any other method to execute programs with dynamic selections in the background?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL TRANSACTION? the BDC recording doesn't seem to work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you pls advise.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Arthi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;Can this be moved to the ABAP General forum. I posted this here by mistake.&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Arthi N on Feb 3, 2012 12:51 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 02 Feb 2012 23:45:06 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2012-02-02T23:45:06Z</dc:date>
    <item>
      <title>SUBMIT using FREE SELECTIONS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit-using-free-selections/m-p/8514287#M1655135</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;I have gone through a few threads on this topic, but have not got the answer yet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to trigger transaction WESOUT for some specific values in Dynamic selection from a background program.&lt;/P&gt;&lt;P&gt;This means I would have to use SUBMIT with FREE SELECTIONS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

DATA: trange TYPE rsds_trange,
trange_line
  LIKE LINE OF trange,
trange_frange_t_line
  LIKE LINE OF trange_line-frange_t,
trange_frange_t_selopt_t_line
  LIKE LINE OF trange_frange_t_line-selopt_t,
texpr TYPE rsds_texpr.

trange_line-tablename = 'WES_S_FILTER_WERKS_T001W'.
trange_frange_t_line-fieldname = 'WERKS'.
trange_frange_t_selopt_t_line-sign   = 'I'.
trange_frange_t_selopt_t_line-option = 'EQ'.
trange_frange_t_selopt_t_line-low    = '1054'.
APPEND trange_frange_t_selopt_t_line
  TO trange_frange_t_line-selopt_t.
APPEND trange_frange_t_line TO trange_line-frange_t.
APPEND trange_line TO trange.


CLEAR: trange_frange_t_selopt_t_line, trange_frange_t_line,
trange_line-frange_t,trange_line  .

trange_line-tablename = 'WES_S_FILTER_MATNR_MARA'.
trange_frange_t_line-fieldname = 'MATNR'.
trange_frange_t_selopt_t_line-sign   = 'I'.
trange_frange_t_selopt_t_line-option = 'EQ'.
trange_frange_t_selopt_t_line-low    = '000000000000011050'.
APPEND trange_frange_t_selopt_t_line
  TO trange_frange_t_line-selopt_t.
APPEND trange_frange_t_line TO trange_line-frange_t.
APPEND trange_line TO trange.

CALL FUNCTION 'FREE_SELECTIONS_RANGE_2_EX'
  EXPORTING
    field_ranges = trange
  IMPORTING
    expressions  = texpr.



SUBMIT rwes_message_out USING SELECTION-SCREEN '1000'
      WITH PA_APPL EQ 'POS'
      WITH SO_SRV EQ '0100'
      WITH PA_MAN EQ 'X'
      WITH PA_FILT EQ 'X'
      WITH PA_DISP EQ 'X'
      WITH FREE SELECTIONS texpr
      AND RETURN.


&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is, it doesn't seem to consider the free selection at all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this because the called program is not attached to an LDB?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does SUBMIT with FREE SELECTIONS work only with LDB?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any other method to execute programs with dynamic selections in the background?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL TRANSACTION? the BDC recording doesn't seem to work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you pls advise.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Arthi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;Can this be moved to the ABAP General forum. I posted this here by mistake.&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Arthi N on Feb 3, 2012 12:51 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Feb 2012 23:45:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submit-using-free-selections/m-p/8514287#M1655135</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-02T23:45:06Z</dc:date>
    </item>
    <item>
      <title>Re: SUBMIT using FREE SELECTIONS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit-using-free-selections/m-p/8514288#M1655136</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As far as I'm aware, dynamic selections require the use of a LDB.&lt;/P&gt;&lt;P&gt;The help also specifically states: "The program accessed must be linked to a logical database that supports dynamic selections."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I couldn't take a look at the program you mentioned because it's not in my system, but do you have the dynamic selections pushbutton in the toolbar even though the program isn't using a LDB? That'd be strange... I don't remember seeing this yet.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Feb 2012 00:26:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submit-using-free-selections/m-p/8514288#M1655136</guid>
      <dc:creator>Tamas_Hoznek</dc:creator>
      <dc:date>2012-02-03T00:26:19Z</dc:date>
    </item>
    <item>
      <title>Re: SUBMIT using FREE SELECTIONS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit-using-free-selections/m-p/8514289#M1655137</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Moved to ABAP General forum.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Feb 2012 00:34:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submit-using-free-selections/m-p/8514289#M1655137</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-03T00:34:08Z</dc:date>
    </item>
    <item>
      <title>Re: SUBMIT using FREE SELECTIONS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit-using-free-selections/m-p/8514290#M1655138</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tamas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, this report transaction has a 'Free Selection' button on the toolbar that dynamically generates the related dynamic selection fields based on the service implementation (a parameter on the sel scrn) selected on the main selection-screen.&lt;/P&gt;&lt;P&gt;I believe this is already set up in the config for Trade Outbound Framework.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The program uses function module WES_GET_FILTER_OF_APPL to derive the structures that correspond to the selected service and also the usual function modules from Fgroup SSEL to build a tree for the user to input the values for the dynamic fields.&lt;/P&gt;&lt;P&gt;You may not be able to see this transaction as it is IS-Retail specific I guess.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If SUBMIT with FREE SELECTIONS can be used only for Pgms with LDB, then I guess this wont work.&lt;/P&gt;&lt;P&gt;Is there any other way?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Arthi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Feb 2012 00:50:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submit-using-free-selections/m-p/8514290#M1655138</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-03T00:50:07Z</dc:date>
    </item>
  </channel>
</rss>

