Change and Update values in a form via RFC

Dear Friends,
Here I am facing a scenerio in an application form. We have a Patient ID. On the base of this ID I have to display the details of patient in a form. But again if patient wants to change some details, he can do that in same form and after submitting the form values should be update in R/3.
I am able to display the values on the base of patient id by Display Rfc, but i dont know how to edit and update those fields.
kindly help me out.
thanks & regards
Nivedita

Dear Sarb,
Thanks for your inputs. I did as u suggested. But while deploying my program, Deployement Aborted is showing.
public void onActionsubmit(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
    //@@begin onActionsubmit(ServerEvent)
if (wdContext.currentPatientIdElement().getPatientId() != null)
{wdContext.currentZpat_Couns_InputElement().setPa_Id(wdContext.currentPatientIdElement().getPatientId());
wdContext.currentPatientIdElement().setPatientId("");
} else {
wdComponentAPI.getMessageManager().reportSuccess("No Records Found");     }
  wdThis.wdGetEditdisplayController().executeZpat_Couns();
    //@@end
  //@@begin javadoc:onActionEdit(ServerEvent)
  /** Declared validating event handler. */
  //@@end
  public void onActionEdit(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
    //@@begin onActionEdit(ServerEvent)
     Zpa_Counsel1 obj = new Zpa_Counsel1();
     Zedit_Coun_Input xyz = wdContext.currentZedit_Coun_InputElement().modelObject();
     IZedit_Coun_InputNode crnode = wdContext.nodeZedit_Coun_Input();
     IZedit_Coun_InputElement crele;
     obj.setZberuf(wdContext.currentContextElement().getZberuf());
     obj.setZbhist(wdContext.currentContextElement().getZbhist());
     obj.setZbland(wdContext.currentContextElement().getZbland());
     obj.setZbpl(wdContext.currentContextElement().getZbpl());
     obj.setZdall(wdContext.currentContextElement().getZdall());
     obj.setZdiet(wdContext.currentContextElement().getZdiet());
     obj.setZdrink(wdContext.currentContextElement().getZdrink());
     xyz.addZpat_Detail(obj);
     wdThis.wdGetEditdisplayController().executeZedit_couns();
    //@@end
and my Context of view is like this now
+Context
....+Zedit
....+Zdisplay
....+PatientId
.......++patientid
..........++zberuf (All editable parameters under root Context)
Kindly Suggest
Thanks & Regards
Nivedita

Similar Messages

  • When I uploaded chrome to have a second choice youtube could no longer be played on firefox there was no arrow. I changed and updated everthing still no arrow. thanks

    Question
    When I uploaded chrome to have a second choice youtube could no longer be played on fire fox there was no arrow. I changed and updated everything still no arrow. thanks

    Downloading past purchases from the App Store, iBookstore, and iTunes Store
    http://support.apple.com/kb/HT2519

  • Adobe Form via RFC - spool order

    Hello experts.
    When I'm calling an Adobe Form via RFC I'm not getting the spool order in the target system. The Form is issued with:
      fp_outputparams-device  = 'PRINTER'.
      fp_outputparams-NODIALOG = 'X'.
      fp_outputparams-DEST = '5175'.
      fp_outputparams-REQNEW = 'X'.
      fp_outputparams-REQIMM = 'X'.
      fp_outputparams-COPIES = '001'.
    If I call the Form function within the target system, the spool order is created.
    I'm doing something wrong? Or the spool order could not be created via RFC function call?
    Thank you a lot!

    There are no exceptions regarding the RFC call. I'm starting to believe  that with this approach, I won't get a spool request. Hopefully that isn't a problem for my company.
    I'll leave the question unanswered in case anyone comes up with a well-funded answer.
    Regards,
    Andrés Sarcevic.

  • BAPI for budget change and update

    Hi,
    I am looking for a BAPI which can update the SUPLLEMENT field(budget change) for transaction CJ37.
    The importing parameters are the following : Project Definition, WBS element, period and supllement value.
    The BAPI  BAPI_EXPENDITUREPROGTREE_CHVAL  doesnt have the importing parameter (definition, WBS element).
    Please help.

    Hi,
    There is no BAPI for FM9K.
    Regards
    Abhii...

  • How to calculate and update value of the field2 based on what user enters i

    I have a field1 (date type) in page1, while saving this value to the table, I also need to update other field (field2) based on field1 on the same table. (for ex. field2 is 60 days greater than field1).
    Also on next page I want to display field2 as read only (grayed out)...
    I tried to display value of field2 on next page using "ITEM" of page1, but that is not what I need..
    While proccesing page1 I need to calculate and save value of field2, and then on next page display it from the table (not from previous page's item)
    Could you please either help or point me to the document that has a similar example?
    Thank you very much.

    how are you updating the row..
    if its using the commit button then have an actionlistener and then derive and assign the value to the particular column of the row..
          DCIteratorBinding dciter;
          BindingContainer bindings = BindingContext.getCurrent().getCurrentBindingsEntry();
          dciter = (DCIteratorBinding) bindings.get("lineItemIterator");
            dciter.getCurrentRow().setAttribute("column4", value);

  • T42 Driver and updates - How to pick form a list of 89 updates

    Does anyone know how to load only the drivers and updates needed for a T42 running XP? I didn't have the OEM version. There are so many updates for the wireless card, H/D, video, LAN, KYBD and pad, etc, etc, etc...
    Is there an automated way for the system to pick the updates it needs?

    Jsalvador wrote:
    Is there an automated way for the system to pick the updates it needs?
    Download Thinkvantage System Update (TVSU) from here.
    But if you are doing a clean install of XP on your T42 this might not work correctly. If you instead call Lenovo support and ask them to send you T42 XP recovery disks (at a charge) you can reset your T42 to factory settings (as it was when it was new.) You then install TVSU and it will now correctly update all drivers to latest level.
    T500: Vista 32, 2.8GHz, 4GB RAM, 15.4" 1680x1050, 500GB 7200rpm, ATI Radeon HD3650 + Intel 4500MHD. T42: XP, 1.7GHz, 2GB RAM, 14.1" 1024x768, 250GB PATA, ATI Radeon 7500.

  • Process to add  new field to Account screen and update value from R/3...

    We have CRM 7 and just wanted to ask what the process would be to add a new field to the Accounts screen. This field will be a read-only field and we'll source its value from R/3, based on some of the other data entered into the Accounts screen.
    What exactly is involved in this process?.
    I think I can use the new Application Enhancement Tool instead of EEWB to create the new field, but how does one identify which structure/table to change for say the 'Accounts' data, and, where does one place the code which populates this field, and, once the structure has been changed how do I physically add the field to the screen. I should be okay with reaching out to R/3 and populating the data, code-wise, but again wondered if there was anything inbuilt to do this, bearing in mind the closeness and constant access to R/3 from CRM.
    Any help would be much appreciated.
    Jason
    Edited by: Jason Stratham on Apr 14, 2010 1:11 PM

    Jason,
    If you use EEWB or AET,, there is nothing manual you have to do, the fields will be added to all related tables and structures plus UI too.
    May be sometimes you have to run the UI configration tool to add the field to the UI, again this is just a tool, there is not manual coding required.
    you can enter the value for the fields direclty via UI, BUT if it is a display only field, at the time of save, you have to write couple of line to populate this field ( see set_property( ) method in the context node ).
    Thats it...
    Regards, Sudeep..

  • Unable to change and re-publish existing InfoPath forms on External SharePoint lists (SharePoint 2013 Enterprise Online and On Premise)

    Hi everybody,
    I really reached the limit of my diagnostic ability... ...please help me!!!!
    I subscribed an Online Sharepoint 2013 Development site to try Business Connectivity Services and InfoPath forms. Using SharePoint Designer 2013 I successfully created an external content type
    and an external list, including InfoPath forms.
    When I use InfoPath Designer 2013 to customize the forms I can open and change them without any problems, but when I try to publish the changes I made I get the following error:
    "An error has occurred. The form template has been published to the server but it can only be opened using InfoPath filler"
    (please note that I changed just an existing label, without adding any new control or new fields).
    If I try to do exactly the same things but with an normal SharePoint list everything works like a charm!
    I noted that the main difference between the internal/external list is that with the internal list the publishing path in InfoPath 2013 is something like:
    https://<sharepointsite>/lists/<listname>
     whereas for the external list is something like the following:
     https://<sharepointsite>/lists/<listname>/item/template.xsn
    Trying to overcome the problem I installed SharePoint 2013 Enterprise on premise using the VM from the Windows Azure Gallery. In this case the error I get when I try to publish with InfoPath
    Designer 2013 is the following:
     The following URL is not valid:
    http://<sharepointsite>/lists/<listname>/item/template.xsn
    and of course everything works fine with InfoPath Designer 2013 and regular SharePoint lists.
    Even if I believe the problem is in general with external list and InfoPath, my external list is based on a the "Product" table from the "AdventureWorks2012" sample database
    installed on SQL Azure and connected to SharePoint via Business Connectivity Services.
    A big
    thanks in advance to anyone who is able to
    provide useful information to solve the problem!!!
    Regards,
    Fabio

    Hi Folks,
    Same issue here for any external list. We've migrated from 2010 to 2013 - it used to be fine on 2010. 2013 seems hang after 'getting site column information' then nothing. All effected users can quick publish to regular sharepoint lists, but cannot to external
    lists.
    In our situation we are trying to quick publish to sites using the 2010 look and feel in a 2013 environment. using SharePoint Designer 2013 and InfoPath 2013.
    Rich
    Rich Burdes

  • User ID change and update on iPad??

    I have changed my user ID on Apple's website and confirmed the change. How do I get it to change on my iPad? That area is grayed out on my iPad and I cannot access it to update it.

    I think you can either
    go onto iTunes and scroll to the bottom to you and then select it and sign out and then sign in with your new account
    or
    you can go onto app store and scroll to the bottom and sign out and sign in there
    hope this helps

  • How can I get itunes to change and update mp3 files?

    Hello
    basily what im asking is. i have a itunes libery with all the right artist names and all the alubem covers i got from internet and sorted into playlist. Is there a way i can get itunes to change the actual mp3 files so that it has the right artist names and arwork after editing it on the libery. as atm all the mp3 files are have missing iformation and when i send a file to my mp3 player it does not have track names or artwork? i tried doing the concert ID3 tag but did not seem to make a difference and after ive done get info and edited it. it does not seem to change the mp3 files.
    can anyone help?

    Flip4Mac should be able to do that
    http://windows.microsoft.com/en-us/windows/windows-media-components-quicktime

  • Not able to view actual Price updated 'Value' in Change Tracker

    I was able to get my Change tracker to work and it is functioning. (SRM 5.0 MDM5.5 )... Configured Portal iViews for change tracker.
    If I change a description I can see it in the change tracker application. But if I try and track a Price change it only shows me a date-time  and user as to I when the price was changed it doesnu2019t show me the actual value changed, for my audit purposes.
    On the portal the change tracker "Field" dropdown shows -> Price Updated. this is what is tracking any change of price.
    In MDM Console-> Admin->Change Tracker I am tracking under Catalog Items: Price information, Price Updated, Special search terms, long description.
    When I look at the Data manager in the Record Detail, I see  u2018Price Updatedu2019 and it only has a Date and time stamp. In this same Record Detail,  I see the field Price Information that contains :Lower bound, Purchasing Info record ID, Purchasing Organization, Amount and Currency.  Amount-> contains the actual price value. This is what i want to see in the portal iView as Old value and New value....this is what I am unable to view? theres one small step i am not doing...
    I am trying to track the actual change in the filed u2018Amountu2019u2026 I have tried to search for it in the Portal iView fields (table, record contains, fields, record)
    cheers
    alex

    Hi Alex,
    I would not here comment on change Tracking functionality but can you suggest another workaround to achieve this requirement. If it fits in your requirement you can go ahead with it.
    In MDM, Create another field in Main table say Initial Price and for already existing field Amount replace its name with Updated Price in Qualified table Price.
    now after this you will see that your by default Updated Price has values as it was your Amount field earlier and Initial Price field as empty. Now for next time, if any record comes using Import Manager then MDM workflow should trigger at Record Import.
    This workflow contains following steps.
    Start(Checkout)>Assign>Stop(CheckIn)
    Assign step should have below expression and assignment:
    Price Information.Updated Price
    Where I am assuming Price Information is the field in main table which is look up to this qualified table Price.
    So in this way you can maintain both existing and updated values of Price and cant then show in your Catalog.
    suppose you have already existing record say 1 which has value of Amount as 20.
    So that means you have Updated Price as 20 and Initial Price as empty(Null)
    Now when same record 1 updates with new Amount say 40, it triggers this workflow on record import which will then assign value of existing updated Price 20 to Initial Field after that Updated Price will update by 40.
    Note: This Assignment works well only if your main table record has this Qualified table link as single record. If your main table record contains more than one qualified links then this Assignment would not work fine. So use only if it fits.
    Regards,
    Mandeep Saini

  • Update values on an Adobe Interactive Form

    My question refers to the thread posted back in 2004 which remains unanswered...
    Thread: http'How to update values in Adobe form?
    With ECC 6.00 (SP10) , assuming that the Webdynpro and Adobe Interactive Forms has been correctly setup, can values on an Adobe Form be updated after retrieval from the back-end database?
    Updating of UI elements NOT on the Adobe Form has always worked; but, there it is unclear if the problem to update values inside the Adobe Form has been resolved.
    Can anyone address this issue with a detailed explanation or example code?
    Best regards,
    john

    Can you please, open a customer message in the BC-SRV-FP queue and please, provide your landscape component info, i.e., ECC 6.00(SPS10), AS Java SPS?.  Please also, provide a WTS connection and information on how to replicate the problem.  If it is possible also, upload the webdynpro project in question.
    Thanks... George

  • How to update values in the table control at  Cat2 transaction,

    Hi,
    i am working on cat2 transaction, here
    i am using the exit_saplcats_006 and updating values at catsdb table, but i want to display this values at the table control in the cat2 transaction.
       can any one provide me solution for this same.
    Regards

    Hi Suresh
      this is actual requirement
    in the CAT2.
    1. Add a new column for WBS description and derive the value as per the FS
    2. Retrieve project number and description and update in the column specified
    3. When a service order is selected it should do the same for 2.
    4. Finally repeat for the worklist view (which is the section above)
       here i am able to display values at data entry area
    for service order and network but not worklist area ?
        updation is not coming, can u plz go throw it..
    Thanks
    Chinna

  • Extracting and updating files inside a JAR file... from my code

    Hi.
    I need some help in the following:
    from my code, I need to search a JAR file, open it, unzipped it, then I need to search a xml and property files inside the JAR, after that I need to modify the files and finally, my code has to save the changes and update the JAR file. All that must be from my java code.
    How can I do that? I am trying to use Runtime.getRunTime().exec().... but I am not sure that it works. Besides, I don�t know what command to include in the exec() method. Is there any way to do that?
    Thanks

    The normal reason I see for this requirement is that people want to update a properties or data file. The approach I use it that I first look for the data file in a well defined location and if I find it I use it and update it as required. If I don't fine it I create it base on a template file read from the jar file using getResourceAsSrream().
    In this way I never have to update the jar file.

  • Is there any user exit for changing V1 field value?

    Hello Expert,
    Is there any user exit for changing V1 update value?
    For example, sales order number will populate 2LIS_11_VAHDR-VBELN. If other value need to populate 2LIS_11_VAHDR-VBELN, can we use any user exit to customize the V1 routine?
    Please forget the enhancement for 2LIS_11_VAHDR. Just populate the system field VBELN.
    Thanks
    F-B-I

    Hi,
    Use the 'usual' user-exit for transactional data in R/3 EXIT_SAPLRSAP_001 (CMOD). Here your can overwrite VBELN for each extracted record with the value you want.
    Hope this helps.
    Grtx
    Marco

Maybe you are looking for