<?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 select options in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/1583974#M263296</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi friends, i have taken plant as select options and passed it to function module, using selopt...but i am getting an error 'length of plant is incorrect.&lt;/P&gt;&lt;P&gt;if i check the DDIC, the length of plant is 4. I am passing selopt which is of diff length..can any body pls explain&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 26 Sep 2006 10:36:58 GMT</pubDate>
    <dc:creator>abdulazeez12</dc:creator>
    <dc:date>2006-09-26T10:36:58Z</dc:date>
    <item>
      <title>select options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/1583974#M263296</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi friends, i have taken plant as select options and passed it to function module, using selopt...but i am getting an error 'length of plant is incorrect.&lt;/P&gt;&lt;P&gt;if i check the DDIC, the length of plant is 4. I am passing selopt which is of diff length..can any body pls explain&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Sep 2006 10:36:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/1583974#M263296</guid>
      <dc:creator>abdulazeez12</dc:creator>
      <dc:date>2006-09-26T10:36:58Z</dc:date>
    </item>
    <item>
      <title>Re: select options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/1583975#M263297</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;THE STRUCTURE SELOPT will have its own length.Can you specify where you have specified the plant.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Sep 2006 10:39:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/1583975#M263297</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-26T10:39:07Z</dc:date>
    </item>
    <item>
      <title>Re: select options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/1583976#M263298</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;could u explain in details&lt;/P&gt;&lt;P&gt;abt fm and sops&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Sep 2006 10:39:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/1583976#M263298</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-26T10:39:24Z</dc:date>
    </item>
    <item>
      <title>Re: select options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/1583977#M263299</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Shakir,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use this like&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;*--Selection screen.

SELECTION-SCREEN BEGIN OF BLOCK ONE WITH FRAME TITLE TEXT-001.
PARAMETERS : P_WERKS TYPE WERKS_D obligatory, "Plant
P_LGORT TYPE LGORT_D. "Storage Location
SELECT-OPTIONS: S_BUDAT FOR SY-DATUM. "Date
SELECTION-SCREEN END OF BLOCK ONE.
*-- start of selection.

START-OF-SELECTION.

 DATA : O_INV TYPE REF TO LCL_INV_VAR.
 CREATE OBJECT O_INV.

*--Call method for selecting the data

CALL METHOD O_INV-&amp;gt;SELECT_INV_DATA
EXPORTING
E_WERKS = P_WERKS
E_LGORT = P_LGORT
E_BUDAT = S_BUDAT[].


****************************
CLASS LCL_INV_VAR DEFINITION.

*--Public Section

PUBLIC SECTION.
*--Internal table Declaration

DATA : IT_INV_IN TYPE T_INV,

IT_INV_OUT TYPE T_INV.

*--Structure Declaration
DATA : X_BUDAT TYPE RANGE_DATE,
       X_INV TYPE TY_INV.

*--Variable declaration

DATA : V_LDATE TYPE SY-DATUM, "low date
V_HDATE TYPE SY-DATUM, "high date
V_MEINS TYPE MEINS,
V_TABIX TYPE SY-TABIX,
V_TOTIN TYPE MENGE_D,
V_TOTOUT TYPE MENGE_D,
V_NETTOT TYPE MENGE_D.

*--Method Declaration
METHODS :
*--Method for selecting data

SELECT_INV_DATA IMPORTING E_WERKS TYPE WERKS_D
E_LGORT TYPE LGORT_D
E_BUDAT TYPE T_T_DATE .

ENDCLASS. "lcl_inv_var DEFINITION
*----------------------------------------------------------------------*

* CLASS lcl_inv_var IMPLEMENTATION

*----------------------------------------------------------------------*

CLASS LCL_INV_VAR IMPLEMENTATION.

*--Method SELECT_INV_DATA implementation
METHOD SELECT_INV_DATA .

*--Type declaration
TYPES : BEGIN OF TY_MKPF,
          MBLNR TYPE MBLNR,
          MJAHR TYPE MJAHR,
        END OF TY_MKPF ,

 T_MKPF TYPE STANDARD TABLE OF TY_MKPF.

