T.code for Variant creation

Hello Gurus,
What is the T.code for variant creation
regards
sapmm

Dear sapmm99,
In my understanding the default values that should be automatically reflected for the input parameters for executing any report is
referred as a variant.
Say for Eg,executing report MB52,in case if I execute the report several times with the same input,i can save the input parameters
and create that as a variant and in future i can call this variant to reduce the work load and execute the report.
For eg: enter the plant 1000,material type as FERT,some material group and click on the save icon and the system asks to enter
the variant name and the meaning and then select the check boxes for protect variant and click on copy screen assignment.
If i want to protect the entered input parameters i can select the check boxes for the same and save and come out.
Next time when i execute the same report MB52 and if I need some default values to get copied,i can get the variant by clicking on
get variant or else Shift+F5 and select the saved variant.
Check the same for the reports like ME5A.
Check and revert.
Regards
Mangalraj.S

Similar Messages

  • Transaction code for mass creation of physical Inventory document

    what is the transaction code for mass creation of physical Inventory document.

    MI31 is the transaction to create hundreds of physical inventory documents for annual inventory at a time.
    MICN can create several documents at a time for cycle count.
    Just look in the menu of phyiscal inventory into the knot Sessions, there are even more e.g. for counting of own stock a customer and vendor location, for vendor stock at own location etc.

  • Creating a transaction code for variant type in se93

    hai all,
    i created transaction's for dialogue type and report type,now i am trying to create transaction for variant type. in that what we have to provide in transaction text box where the f4 functionality is provided for that text box.
    could any one plz help me out.
    Thanks in Advance.

    Hi,
    U need to create transaction variant in SHD0 transaction before creation transaction by variant.
    Go thru the following link carefully.
    Certainly it will be helpful to you.
    http://www.mortenhjorthnielsen.dk/Security/transactionvariants.htm
    Regards
    Vadi

  • Need Sample Code for Vendor creation using JAVA API

    Hi,
    I have a scenario like Vendor creation using <b>Java API</b>.
    1.I have Vendors (Main) Table.
    2.I have <b>look up</b> tables like Account Group.
    3.Also <b>Qualifier table</b>(Phone numbers) too.
    Could you please give me the sample code which helps me to create Vendor records using Java API?
    <b>I need Code samples which should cover all of the above scenario.</b>
    <b>Marks will be given for the relevent answers.</b>
    Best Regards
    PK Devaraj

    Hi Devraj,
    I hope the below code might solve all your problem:-
    //Adding Qualified field
    //Creating empty record in Qualifed table 
    //Adding No Qualifiers
    Record qualified_record = RecordFactory.createEmptyRecord(new TableId(<TableId>));
    try {
    qualified_record.setFieldValue(new FieldId(<fieldId of NoQualifier), new StringValue(<StringValue>));//Adding No Qualifier
    catch (IllegalArgumentException e2) {
    // TODO Auto-generated catch block
    e2.printStackTrace();
    catch (MdmValueTypeException e2) {
    // TODO Auto-generated catch block
    e2.printStackTrace();
    //Creating Record in Qualified table
    CreateRecordCommand create_command = new CreateRecordCommand(connections);
    create_command.setSession(sessionId);
    create_command.setRecord(qualified_record);
    try
    create_command.execute();
    catch(Exception e)
    System.out.println(e.toString());
    RecordId record_id = create_command.getRecord().getId();
    //Adding the new record to Qualifed Lookup value and setting the Yes Qualifiers
    QualifiedLookupValue lookup_value = new QualifiedLookupValue();
    int link = lookup_value.createQualifiedLink(new QualifiedLinkValue(record_id));
    //Adding Yes Qualifiers
    lookup_value.setQualifierFieldValue(0 , new FieldId(<FieldID of Yes Qualifier>) , new StringValue(<StringValue>));
    //Now adding LookUP values
    //Fetch the RecordID of the value selected by user using the following function
    public RecordId getRecordID(ConnectionPool connections , String sessionID , String value , String Fieldid , String tableid)
    ResultDefinition rsd = new ResultDefinition(new TableId(tableid));
    rsd.addSelectField(new FieldId(Fieldid));
    StringValue [] val = new StringValue[1];
    val[0] = new StringValue(value);
    RetrieveRecordsByValueCommand val_command = new RetrieveRecordsByValueCommand(connections);
    val_command.setSession(sessionID);
    val_command.setResultDefinition(rsd);
    val_command.setFieldId(new FieldId(Fieldid));
    val_command.setFieldValues(val);
    try
         val_command.execute();
    catch(Exception e)
    RecordResultSet result_set = val_command.getRecords();
    RecordId id = null;
    if(result_set.getCount()>0)
         for(int i = 0 ; i < result_set.getCount() ; i++)
         id = result_set.getRecord(i).getId();     
    return id;
    //Finally creating the record in Main table
    com.sap.mdm.data.Record empty_record = RecordFactory.createEmptyRecord(new TableId("T1"));
    try {
         empty_record.setFieldValue(new FieldId(<FieldId of text field in Main table>),new StringValue(<StringValue>));
         empty_record.setFieldValue(new FieldId(<FieldId of lookup field in Main table>), new LookupValue(<RecordID of the value retrieved using the above getRecordID function>));
    empty_record.setFieldValue(new FieldId(<FieldId of Qualified field in Main table>), new QualifiedLookupValue(<lookup_value>));//QualifiedLookUp  value Retrieved above
    } catch (IllegalArgumentException e1) {
    // TODO Auto-generated catch block
         e1.printStackTrace();
    } catch (MdmValueTypeException e1) {
         // TODO Auto-generated catch block
         e1.printStackTrace();
    //Actually creating the record in Main table
    CreateRecordCommand create_main_command = new CreateRecordCommand(connections);
    create_main_command.setSession(sessionId);
    create_main_command.setRecord(empty_record);
    try
         create_main_command.execute();
    catch(Exception e)
         System.out.println(e.toString());
    Thanks
    Namrata

  • MFBF transaction help required for variant creation

    Dear experts,
    We have a requirment in using MFBF transaction.
    In assembly backflush tab after entering everything and pressing 'Post with correction button'
    a grid opens.Here we want quantity to be disabled.
    Second we click component backflush tab and after entering data and press
    'process component list' button.Here we want the same grid that we get should have quantity
    enabled.
    I tried using transaction variant and find it responding one way either enabled in both or diabled in both.
    That doesnot meet my purpose.
    Plz tell me some way. Can i use badi to do such stuff ?

    Dear experts,
    I dont know whether its a bug with sap or not,they may conclude themselves.For the time being
    i tried userexits
    EXIT_SAPLBARM_001
    EXIT_SAPLBARM_002
    EXIT_SAPLBARM_003
    EXIT_SAPLBARM_004 IN enhancement XMRM0001
    I activate my projects without any coding on these exits but only breakpoints statement.
    I find them stucking at breakpoints on activation which is what i want .
    But what happens at last is despite without any single piece of code on these exits
    i get information message dialog
    No components Found.Continue without components  ?
    If i say 'yes',i see a blank grid and otherwise material posted without document.
    Why such a behaviour ??

  • Hi frnds this is the code for dynamic creation of users in plsql but these statements r not executing so pls help me for this error

    DECLARE
    n NUMBER;
    BEGIN
    n:=1;
    WHILE(n<=10)
    LOOP
    CREATE user EM||n IDENTIFIED BY KLU;
    GRANT CREATE SESSION,GRANT ANY PRIVILEGE TO EM||n;
    COMMIT;
    n:=n+1;
    END LOOP;
    END;

    Hi,
         Here is the dynamic query for creating user and to give grants to user,
    DECLARE
       n         NUMBER;
       cr_user   VARCHAR2 (300);
       gr_user   VARCHAR2 (300);
    BEGIN
       n := 1;
       WHILE (n <= 10)
       LOOP
          cr_user := 'CREATE user EM' || n || ' IDENTIFIED BY KLU';
          gr_user := 'GRANT CREATE SESSION,GRANT ANY PRIVILEGE TO EM' || n || '';
          EXECUTE IMMEDIATE cr_user;
          EXECUTE IMMEDIATE gr_user;
          n := n + 1;
       END LOOP;
    END;
    Edited: Removed When OTHERS Exception Handling from Code.
    Cheers!

  • ABAP code for creating a report variant

    Hi,
    I would like to create parameter on selection screen type SLIS_VARI. I would like that the program will start with pre-defined variant in ALV grid, the same as it is on standard stock report (MB52)...
    Can someone tell me how to do this, and where to put the code?
    Thanks in advance,
    Saso

    Hi,
    This is the code for variant as parameter and F4 help.
    DATA: g_repid LIKE sy-repid,
          g_dynnr LIKE sy-dynnr.
    DATA: g_save(1) TYPE c VALUE 'A',
          g_exit(1) TYPE c,
          gx_variant LIKE disvariant,
          g_variant LIKE disvariant.
    PARAMETERS: p_vari LIKE disvariant-variant.
    INITIALIZATION.
      g_repid = sy-repid.
      g_dynnr = sy-dynnr.
      PERFORM variant_init.
    *Get default variant
      gx_variant = g_variant.
      CALL FUNCTION 'REUSE_ALV_VARIANT_DEFAULT_GET'
        EXPORTING
          i_save     = g_save
        CHANGING
          cs_variant = gx_variant
        EXCEPTIONS
          not_found  = 2.
      IF sy-subrc = 0.
        p_vari = gx_variant-variant.
      ENDIF.
                      AT SELECTION SCREEN                               *
    AT SELECTION-SCREEN.
    *--PAI of selection screen
      PERFORM pai_of_selection_screen.
    *---F4 option for report variant
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_vari.
      PERFORM f4_for_variant.
                         SUB-ROUTINES                                   *
    FORM variant_init.
      CLEAR g_variant.
      g_variant-report = g_repid.
    ENDFORM.                    " variant_init
    FORM pai_of_selection_screen.
      IF NOT p_vari IS INITIAL.
        MOVE g_variant TO gx_variant.
        MOVE p_vari TO gx_variant-variant.
        CALL FUNCTION 'REUSE_ALV_VARIANT_EXISTENCE'
          EXPORTING
            i_save     = g_save
          CHANGING
            cs_variant = gx_variant.
        g_variant = gx_variant.
      ELSE.
        PERFORM variant_init.
      ENDIF.
    ENDFORM.                    " pai_of_selection_screen
      CALL FUNCTION 'REUSE_ALV_VARIANT_F4'
        EXPORTING
          is_variant = g_variant
          i_save     = g_save
        IMPORTING
          e_exit     = g_exit
          es_variant = gx_variant
        EXCEPTIONS
          not_found  = 2.
      IF sy-subrc = 2.
        MESSAGE ID sy-msgid TYPE 'S'      NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ELSE.
        IF g_exit = space.
          p_vari = gx_variant-variant.
        ENDIF.
      ENDIF.
    AND pass this gx_variant to ALV Function module.
    Rewards points if helpful.
    Regards,
    Srinivas ch

  • BAPI for Payment creation in Claims

    Hi Experts,
    I need to create payment for Claims need BAPI, please help me and also please refer ICLCDC02 t-code for payment creation as reference.
    Screenshot is attached.
    Regards
    goudham

    ICLF_CD_STD_LOCAL - implementation if the disbursement is through FSCD
    The std BAdi  ICLF_CD can be enhanced to pass additional data to FSCD to facilitate the processing of payments by coverages and accurately reflect the FI postings to SAP FI. This BAdi can transfer the following data to process payments;
    Claim Number
    Document number
    Document date
    Posting date
    Business Partner
    Contract Number
    Main and sub Transactions
    Assignment number

  • Tables, function modules for variant config data

    Hi all,
    I need to extract characteristics and values for variant material from sales order and production orders. Could you please tell me the relevant tables and function modules?
    Regards,
    Sachin M

    Hi
    Try the following;
    Function module to find values of characteristics - CLAF_CLASSIFICATION_OF_OBJECTS .
    Table # AUSP also holds values of characteristics, you can link to it via table INOB,which should also linked to table KONDH if you are using the same.
    Transaction code for Variant Config - CC04 (Product Structure browser)
    Cheers
    Chandra

  • Variant Creation for the Back Ground Jobs

    Hi experts
    1) What are the settings we need to consider in the Variant Creation for generating CVC's, Planning Area Initialization, Calculate Proportional Factors and Loading planning area.
    2)I believe  Process flow to create process chain:
    Generate CVC's-->Planning Area Intialization>Load Planning Area Vesrion--
    >Calculate Proportional Factors
    Please correct if the process flow is not right.
    3) Is it require to check the adjust time series for generating CVC's for every time?
    4) How to generate the proportional factors for all the products in the single job?I assume that  need to create a single selection ID which has all Characteristic values and assign this while creating the Proportional factors.Please correct me if i am wrong.
    Please give your valuable opinions on the above queries
    Thanks in advance
    Edited by: Mani4690 on Mar 4, 2009 9:37 PM

    Hi,
    Below are the answers to your queries.
    1) What are the settings we need to consider in the Variant Creation for generating CVC's, Planning Area Initialization, Calculate Proportional Factors and Loading planning area.
    While creating CVC's (t-code /n/sapapo/mc62)select your MPOS, goto create characteristic combinations, then enter Target mpos, say generate in background, tick against all fields in action selection, and then save as variant. During planning area initialisation(/n/sapapo/msdp_admin), select your planning area, right click and say create time series objects and then enter planning version, start and end dates and execute job in background.  While calculating proportional factors (/n/sapapo/mc8v), enter ur planning area & infocube and then save as a variant.  For loading data from infocube to planning area (tcode /n/sapapo/tscube), select the infocube, planning version, planning area, planning versin, periods, tick mark in results log, key figure assignments, if you have any selection criteria enter, and then save as variant.
    2) 2)I believe Process flow to create process chain:
    Generate CVC's-->Planning Area Intialization>Load Planning Area Vesrion--
    >Calculate Proportional Factors
    Please correct if the process flow is not right.
    Correct
    3) ) Is it require to check the adjust time series for generating CVC's for every time?
    Yes, it is required.
    4) How to generate the proportional factors for all the products in the single job?I assume that need to create a single selection ID which has all Characteristic values and assign this while creating the Proportional factors.Please correct me if i am wrong.
    if you use mc8v t-code and provide planning area & infocube, it will ask for version name and dates, once u enter this info, proportional factors will get created.
    Regards
    R. Senthil Mareeswaran.

  • Creation of Transaction code for Reports created in FGI1.

    Hi all,
       We are in ECC 6.0 version. We have created one report for Profit Center Group Wise Receivables with transaction code FGI1. When we executed the report from FGI5 , it was showing the values correctly.
       We created the t.code for the report painter programe and tried to execute. The screen is different from that of T.Code: FGI4.  When we executed , it was not showing any values. I created authorisation for the report and also for the transaction codes.
       Appreciate your suggestion at the earliest.
    Thanks
    Dasa

    Hi
    Check TSTCP table  for the existing t-codes and for creating check this link
    Re: Transaction Code Creation for a Table/View
    Regards
    Pavan

  • Transaction code for Creation of Material

    Hi Code Guru's,
    can any one please tell me the Transaction code for creation of material.
    regards,
    Syed Khutubuddin.
    Edited by: Alvaro Tejada Galindo on Apr 14, 2008 4:45 PM

    Hi syed,
    Goto T.code MM01 then create Material name,
                       MM02  is change Material name,
                       MM03 is display Material name.
    <REMOVED BY MODERATOR>
    Cheers,
    S.Suresh.
    Edited by: Alvaro Tejada Galindo on Apr 14, 2008 4:46 PM

  • Transaction code for creation of a specific customizing table ?

    Hi,
    What's the transaction code for creation of a specific customizing table ?
    Thanks in advance.

    Carl,
    if you can share with us from which t-code you achieve this , than it would be better for we guys.
    Amit.

  • Transaction code for creation of  transaction keys in obyc

    Dear Experts,
    Can u tell me what is the transaction code for creation of transaction keys in obyc asap.
    Thanks & Regards,
    Radhika.

    Hi
    There is no TCode and the path is
    SPRO-Material Management-Purchasing-Conditions-Price Determination....
    Cheers
    Srinivas

  • Need code for Sales order creation in oops using xi as integration server

    Need code for Sales order creation in oops using xi as integration server.

    hi rocky,
              could you pls give a bit explanation on what you are expecting.
    regards,
    Pavan

Maybe you are looking for