How to Create a Variant in WebDynpro Java apllication

Hello-
we have a requirement where we require to create a Variant for some of the Webdynpro application.
Now that is there any functionality which allows to do so , there are various reports and how will i populate the variant data , does it require backend table and FM for pulling those data..
How will I save the variant data and access them.
Regards,
Raj

Hi Raj,
         I don't think there is a ready made variant functionality in WD Java like in SAP R/3.  But we can have a work around. As you thought, we have to create a BAPI/RFC and custom table(s) to store the data. So initially, you have to call this RFC and get the data from the tables and then you have to set main RFC/BAPI and   then execute it. Add an additional button to save the variant, onAction of the button update the execute the variant RFC and save the current data in custom table.
Regards,
Siva

Similar Messages

  • How to create popup in ABAP webdynpro.

    Hi,
    I found lot of examples to create a popup/ model window for java webdynpro.
    Could anyone give a pointer to an example which explains how to create popup in ABAP webdynpro??
    Kind Regards
    Shahul

    Hi Thomas:
    It worked fine the 1st time. Second time when the user clicks on the button to open up the popup it dumps.
    Here is the code in the action for popup:
    data: l_cmp_api type ref to if_wd_Component,
            l_window_manager type ref to if_wd_window_manager,
            l_api type ref to if_wd_View_controller,
            l_text type string_table.
      l_cmp_api = wd_comp_controller->wd_get_api( ).
      l_window_manager = l_cmp_api->get_window_manager( ).
      if wd_this->m_popup is initial.
        wd_this->m_popup = l_window_manager->create_window(
                 window_name = 'DOCQSOW'
                 button_kind = if_wd_window=>co_buttons_ok
                 message_type = if_wd_window=>co_msg_type_none ).
               component_usage_name = 'DOCQUERY_USAGE_1'
        l_api = wd_this->wd_get_api( ).
        wd_this->m_popup->subscribe_to_button_event(
              button = if_wd_window=>co_button_ok
              button_text = 'Transfer'
              action_name = 'POPUP_CLOSED'
              action_view = l_api  ) .
        wd_this->m_popup->SET_REMOVE_ON_CLOSE( abap_true ).
       endif.
      wd_this->m_popup->open( ).
    Second time when the popup tries to open, I get the following error:
    Method: RENDER_WINDOW of program CL_WDR_WINDOW_RENDERER========CP
    Method: RENDER_WINDOW of program CL_WDR_CLIENT_SSR=============CP
    Method: RENDER_POPUP_WINDOWS of program CL_WDR_CLIENT_SSR=============CP
    Method: RENDER_WINDOWS of program CL_WDR_CLIENT_SSR=============CP
    Method: IF_WDR_RESPONSE_RENDERER~RENDER_VIEWS of program CL_WDR_CLIENT_SSR=============CP
    Method: IF_WDR_RESPONSE_RENDERER~RENDER_USER_INTERFACE_UPDATES of program CL_WDR_CLIENT_SSR=============CP
    Method: IF_WDR_CLIENT~SEND_RESPONSE of program CL_WDR_CLIENT_ABSTRACT_HTTP===CP
    Method: IF_WDR_CLIENT~SEND_RESPONSE of program CL_WDR_CLIENT_SSR=============CP
    Method: EXECUTE of program CL_WDR_MAIN_TASK==============CP
    Method: IF_HTTP_EXTENSION~HANDLE_REQUEST of program CL_WDR_MAIN_TASK==============CP
    Is there a way to destroy the instance of the m_popup?
    Any help is appreciated!
    Thanks

  • How to use HTML Tags in webdynpro java

    Hi,
         Can any body tell me how to use HTML Tags in webdynpro java.
    If u provide me with sample code it will become more usefull.
    Thanks & Regards,
    SN

    HI,
    Please find the steps:
    Create a html file and store in your webdynpro project
    Add the html contents in your file
    & Create a IFRAME UI element and refer you html file
    Now you able to see the html in webdynpro
    Thanks & Regards,
    Ram

  • How to assign the Thems into Webdynpro Java Application

    HI All,
                   I Downloaded the plugin for them editor and i add those plugins and i created the Them. Please any one can help me how to add that Them into Webdynpro java application.

    Hi ep bhargav,
    You can check this link.....
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/ccb6bcf4-0401-0010-e3bc-ec0ef03e13d1
    Re: webdynpro theme editor
    Thanks.
    Venkat.

  • How to upload an attachment from webdynpro java application.

    Hi,
    Please assist me to create a View in WEBDYNPRO JAVA, which speaks about how to upload an attachment and save it in SAP
    Regards,
    Suri

    Well , first of all, I think you should search the SDN with keyword such as "upload files ".
    Here is the link of an article about upload and download files in WD.
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/9076a593-2b08-2d10-2890-9a7078246ec4
    Hope that can help you.
    Regards
    Carfield

  • 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,
    Isaac

    Hello 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.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

  • 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

  • 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
    Basu

    Hi ,
    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,
    Sarkar

    Hi
    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 a "Explorer" like in java

    i'm just wonderin if there's a way on how to create "Windows Explorer" like in Java wherein you can view all your directories with yellow folder icon and also you can view all your files and drives....
    And when you double click the yellow folder icon it will then expand and will show all the subfolders and files ...
    How????
    Thanks!

    Yes, there is a way. Look up JTree in the API.-can you post some code.... i cant figure out on how to use JTree...
    i'm still confused on where will i get the entire directories of my drives...
    thanks

  • How to create a Batch file for java application  ?

    HI,
    How to create a Batch file for java application ?
    And whats the use of creating batch file ?
    Thanks in advance

    [http://static.springsource.org/spring-batch/]
    Assuming you want to develop a batch application rather than actually just create a .bat file ..

  • HOw to create a Batch file for java application and whats the use of this ?

    HI,
    How to create a Batch file for java application ?
    And whats the use of creating batch file ?
    Thanks in advance

    First of all, you're OT.
    Second, you can find this everywhere in the net.
    If you got a manifest declaring main class (an classpath if needed), just create a file named whatever.bat, within same directory of jar file, containing:
    javaw -jar ./WhateverTheNameOfYourJarIs.jar %*By the way, assuming a Windows OS, you can just double click the jar file (no batch is needed).
    Otherwise use:
    javaw -cp listOfJarsAndDirectoriesSeparedBySemiColon country/company/application/package/className %*Where 'country/company/application/package/' just stands for a package path using '/' as separator instead of '.'
    Don't specify the .class extension.
    Javaw only works on Windows (you asked for batch, I assumed .BAT, no .sh), in Linux please use java.exe (path may be needed, Windows doesn't need it 'cause java's executables are copied to system32 folder in order to be always available, see PATH environment variable if you don't know what I'm talking about) and use ':' as classpath (cp) separator.
    The '%***' tail is there in order to pass all parameters, it only works on Windows, refer to your shell docs for other OSs (something like $* may work).
    This way you have a command you can call to launch your code (instead of opening NetBeans just to see your app working). You could schedule tasks on it or just call it in any command prompt (hope you know what it is 'cause there have been people in this very same forum with no clue about it, if not just hold the 'Windows button' and press 'R', then type 'cmd' and run it).
    Finally add dukes and give 'hem away.
    Bye.

  • How to create the exe file for java project.

    How to create the exe file for java project.
    am done the project in java swing , i like to create the project in exe format, so any one help for me,
    send the procedure for that.
    thanking u.

    How to create the exe file for java project.Have you ever heard of google? I pasted your exact "question" into a google search:
    http://www.google.com/search?q=How+to+create+the+exe+file+for+java+project.
    and got several useful links.
    Better search terms might yield even better results.
    Sheesh.

  • How to create a  schedule program in java

    Hello Friends ,
    Can any one provide me with an example how to create a schedule program using java.util.timer etc . I am in need of a program which should run as a schedule job that searches for a file in a directory and read the latest files from that directory in every minute of time as a schedule job .
    Thanks
    mahesh

    I don't feel like writing my own example, but google will be happy to provide you with an example.

Maybe you are looking for

  • Delete dot (...) in report painter

    Hi, I created cost center report on report painter (GRR2). And as attached, some dot (...) is remained in column text and cannot delete. It seems just text, but cannot be deleted. DO you have any idea what is it? Yoshi

  • Insert image in pdf Document

    Hi, I've a model and this model, I show in pdf. I Know insert rows and columns and pdf document (PdfPtable, PdfPCell...),but I don't know insert a image in the pdf document. How can I do it? Thanks

  • 2 mo. old Galaxy Nexus drops every single call and it will be replaced with used one?

    Well, I am trying to get in touch with Verizon c/s, and this is where the tech support person sent me.  My less than 2 month old Samsung Nexus drops every single call - not 1, not 2, always.  Been to Verizon stores who told me to call c/s and tech su

  • SAP GRC AC 5.3 integrated with BW

    Hi all, Has anyone of you implemented integration between SAP GRC AC 5.3 and BW and develop custom reports? Thanks in advance. Regards,    Imanol

  • IS IT POSSIBLE TO CREATE TRANSACTION WITHOUT USING ACTION BOX?

    HI, We are trying to implement CIC NON-TELEPHONY. Our requirment is simple we need to create complaint from CIC. Is it possible to create a transaction without calling it from action box using default workspaces. I mean i will not configure action bo