*--Internal table declaration.

DATA : IT_MKPF TYPE T_MKPF.

*--Selecting data for inventory IN movement type 311 and 101 where the

* selected storage location is destination storage location in MSEG.

SELECT MBLNR MJAHR
INTO TABLE IT_MKPF
FROM MKPF
WHERE BUDAT IN E_BUDAT.
IF NOT IT_MKPF IS INITIAL.
 SELECT BWART MATNR MENGE
 MEINS
 FROM MSEG
 INTO TABLE IT_INV_IN
 FOR ALL ENTRIES IN IT_MKPF
 WHERE BWART IN ('311' , '101')
  AND WERKS = E_WERKS
  AND LGORT = E_LGORT
  AND SHKZG = CON_S
  AND MBLNR = IT_MKPF-MBLNR
  AND MJAHR = IT_MKPF-MJAHR.

*--Delete all the entries from the table IT_INV_IN where unit of measure
*is not PC
DELETE IT_INV_IN WHERE MEINS &amp;lt;&amp;gt; 'ST'.

*--Selecting data for inventory OUT movement type 311,261,551 and 201
*where the
* selected storage location is Source storage location in MSEG.

 SELECT BWART MATNR MENGE
  MEINS
  FROM MSEG
 INTO TABLE IT_INV_OUT
 FOR ALL ENTRIES IN IT_MKPF
 WHERE BWART IN ('261' , '311' , '551' , '201')
 AND WERKS = E_WERKS
 AND LGORT = E_LGORT
 AND SHKZG = CON_H
 AND MBLNR = IT_MKPF-MBLNR
 AND MJAHR = IT_MKPF-MJAHR.
*--Delete all the entries from the table IT_INV_OUT where unit of
*measure is not PC

 DELETE IT_INV_OUT WHERE MEINS &amp;lt;&amp;gt; 'ST'.
ENDIF.

