How to create a variant
Hi :
I developed a BDC program using call transaction, and also a tcode for this program.How can i add variants to this tcode.
from se38 when i enter program name and from menu bar im selecting variants tab, here im creating a new variant and saving it.
But when i execute my tcode, in selection screen i am not seeing variant option.
Do i need to add any code for creating a variant in my program?
Thanks.
Raghu
Hello,
CALl the Transaction U have created fro the BDC. It will show the selection screen. There u fill the data for the field and SAVE button will be there in the menu click it will ask for Variant name give it and save.
If useful reward.
Vasanth
Similar Messages
-
MMPV - Close period - How to create a variant
Hello all,
Transaction MMPV is used to close the MM period and open a new one. Currently, we run this transaction every month MANUALLY.
We would like to create a variant that will open the new period automatically every month. The only problem is the period / year that changes every month (I do not know how to create a variant with changed values - if it is at all possible).
How can we create a variant that will run every month to close the MM period ?
Thanks for your help,
IsaacHello Isaac
It is possible......But to make it happen you need to go with date field and not with Period and year.
Steps -
1 - Enter field FROM Comp Code and TO Comp Code
2 - Enter the date (E.g - 05-Mar-2007)
3 - Save as varient....Give the varient names as required.
4 - Activate the 4th checkbox (Selection variable) in front of date field
5 - Click on button 'Selection variable' at the top of screen.
6 - Click on YELLOW light. This will turn it GREEN. Now you have 1st light as YELLO which was previously yello.
7 - Click on the down arrow just below the yello light.
8 - Select the appropriate option and save the varient.
The day of batch job scheduling depends upon the options you selected in the 8th step.
I hope it clarifies your dought and will allow you to create the varient as per your requirement.
Best Regards
Avinash -
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.GHello 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 -
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,
Paulhi,
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 -
How to create a variant selection screen
Hi experts,
Can you tell me " How to create a variant selection screen ".
Please it's urgent.........
Thanks
BasuHi ,
Goto your selection screen
Make entries in the fileds od the selection screen
press save button, it will ask you for the mane of the Variant
Give the name of the Variant and save it
Variant is now created for the selection screen.
Reward if useful.
Regards,
Shilpi -
How to create t-code for a table and how to create transaction variant???
Hi,
I have created a custom table zsark.
Now my requirement is : I have to create a transaction variant zsark_var for sm30 and table zsark. I have to disable the output of the first screen. I have to assign the transaction variant to the transaction code of table zsark.
Now,
1. how to create transaction code to a table. Can any one give me the
staps??
2. how to create transaction variant for the above requirement???
Thanks & Regards,
SarkarHi
1 Goto SE93 transaction
2 Choose 5th option Transaction with parameters
3 Give transaction : SM30, Check Skip Initial Screen Press Enter
4 Goto Bottom left corner, click F4 select viewname, on right hand side give table name
5 Press one more time F4, choose update , mark it X on right side.
6 save the transaction.
Thanks
sandeep
reward if helpful -
How to create process variant in process chain
What is a process variant? i try to add Infocube compression to the fi process chain. To accomplish this task, i have to create process variant. please tell me the step by step process how to create process variant and successfully add the compression to the process chain. Can i do it directly in production? Thanks to SDN community that i can count on.
Hi Rafi,
<b>Process variants</b>
The process variant is the name of the process Within the process chain context, it displays the configuration of a process of a particular type set at the time of definition. A variant is only consistently defined together with the process type. A process can have various variants. With the load process for example, the name of the InfoPackage is the name of the process variant.
The user defines the process variant at the time when the process is scheduled. With some process types, the variants are determined internally and are stored as GUIDs.
For more info:
Process Chains
http://help.sap.com/saphelp_nw04/helpdata/en/8f/c08b3baaa59649e10000000a11402f/content.htm
Processes
http://help.sap.com/saphelp_nw04/helpdata/en/7b/d4313b38bea774e10000000a114084/content.htm
Including InfoCubes in Process Chains
http://help.sap.com/saphelp_nw04/helpdata/en/d5/e80d3dbd82f72ce10000000a114084/content.htm
You can create process chains directly in Production. Most of the times system allows(depends on system settings). But this is not a proper way of working. Create in Development and transport it to Production.
Hope it Helps
Srini -
How to create the variant conditions in VK13
Can anyone plz tell me how to create the variant conditions in VK13.
Thanks in advance.Hi Suresh,
not sure if this is what you meant.. in VK13 enter the condition for which you want to maintain variant & press
enter.. fill in the Sales Orgn,Distbn Channel & Divion Values.. Use the menu option Edit> save as Variant> enter the variant name & desc and SAVE..
Regards,
Suresh Datti -
How to create new variants - VA05
Hi All,
I'm new in SD
How to create new variants in Tcode VA05, our client wants to create new variants as per user selections, pls advise how to resolve this issue.
Regards,
SankaranBelow is an example of step by step explanation...Following that u cud do that in VA01...
[https://www.sdn.sap.com/irj/scn/wiki?path=/display/snippets/transactionVariant-AStepbyStepGuidefor+Creation]..
Hope this helps... -
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...) -
How to create a variant for a selection screen button
hi ,
i have created a selection screen for a normal report .
In the selection screen there is one button after the selct option for company code. when user enters some company code and presses the button the user i call a able contraol in which user gives some additional values for the comapny code.
how do i create variant. when i create varaint for the slection screen it does not take into account the other screen i called .
so every time user has to click that button and enter some values and execute. please suggest some way.
THANKX IN ADAVANCE:)Hi,
Inorder to create a variant for selection screen report, you need to enter valid data on the screen and click on the SAVE button which is available in the Menu.
And regarding the button you were asking about after select option, it is not created manually it comes automatically,, you can remove this by mentioning no-extension after the select-option. You can get clear information of this if you do F1 help on select-option.
My advice to you, make effect use of F1 help.
Edited by: Madhuri on Sep 23, 2008 4:46 PM -
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 for a screen (not a selection screen)
Hi
I foud a function module RS_CREATE_VARIANT.
Is this the correct fm for creating screen variant, if yes then pls provide me some help about how to pass values to this fm.
if not then pls help me to find out new one.
thnks
satisfactory answer will be definitely rewarded.
S@meerpassing values to RS_CREATE_VARIANT.
data : LS_VARIANTDESC TYPE VARID.
DATA : LT_VARIANTTEXT TYPE TABLE OF VARIT ,
WA_VARIANTTEXT TYPE VARIT.
DATA : TT_REPORTPARAM TYPE TABLE OF RSPARAMS,
WA_REPORTPARAM TYPE RSPARAMS.
CLEAR LS_VARIANTDESC.
LS_VARIANTDESC-MANDT = SY-MANDT. " gr 46A
LS_VARIANTDESC-REPORT = 'ZXXXXX'.
LS_VARIANTDESC-VARIANT = 'VARIANT'.
LS_VARIANTDESC-EDAT = SY-DATUM.
LS_VARIANTDESC-ETIME = SY-UZEIT.
REFRESH LT_VARIANTTEXT.
CLEAR WA_VARIANTTEXT.
WA_VARIANTTEXT-MANDT = SY-MANDT. " gr 46A
WA_VARIANTTEXT-LANGU = SY-LANGU.
WA_VARIANTTEXT-REPORT = 'ZXXXXXX'.
WA_VARIANTTEXT-VARIANT = 'VARIANT'.
APPEND WA_VARIANTTEXT TO LT_VARIANTTEXT.
CALL FUNCTION 'RS_CREATE_VARIANT'
EXPORTING
CURR_REPORT = 'ZXXXXX'
CURR_VARIANT = 'VARIANT'
VARI_DESC = LS_VARIANTDESC
TABLES
VARI_CONTENTS = TT_REPORTPARAM
VARI_TEXT = LT_VARIANTTEXT
EXCEPTIONS
ILLEGAL_REPORT_OR_VARIANT = 1
ILLEGAL_VARIANTNAME = 2
NOT_AUTHORIZED = 3
NOT_EXECUTED = 4
REPORT_NOT_EXISTENT = 5
REPORT_NOT_SUPPLIED = 6
VARIANT_EXISTS = 7
VARIANT_LOCKED = 8
OTHERS = 9.
IF SY-SUBRC EQ 7.
If variant with same name already exists, change variant
CALL FUNCTION 'RS_CHANGE_CREATED_VARIANT'
EXPORTING
CURR_REPORT = 'ZXXXXX'
CURR_VARIANT = 'VARIANT'
VARI_DESC = LS_VARIANTDESC
TABLES
VARI_CONTENTS = TT_REPORTPARAM
EXCEPTIONS
ILLEGAL_REPORT_OR_VARIANT = 1
ILLEGAL_VARIANTNAME = 2
NOT_AUTHORIZED = 3
NOT_EXECUTED = 4
REPORT_NOT_EXISTENT = 5
REPORT_NOT_SUPPLIED = 6
VARIANT_DOESNT_EXIST = 7
VARIANT_LOCKED = 8
SELECTIONS_NO_MATCH = 9
OTHERS = 10.
ELSEIF SY-SUBRC NE 0.
MESSAGE WITH 'Cannot create/change variant for'
SY-UNAME.
ENDIF. -
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 variantIf 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 in VA05?
Hi,
How can we create a variant in VA05 to make it available in the display variant list?do we need any authorization?
Thanks,
Rakesh.Display variants can be administered in the result list, not at the selection screen. Do not mix up 'display variants' with normal variants which are a mere set of input-parameters.
To gain access to the 'administraion' and 'save' functions of the display variant, you need to have Parameter ID SD_VARIANT_MAINTAIN on your user with value 'A'.
also ref:
http://help.sap.com/saphelp_erp2005/helpdata/EN/ed/9db6e8aea911d2b71f0000e8160175/frameset.htm
Maybe you are looking for
-
How can I share data between two forms on different lists
Using a custom content type, I created two lists that I want to share the same data - one is a calendar. Our employees complete a form from the "Out of Office Request" list that has workflow functionality that sends an email to that person's manager
-
i saw online that you guys are offering a free smartphone offer with 2 year contract. well we already have a contract but it's time that we can upgrade. will that be available for us too, or what are the requirements to be able to get those phones. A
-
Closed lid clamshell overheating[?]
Hi, I have a macbookPro late 2009 running Mountain Lion OS, I started to use the computer in Clamshell mode where so far I was aware about ventilation issues hearing here and there incidents about overheating and stuff concerning using the computer w
-
SetPreferredSize() in ListCellRenderer question
Hi, I was writing a custom cell renderer for my JList component when I realised that the old way I was doing is discouraged all over the Internet. I used to do it like this: public Renderer() extends JPanel implements ListCellRenderer { setOpa
-
Smart Web Printing does not show/print german special characters (äöü)
I have installes Smart Web Printing on my computer with WIndows 7. I do use a german localization. Selected text is shown and printed correct, except german special characters ä ö ü. They are even not shown correctly in the menues of the application.