Converting Web dynpro date to SAP date type

Hi
I am using BAPI_FLIGHT_GETLIST to get list of flights but depending on some input criteria eg. on a particular date. I have written code upto this:
Bapi_Flight_Getlist_Input input = new Bapi_Flight_Getlist_Input();
wdContext.nodeBapi_Flight_Getlist_Input().bind(input);
I wiil accept date from user.
Now what to do ?
Please help in the steps with code.
Thanks
Ananda

Hi Ananda,
While creating you Model for BAPI_FLIGHT_GETLIST, you must have got particular context nodes and attributes etc.
You can map that Model context to your view context and in turn can map an "Inputfield" with the date attribute you want to take from user(Date picker control will come with the Inputfield at runtime). For this you dont need any coding.
Then for submitting the request you may have a button. On the event of that execute the Model. It will work
Hope this will help,
Regards,
Mausam

Similar Messages

  • Exchanging data between a Web Dynpro application and SAP Web Shop

    I'll try to keep this as clear as possible:
    1) We have the SAP Internet Sales system running, which has a series of Business Object classes and corresponding Backend Layer objects that can return data from several sources.
    2) We are able to create our own Backend Layer objects that would return data from a component called IPC, which is a Java component.
    3) I would like a Web Dynpro application to retrieve data from this backend layer object, but I am not experienced enough with Java to know if what I want to do is possible. I don't think that I can use JCo, because I am trying to get a Java component (class?) in Web Dynpro to access a Java class remotely.
    4) I think I am asking is this: is there a way for a Java to Java connection to be created, much like Web Dynpro can use JCo to connect Java to ABAP systems?
    If this is a glaringly obvious question to Java programmers, my apologies!
    - Tony.

    Somebody on another forum recommended using RMI. Which would be the better option in terms of ease of implementation?
    - Tony

  • Search help for Web Dynpro using the SAP-search help

    Hi,
    I’m trying to create a generic search help for Web Dynpro using the SAP-search help. It should working so, that I construct a Web Dynpro-component, that gets the data of the search help from the SAP-system, interpreted it and creates the ui-elements and the needed context generic.
    The mapping between the Input field of the customerview and the right search help is to be made with an xml-file, which contains the information: name of the view, the input field, the search-help-name and the name of the field that will be returned.
    The xml-file is reading from a helper-class. That helper-class contains any information, witch need the search help-component as well as the customer-component.
    The initialization takes place in the method wdDoModify of the customer. The call of the search help from the customer should be implement with an Action, witch is bound to a Button(create dynamic in the helper-class behind the input field).
    In a second foot should be create a plugin for eclipse, witch insert the used files (search help component, helper class, …) in the project. In addition it should create the call in the customer generic.
    It would be great if someone can give me a feedback!

    Hi Mike,
    The BlanketAgreement.exe is a reference to the executable that will be created when you compile the solution you created in Part II - Part III. I think there is a mistake in the tutorial because it asks you to name the project 'Blanket' which means that by default the executable will be called Blanket.exe and not BlanketAgreement.exe. The tutorial also misses the step asking you to compile the Blanket project before you go on to create an installer. You should compile your Blanket project in Release mode before creating an installer. By compiling the project you'll get a Blanket.exe file in the bin folder of your Blanket project which you then need to add to the installer per the instructions.
    SAP do offer development courses in some areas and there is training material here on the SDN and on the SAP partner portal (and maybe the customer portal as well). Try searching this forum for 'training' or 'tutorial' and you should get a few links. There's also a development certification.
    Personally I'd recommend you give yourself a little project to work on and just get stuck in
    Kind Regards,
    Owen

  • Can't navigate Web Dynpro iViews in SAP Portal Environment

    We are facing a strange problem. When we try to Navigate other Tabs after refreshing Web Dynpro iView in Sap Portal Enviroment from Tray or Mouse right click or by external Popu window we are getting "can't execute code from a freed script" Error. Currently we have EP6 SP16.
    Any help ?
    Thanks
    Satyam
    Message was edited by: Satyanarayana Mandapati

    Hi Sathya,
    We have a similar Javascript error 'can't execute code from a freed script'.
    How did you solved this problem.
    Regards,
    Sekar

  • Skills Profile - Enhance Web DynPro to handle Effective Date

    We are working with the ESS BP on ECC 6.0 and have a requirement to enter an Effectivity Date for the start of a qualification.  The trouble is that the existing function for updating the qualification profile (XSS_SKL_APPLY_QUALI_PROFILE) does not allow for a beginning date to be passed in.  Instead it uses the current date (Sy-Datum) which is set on initialization of the SkillsApplication (via FM XSS_SKL_INITIALIZE_DATA).  I have tried to enhance the structure for the qualification profile (structure RHXSS_SKL_EMPLOYEE) but it is marked as Can Not be Enhanced by SAP.
    Does anyone have any thoughts on a good way to add this functionality?  I'd hate to throw away all of SAP's work with the SkillsApplication and write one from scratch just for this small change, but it's looking like that might be my only option.

    The following describes the changes required for adding the effectivity date to the Standard Skills Profile Web Dynpro Java screen.
    ABAP Changes
    1.  Get modification keys for hte following structures and change the enhancement category of the strucures to "Can Be Enhanced Deep".
         RHXSS_SKL_EMPLOYEE
         RHXSS_SKL_PROF_UPD
         RHXSS_SKL_QUALIPROFILE
    2.  Add appends to each of the structures in step 1 for feidl ZEFFDATE
         RHXSS_SKL_EMPLOYEE - ZZEFFDATE type BEGDATUM
         RHXSS_SKL_PROF_UPD - ZZEFFDATE type String
         RHXSS_SKL_QUALIPROFILE - ZZEFFDATE type BEGDATUM
    3.  Enhance the following function modules for setting/getting the values of ZZEFFDATE
         XSS_SKL_APPLY_QUALI_PROFILE
         XSS_SKL_CONFIRMATION_DATA
         XSS_SKL_GET_PROFILE_OVERVIEW
         XSS_SKL_GET_QUALI_DETAIL_DATA
    4.  Enhance the following Includes using the Modification Assistant or Enhancement Framework for setting/getting
        LRHXSS_SKL_INTERFACEF01
        LRHXSS_SKL_INTERFACETOP 
    Java Changes
    Track:  Make a new track for the ESS Component.  A quick SDN search should produce for you a Cookbook for setting this up in the NWDI
    DC:  esssklsap.com
    1.  Reimport the Skills model to get the ABAP changes into WebDynpro
    2.  Create a new Application (zSkillsApplication in my case)
    3.  Modify the Application properties to tell the framework manager to use the CcSklConfiguration  component for navigation configuration
         Properties
         sap.authentication = true
         sap.xss.configurationComponentDC = sap.com/ess~skl
        sap.xss.configurationComponentName = com.sap.xss.hr.skl.CcSklConfiguration
    4.  In the Interface Controller of Component CcSklConfiguration, modify the navigation Graph as follows
    navigationGraph =
       new NavigationGraph(
        new NavigationPath[] {
         new NavigationPath("",IFPM.EVENT_START,"OVERVIEW"),
         new NavigationPath("OVERVIEW",IFPM.EVENT_EDIT,"DETAIL"),
         new NavigationPath("OVERVIEW",IFPM.EVENT_ADD,"SELECT"),
         new NavigationPath("OVERVIEW",IFPM.EVENT_REVIEW,"REVIEW"),
         new NavigationPath("OVERVIEW",IFPM.EVENT_REMOVE, "OVERVIEW"),
    //begin replace ERICV - Go Straight to Review&Save
    //     new NavigationPath("DETAIL",IFPM.EVENT_ADD, "OVERVIEW"),
         new NavigationPath("DETAIL",IFPM.EVENT_ADD, "REVIEW"),
    //end replace ERICV - Go Straight to Review&Save    
         new NavigationPath("DETAIL",IFPM.EVENT_BACK, "OVERVIEW"),
         new NavigationPath("DETAIL",IFPM.EVENT_SELECT, "SELECT"),
         new NavigationPath("SELECT",IFPM.EVENT_EDIT, "DETAIL"),  >
    5.  In the Component FcSklBusinessLogic, make the following changes:
            a.  Perform the context mapping of the new ZZEFFDATE field in the Interface Controller and Standard Controllier
            b.  Modify the insUpdSkill method of the Component Controller to populate the Effective Date
    try {
       wdContext.nodeApply_Quali_Profile_Input().bind(
        (Xss_Skl_Apply_Quali_Profile_Input) model.createModelObject(Xss_Skl_Apply_Quali_Profile_Input.class));
       Xss_Skl_Apply_Quali_Profile_Input input = new Xss_Skl_Apply_Quali_Profile_Input();
       Rhxss_Skl_Employee insUpdVector = new Rhxss_Skl_Employee();
       insUpdVector.setSkill_Id(wdContext.currentContextElement().getQualiId());
       insUpdVector.setExist_Profcy(wdContext.currentContextElement().getProfDropDown());
       //Begin Insert ERICV - Add Effective Date to Skills Qualification
       insUpdVector.setZzeffdate(wdContext.currentContextElement().getZzEffDate());
       //End Insert ERICV - Add Effective Date to Skills Qualification
       input.addProfile_Ins_Tab(insUpdVector);
       wdContext.nodeApply_Quali_Profile_Input().bind(input);
       wdContext.currentApply_Quali_Profile_InputElement().modelObject().execute();
      } catch (Exception ex) {
       fpm.getMessageManager().raiseException(wdThis.wdGetAPI().getComponent(), ex);
    6.  In the Component VcSklDetail make the following changes:
         a.  Context mapping of all relevant nodes to get the new ZZEFFDATE field in the context
         b.  Screen modifications to get the ZZEFFDATE on the screen
         c.  Modify the initDetail method of the Component Controller
    if ((sklOutputElement.getExpiry_Date() == null) || (sklOutputElement.getExpiry_Date().equals(""))) {
       wdContext.currentContextElement().setLicenceVisibility(WDVisibility.NONE);
    //begin insert ERICV - set the zzEffective Date
         //convert date to java.util.date
             SimpleDateFormat sdf = new SimpleDateFormat("mm/dd/yyyy");
      try {
       java.util.Date myDate = sdf.parse(wdContext.currentGet_Quali_Detail_Data_OutputElement().getStart_Date());
       sdf.applyPattern("yyyy-mm-dd");
       wdContext.currentContextElement().setZzEffDate(Date.valueOf(sdf.format(myDate)));
      } catch (ParseException e) {
       // TODO Auto-generated catch block
                e.printStackTrace();
    //end insert ERICV - set the zzEffective Date
        //@@end

  • Convert  Web Dynpro to PDF

    Hi All,
    I have a requirement of converting a web dynpro form to a pdf file. The data in the web dynpro form should be written into PDF.
    I have gone thru the Wroking with PDFObject tutorial.The tutorial talks abt using EJBs and converting the xml file to pdf. Is it possible for me to convert the form to XML without using EJB and then convert it to PDF.
    Also, for converting the XML file to PDF, are all the pre-requisites required :
    1. Adobe LiveCycle Designer
    2. Active Component Framework (ACF) of the Interactive Forms
    3. Adobe document services are configured on the SAP J2EE
    Plz comment.
    Nikhil

    Hi,
    If you have Adobe Doucment Services installed then you can do it by getting
    the 'pdfResource' context value which is a byte array that contains the PDF.
    If not, try using 'itext': http://www.lowagie.com/iText/
    Regards,
    Omri

  • Convert Web Dynpro ear to par or zar

    I had a Web Dynpro application in ear file format. I need to integrate it into EP (i know how to do it in ear format following the tutorial available), but for EP certification purpose, i need to deliver it in zar or par file format (correct me if i'm wrong). Is there any quick way to convert it? Any help woould be much appreciated.

    Hi Julius,
    To Convert a WD EAR file to EP PAR file.
    -o Change the perspective to Enterprise portal.
    -o Create your project ie. Portal Application project.
    -o There you can create your Portal Application object which can be Abstractportalcomponent or dynpage or jspdynpage.
    -o export the PAR file. Right click on project then export. Set you server settings like give the usr/pwd, mach name.
    -o After deploying the PAR, you can go to Portal -> ContentAdministration -> PortalContent and select the option 'create iview from PAR'.
    Now you have an iView from your PAR file.
    also go through this link:
    -o http://help.sap.com/saphelp_nw04/helpdata/en/11/0d653f0c9fa075e10000000a114084/frameset.htm
    Try reading the above n Please do let us know if you could solve it. Gud luck !
    Rgds,
    Sreenivas.

  • Web Dynpro ABAP in SAP E-Recruiting

    Hi,
    We just imported SP8 for our SAP E-Recruiting 6.0. SP8 offers Web Dynpro ABAP as candidate UI. One question we have is how WD pages incorporated for recruiters who still use BSP pages. For example, when a recruiter logs into E-Recruiting and finds a specific candidate, he/she can click on "Candidate Profile" to get to that candidate's pages. In BSP technology, recruiter actually uses exactly the same pages that candidate uses for Work Experience, Education, etc.. With candidate UI using WD technology, does recruiter use the same WD pages when displaying candidate profile information? I have been searching all the possible places, such as IMG, SICF, in order find a spot so that I can set the switch on, but so far unsuccessful.
    Any help is greatly appreciated.
    Li

    Hi Li ,
      At best of my understanding in WD ABAP , its possible to make one WebDynpro page serving same purpose ( showing profile deatils  ) visible for manty( Candidate , as well as Recruiter ) ....
    I would like to know what exactly you want from web Dynpro ..then I will be in better position to tell you.
    FYI ...
    1) Web Dynpro ABAP
    As the name suggests Web Dynpro for ABAP uses exactly the same meta model as its cousin Web Dynpro for Java. A Web Dynpro component, a Web Dynpro view, a Web Dynpro model, a Web Dynpro controller have the same semantics both for ABAP and Java. The main difference is the designtime environment, the development infrastructure and the runtime environment.
    The designtime environment is properly embedded in the ABAP Workbench where Web Dynpro artifacts are simply a new category like BSP applications or classical dynpro based applications before. Also no surprises regarding the development infrastructure. The correction and transport system keeps track on all changes that are done, versions them and helps to propagate the Web Dynpro application from development to production like you would do with ordinary BSP or dynpro-based applications.
    Last not least the execution platform is the ABAP server that produces application content ready to be integrated in the NetWeaver Portal seamlessly. Features like portal eventing can be used between applications written in ABAP or applications developed with Java.
    2 ) I can give you links that can help you a lot.
    First of all start doing SAP SDN tutorials .
    Create some compenents with BAPI , Component usage and ALV .
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/02e1fa45-0801-0010-10a0-f1cf47e8c943
    /people/marilyn.pratt/blog/2005/12/20/web-dynpro-for-abap
    Try to Download demo tutorials from SDN library & Try to search WebDynpro ABAP WebLogs .
    Wait not just that SAP has provided you with ample demo example of WD ABAP already bundled with SAP . Just Try out Components starting with WDR . I can tell you few like WDR_TEST_EVENTS ( It shows how every UI elments to use )
    See packages like SWDP_DEMO , SALV_WD_DEMO
    there are many more .
    /people/marilyn.pratt/blog/2005/12/20/web-dynpro-for-abap
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/a282c952-0801-0010-1eb5-87953e036712
    The specified item was not found.
    Cheers
    Parry

  • How to Pass Java Objects between Web Dynpro and Java SAP iViews

    Basically I have an SAP web dynpro iView that I do stuff with and I want to pass an object to another iView which is just a regular Java iView. From what I've read and tried, I can't just stick something in the session object and hope that the Java iView can pull it down the other end. I had a dream that it was possible (seriously).
    Anyway, are there any possible solutions around? Please advice and share you throughts. I will try to dream about it again tonight and see if its really gonna work this time.
    thanks for your help in advance

    There is no easy way you can pass objects other than those supported by express such as String, map, list etc.
    Though not advised, you can create a class with static variables to handle the storage of such java objects during transition between form and workflow. You will need to somehow identify the objects uniquely .

  • Initiate web dynpro from non-SAP system

    Hi all,
    My costumers are using a non-SAP system, and I need to open a SAP purchase order from this system (based on the order number). Is it possible to put in a link on the non-SAP system, that initiates a web dynpro pop up filed with a SAP purchase order?
    Please advise.
    Thanks

    Hi Thomas,
    WebDynpro is technology native to SAP. WebDynpro Application is developed, utilizing the runtime , libraries & underlining platform in the SAP system. However when webDynpro component is to be used, its consumed as a simple Web Application( i.e you have a URL to invoke it ), thus if you have a WEBDYNPRO application, with fair amount of knowledge of HTML & JAVAScript you can call the URL, which is going to display you the webdynpro application.
    so in effect a webdynpro application would appear as good as a webapplication that CAN be called on Browser from any where, but to build & change it you need SAP Netweaver.
    Greetings
    Prashant

  • Convert Web Dynpro to Offline application, laptop

    Has anyone written a Web Dynpro application inside the portal using BAPIs and then been asked to produce it as an offline version?
    What are the options for converting the application and how much re-deveopment id required.
    Thanks for your assistance.

    Hi,
    WebDynpro is currently only avaliable as a Online application. You can make it avaliable on a BlackBerry device. But also only online. You have to develop your Application using the Mobile Infrastructure to make it avaliable offline.
    Regards
    Gregor

  • Converting Web Dynpro project into a Web Dynpro DC

    Hi
    I have a Web Dynpro project created.
    Now I want to convert it into a Web Dynpro DC (Development Component).
    Could anyone tell me if there is a standard procedure to do this?
    Right now, I am following the below procedure:
    Copy all the folders under root folder->src-> packages of Web Dynpro project into root folder->src-> packages of Web Dynpro DC.
    Rebuild the DC.
    But in this procedure I am getting errors (in view code) as the required interfaces (example, IPrivate<<component-name>>.java) are not getting generated when I re-build the DC.
    Could anyone help me with this issue?

    Hi Aditya,
    I have used two way for this and both worked fine for me.
    1. While creating DC project at the end there eill be a check box, which when you tick will show your local dynpro project and you can then import that.
    2. Create DC project after that copy the component of your local dynpro project and paste it on the option where you can create the component of DC project.
    After pasting click next - next so that everything remain in sync.
    After that check if you have any compilation error, check them if they are because of some jar files.. you have to add the library files by using the option -> DC Metadata ->DC Definition ->Used DC.
    If you got no compliation error, then just rename the component ( again click next) and then deploy.
    otherwise you may get deployment error.
    Hope this helps,
    Thanks,
    Namrta

  • Web Dynpro UI Vs SAP Web UI

    I have been trying to understand this but don't see enough material on this topic.
    As we know, we can always go for SAP Web UI (Web version of SAP GUI) to web enable SAP Transactions. I would like to know what are the specific advantages and differences between standard SAP Web UI and Web Dynpro UI approach.
    I guess, we can share our own experiences and thoughts on this and may be we can reach on some conclusion.
    Thanks
    Chandra

    Hi,
    go through:[https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/10c671f2-6364-2a10-8d96-8b3145d4a478]
    for SAP web ui chk this link:[https://media.sdn.sap.com/html/submitted_docs/dotnet/Reference/SAP.Web.UI.Controls.html]
    for web dynpro UI info go through:[https://www.sdn.sap.com/irj/sdn/nw-ui]
    Regards
    Khushboo

  • Web dynpro for abap error: Error type sapPopupmainID_X1

    I am using Solution Manager System 4.0 and I developed an application with web dynpro for ABAP but we have an web dynpro error from Internet Explorer 6.0 when I open the popup(You can look screenshot of the[ error message|http://mtargun.googlepages.com/error.jpg]). I have found a SAP note but this note(997989) is obsolete for our system.Please help me.

    Hi Heidi
    My server is not in the domain. It is in work group.
    Is it neccessary that server should be in domain?
    Could you suggest me the work around when server is in workgroup.
    Why it is showing hostname of the other server in the URL instead of the server on which I am developing the application?
    Thanks,
    Rashmi

  • Web Dynpro ABAP in SAP BPM

    Hello,
    I want to know if it is possible to integrate Web Dynpro ABAP in a BPM Process or it only supports JAVA Web Dynpro. If yes, how can I do this?
    Thanks & Regards
    SU

    it can be expected in CE 7.3
    BPM & WebDynpro ABAP

Maybe you are looking for

  • Is there a way of storing files on both iCloud Drive and my Time Capsule, but not my built in Hard Drive?

    I have a Mac Book Pro. I work with large video files, which I sometimes want to save on a Time Capsule - or another external hard drive, as well as the cloud. I sometime want to access the videos when I travel - and really want a no-nonsense solution

  • Options for recovery when 'recognize array' is greyed out?

    I have an X Raid with all the slots are full with 180MB drives and it's been running as two RAID 5 arrays of 1TB. Yesterday one drive showed a red light, so I shut the system down and re-seated the drive. All seemed well and the software began rebuil

  • Open Item management quiery

    Hi, Can something be done to clear the open items from XXX- XXX for the all dates from 21/07/2004 - 04/06/2008 the items in the FBL3N transaction offset one another to zero in AUD but in the F-03 transaction it shows a different amount when in AUD. S

  • Bdc s for mm01

    hi i had an issue to process materials for different views like when for first material it should create in 3 views depending on flat file for second it may for 2 views or 5 views , can anyone help on this thanks pavan

  • ITunes Download Link does NOT work

    When I opened my iTunes today it told me that there was a new update iTunes 5.0.1 was available.. so it took me to the website but I don't see anything but text. I can't see any download buttons or links or anything like that, same thing goes to the