<?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 Most efficient logic based on my selection screen... in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/most-efficient-logic-based-on-my-selection-screen/m-p/2876690#M675257</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;
Hello Experts, 

My selection screen's parameters is based on different tables like VBAK, LIKP, MARA and LIPS.
Now, How do I code my select statement since my selection screen is based from different tables?
I want to avoid using JOINS for this scenario.Anyway, below is my selection screen:

SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-002.
SELECT-OPTIONS: s_vbeln FOR vbak-vbeln,
                s_audat FOR vbak-audat,
                s_auart FOR vbak-auart,
                s_bstnk FOR vbak-bstnk,
                s_sold  FOR vbak-kunnr,
                s_ship  FOR likp-kunnr,
                s_spart FOR mara-spart,
                s_matnr FOR vbap-matnr,
                s_charg FOR lips-charg,
                s_dlv   FOR lips-vbeln,
                s_lfdat FOR likp-lfdat.
SELECTION-SCREEN END OF BLOCK b2.
SELECTION-SCREEN BEGIN OF BLOCK b3 WITH FRAME TITLE text-003.
PARAMETERS: rb_local RADIOBUTTON GROUP grp1 DEFAULT 'X' USER-COMMAND cmd,
            rb_ftp   RADIOBUTTON GROUP grp1.
SELECTION-SCREEN END OF BLOCK b3.
SELECTION-SCREEN BEGIN OF BLOCK b4 WITH FRAME TITLE text-004.
PARAMETERS:     p_fname2(60) TYPE c MODIF ID fnb,
                p_fname      TYPE   rlgrap-filename DEFAULT 'c:' MODIF ID fna ,
                p_ip(64)     TYPE c LOWER CASE ,
                p_user(30)   TYPE c LOWER CASE ,
                p_pword(30)  TYPE c LOWER CASE .
SELECTION-SCREEN END OF BLOCK b4.
SELECTION-SCREEN END OF BLOCK b1.

Hope you can help me guys. Thank you and take care!
&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 02 Oct 2007 08:39:11 GMT</pubDate>
    <dc:creator>aris_hidalgo</dc:creator>
    <dc:date>2007-10-02T08:39:11Z</dc:date>
    <item>
      <title>Most efficient logic based on my selection screen...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/most-efficient-logic-based-on-my-selection-screen/m-p/2876690#M675257</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;
Hello Experts, 

My selection screen's parameters is based on different tables like VBAK, LIKP, MARA and LIPS.
Now, How do I code my select statement since my selection screen is based from different tables?
I want to avoid using JOINS for this scenario.Anyway, below is my selection screen:

SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-002.
SELECT-OPTIONS: s_vbeln FOR vbak-vbeln,
                s_audat FOR vbak-audat,
                s_auart FOR vbak-auart,
                s_bstnk FOR vbak-bstnk,
                s_sold  FOR vbak-kunnr,
                s_ship  FOR likp-kunnr,
                s_spart FOR mara-spart,
                s_matnr FOR vbap-matnr,
                s_charg FOR lips-charg,
                s_dlv   FOR lips-vbeln,
                s_lfdat FOR likp-lfdat.
SELECTION-SCREEN END OF BLOCK b2.
SELECTION-SCREEN BEGIN OF BLOCK b3 WITH FRAME TITLE text-003.
PARAMETERS: rb_local RADIOBUTTON GROUP grp1 DEFAULT 'X' USER-COMMAND cmd,
            rb_ftp   RADIOBUTTON GROUP grp1.
SELECTION-SCREEN END OF BLOCK b3.
SELECTION-SCREEN BEGIN OF BLOCK b4 WITH FRAME TITLE text-004.
PARAMETERS:     p_fname2(60) TYPE c MODIF ID fnb,
                p_fname      TYPE   rlgrap-filename DEFAULT 'c:' MODIF ID fna ,
                p_ip(64)     TYPE c LOWER CASE ,
                p_user(30)   TYPE c LOWER CASE ,
                p_pword(30)  TYPE c LOWER CASE .
SELECTION-SCREEN END OF BLOCK b4.
SELECTION-SCREEN END OF BLOCK b1.

Hope you can help me guys. Thank you and take care!
&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Oct 2007 08:39:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/most-efficient-logic-based-on-my-selection-screen/m-p/2876690#M675257</guid>
      <dc:creator>aris_hidalgo</dc:creator>
      <dc:date>2007-10-02T08:39:11Z</dc:date>
    </item>
    <item>
      <title>Re: Most efficient logic based on my selection screen...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/most-efficient-logic-based-on-my-selection-screen/m-p/2876691#M675258</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;'Now, How do I code my select statement since my selection screen is based from different tables?'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It depends on what you want to select...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Oct 2007 08:41:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/most-efficient-logic-based-on-my-selection-screen/m-p/2876691#M675258</guid>
      <dc:creator>JozsefSzikszai</dc:creator>
      <dc:date>2007-10-02T08:41:33Z</dc:date>
    </item>
    <item>
      <title>Re: Most efficient logic based on my selection screen...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/most-efficient-logic-based-on-my-selection-screen/m-p/2876692#M675259</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;It is better to declare the Select -options with their Master data tables&lt;/P&gt;&lt;P&gt;where ever it is possible.&lt;/P&gt;&lt;P&gt;Kunnr from KNA1 instead of VBA-kunnr, Matnr from MARA instead of VBAP-MATNR, SPART from TSPA instead of MARA-SPART.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can join the tables VBAk,VBAP,LIKP,LIPS,MARA and can give all the select -options in the where conditions&lt;/P&gt;&lt;P&gt;that is the efificient way I feel, since the tables Order and Delivery tables can easily be joined.&lt;/P&gt;&lt;P&gt;or first join VBAk,VBAP,MARA and give the VBELn,AUDAT,AUART,BSTNK, SPART from VBAK and then for all entries of this ITAB fetch LIKP and LIPS validating the LIKP-KUNNR,CHARG,VBELN,LFDAT in where condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Oct 2007 08:56:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/most-efficient-logic-based-on-my-selection-screen/m-p/2876692#M675259</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-02T08:56:54Z</dc:date>
    </item>
    <item>
      <title>Re: Most efficient logic based on my selection screen...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/most-efficient-logic-based-on-my-selection-screen/m-p/2876693#M675260</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;'It is better to declare the Select -options with their Master data tables&lt;/P&gt;&lt;P&gt;where ever it is possible.&lt;/P&gt;&lt;P&gt;Kunnr from KNA1 instead of VBA-kunnr, Matnr from MARA instead of VBAP-MATNR, SPART from TSPA instead of MARA-SPART.'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it does not matter, they are pointing to the same data element...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Oct 2007 09:10:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/most-efficient-logic-based-on-my-selection-screen/m-p/2876693#M675260</guid>
      <dc:creator>JozsefSzikszai</dc:creator>
      <dc:date>2007-10-02T09:10:47Z</dc:date>
    </item>
  </channel>
</rss>

