Change the Parameter as Select option

Hi Guy's,
Please help me friends, present requirement is like this : change the Parameter into Select-Option.
Here they are using one function module, this function module import parameter taking single value, how  loop this function module with in this select-option.
PARAMETERS p_fictr LIKE fmfctr-fictr.
START-OF-SELECTION.
Move the select options to internal tables (import parameter for fn)
  move_sel_option  : sel_buk   s_bukrs ,
                     sel_pern  s_pernr ,
                     sreinr    s_reinr ,
                     spdatv    s_pdatv ,
                     sberei    s_berei .
Call the function to get all trips corresponding to sel criteria
  CALL FUNCTION 'ZHR_GET_FUND_TRIPS'
    EXPORTING
      p_fictr = p_fictr
      p_sub   = p_sub
    TABLES
      s_bukrs = s_bukrs
      s_pernr = s_pernr
      s_reinr = s_reinr
      s_pdatv = s_pdatv
      s_berei = s_berei
      i_trip  = i_trip
    EXCEPTIONS
      OTHERS  = 1.
Thanks and Regards,
Sai

hi,
  You can first the field values using the select statement and then loop that internal table and pass the values to the function module.
try this
*PARAMETERS p_fictr LIKE fmfctr-fictr.
select-options: s_fictr for fmfctr-fictr.
START-OF-SELECTION.
Move the select options to internal tables (import parameter for fn)
move_sel_option : sel_buk s_bukrs ,
sel_pern s_pernr ,
sreinr s_reinr ,
spdatv s_pdatv ,
sberei s_berei .
select fictr
   from fmfctr
   into tabel itab
where fictr in s_fictr.
loop at itab.
Call the function to get all trips corresponding to sel criteria
CALL FUNCTION 'ZHR_GET_FUND_TRIPS'
EXPORTING
*p_fictr = p_fictr
p_fictr = itab-fictr
p_sub = p_sub
TABLES
s_bukrs = s_bukrs
s_pernr = s_pernr
s_reinr = s_reinr
s_pdatv = s_pdatv
s_berei = s_berei
i_trip = i_trip
EXCEPTIONS
OTHERS = 1.
endloop.
regards,
Veeresh