ENDMETHOD. "select_inv_data

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Richa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Sep 2006 10:45:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/1583977#M263299</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-26T10:45:25Z</dc:date>
    </item>
    <item>
      <title>Re: select options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/1583978#M263300</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;good&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;change the lengh of the plant as 4 and than check the difference,i hope it ll work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;mrutyun^&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Sep 2006 10:56:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/1583978#M263300</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-26T10:56:38Z</dc:date>
    </item>
    <item>
      <title>Re: select options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/1583979#M263301</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all, tahnku v much for ur responses...&lt;/P&gt;&lt;P&gt;my main prog code in se38 is REPORT  Z_NEW.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables : mard,&lt;/P&gt;&lt;P&gt;        marc,&lt;/P&gt;&lt;P&gt;       mbew,&lt;/P&gt;&lt;P&gt;       makt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parameters : material like mara-matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; select-options plant for marc-werks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : begin of itab1 occurs 0.&lt;/P&gt;&lt;P&gt;include structure mard.&lt;/P&gt;&lt;P&gt; data : end of itab1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; data : begin of itab2 occurs 0.&lt;/P&gt;&lt;P&gt; include structure marc.&lt;/P&gt;&lt;P&gt; data : end of itab2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; data : begin of itab3 occurs 0.&lt;/P&gt;&lt;P&gt;include structure mbew.&lt;/P&gt;&lt;P&gt; data : end of itab3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; data : begin of itab4 occurs 0.&lt;/P&gt;&lt;P&gt; include structure makt.&lt;/P&gt;&lt;P&gt; data : end of itab4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'Z_NEW1'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    MATNR         = MATERIAL&lt;/P&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;    IMARD1        = ITAB1&lt;/P&gt;&lt;P&gt;    IMARC1        = ITAB2&lt;/P&gt;&lt;P&gt;    IMBEW1        = ITAB3&lt;/P&gt;&lt;P&gt;    WERKS         = PLANT&lt;/P&gt;&lt;P&gt;    IMAKT1        = ITAB4.&lt;/P&gt;&lt;P&gt;*Table to output&lt;/P&gt;&lt;P&gt;   data : begin of itab5 occurs 0,&lt;/P&gt;&lt;P&gt;  lgort like mard-lgort,&lt;/P&gt;&lt;P&gt; labst like mard-labst,&lt;/P&gt;&lt;P&gt; dismm like marc-dismm,&lt;/P&gt;&lt;P&gt; dispo like marc-dispo,&lt;/P&gt;&lt;P&gt; stprs like mbew-stprs,&lt;/P&gt;&lt;P&gt; vmver like mbew-vmver,&lt;/P&gt;&lt;P&gt;  maktx like makt-maktx,&lt;/P&gt;&lt;P&gt; end of itab5.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; sort :itab1 by matnr,&lt;/P&gt;&lt;P&gt; itab3 by matnr,&lt;/P&gt;&lt;P&gt; itab4 by matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; loop at itab2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; read table itab1 with key matnr = itab2-matnr&lt;/P&gt;&lt;P&gt; binary search.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  if sy-subrc eq 0.&lt;/P&gt;&lt;P&gt;  move itab1-lgort to itab5-lgort.&lt;/P&gt;&lt;P&gt;  move itab1-labst to itab5-labst.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   read table itab3 with key matnr = itab2-matnr&lt;/P&gt;&lt;P&gt; binary search.&lt;/P&gt;&lt;P&gt; if sy-subrc eq 0.&lt;/P&gt;&lt;P&gt;  move itab3-stprs to itab5-stprs.&lt;/P&gt;&lt;P&gt;  move itab3-vmver to itab5-vmver.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;read table itab4 with key matnr = itab4-matnr&lt;/P&gt;&lt;P&gt;binary search.&lt;/P&gt;&lt;P&gt;   if sy-subrc eq 0.&lt;/P&gt;&lt;P&gt;move itab4-maktx to itab5-maktx.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  if not itab5[] is initial.&lt;/P&gt;&lt;P&gt;  append itab5.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; loop at itab5.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; write : /&lt;/P&gt;&lt;P&gt;    itab5-lgort,&lt;/P&gt;&lt;P&gt; itab5-labst,&lt;/P&gt;&lt;P&gt; itab5-dismm,&lt;/P&gt;&lt;P&gt; itab5-dispo,&lt;/P&gt;&lt;P&gt; itab5-stprs,&lt;/P&gt;&lt;P&gt; itab5-vmver,&lt;/P&gt;&lt;P&gt; itab5-maktx.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and in se37, FM is :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select lgort labst&lt;/P&gt;&lt;P&gt;from mard&lt;/P&gt;&lt;P&gt;into corresponding fields of table imard1&lt;/P&gt;&lt;P&gt;where werks in werks and&lt;/P&gt;&lt;P&gt;matnr = matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select dismm dispo&lt;/P&gt;&lt;P&gt;from marc&lt;/P&gt;&lt;P&gt;into corresponding fields of table imarc1&lt;/P&gt;&lt;P&gt;*where werks in werks and&lt;/P&gt;&lt;P&gt; where matnr = matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select stprs vmver&lt;/P&gt;&lt;P&gt;from mbew&lt;/P&gt;&lt;P&gt;into corresponding fields of table imbew1&lt;/P&gt;&lt;P&gt;where matnr = matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select maktx&lt;/P&gt;&lt;P&gt;from makt&lt;/P&gt;&lt;P&gt;into corresponding fields of table imakt1&lt;/P&gt;&lt;P&gt;where matnr = matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;.....&lt;/P&gt;&lt;P&gt;in tables in fm i gave werks like selopt and also defined imard1, imarc1, imbew1 and imakt1..pls check...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Sep 2006 10:57:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/1583979#M263301</guid>
      <dc:creator>abdulazeez12</dc:creator>
      <dc:date>2006-09-26T10:57:11Z</dc:date>
    </item>
    <item>
      <title>Re: select options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/1583980#M263302</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;U can try either of the below options as the problem is due to difference in the lenght.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Option 1.&lt;/P&gt;&lt;P&gt;Calling ABAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : lplant(24) type c.&lt;/P&gt;&lt;P&gt;select-options : plant for lplant.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Option 2.&lt;/P&gt;&lt;P&gt;Function Module.&lt;/P&gt;&lt;P&gt;Define a range for w_plant for marc-werks.&lt;/P&gt;&lt;P&gt;and populate the data from the paramater table WERKS to the range W_plant.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anurag&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Sep 2006 11:05:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/1583980#M263302</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-26T11:05:57Z</dc:date>
    </item>
    <item>
      <title>Re: select options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/1583981#M263303</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;   make chanhes relevent to populate new fields value in &lt;/P&gt;&lt;P&gt;   copied driver program &lt;/P&gt;&lt;P&gt;   assign driver program to output type using    &lt;/P&gt;&lt;P&gt;   NAce or nact transaction so that entry exist in table&lt;/P&gt;&lt;P&gt;   TNAPR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;amole&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Sep 2006 11:11:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/1583981#M263303</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-26T11:11:13Z</dc:date>
    </item>
    <item>
      <title>Re: select options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/1583982#M263304</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;  what is the dataelement  for werks in the FM and its length.and the length of werks in the select options.&lt;/P&gt;&lt;P&gt;&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;Ahasan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Sep 2006 11:12:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/1583982#M263304</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-26T11:12:23Z</dc:date>
    </item>
    <item>
      <title>Re: select options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/1583983#M263305</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;give the whole bodyof plant and try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;chk code in bold&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL FUNCTION 'Z_NEW1'
