Selection screen variant...

Hi Gurus,
My requirement is I need to call a prepare a selection screen and create a variant of that screen..
Then user will put the name of the variant as selection id in "Production Planning run " screen...I neeed to fetch all product ids based on the sejection screen variant and store that internal table of user exit
APOCDPS1....The internal table name is "E_SEL_PEGID_TAB". It is there in the FM Exit_SAPLCDPSUSER_02 ....
Please help,,,how to do??
I also need to write a query in the user exit on a table  to fetch what are stored in the variants where the variant name is selection id given by the user...Which table and which fields are maintaining that in APO..

You should go to transaction /SAPAPO/CDPSB0.  create the screen variant there and then you can call this varient in transaction CDPS1.
Regards.
Nitin Thatte

Similar Messages

  • To display the selection screen variant name in WAD report output.

    Hello experts,
    I have a requirement which is to display the selection screen variant description in the output of the WAD report.
    I managed halfway, by using the object "Information field", which displays all the values which are selected by the variant.
    Example:I have created a cost center report created using WAD, since I need some graphical displays..
    In the selection screen, I have the characteristic "cost center" as input field. I have created a variant " GM - IT" which will include few cost centers managed by GM. In the output, I want the dispaly to be "Cost center - GM IT". Currently it displays "Cost Center - a,b,c,d" as the values a,b,c,d are the values from the variant name "GM-IT"
    Please let me know if this required any java script. I am not familiar with java / html codes and any help would be much appreciated (and rewarded)
    Thanks in advance
    KS

    Hi,
    Try this.
    If you want to include your variables in your WAD means you have to choose "Force Variable Screen" option to be in enabled condition.
    TO enable this,in WAD select your Template(New Template1) click the WEBITEM , it'll shows all generic properties , here you can enable this "Force variable screen"
    Save and execute your WAD now you can get your variable screen.
    Thanks,
    JituK

  • Selection screen variant for report

    Hi,
    Can we restrict the selection screen variants for reports by user? For example my report is ZREPORT. Different users can save variants for the report. When they choose a variant for executing the report, they would like to see only the variants they created.
    By default SAP lists all variants created (irrespective of who created).
    Thanks
    Anil

    Hi,
      If you want the other users doesn't want to execute (Not see) other variant..you can check if that user has created the variant in the AT SELECTION-SCREEN event..
      By checking VARI-VARIANT against the table VARID and check if sy-uname <> VARID-ENAME.
    Thanks,
    naren

  • How to limit the creation of the selection screen variant

    Hi,
    I have a question concerning the selection screen variants. Is it possible to limit the number of variant created by users (in customizing, authorization..)  ?
    If, yes, can you please tell me the procedure to follow.
    thanks for help.

    Cannot be restricted during creation but you can do a program that reads the report's existing variants, delete some, or modify the variant's content, you can put that in the program itself so when executed, apply your validation, or a background job depending on your requirements.
    You can do it with this function modules:
    RS_ALL_VARIANTS_4_1_REPORT
    RS_CHANGE_CREATED_VARIANT
    RS_VARIANT_DELETE
    Hope it helps

  • How to get selection screen variant name of a report ?

    Hi Experts,
    Can any body please suggest, how I can get the variant name that was selected when a report program was being scheduled in background?
    I am using system field SY-SLSET but it is working only at foregrounf execution.In background mode it holds different value like '&0000000000038'.
    Thanks in advance.

    Hi !
    When running the program in foreground (SE38 -> F8) or in a background job (SM36), sy-slrel is correctly filled.
    When running in background via SE38 transaction (run in background  : F9), sy-slrel is not filled correctly (&000010 for example).
    However, in the second case, you still are in foreground when in the selection screen. Thus this simple but quite efficient idea of  [Vinod Vemuru|http://wiki.sdn.sap.com/wiki/display/~ncz6anw] :
    http://wiki.sdn.sap.com/wiki/display/ABAP/Howtogetthevariantnamewhenrunningthereportinbackgroundfromselectionscreen

  • How to print the selection screen variant as a report header

    I want to print the variant selected on the selection screen as a report header in the report painter.....Kindly help....The variant selected prior to generating the report painter output must be displayed on the final output screen as the header on the screen...

    Hi
    Here you've to use 'Z_HEADER_FOOTER' function module at TOP-OF-PAGE
    Just pass parameters for report_name                 as repid
                                              show_select_options  as 'Y'
                                              show_parameters       as 'Y'
                                              line_size                       as you wish
                                              action                           as 'X'
    Hope this fulfills your requirement
    Thanks
    Suren

  • Selection Screen Variant does not set Tab as active -

    Hi experts,
    I have a Z-report. The selection screen of this report has got 8 tabs and sub screens, for different type of reporting ( SO, PO, Invoice reporting etc).
    Now the issue is, if a user creates a variant for the report with one particular tab as active tab, while running with this variant, the report starts with default tab(Tab 1) as active tab. The filed values in the particular tab are getting populated correctly from the variant. But the current/active tab is not getting set from the Variant. (Or in other words, none of the hidden fields in the screen P_TAB1, P_TAB2, etc are getting populated with X when creating a variant)
    This issue started recently, and old variants (created long back) are pointing to the correct tab as expected. I have checked for the changes in the report. Unfortunately there is only one version(latest) available in the system.
    Any kind of help will be appreciated.
    Thanking you in anticipation.
    Deeps

    Hi,
    I was wondering if you ever solved your issue.  I am facing the same
    problem.  When choosing a variant, I would like the active tab to
    display the correct select-option fields.

  • Selection Screen Variant (optionally default) -I dont think it's possible!?

    I have spent a lot of time looking at this issue - researching forums/sap help/on the system  - so any help appreciated...
    On the selection screen (for tx me59n) is it actually possible for users to set a variant as default on the selection screen?  It's actually that I want "Test Run" to be defaulted.
    This is the ideal scenario:
    - The selection criteria variant is created centrally (or even individually by the user)
    - The user can then optionally set this variant as their default selection criteria for the transaction
    - Next time the user runs the transaction, the defualt variant is used
    What I do not want is:
    - User having to select the variant each time they run the transaction
    - The variant always being default (it should only be default when user decides they want it as such)
    Any ideas?  I can't see that it's possible....?
    thanks in advance,
    Matt

    I've been trying SHD0 alot, but doesnt seem to work - again, i've spent time reading and trying it out but with no luck.
    This is how I'm doing it to try to default "Test Run" checkbox for ME59n
    - Run transaction SHD0
    - Input "ZDefault" into Transaction Variant field
    - Click create
    - ME59n loads
    - I tick "Test Run" (which is what I want defaulting for the transaction)
    - Click save
    - It prompts me to create screen variant
    - I input ZTEST_VARIANT and click save
    - I get a pop-up box which I enter ZTEST_VARIANT to name field but dont make any other changes
    - Get message saying ZTEST_VARIANT saved
    - Click back to Transaction Variant screen
    - Save it as a local object
    - Get message saying "Trans Variant and Screen Variant Saved"
    - Click back to initial SHD0 screen
    - Click TEST to try it out.
    - ME59n loads, but "Test Run" is not checked - the variant appears not to have been loaded at all.
    I run ME59n independently and still nothing seems to get loaded when I run the transaction. Although the new screen variant is availbale in the variant list, which if I select it it works perfectly.  But I want make it default??? How do I do it?
    Any ideas what i'm missing?
    Usually I can figure these things out pretty quickly, but this one has me stumped!
    thanks
    Matt

  • Dynamic selection screen variant

    Hi Gurus,
    There are two parameters in the selection screen of a report. One for Date, whose format is ww.yyyy and purchasing organization. Both the fields are mandatory fields.
    I have to create variants for this report in such a way that when user selects the variant, it should give current week in combination with year in Date parameter and Purchasing organization from the saved variant list.
    Suppose there are two variants created with purchasing organizations 0001 and 0002, if i select 1st variant today then date should be 22.2007 and purchasing organization as 0001... if i select 1st variant in next week then date should be 23.2007 with purchasing organization 0001...
    Thanks in Advance,
    Phani.

    Hi Sivapuram ,
      I am not sure we can create a varaint where we have some processing involved  .
    What i would suggest is if you want this to be done for a specific varaint , then you will have to write the processing code in the at selection-screen output event .
    This code must include the logic to calcuate the value as per your requirement , the code must be executed when the specific variant is loaded , the current varaint loaded in the system is stored in the system varaible sy-SLSET.
    This is a solution which is very specific to a varaint and not a generic solution.
    Regards
    Arun

  • Dynamically generating selection screen variants

    Hi,
    I have a report for which i have to create a variant. This report will be executed in background. There is a parameter Planning Date on the selection screen of this report. The format of this date is week.year i.e., ww.yyyy. Week should change automatically based on the week it is executed. For example, lets suppose that the current planning date is 19.2007. When you execute this report in the next week, the date should be 20.2007.
    Please suggest me on how to do this.
    Best Regards,
    Phani.

    Hi,
    Create two variants for the below program say VAR1 and VAR2.
    For the variant VAR1 take the default values say 12 and 3.
    and for VAR2 take the values 10 and 5.
    Now execute the program by selecting the variants VAR1 and VAR2. You can see the difference.
    when you select VAR1 the parameters can be seen in disable mode.
    parameters: p_num1 type i default 12,
                      p_num2 type i default 3.
    at selection-screen output.
    if sy-slset = 'VAR1'.
    loop at screen.
      if screen-name = 'P_NUM1' or
         screen-name = 'P_NUM2'.
         screen-input =  0.
      endif.
      modify screen.
    endloop.
    endif.
    write:/5 p_num1, 35 p_num2.
    Edited by: Velangini Showry Maria Kumar Bandanadham on Apr 14, 2008 12:52 PM

  • Error in selection screen variant saving .

    Hi All ,
    I have a selection screen with 4 radio buttons and some parameters , based on selection of the radio buttons the parameters change for input , now by default one radio button is selected and now if i try to save it and then when i try to hide any one of the radio button and some parameters the system throws an error saying that all radio buttons of the groub ' rb1' are not hidden , now can you tell me how to achieve functionality .

    Hi,
    According to me your all Radiobutton comes under a single Group ' rb1' ,
    Try Your code with different radiobutton Groups, It will Work.
    Do let me know the outcome.
    Thanks
    Saurabh

  • Transport selection screen variant of ad-hoc query

    Hi, I've created an ad-hoc query using sq01,sq02,sq03 and I've assigned it to a transaction and created a screen selection variant.
    Now I want to transport the screen selection variant. RSTRANSP doesn't seem to work for that.
    Thanks

    Hi Alejandro,
    You can transport this to other system by make use of program RSAQR3TR,  before you transport to other systems, please check everything is working fine in Development system, once everything is perfect..
    Please use the program which i have stated above and transport user group first, then infoset and then query,, you can do it in two ways..by downloading and uploading or else by export and import..
    if you still have any queries on this. share with your screenshot what have you done,, so i will help you on it..
    Thanks
    Sriram

  • Selection screen variant default value

    Hi,
    I have a hidden parameter defined of type sy-slset to store the current selected variant. Now how do i make sure that this parameter will contain the actual variant name now matter whether the program is executed in background or foreground.

    Hi Premal,
    when you run the program in background using SM37 the dynamic varint will get created.
    You might have storing the variant in the custom table.
    First you maintain the entry for the particular vairant in the custom table.
    Then you run the program in background using TCode- SM36 for the particular variant.
    The particular fields for the variant will get maodified in th custom table.
    Hope this will solve your issue.

  • Selection Screen Variant of a Report program

    Hi All,
    I am having a F4 help to select a path of few folders and files from local drive in my report program.
    After I select this path, I am saving it as a variant. But this variant will not work for the next time I login to SAP.
    Please let me know what can be done.
    Thanks,
    Poornima.

    Hi,
    Please check below thread for setting the varaint as a default.
    How to set variant as default for report.
    Or it the path is always fixed you can give it as a default valuw while declaring the parameter.
    Regards,
    Pawan

  • Selection-Screen Variant in WDJ

    Hi,
    We want to provide the functionality to users to save the search criteria as a variant (similar to SAP Save-As Variant but this is in Webdynpro-Java).  Can anyone please advise how to achieve this?

    Hi
    There is no such automatic mechanism to save variants in WD Java/Abap UI
    If you want to implement this it is completely upto your customization aspects.
    Either you connect R/3 or third party system to store variants for particular user.
    Remember it again decreases performance by hitting  more times the backend.
    Regards
    KALYAN

Maybe you are looking for

  • Applications launching extremely slowly - Mac Pro, OSX 10.6.8

    Hi, I have tried everything I can think of but perhaps some of the experienced people on this forum have seen this before. I have a Mac Pro about a year old and everything was running fine until about 2 weeks ago. The applications take extremely long

  • Import Access into Oracle

    Hi, I have some access tables (may be nearly 60) in one Windows PC. I need to import all the data into Oracle Database. This has to run every day night. So I need your help to import the data into oracle the easier, faster way.

  • ABAP report Query

    in an internal table(I_VEPO) i have two reocords with fields SDABW , TKNUM, VBELN, ERDAT , and TOT_VALUE(hardcoded). these reocords are having same data except TOT_VALUE so i want to make it single records by adding their TOT_VALUE, please giv me the

  • UpdatableResultSet.next throws NullPointerException

    Execute a query and then loop through the result set doing rs.getString(1) over and over. Keep getting the following exception: java.lang.NullPointerException at oracle.jdbc.driver.UpdatableResultSet.next (UpdatableResultSet.java, Compiled Code) Anyo

  • E90 malfunction at front button

    When I charged last time my communicator and re-used it I discovered malfunctions at the front buttons. E.g. it is not possible to release the keyboard lock of when pressing the green button (for starting a call) and see the last calls on screen it s