Changing R/3 data in webdynpro

Goodday,
Need some advice here. We're developing this functiaonality to change existing data back in R/3 through a webdynpro application in the portal. We have developed 2 RFC's. RFC1 for sending data from R/3 to portal (with userID as the input) and RFC2 for sending data from portal to R/3.
When the view initialize, it will send userID back to RFC1 and get all the relevant data to populate the form view. Once populated, users can now change the data. Once completed, users will click on the button 'save' which will execute RFC2 to update R/3.
Since the fields are binded to output of RFC1 (when initializing the view), how do i now bind these updated fields (once user changes) to RFC2 as input and update R/3? Please advise.
Regards

Hi,
Raher than binding direcly from model nodes to view, i will suggest the following way:-
1. Bind the model output node to view context nodes with same names.
2. Create new nodes with the same structure to hold the values at View
While calling RFC1, you will will having the data in model nodes.
3. Then by looping /copying move the model node elements contets to newly created nodes which are binded to View layout element.,
4. Now if user changes the values, call the RFC2 with this newly created nodes.

Similar Messages

  • Need info about HR realted data in webdynpro

    Hi experts,
           I am very new to hr module to use in webdynpro abap.
    I want to extract HR data in webdynpro view.
    Where should I give Logical Database PNP?
    The ifnotypes key word is not accepting in Webdynpro coding?
    Please give me all the info which you can give.

    Hi Srinivas
    We cannot use LDB in WebDynpro Programming.
    Atlernate to fetch the data from infotypes is Create class SE24 and one method in this call HR_READ_INFOTYPE to get the data from whatever infotype you want..
    Aftertaht call the class of method by creating one reference object to that class...
    Thanks and Reagrds
    Tulasi Palnati

  • I am receiving the data through the rs232 in labview and i have to store the data in to the word file only if there is a change in the data and we have to scan the data continuasly how can i do that.

    i am receiving the data through the rs232 in labview and i have to store the data in to the word or text file only if there is a change in the data. I have to scan the data continuasly. how can i do that. I was able to store the data into the text or word file but could not be able to do it.  I am gettting the data from rs232 interms of 0 or 1.  and i have to print it only if thereis a change in data from 0 to 1. if i use if-loop , each as much time there is 0 or 1 is there that much time the data gets printed. i dont know how to do this program please help me if anybody knows the answer

    I have attatched the vi.  Here in this it receives the data from rs232 as string and converted into binery. and indicated in led also normally if the data 1 comes then the led's will be off.  suppose if 0 comes the corresponding data status is wrtten into the text file.  But here the problem is the same data will be printed many number of times.  so i have to make it like if there is a transition from 1 to o then only print it once.  how to do it.  I am doing this from few weeks please reply if you know the answer immediatly
    thanking you 
    Attachments:
    MOTORTESTJIG.vi ‏729 KB

  • Change in start date of tax depreciation not for posting in mid of year

    Hi Experts,
    Tax depreciation area is not for posting. The fiscal year is from Jan to Dec. I want to calculate tax depreciation from May 2011 based on Net Book Value of tax depreciation as on 30.04.2011. But once I change the start date of tax depreciation in asset master to 01.05.2011, the system ignores the previous depreciation so I am not getting the NBV of tax depreciation of 30.04.2011.
    Is any setting is required to get this. I can not do changes in posting rules since this tax depreciation is not for posting any thing.
    The fiscal year 2010 is closed and NBV of tax depreciation as on 31.12.2010 of one asset is 80000, If I change the start date of tax depreciation from 1.1.2011 then system correcly take NBV of 31.12.2010 for further depreciation calculation. But if i change the start date of depreciation in between of year the system is calculating depreciation based on NBV of 31.12.2010 but ignores the tax depreciation from 1.1.2011 to 30.04.2011, which I previously run using AFAB.
    Need your assistance to know is it feasible to do this.
    Thanks and Regards,
    Harshad

    Hi Harshad
    The behaviour of the system is very much correct, it is designed to behave that way...
    One, you should not have changed the dep start date....
    two, NBV in SAP is always taken to be NBV @ the start of the year....
    The best wayout I can suggest here is, if you are on EhP4 and EA-FIN active
    a. Change the Dep Key in the asset... You can maintain Time Dependant Dep Terms in asset master i.e. Dep Key X from Jan-Apr and Dep Key Y from MAy onwards
    b. This will however, calculate dep based on NBV at the start of the year, but based on new useful life
    c. Considering your eg: The system is posting more depreciation i.e. 5333 instead of 5155.... So, calculate this amount outside the system and post a Manual Write up ABZU inorder to reduce the Dep and increase the NBV
    Even if you are on not on EhP4, you can follow the same approach as above.... i.e.
    a. Change the Dep Key in asset master.... This will throw up new dep figure, on the basis of New Useful life and NBV at the start of the year
    b. Post a write up from ABZU....
    No need to do Asset to asset transfer in my opinion
    Only diff between EhP4 and Non EhP4 is that the differential depreciation would be lesser if you are on EhP4... i.e. instead of 5333 now, system may throw up depreciation amount of 5666.. So, you may need to post write up of 5666-5155
    br, Ajay M

  • Change in start date of tax depreciation in mid of year

    Hi Experts,
    Tax depreciation area is not for posting. The fiscal year is from Jan to Dec. I want to calculate tax depreciation from May 2011 based on Net Book Value of tax depreciation as on 30.04.2011. But once I change the start date of tax depreciation in asset master to 01.05.2011, the system ignores the previous depreciation so I am not getting the NBV of tax depreciation of 30.04.2011.
    Is any setting is required to get this. I can not do changes in posting rules since this tax depreciation is not for posting any thing.
    The fiscal year 2010 is closed and NBV of tax depreciation as on 31.12.2010 of one asset is 80000, If I change the start date of tax depreciation from 1.1.2011 then system correcly take NBV of 31.12.2010 for further depreciation calculation. But if i change the start date of depreciation in between of year the system is calculating depreciation based on NBV of 31.12.2010 but ignores the tax depreciation from 1.1.2011 to 30.04.2011, which I previously run using AFAB.
    Need your assistance to know is it feasible to do this.
    Thanks and Regards,
    Harshad

    Hi Harshad
    The behaviour of the system is very much correct, it is designed to behave that way...
    One, you should not have changed the dep start date....
    two, NBV in SAP is always taken to be NBV @ the start of the year....
    The best wayout I can suggest here is, if you are on EhP4 and EA-FIN active
    a. Change the Dep Key in the asset... You can maintain Time Dependant Dep Terms in asset master i.e. Dep Key X from Jan-Apr and Dep Key Y from MAy onwards
    b. This will however, calculate dep based on NBV at the start of the year, but based on new useful life
    c. Considering your eg: The system is posting more depreciation i.e. 5333 instead of 5155.... So, calculate this amount outside the system and post a Manual Write up ABZU inorder to reduce the Dep and increase the NBV
    Even if you are on not on EhP4, you can follow the same approach as above.... i.e.
    a. Change the Dep Key in asset master.... This will throw up new dep figure, on the basis of New Useful life and NBV at the start of the year
    b. Post a write up from ABZU....
    No need to do Asset to asset transfer in my opinion
    Only diff between EhP4 and Non EhP4 is that the differential depreciation would be lesser if you are on EhP4... i.e. instead of 5333 now, system may throw up depreciation amount of 5666.. So, you may need to post write up of 5666-5155
    br, Ajay M

  • Change infotypes end date when delete leaving action for employee

    Hello,
    I created new infotype and when employee leaves its end date is changed for leaving date.
    When leaving action is deleted ther is some least of infotypes that user can sign so the end date of selected infotypes will be changed to 31.12.9999. How can i add my infotipe to this list?
    Thank you,
    Paulina

    Hi,
    Maintain IT 0041 where in that table maintain employee start date of hiring and leaving date of employee bze in IT 0000 the dates will change as per action lets say if employee hire that date will be in IT 0000 action and if employee gets promotion date or leaving date that will store in IT 0000 by delimiting other actions
    So maintain IT 0041 where you can pull dates from there if you maintain
    End date will always be 31.12.9999 so check action start date you will get in sequence
    Thanks
    Edited by: Vibinsap on Mar 9, 2012 7:12 AM

  • How to change the default date in Person assignment tab?

    Hi experts,
    Does anyone know how to change the default date in person assignment tab in cj20n? Currently, the system always take the scheduled finish date to the date of the person assignment tab. Can I change it to the start date?
    Thanks and rgs,
    Michelle

    Hi Michelle,
    Goto SPRO->Project system->Dates->Scheduling->Specify Parameters for Network Scheduling, Here you can control the workforce planning dates.
    Hope this is useful...
    Regards
    Aatish

  • Change delivery date on sales order -- change of Billing date on item

    Hi,
    We are trying to change a delivery date for a sales order's item, if we do so normally the billing date on that item's billing tab will change automatically also.
    Now, for a specific sales order the billing date in the billing tab is not changing.
    We compared 2 sales orders .. the same statusses - no blocks - ... and with one it works (changing of the billing date) and with the other it does not work..
    Please help !
    thanks a lot!

    Hi,
    Check the following.
    If invoice dates are defined for the customer, the system proposes the billing date from the invoice date calendar. If no invoice dates are agreed, then the actual goods issue date is formed on the basis of delivery related billing. In order related billing, the billing date of the order forms the basis of the billing date.
    If you are billing services, the system proposes the date of services rendered. You can change the date manually in the sales document.
    If you are using a billing plan to bill a project, the system can propose billing dates for the billing plan on the basis of planned or actual dates in the corresponding milestone.
    In a billing plan for a maintenance or rental contract, you can specify rules by which the system determines billing dates on the basis of other dates in the contract.
    Regards
    Nadarajah Pratheb

  • How to get the complete data from Webdynpro using a RFC

    hi guys,
    A form is created in the webdynpro, when that pdf form is called the user have to provide the key field ie the employee number in the form and then when he press the 'go' button a rfc is called and it gives all the details of the employee in the form. Then the user have to input some fields in the form and he have press the submit button. My problem is here, when the user is going to press the submit button that form will be converted to a stream (binary) of data and it is sent to one of the import parameter used in the RFC.
    I have created a RFC and created a import parameter of data type XSTRING, since i want to see what exactly R3 is receiving from web dynpro i am writing this contant in the sever as a text file. When i saw that text file i cant see the complete data.
    And when i searched in R3 the capacity of xstring is 1024 CHAR, so i dont know how to capture the entire data from webdynpro into my R3.
    I give the code what i worte please tell me am i missing anything in my code, or is there any data type which can hold more than 500kb of data which is coming from webdynpro.
    FUNCTION ZSEND_MAIL_ATTACHMENT.
    ""Local Interface:
    *"  IMPORTING
    *"     VALUE(OUT_PLACE_LEVEL) TYPE  XSTRING OPTIONAL
    *"     VALUE(BIN_DATA) TYPE  INDX_CLUST OPTIONAL
    *"  TABLES
    *"      IT_MESSAGE STRUCTURE  SOLISTI1
    Data Declaration
      DATA: gd_cnt TYPE i,
          gd_sent_all(1) TYPE c,
          gd_error TYPE sy-subrc,
          tab_lines LIKE sy-tabix.
    Structure Declaration
      DATA : BEGIN OF it_file OCCURS 0,
              row(255),
             END OF it_file.
      DATA : BEGIN OF i_split OCCURS 0,
      row(50),
      END OF i_split.
    Internal Table Declaration
      data : it_receivers like table of SOMLRECI1 with header line."occurs 0.
      DATA : objbin LIKE SOLISTI1 OCCURS 0 WITH HEADER LINE. "sOLIX
      DATA : it_packing_list LIKE sopcklsti1 OCCURS 0 WITH HEADER LINE.
      data : wa_receiver like table of SOMLRECI1 with header line.
      data : it_receiver like table of SOMLRECI1 with header line.
      data : v_bin_data like SOLISTI1 occurs 0 with header line.
      DATA : gd_doc_data LIKE sodocchgi1 OCCURS 0 WITH HEADER LINE.
    *data bin_data1 like table of solix with header line.
      REFRESH : objbin, it_packing_list, it_receivers, wa_receiver.
      CLEAR   : objbin, it_packing_list, wa_receiver, it_receivers.
      DATA V_SUBJECT(255) VALUE 'HI'.
      gd_doc_data-doc_size = ( tab_lines - 1 ) * 255 + STRLEN( it_message ).
      gd_doc_data-obj_langu = sy-langu.
      gd_doc_data-obj_name = 'SENDFILE'.
      gd_doc_data-obj_descr = v_subject.
      gd_doc_data-sensitivty = 'O'.
      APPEND GD_DOC_DATA.
    Appending The Internal Table it_packing_list
      it_packing_list-head_start = 1.
      it_packing_list-head_num = 0.
      it_packing_list-body_start = 1.
      it_packing_list-doc_type = 'RAW'.
      it_packing_list-body_num = tab_lines.
      APPEND it_packing_list.
    *CALL FUNCTION 'GUI_UPLOAD'
    *EXPORTING
    *filename = V_FILE_PATH
    *filetype = 'BIN'
    *TABLES
    *data_tab = BIN_DATA.
      move bin_data to v_bin_data.
      append v_bin_data.
    *move soli to bin_data.
      LOOP AT V_BIN_DATA into objbin.
    MOVE v_bin_data TO objbin-line.
        APPEND objbin.
      ENDLOOP.
      CLEAR it_packing_list.
      DESCRIBE TABLE objbin LINES tab_lines.
      it_packing_list-transf_bin = 'X'.
      it_packing_list-head_start = 1.
      it_packing_list-head_num = 1.
      it_packing_list-body_start = 1.
      it_packing_list-doc_type = 'PDF'.
      it_packing_list-body_num = tab_lines.
      it_packing_list-doc_size = tab_lines * 255.
      APPEND it_packing_list.
    data file(255) value '/tmp/bali.txt'.
    *Appending The Internal Table it_receivers
    close dataset '/tmp/bali.txt'.
    open dataset '/tmp/bali.txt' for output in text mode encoding default.
    if sy-subrc = 0.
    loop at objbin.
    transfer objbin to '/tmp/bali.txt'.
    endloop.
    else.
    write 'hi'.
    close dataset '/tmp/bali.txt'.
    endif.
      it_receiver-receiver = '[email protected]'.
      it_receiver-rec_type = 'U'.
      it_receiver-com_type = 'INT'.
    APPEND wa_receiver.
    move wa_receiver[] to it_receiver[].
      append it_receiver.
    *Move wa_receiver[] to it_receivers[].
    Clear it_receivers.
    if i_OUT_PLACE_LEVEL NE 0.
    loop at it_receivers into wa_receiver.
       loop at it_receivers into wa_receiver.
    **Function Module To Post The Message To Externa Mail
         CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
           EXPORTING
             document_data              = gd_doc_data
             put_in_outbox              = 'X'
             commit_work                = 'X'
           TABLES
             packing_list               = it_packing_list
             CONTENTS_TXT               = objbin
             receivers                  = it_receivers
           EXCEPTIONS
             too_many_receivers         = 1
             document_not_sent          = 2
             document_type_not_exist    = 3
             operation_no_authorization = 4
             parameter_error            = 5
             x_error                    = 6
             enqueue_error              = 7
             OTHERS                     = 8.
         clear wa_receiver.
    ENDFUNCTION.

    You have to convert your long string to a table of shorter strings.
    There may be other ways, but one possibility is to use a loop to process you string.
    while (there is something left)
       put the next e.g. 1024 characters in a new row of your table
    endwhile
    If you need to reconstruct your string from the table, don't use simple concatenation since it will remove blanks at the end of lines. Believe me (from experience) sooner or later this will happen.
    Instead you need to either set the subsections of your long string, or insert from the end of your table and keep shifting the contents (probably less efficient) right

  • How to change the posting date in UD stock posting for a HU managed item?

    Hi,
    We are using Handling Unit managed items with QM activation. For a specific HU managed material, we wanted to post the stock on a previous date. We have created PO on a back date and made GR also on a back date. Now the problem is, the system has generated an inspection lot. Now while trying to do UD and stock posting, I do not see the "Doc" tab which we normally see in UD stock posting for normal inspection lots (non-HU managed items) for changing the date.
    I don't see any other way to change the posting date for the HU managed item in UD stock posting. Anyone can help please?
    Thanks & Regards,
    Madhavan Krishnamoorthy.

    I don't think you can.
    Craig

  • Unable to change stock posting date at usage decision while inspecting HUs

    If we were using materials without WMS it's simple: thereu2019s a button in the screen for stock posting by which we're able to change document date and posting date; but we're using WM and the screen is slightly different: the button I'm referring it's gone!
    So, how to change the posting date at posting stock in QA11 when we're using handle units? Some end-user told me that in version 4.7 this was possible. I don't think so ...unless there was something customized at WM IMG...or maybe they were using a USER EXIT to bring a pop-up window for this (I'm starting to believe that this was implemented..). This is the first time I work with HUs, so I don't know how to manage this.
    Anyone?
    Seba
    Edited by: Sebastian Sniezyk on Apr 3, 2009 10:16 AM

    I solved it in this topic: Changing posting date at usage decision for handle units. How?

  • Is there a way to change the Digitised Date for Mov files in Lightroom?

    I am scanning some old photos.  Unfortunately Programs such as Dropbox and OneDrive display Mov files by their digitised Date.
    Consequently, My scanned photos are shown by the date that I scanned them. I can not seem to find anyway in LightRoom to change the Digitised Date so that they are shown on OneDrive/Dropbox in the correct order on my iPad.
    Any help would be appreciated.

    Your subject line says "Mov files" (which are video files), but your message talks about scanning old photos.  I'll address the old photos issue.
    Because there are so many dates/times associated with photos, and because every program feels free to use its own names, it's critical to be pedantically precise about terminology. The date/time a photo was originally taken (when the shutter was pressed) is called Date/Time Original or Capture Date. The date/time a photo was transferred to digital media is called Date/Time Digitized (when the analog file was scanned or when the digital-camera shutter was pressed). 
    A good rule of hygiene is to ensure every photo has a Date/Time Original (capture date).  Typically only digital archivists care about maintaining Date/Time Digitized.  If you ensure that every photo has a Date/Time Original, then pretty much any modern app and Web site will order your photos correctly.
    In LR, you set Date/Time Original using the Metadata > Edit Capture Time command.  By default, LR won't write the capture time back to the file's metadata, so depending on how you are transferring photos to other programs, the capture time won't necessarily get transferred.  So you either need to do Metadata > Save Metadata To File, or better, set the option Catalog Settings > Metadata > Automatically Write Changes Into XMP.
    Unfortunately, LR's Edit Capture Time isn't very flexible with dealing with scanned photos in which the precise date/time is not known.  So some people like to set an entire batch to, say, 1963/10/01 00:00:00, while others like to have each photo set in increasing increments of 1 second, so that programs will at least maintain the known relative ordering (which comes from the film or slide ordering).   To do that, you'll need a third-party plugin, e.g. ExifMeta or CaptureTime To EXIF.

  • How do I change a photos date in iPhoto 11?

    I have some old pictures that were not taken on a digital camera. One from 1952, others from 1971 and 1972. IPhoto assigns the date at which they were imported (two were e-mailed to me). I checked how to change a date and time. What I got was as follows:
    Choose "photos", "adjust date and time"
    OK, but I can type in a month and day, but if I type in 1952, it will not take 4 digits, sometimes only 1 or maybe 2. On the one from 1952, I scrolled up to 1952, but it started at 01, so that was a lot of scrolling. Am I doing something wrong, or is iPhoto effed up?

    For incorrect camera dates use the adjust time and date command
    For scans and other photos that were not originally digital use the batch change time and date command
    LN

  • How can i change the Creation Date of a video (mts-Format)?

    I work with Phohoshop Elements 13 an i use Online-Album (Revel)
    My Problem:
    I would like to change the Creation Date of a Video-File (mts-Format). I don't no why but the date (in Metadata) is wrong and i would like it to change. If i change it in Photoshop Elements the Date (Edit... Change Date...) it seems that the date has changed, but in reality in the Metadata is still the wrong date (see attachment).
    Why this ist important for me:
    The Adobe Revel (Online-Album) takes always the date from the metadata which is wrong.
    Any idea how i can resolve my Problem?
    How i can change the Metadata?

    Hi,
    Did you get help ? Or do you have a work around ? I have about 20.000 Pictures and countless videos to organize myself.
    I just ran into the same problem. Except that after a while Adobe will undo the changes I have made to the date.
    Here's a  screen shot I just made of one of the files.
    Look at this one ! This one is really interesting:
    After changing the date to : 1889 . Adobe changed it to 01.01.1970 00:59

  • How to verify that the user has changed table row data before db update

    Hi all,
    Iam using Oracle ADF with EJBs.
    I have a single selection table that displays rows of data returned from a function of my data control.
    The columns of my table are editable so that the user can change the data. The user selects a row, changes the data in one or more columns of the row and saves the data by means of a submit button. The code in the submit button, identifies the row of the corresponding iterator that the user clicked on and updates the data in the database (using the 'mergeEntity' function of the EntityManager)
    Before saving the data, I want to put some logic to check whether the user has actually changed some data to avoid unnecessary updates in the database . But for this I need a technique to detect that the user has indeed changed some data in the table row.
    One technique I have been using so far was to isolate the iterator row of the table and then query the corresponding row in the database table and compare their values.
    Except from dummy, this technique is not efficient if the table contains many rows.
    Moreover, in my case I have observed that on successive updates on the same row , the query on the database returns the new values (user changed values) and not the actual values contained in the database table. This means that when the user updates an iterator row the cached data affect also the results of the SELECT statement from the actual database table!!! Isn't this strange ?
    Can somebody propose me a neat method to detect when the user has changed the the data of an iterator row ?

    Hey Alan,
    The below solution seems overly complicated to me and can not be implemented without a custom screen and/or the use of JavaScript. Also, if your main concern is that a user may accidentally loose all their data because they closed the browser window or the session times out before they hit the save button then this solution does not help you.
    There are a couple of simpler approaches you can take here:
    # If the use of JavaScript is permissible you can hook into the windows 'onUnload' event, and pop-up a message box which gives the user the opportunity to cancel closing the window and save their case if they haven't already.
    # Implement an autosave feature by hooking into one of events provided by web determinations. A simple (but rather naive) way of doing this would be to hook into the OnRenderScreenEvent and call save on the interview session every time the event fires. This guarantees that all the data the user has submitted will aways automatically be saved, thereby removing the need to make sure the user manually saves their data before closing the browser.
    Automatically making Web Determinations close a browser window has to be done using JavaScript. However, doing so means that a) it won't work for people who turn off JavaScript, which is commonly done for accessibility reasons b) you'll likely run afoul of the browser's security mechanism (they generally won't let you close a window that you didn't open and some really don't like you doing that at all).
    Thanks,
    Kristy

Maybe you are looking for