Create two variant ?

hi friends ı want to use two variant option in a screen.ı wrote this code,
SELECTION-SCREEN BEGIN OF SCREEN 1060 AS SUBSCREEN .
"emrah 1060 screen create
PARAMETERS: P_VARI1 LIKE DISVARIANT-VARIANT .
PARAMETERS: P_VARI2 LIKE DISVARIANT-VARIANT .
SELECTION-SCREEN END OF SCREEN 1060 .
in main program,
AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_VARI1 .
  PERFORM REUSE_ALV_VARIANT_F4 USING P_VARI1 .
AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_VARI2 .
  PERFORM REUSE_ALV_VARIANT_F4 USING P_VARI2 .

you are using Two parameters for 2 variants. why?
are you showing two Grids.if so you can use..But not able to understand what you are doing..

Similar Messages

  • How to create a variant in ecatt?

    Hi all,
    I am new to Ecatt scripting. I hav a requirement from the user, that one ecatt is used for two sales org using two variants.
    I recorded as per the requirement ( first i created one basic script and called it in a master script ). Now I need to create two variants for the master script for the sales org.
    So could any one suggest how to create a variant in ecatt?
    Thanks in advance.
    Vijayakumar.G

    Hello Vijay,
    After recording parameterize everything whatever you want.
    In parameterization table leave the value field as empty, I mean don't give any value.
    Select the following in the menu,
    Utilities>Test configuration>Create
    Now, test configuration name will have the same of the test script name.
    Provide the details in the configuration tab. Then in the variants tab select the second radio button "Internal variants".
    In the variant table you can see the default variant "ECATTDEFAULT". You can make use of  this also. Otherwise you can also create your own variants by clicking "Insert variant" button.
    The variables whatever you have created in the test script will be there in the table. Now, Create variant and provide values for each variables.
    You can also select the variants which need to be executed.
    Now you can run the test configuration. It will be running number of times according to the created number of the variants.
    You can also create Test data for your test script and configuration.
    Try this, I hope it will help.
    Feel free to reward if it helps.
    Regards,
    Gopi
    Edited by: Gopinath K S on Oct 7, 2008 7:37 AM

  • Execute in Background with two variants

    Hi,
    Is it possible to execute a report in background if we assign two variants for a single job?
    Regards,
    Akula

    Hi,
    I successfully created two variants in single job and after executing my job has been failed giving a message "DATASET_NOT_OPEN" and type of Message is 'A'.
    In my program i have used datasets to download the report data into application server.
    Can you please suggest to me how to solve this problem.
    Regards,
    Vinay.

  • How to create a variant used in SM30,View variant in Parameter transaction?

    Dear Team,
    I have a view V_TCURR. For which I would be creating a parameter transaction for transaction SM30 by filling the default Values section (VIMDYNFLDS-LTD_DTA_VR, VIEWNAME,TVIMV-VARIANT). The values for first two fields are obvious.
    The question is on TVIMV-VARIANT How can we create a variant which can be used in tcode SM30.
    Delving a  little deeper show that these variants Obsolete since R/3 Release 3.1I: Selection variant for a table or maintenance view.
    Since R/3 Release 4.0, there are view variants instead of selection variants.
    The field only exists for reasons of backwards compatibility.
    If thats is so, How do I use the same in parameter transaction..?
    I have tried creating a view variant and use it parameter transaction but in vain..
    Please help resolve my problem. I hope I am very clear. If still need any clarification, please get back to me.
    Thanks a lot in advance,
    Reagards,
    Sai.
    P.S. Though there are multiple quuestions on simlar subjects none of them has been either answered or is completely relevant to mine.

    Dear Suman,
    Thanks a lot for the answer. Actually the Tcode is getting created if I do what you have said me.
    But when I run the tcode which was created by view variant created, I am not getting the desired details .
    To be more clear..
    Previously there was a variant (TMIMV-VARIANT) created with follwing criteria..
    Table TMIMV.
    TABNAME    VARIANT AS4POS            VIEWFIELD NEGATION OPERATOR     VALUE         AND_OR      TABIX
    V_TCURR     ZTHB     1     KURST     NOT     EQ     M     AND     2          
    V_TCURR     ZTHB     2     KURST     NOT     EQ     DWBP     AND     2          
    V_TCURR     ZTHB     3     TCURR          EQ     THB     OR     4          
    V_TCURR     ZTHB     4     TCURR          EQ     USD     OR     4          
    V_TCURR     ZTHB     5     TCURR          EQ     US$          4     
    When we run tcode created by paramaeter transaction.. viewname as  V_TCURR, TMIMV-VARIANT. I am getting the desired records for updation.
    But if I do the same using View variant with the same selection criteria
    Table            Field name     Operator      Comaparison  AND/OR
                                                                   Value
    TCURR     KURST     NE     'M'     AND
    TCURR     KURST     NE     'DWBP'     AND
    TCURR     TCURR     EQ     THB     OR
    TCURR     TCURR     EQ     USD     OR
    TCURR     TCURR     EQ     US$
    And the run the tcode created by using the view variant .. I am getting No entries found that match selection criteria...
    Could you please help and let me know if I am missing any step.. Kindly also check from your side how this can be achieved.
    Thanks a lot in advance,
    Sai.

  • How to create a variant to a report from another program at run time

    Hi experts,
                   when i am using FM  :  /OSP/REPORT_CREATE_VARIANT to create a report variant from a program then i am getting  an error 'For object /OSP/ERPNR , number range interval 01 does not exist ', how should i avoid it or can any one help me out to create a report variant from another program at run time with the results of the program.so that i can execute the report from here with this variant

    If i understand you,
    - You can use a FM like [RS_CREATE_VARIANT|https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_all&query=rs_create_variant+&adv=false&sortby=cm_rnd_rankvalue] to create a variant and then use it in the [SUBMIT|http://help.sap.com/erp2005_ehp_03/helpdata/EN/fa/096d67543b11d1898e0000e8322d00/frameset.htm] statement USING SELECTION-SET.
    - But you may also use SUBMIT with WITH parameters which doesnt require variant creation and with much less programming efforts.
    - You can mix the two solutions also.
    So what is you actual requirement, also look at some documentation like [ Scheduling a Job: Full-Control Method|http://help.sap.com/erp2005_ehp_03/helpdata/EN/fa/096ce5543b11d1898e0000e8322d00/frameset.htm]
    Regards

  • How to create a variant which take dynamic weekend dates only

    Hello All-
    I would like to create a variant which will take the ship date as saturday and sunday dynamically from current date to next two
    months.
    I was looking at this link but dont see any option which can serve my purpose.
    http://help.sap.com/saphelp_nw70/helpdata/EN/c0/98039be58611d194cc00a0c94260a5/content.htm
    Thanks,
    FJ

    hi
    this is to inform you that; please check shipping point calendar or plant claendar that SATRDAY AND SUNDAY AS ACTIVE
    this can be achieved in SHD0 -
    To assign a date calculation variable to an existing variant by selecting attributes goto change mode and select D -
        here your requriment is to tae SATURDAY AND SUNDAY ALS into consideration for shipment or creating a delivery right.
    giyou will have to create 4 + 4 = 8 varints in total to ful fill your requriment.
    the procedure is as follows; today is WEDNESDAY
    please choose current day +/- days = +3 days to mae it to reach upto friday and saturday also and sunday you want to ship high light those days
    proceed with your requriment.
    hope this clears your issue.
    balajia

  • How to create a variant in VA01

    Hi Gurus,
    Can you teach me how to create a variant in VA01?  I'd like to have a default value in the sold to party field.
    Thanks,
    Paul

    hi,
    To show a default sold-to-party in this field when the user creates a sales order (VA01) we can use a function exit .This function exit is located in enhancement no V45A0002 . Before we can choose the exit we have to create a project in CMOD after that enter V45A0002 in the enhancement field and click on the components . In the components you will see the exit EXIT_SAPMV45A_002 . This exit is used for our purpose.
    Double clicking on this exit will takes us to function builder (SE37) . This function exit has one exporting parameters and two importing parameters, we are interested in exporting parameter which is E_KUNNR of type KNA1-KUNNR i.e if we move the desired customer name to this structure(E_KUNNR) it will be shown in the field as the default value when we create the sales order. This function also contains a customer include ZXVVA04 . This include will be used to write our custom code .
    Double clicking on this include and it will prompt us that this include does not exists do you want to create this object ,select yes and the include will be created .In this include we can write our own code that will fill the field E_KUNNR.
    e.g. E_KUNNR = 301.
    Activate the include and Activate the project. Now when ever the SALES ORDER will be created , sold-to-party field will come up with a predefined customer .
    regards
    sadhu kishore

  • Error while trying to create Transaction variant for FV60 layout change

    Hi Gurus,
    I am trying to change the "order/sequence" of FV60 layout (rearranging columns). For which I tried to create Transaction Variant (in sandbox). I keyed in the t-code (FV60) and gave a variant name in the field for Transaction variant. But it gives me a wierd error - "Enter transaction code". Has anybody come across this before? This is enhancement pack 7 so the config button is not available.

    Thanks Ravi. I went through the note and did exactly the same. But the two check boxes displayed in the note for "Adopt column sequence" and "Adopt column width" is not displayed in my screen!!! Screen shot attached.

  • Custom Process Type - Creating the variant screen

    My custom process type's logic is rather simple: run parts of the process chain only if it is the first day of the month, other parts only if it the last day of the month.
    I created a new custom process type (ABAP OO Class), but I am now struggling with creating the logic to create/maintain a variant for my custom process type.
    My goal is to have a simple interface with two radio buttons where the user clicks on the "new variant" icon. One choice is "run on the first day of the month", the other choice is "run at the last day of the month".
    My understanding is that this logic has to be implemented in the method IF_RSPC_MAINTAIN~MAINTAIN.
    To support this, I also created a database table that consists of:
    - process chain id
    - run type (B = beginning of month / E = end of month)
    - current process type id (not quite sure how to populate this field yet...)
    Can someone now point me into the direction on how the create the variant logic so that the radio buttons get displayed and the table updated with the user's choice?
    Thank you,
    Dennis

    Any ideas?

  • BAPI or FM to create/update variant configuration

    Is there a BAPI or FM to create/update variant configuraion?
    There is one for sales order BAPI_SALESORDER_CREATEFRONDAT1 to create VC while creating SALES order.
    How do you do create VC while creating PO?
    Thanks.

    HI,
    There are two different Function Modules used to create service product and material product in CRM system.
    CRMXIF_PRODUCT_MATERIAL_SAVE for creating product of type material
    and CRMXIF_PRODUCT_SERVICE_SAVE for creating product of type service.
    Regards,
    PP

  • Create transaction variant of mm01 - can't fix material type

    Hi,
    I am trying to create two transaction variants for MM01 called ZM0R and ZM0F for raw and finished materials respectively. 
    I have created them and all the fields I want as Required are working.
    However, I want the material type to default in as raw for ZMOR and as finished goods for ZMOF.  I have ticked "with content" and "required" but it is not working. Whatever material type was last used in MM01 still comes in.
    I have also tried creating a copy of MM01 using Se93 to see if I can get it to work this way but when I test it, I get a message Sap Transaction control and can't seem to get past that.
    Any ideas?
    Thanks

    Hi Jurgen,
    worked a treat, thanks!.  I have another related problem...my backflush field in MRP2 is not appearing. I have checked the field groups and it is there, group 74, for the material type and marked as Optional.  Is there somewhere else this can be hidden?

  • I am a teacher that has 3 personal devices and then 8 I use at school. How can I create two differnt accounts?, I am a teacher that has 3 personal devices and then 8 I use at school. How can I create two differnt accounts?

    I'm an elementary teacher that uses 9 of my ipad 2's at school and I personally have an iPhone, iPod, and iPad.
    How do I keep the accounts separate? I tried to create two apple ID's, using my home and school e-mail, but that isn't working. I don't know how to
    keep the two separate the two. Do I need to use a different name on the account?

    ktuttle64 wrote:
    I tried to create two apple ID's, using my home and school e-mail, but that isn't working.
    It should work.  That's how you do it.

  • How to create a variant to a maintenance view (trans: SM31)

    Hi gurus.
    I have created a maintenance view (called z_jest). By running it from SM31 there is a variant option. However, I am not able to create the variant which I want to filter a selection upon in this transaction.
    I have even looked into transaction SE54 and created a variant for the maintenance table view there( called z_jestv). Then going back to transaction SM31 and view z_jest, i push 'Variant' radiobutton and type as variant: 'z_jestv', I only get the message: "Variant z_jestv for object z_jest does not exist".
    Can anybody please advice on how to create and/or connect the variant to the maintenance view?
    Regards LL.

    Hi Mahalakshmi
    Thanks for reply.
    When I look into the procedure, there is a prerequisite: "The basis dialog for which the maintenance variant is created already exists."
    I am a little bit unsertain if I miss this 'Basic dialog'. Can you please advice on how to check / create this 'basic dialog' before I go on to create the variant. (I need this 'basic dialog' as input in the procedure you sent.)
    (Note: I have already created a 'maintenance dialog' for the view, but I have a feeling, that is something different...)

  • I created two new albums in my photos on my iPhone. They do not show up on my ipad2.  How do I get them on my iPad also

    I Created two new albums in my photos. On my iPhone but they do not show up on my iPad.2. How do I get them to show up on my iPad also

    Hello abaneki,
    Thank you for using Apple Support Communities.
    For more information, take a look at:
    iOS: Device not recognized in iTunes for Windows
    http://support.apple.com/kb/ts1538
    Have a nice day,
    Mario

  • I want to use two separate Lion Time Machine backups and use them to create two separate profiles on one new computer

    This is something I need to do temporarily but I must do it. 
    I have an iMac 27 (end of year 2009) I5.  It has 1 TB internal and I want to replace it with a 2 TB internal.
    I have time machine backups on an external hard drive that has been connected via Firewire. 
    I have another iMac (my son's)Imac 24 Intel Core 2 Duo that has it's own separate Time machine backup to it's own separate firewire connected external drive.  Both machines are completely up to date with the latest version of Lion and all other necessary software updates.
    When the internal hardrive is replaced - I want to use my latest time machine backup to create one profile on the imac and then use my son's latest time machine back up for a second profile.  The end goal being to have everything from my current set up ie: apps, documents, itunes, etc existing in one profile and everything in my son's current set up existing in the other profile.   We can both be administrators for the time being as well.  I should note even though we both have some of the same apps, we both also have other apps that the other does not.
    My profile will be using about 900 gigs of total space.
    My son's profile will be using about 250 gigs of total space.
    This is temporary until the new iMac is released.  Then I will want to transfer my profile to that leaving my son's intact on the iMac 27 I5.
    I realize that during the temporary period that Time Machine will be making backups of this entire two profile setup, which I am now understanding as I write this will create a new issue for me when I want to transfer only my profile to the new computer as well.  But one bridge to cross at a time, I guess.
    I need to do this because we must bring his current computer to my father - as his iMac G5 is inoperable.  We have been doing this round robin hand me down in our family since IMac DV special edition :-)
    Any insight on this would be greatly appreciated.  And any other suggestions as well.
    Thanks very much.

    Hey Shootist000,  Thanks for the replies.  First off, I am actually okay if we both have each other applications so I am not concerned about that. It is still unclear from what you have said as to whether I can in fact, use these two separte time machine backup to create two separate profiles on the new hard drive.  If that in fact can be done, then - will it create two copies of the apps we both have in the ROOT of the drive as well as placing all the ones we each have separately?
    And reading your second reply, makes me think that maybe the partition is the way to go to begin with and then down the road - after I am in the new iMac, I could reformat the iMac 27 with only one partion and restore my son's latest back prior to the reformat thus giving him full access to the 2 TB of the drive.
    If this is still making sense, does this mean :
    replace the 1TB with a 2TB - but have it partitione - 1.5 TB & 500 GB.
    Install(Restore using Time Machine) my latest back up prior to the  1.5 partition
    Install (Restore using Time Machine) my son's latest back up prior to the 500 gig partition
    Lastly, in order for us both to be using the partioned computer - I am assuming Switch user can no longer be used - so would we need to restart and select our respective partions in order to use the computer?   And if so, how would we each be able to be using time machine to back up - two separte external hard drives - with each one dedicated to only one partition? Or ? 
    Thanks so much.
    Ironically, I am only trying to do this so that I don't need to manually install all his apps, setting, games, blah blah for this temporary period.  :-)

Maybe you are looking for

  • Create an Activity Report for Current Week

    I would like to create a activity report for the current week. The trick is that if the weekday is Wednesday or earlier (Sunday being the first day of the week), the report shows last week's activities; but if the weekday is Thursday or later (Saturd

  • Enhanced Infotype (IT0002) field in HRMD_A07 IDoc

    Hi All, I have enhanced SAP standard infotype 0002 (via PM01) to include one new field(NWFLD1). The infotype functions perfectly well with the new field(NWFLD1). I would now like to see this new field in the IDoc that is generated via change pointers

  • How do you figure out what week # your MacBook is?

    topic question

  • Managing Purchasing orders that contains third-party materials

    Hello everybody, How can I manage the purchasing orders related to third-party materials (sales order that contains third party materials). For example, I use ME5A to create purchase orders from the purchase requests created by MPS. Does exists any t

  • Can Somebody Help - Database specified does not exist

    Hi, Error 1065 The database specified does not exist Thanks --Anil