Similar Messages

  • Change from Parameter to Select-options.

    Hi All,
    Requirement is to change the existing program.
    One of my requirement is to change parameter(P_VKORG) to Select-options(S_VKORG).
    I mean  earlier we have only one Slaes Organization, now we have got to use multiple Sales organizations. For this requirement I have used select-options insted of Parmeters.
    But the code has:
    a)PERFORMS using Parameters( P_VKORG). This inturn is used in the select statement of the FORM-ENDFORM.
    b)READ statement also has P_VKORG in where condition.
    How should these be replaced with Select-options(S_VKORG)?
    What would be the effect if I directly replace them with S_VKORG.
    Kalyani T

    you cannot just directly replace with S_VKORG.
    select option is a structure with 4 fields, sign, option, low and high, hence it has to be dealt accordingly.
    a. performs has to be changed to 'tables S_VKORG'
    eg. perform get_data tables s_vkorg.
    b. read statement has to be modified to deal with multiple values. best option will be to select for data in s_vkorg, and save in an internal table.
    for eg, if select option was for vkorg,
    select vkorg from tvko into t_tvko where vkorg in s_vkorg.
    now t_tvko has list of possible vkorgs - regardless of we had a range or ne or gt or CP or whatever we had in select option.
    now modify the read table to do for entries in T_TVKO.
    c. in the select statement which is used in forms, wherever you see ' = P_vkorg'  , replace with IN S_VKORG.

  • Parameter or select-option

    hello all,
    i have requierment in which i am confused.I have to declare a field in selection screen for user input. I have declared the field as parameter.But there is no multiple select option. And user ant to have multiple select option(.i.e interval range).
    The problem is the field i have declared in parameter is type c.Like:: Enterprise(30) type c,
                  divivsion(30)  type c.
    So this is not having any interval range.If i use select-option i can provide the range. SO plz help how can i define the parameter in select-option if its possible.
    Most important thing is is there is no filed for refrence like: s_matnr for mara-matnr. as we can define in select-option.
    Plz suggest some thing on this.
    Thanks & Regards,
    Anu Maheshwari

    Hi Anu,
    Decalare it as
    1)If you want your SELECT -OPTIONS to behave like parameters. USe the option.
    <b>SELECT-OPTIONS ..... NO INTERVALS NO-EXTENSION</b>
    REPORT abc.
    DATA : v_enterpr(30) TYPE c,
    v_divin(30) TYPE c.
    SELECT-OPTIONS : s_enterp FOR v_enterpr NO INTERVALS NO-EXTENSION ,
                     s_divin  FOR v_divin NO INTERVALS NO-EXTENSION .
    2)If you want to have it as SELECT-OPTIONS.
    Then
    REPORT abc.
    DATA : v_enterpr(30) TYPE c,
    v_divin(30) TYPE c.
    SELECT-OPTIONS : s_enterp FOR v_enterpr ,
                     s_divin  FOR v_divin .
    Refer to the program I gave in this link for more details.
    Re: Difference of "NO INTERVALS NO-EXTENSION" and  "Parameter"
    Regards,
    Arun Sambargi.

  • How to get the values of Select-options from the screen.

    The value of parameter can be obtained by function module 'DYNP_VALUES_READ' but How to get the values of Select-options from the screen? I want the F4 help values of select-options B depending on the values in Select-option A.So I want to read the Select-option A's value.

    Hi,
    Refer this following code..this will solve your problem...
    "Following code reads value entered in s_po select options and willprovide search
    "help for s_item depending upon s_po value.
    REPORT TEST.
    TABLES : ekpo.
    DATA: BEGIN OF itab OCCURS 0,
    ebelp LIKE ekpo-ebelp,
    END OF itab.
    SELECT-OPTIONS   s_po FOR ekpo-ebeln.
    SELECT-OPTIONS s_item FOR ekpo-ebelp.
    INITIALIZATION.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR s_item-low.
      DATA:
      dyn_field TYPE dynpread,
      temp_fields TYPE TABLE OF dynpread,
      zlv_dynpro TYPE syst-repid.
      zlv_dynpro = syst-repid.
      CALL FUNCTION 'DYNP_VALUES_READ'
        EXPORTING
          dyname     = zlv_dynpro
          dynumb     = syst-dynnr
          request    = 'A'
        TABLES
          dynpfields = temp_fields
        EXCEPTIONS
          OTHERS     = 0.
      LOOP AT temp_fields INTO dyn_field.
        IF dyn_field-fieldname EQ 'S_PO-LOW'.
            SELECT * INTO CORRESPONDING fields OF TABLE itab FROM ekpo
            WHERE ebeln EQ dyn_field-fieldvalue.
            EXIT.
        ENDIF.
      ENDLOOP.

  • Selection-Screen Parameter and select option

    Hi
    I had a very small and silly problem , i have a selection screen in which i had one select-options and another parameter .
    when i define both variable as select option i get output but if i define plant as parameter i dont get any output, .the code .
    SELECTION-SCREEN : BEGIN OF BLOCK s_screen WITH  FRAME TITLE text-001.
    SELECT-OPTIONS:   s_matnr FOR plaf-matnr.",       " OBLIGATORY,
    PARAMETERS:       s_werks like plaf-pwwrk. "    ,  " OBLIGATORY.
    SELECTION-SCREEN: END OF BLOCK s_screen.
    in this code when
    i enter material number i dont get output .
    i enter plant the i get output
    SELECT afko~aufnr
           afko~gamng
           afko~plnbez
           afpo~dwerk
           afpo~psmng
           afpo~matnr
           INTO CORRESPONDING FIELDS OF TABLE i_afko
           FROM afko INNER JOIN
           afpo ON afpoaufnr = afkoaufnr
           WHERE afpo~dwerk = s_werks
           and   afpo~matnr IN s_matnr
           AND   afpo~elikz = space.
    regards
    answers will be definately awarded points

    Hi
    When you use the plant in select-option, your code should be:
    WHERE afpo~dwerk IN s_werks
          and afpo~matnr  IN s_matnr
    if it's parameter:
    WHERE afpo~dwerk = s_werks
           and afpo~matnr IN s_matnr
    Are u sayng in the first case you get the data and in the second one you don't?
    Max

  • How to get all values in the range of select option into internal table?

    Hi,
    I need to capture all entries coming in the range of select option into one internal table.
    How to do get that?
    For E.g
    select-options: matnr for mara-matnr.(select option)
    IF I enter G0100013507892 as lower value of matnr and G0100014873947 as higher value
    and if there are 10,000 materials in the above range, then I want to capture all theses 10000 materails in one internal table. How to do that?
    Regards,
    Mrunal

    Hello Mrunal Mhaskar  ,
    What i understand you can do one thing  go in debug mode
    Try this code : -
    LOOP AT s_matnr_ex.
      IF s_matnr_ex-low IS NOT INITIAL.
        i_matnr-matnr = s_matnr_ex-low.
        i_matnr-option = s_matnr_ex-option.
        APPEND i_matnr.
        CLEAR : i_matnr.
      ENDIF.
    ENDLOOP.
    LOOP AT s_matnr_ex.
      IF s_matnr_ex-high IS NOT INITIAL.
        i_matnr-matnr = s_matnr_ex-high.
        i_matnr-option = s_matnr_ex-option.
        APPEND i_matnr.
        CLEAR : i_matnr.
      ENDIF.
    ENDLOOP.
    In the i_matnr table high and low values are there.
    Regards,
    Vandana.

  • This advertised application will not be installed because it might be unsafe. Contact your administrator to change the installation user interface option of the package to basic.

    Hi there,
    I was wondering whether anyone could tell me which feature in Windows 7 produces this message "This advertised application will not be installed because it might be unsafe. Contact your administrator to change the installation user interface option of
    the package to basic." and whether it can be turned off in Windows to prevent this message from appearing when installing certain programs that aren't WHQL certified. At first I thought it was the UAC control that generated this message but found out
    that it wasn't and then thought it was the DEP control and found out that it wasn't this either. I'm only seem to be getting this message when installing FileDirector Component Service Version 3 on a few of our workstations which is an add-on that allows file
    integration with Office and is part of FileDirector WinClient Version 3.
    Your help would be much appreciated.
    Many thanks,
    RocknRollTim
    P.S. I know of a way to bypass this message but would ideally not like to have the feature turned on and for the message not to be appear for non WHQL certified program installations in order to make non WHQL certified program installations in the future much
    easier, more simpler and straightforward to carry out. I was redirected by a moderator off the Microsoft Community Forum.

    Hi,
    You can try following options to disable this prompt, but we don't recommend you to do so since this feature helps you to protect your computer.
    Option 1: Run command as admin:
    bcdedit -set loadoptions DDISABLE_INTEGRITY_CHECKS
    bcdedit -set TESTSIGNING ON
    Restart your computer to apply changes.
    Option 2: Disable in GPO:
    1.Type gpedit.msc in the Run dialog and press Enter.
    2.In the Group Policy Editor, navigate to User Configuration → Administrative Templates → System → Driver Installation.
    3.Double-click on Code signing for device drivers in the right-side pane as shown above.
    4.In the windows that opens, choose Enabled. In the Options, choose Ignore as shown. Then click on the OK button to save the settings.
    Restart your computer to apply changes.
    Kate Li
    TechNet Community Support
    Unmarked as Answer based on OP's request. 
    https://social.technet.microsoft.com/Forums/en-US/35ab1279-c3a1-46be-9f7d-45e8606c1410/this-advertised-application-will-not-be-installed-because-it-might-be-unsafe-contact-your?forum=w7itproappcompat
    Arnav Sharma | http://arnavsharma.net/ Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading
    the thread.

  • Can you please tell me how can i change the parameter of Applet using Aspec

    Respect Members
    Can we apply Aspectwerkz on Applet? In our project we have to
    change the method parameters before its execution(Around Advice) , can we do this in applet using Aspectwerkz?
    Can you please tell me how can i change the parameter of Applet using Aspectwerkz or AspectJ ?
    I did it by for Java Application using the AspectJ And Aspectwerkz But not able to do for Applet.
    For Applet I Am setting the parameter in JAVA plug in for Aspectwerkz e.g. -Xdebug -Xrunaspectwerkz -Xbootclasspath & path for xml file in which pointcut is defined.
    If you any Friend working on it or any author who might be helpfull for me please Forward this mail to him/her
    THANKs in Advance
    [email protected]

    hello rodale, what you're seeing is probably a side effect of firefox not being able to save certain preferences into its profile folder.
    go to ''firefox > help > troubleshooting information'', click on ''profile folder/show folder'' and close all firefox windows afterwards. a windows explorer window should open up - in there delete the file named '''user.js'''.
    in case this didn't solve the issue yet please also refer to [[How to fix preferences that won't save]].

  • How do I change the default '/' shortcut (select none in colour swatch) to something different? Where can i find it in Keyboard Shortcuts?

    How do I change the default '/' shortcut (select 'none' in colour swatch) to something different? Where can i find it in Keyboard Shortcuts?
    Any ideas?

    Thanks so much )))))))

  • How to change date format in select-option (mm.yyyy).

    Hi,
       Plz, How to change date format in select-option (mm.yyyy).
      in my selection screen date type selection-option is there ,when i am enter date   it's  taken  dd.mm.yyyy format,but i want mm.yyyy format.
    how to set that .
    Regards,
    Kk.

    sorry
    parameters : pmonyr type spmon or
    select-options : sspmon for PGPL-spmon .
    or what table ccontains spmon.
    regards
    shiba dutta

  • Filling the Bucket of Select-option as DEFAULT??

    Hi Experts,
    Pls. clarify my doubt reg. Selection screen,
    When I, <i><b>F8</b></i> the my_z_report, the selection screen is coming with default values (say,  A; B; C; D) in the bucket of <i><b>multiple selection</b></i> of the <b><i>select option s_doctype</i></b>.
    I know, its possible, by coding in prog. it self, by filling the <i><b>SELTAB</b></i> explicitly as A; B; C; D after populating <b><i>SIGN; OPTION; LOW; HIGH</i></b> values!
    but, when I see the code of my_z_prog., I did not find any such code, all over??
    1) So, How the prevoius programmer filled it? bcoz, now I need add E;F;G etc. to the same!
    2) Wht r the other altrnatives (other than I mentioned above) to get it done?
    thanq.

    Hi,
    Check the following..
    1) Put a where-used list of the select-options variable..and check if it getting appended.
    2) If you execute the program with a transaction code..Then in the transaction code setup in SE93..You can start the report with a variant..If so..modify the report variant to add more values..
    Thanks
    Naren

  • Enque/table_size - Changing the parameter value

    Hi folks,
    I'm fairly new to SAP so was hoping for a bit of guidance with this matter.
    I need to increase the parameter value for "enque/table_size".  It's currently set to the default 4096kb and we're seeing a lot of lock table overflow errors.
    As the default value with Kernel 7.01 is 32MB, this seems like a good place to kick off.
    I've gone into RZ11 and entered the parameter name.
    Presumably, I select "CurrentValue" and Edit > Change Value?
    Because Change Value is greyed out.
    I have SAP_All in terms of authority. 
    So I'm a bit puzzlied!
    Any help would be appreciated.
    Thanks

    It seems your profile is not activated properly .
    First search for the value of the parameter in RZ11 or TU02 , If the value of the parameter is old proceed as either of the follows
    1 ) Go to /sapmnt/<SID>/profile ,  open the DEFAULT.PFL in an editor and add the entries . Bounce the system and check whetehr the entry appears in theRZ10 ( DEFAULT.PFL ) , since enqueue might be configured only in CI you can also do it in the instance profile
    2 ) Second option is to go to RZ10 , Open Default or instance profile ( Extended Maintainance ) , create the parametes ,Copy . Save . Activate the profile . Check version of the profile . Bounce the system and check again . This step is recommended
    Thanks ,
    Manu
    SAP Basis

  • Can you change the color of selected text in word?

    I use Word 2010, and when I select text it is always blue, is there a way to change the color?

    I use Word 2010, and when I select text it is always blue, is there a way to change the color?
    My earlier posting was an error.
    I apologize.
    You seem to be saying that the default colour for text is blue.
    You need to change:-
    Normal.dotm
     - to change the default colour of text.
    In order to change the default colour of text take the following steps (that were tested on Windows 7 and Office 2007 - the process should be
    similar, if not identical, for yourself):-
    1. Open a new blank document (this should
    have the default text as blue).
    Save that document with a new name for example:-
    c:\word\testing_aug_25_2014_2
    2. In the above document:-
    Insert tab
    Text group
    Click on the drop down arrow to the lower right of:-
    Quick Parts
     - then click on:-
    Field . . .
    The:-
    Field
     - window should open.
    3. In the:-
    Field
     - window in the field called:-
    Field names:
     - scroll down to:-
    Template
     - and click on that option so that it's highlighted in blue.
    Now, towards the top right hand corner of the same window, click in the box called:-
    Add path to file name
     - so that it has a tick (check mark) in that box.
    Click:-
    OK
    The file name of the template should now be inserted into your document.
    On my machine this was:-
    C:\Users\user_name\AppData\Roaming\Microsoft\Templates\Normal.dotm
    The above path might be different for you.
    4. I saved my document at this point.
    5. Now open the file called:-
    C:\Users\user_name\AppData\Roaming\Microsoft\Templates\Normal.dotm
    A document should open on your screen (still with blue text) and with:-
    Normal.dotm
    - in the middle of the Title Bar at the top of the screen.
    Highlight all of the text in the document so that it's (for example) black.
    Save the file.
    6. Close all open documents in WORD and
    close WORD itself.
    7. Now open a new document and its default
    text should be set to the colour that you applied at step 5. above (I used black at that point).
    Does that resolve your problem?

  • Import Parameter as Select Option for a FM in ECC 6.0

    Hi All,
    Can someone help me get the import parameter of a function module to be of the type select-options( the way it is used in reports) in ECC 6.0.
    Thanks for all your help in advance.
    Divya

    What I do is as following....
    I create two parameters...One for <b>START</b> and the other for <b>END</b>....Then, inside my FM I create a RANGE...
      DATA: BEGIN OF r_datum OCCURS 1,
            sign(1),
            option(2),
            low  TYPE vekp-vhilm,
            high TYPE vekp-vhilm,
            END OF r_datum.
    Passing the START to low and END to high....
    P.S: Don't forget to assign points to useful answers.
    Greetings,
    Blag.
    Message was edited by:
            Alvaro Tejada Galindo

  • Parameter to select-option conversion

    Hello Friends,
    I have a parameter field on selection screen and it is optional.
    If user enters any data on parameter, then I have to retrieve only corresponding value to the parameter from table.
    If user does not enter any data in parameter, then I have to fetch all the records.
    I want to convert this to selection-option.
    please let me know....

    Hi,
    Instead of converting why cant you do like this ,
    if P_field is initial.
    select * from <table>
    into table itab.
    else.
    select * from <table >
    into table itab
    where field  = p_field.
    endif.
    You can use select-option as parameter in this way,
    Select-options : s_field for wa-field no intervals no-extension.
    Regads,
    Raghava Channooru

Maybe you are looking for