EXPORTING
MATNR = MATERIAL
TABLES
IMARD1 = ITAB1
IMARC1 = ITAB2
IMBEW1 = ITAB3
WERKS = &amp;lt;b&amp;gt;PLANT[]&amp;lt;/b&amp;gt;
IMAKT1 = ITAB4.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Sep 2006 11:12:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/1583983#M263305</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-26T11:12:30Z</dc:date>
    </item>
    <item>
      <title>Re: select options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/1583984#M263306</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;    disregard my earlier mail.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      problem is due to length of werks(4) field &lt;/P&gt;&lt;P&gt;      snd selopt low value(24)&lt;/P&gt;&lt;P&gt;     use below logic in FM&lt;/P&gt;&lt;P&gt;       ranges r_werks for t001w-werks.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;       select * from mard where matnr in s_matnr&lt;/P&gt;&lt;P&gt;                                werks in r_werks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;      &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;amole&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Sep 2006 11:14:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/1583984#M263306</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-26T11:14:25Z</dc:date>
    </item>
    <item>
      <title>Re: select options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/1583985#M263307</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shakir,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since you have defined the Select Option for Werks the High and Low fields in the select option get set to length '4' as that of Werks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However the SELOPT structure has a definition of Char 24 for High and Low. Hence the conflict.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To avoid this you can do the following in your program;&lt;/P&gt;&lt;P&gt;**********************************&lt;/P&gt;&lt;P&gt;data: pl1 type table of selopt.&lt;/P&gt;&lt;P&gt;pl1[] = plant[].&lt;/P&gt;&lt;P&gt;Pass pl1 to your FM instead of plant&lt;/P&gt;&lt;P&gt;**********************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Sep 2006 11:16:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/1583985#M263307</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-26T11:16:35Z</dc:date>
    </item>
    <item>
      <title>Re: select options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/1583986#M263308</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks guys!!...the issue has been resolved..i used werks like selopt in FM, nd defined plant1 length as 24 before using it as select option in se38. i am tring to reward points but the site is givin error...but i will keep trying...&lt;/P&gt;&lt;P&gt;Cheers !!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Sep 2006 06:55:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/1583986#M263308</guid>
      <dc:creator>abdulazeez12</dc:creator>
      <dc:date>2006-09-28T06:55:42Z</dc:date>
    </item>
  </channel>
</rss>

