Change the data in fieldcat and update the database table in alv oops

Hi,
my requirement is i have displayed a fieldcat in change mode and when i change the data and click on save it has to be updated the database table..
this has to be done using alv oops...

Hi,
This code will reflect all the changes into the internal table that is being displayed.
* to reflect the data changed into internal table
      DATA : ref_grid TYPE REF TO cl_gui_alv_grid. "new
      IF ref_grid IS INITIAL.
        CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'
          IMPORTING
            e_grid = ref_grid.
      ENDIF.
      IF NOT ref_grid IS INITIAL.
        CALL METHOD ref_grid->check_changed_data.
      ENDIF.
Now after this code is executed the internal table is modified as per the changes done in alv output.
Now you can use this internal table to update the database table.
Hope this helps you.
Regards,
Tarun

Similar Messages

  • How to retrieve the data from Website and Upload it in SAP table?

    Dear ABAPers,
            I want to retrieve the data from website and upload the same in SAP Database Table is that possible.Please help me.It is very Urgent.
    Thanks & Regards,
    Ashok.

    Dear Abhishek,
                  Thanks for your reply.But my requirement is not met.
    If i execute the program it should retrieve the data from particular website.
    Thanks & Regards,
    Ashok.

  • Capture the Invoice Split Reason and update it in the invoice header text

    Hi All,
    We have a requirement where we need to capture the invoice split reason and update the reason in the one of the invoice header text.
    Problem is the routine where the split criteria is being determined is called a number of times, so how will we determine at what time of time do we need to capture the split reason. I mean at what iteration of the routine will we know that the split value is the right value.
    Is there any way to determine the number of iterations of a routine written for split?
    Require your valuable inputs for this issue....
    TIA
    Regards,
    Sharadendu

    Hi,
    Is your invoice split reason maintained in the header or item level?
    Try coding your logic in user exit MV45AFZZ and update header text using text id and save it in header text using
    FM [SAVE_TEXT|http://help.sap.com/saphelp_40b/helpdata/en/d6/0db8ef494511d182b70000e829fbfe/content.htm].
    Before this logic use FM [READ_TEXT|http://help.sap.com/saphelp_nw70/helpdata/en/d6/0db8c8494511d182b70000e829fbfe/content.htm] to determine if the header text is already updated. If yes,exit else save your HEADER_TEXT using SAVE_TEXT.
    This code can be written under FORM_USEREXIT_SAVE_DOCUMENT_PREPARE.
    Regards,
    Amit
    Edited by: Amit Iyer on Sep 1, 2009 8:46 PM

  • Add zfield to va01 and updating the data base

    Hi friends,
    I have requirement to add Zfields to vbak and updating the Zfield value to VBAK.
    But my problem is when am trying to save or changing the Zfield into data base it is not saving the zfield value and it is not detecting the change value of Zfield in VA02.
    Can any provide the solution if possible.
    Thanks in advance.
    sasi.

    Hi friend ,
    my requirement to update the Zfield information in vbap table. Even if am try using the user exit move_field_to_vbap it is not getting triggered if we chage the zfield value.it is only getting triggered during the change of standard field.
    when am trying to save the Zfield value we are getting the message No data changed. in that case data is not getting updated to data base table vbap
    thanks  in advance,
    sasi.

  • Hello Sir I have an iPhone 4 and when i updated that it got updated but now for restore the data it is showing me the message The "iPhone" could not be activated because an unknown error occurred (0xE8000004). Please try again later. please help me.

    Hello Sir I have an iPhone 4 and when i updated that it got updated but now for restore the data it is showing me the message The "iPhone" could not be activated because an unknown error occurred (0xE8000004). Please try again later. please help me.

    Hello Amarchand Sharma,
    Are you working with a Windows computer?  If so, the resource below may help you troubleshoot the issue you are having restoring your iPhone.
    iOS: Unknown error containing '0xE' when connecting to a Windows PC - Apple Support
    http://support.apple.com/en-us/TS3221
    Regards,
    Judy

  • When updating to  Mountain Lion I get this measageThis disk has S.M.A.R.T. errors. This disk has hardware problem that can't be repaired. Back up as much data as possible and replace the disk.

    When updating to  Mountain Lion I get this measage
    This disk has S.M.A.R.T. errors. This disk has hardware problem that can’t be repaired. Back up as much data as possible and replace the disk.
    never had this before download of Mountain Lion.

    As others have stated, this is a potentially catastrophic event.  Consider yourself lucky, as hard drives usually just fail wihtout warning.  Your disk could die at any time.  This is a mechanical / physical failure, not software related.
    Going forward, I would suggest utilizing a utility that monitors SMART status, which you obviously don't have, such as SpeedTools.

  • Can we update the data from SSRS report to any database ?

    Hi Team,
    Greetings !!!!
    Can we update the data from SSRS report to any database ?
    Thanks,
    Anand Gavle.

    Nope SSRS doesnt have write back options. Its just a reporting tool
    However one thing you can do is to link a webpage from SSRS report and do the changes through it
    SSRS has the ability to navigate to web page through which you can capture any data inputs from users and save it to your db.
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • Why must I click the button two times to update the data?

    Dear All,
    I have written a simple vi about event case. I have found that I must to click the button two times to updata the data. I don't know why.
    And I can't use the stop button to stop the vi.
    Could you tell me the reason?
    Thank you very much.
    Attachments:
    event case.vi ‏42 KB

    Hi,
    1 : you have a "timeout case" but no timeout linked, so you lose the advantage of the event structure !
    2 : make a event for "stop" on value change
    3 : its normal, because le control terminals were out of the event struct, run it in high light mode you'll understand
    Remark : instead of having to clic a boolean to refresh the indicators, why don't you make a "value change event" directly on the control ?
    I modified your VI following step 1,2,3 above
    Hope this helps
    When my feet touch the ground each morning the devil thinks "bloody hell... He's up again!"
    Attachments:
    event case.vi ‏17 KB

  • Log "date completed" to the date when "completed" was updated to "yes

    Hello,
    I want a workflow to fill "date completed" with the date when "completed" is updated to "yes". I am using Sharepoint Designer 2013.
    I have been through hours of research but I could not find any post clear enough to me. Please do not refer me to ancient threads.
    Thanks!
    PS: Below find what I have tried. It does not return anything in "date completed" in my task list...

    Hi Edouard,
    According to your description, my understanding is that you want to set the ‘CompletedDate’ when the ‘Completed’ is Yes.
    You can set the workflow like the screenshot below:
    And set the workflow started when a new item is created or an item is changed.
    I hope this helps.
    Thanks,
    Wendy
    Wendy Li
    TechNet Community Support

  • I am trying to update my apps but my Apple id is an old one that isn't active,  How do I delete the old apple id and use the new id which is my current email address

    I am trying to update my apps and get new apps but my apple ID listed is an old inactive email address.  How do I change it to my new email address?  The new email address is in settings and is on my apple account.  The only place the old one shows up is in the apps store - installing and updating.  What do I do?

    Apps are permanently tied to the Apple ID used to purchase them whether you are using the Apple ID for new purchases or not.  All future updates will require the password for this original Apple ID.  This can't be changed.  The only way to stop this would be to delete these apps from your phone and iTunes library and repurchase them using your current ID.

  • How to read and update the value of property file

    Hi,
    I am not able read the values from property file.
    Please tell me how to read and update the values from property file using Properties class
    This is my property file : - Config.properties its located in D:\newfolder
    Values
    SMTP = localhost
    Now i need to change the value of the SMTP
    New value :
    SMTP =10.60.1.9
    Pls Help me
    Thanks
    Merlin Rosina,

    Post a small (<1 page) example program that forum members can copy and run that demonstrates your problem.

  • Activation error while changing the data type of a field of a table

    hi friends,
    i am facing one problem while changing a data type of a field of a table.
    i just created one table(Yqm32) .i have assigned charcter data type to one field(ztotal_count) .now i want to change this charcter data type to numeric data type.
      while changing to NUMC data type activation error is comming as below.
    Table is not yet classified                           
    Field ZTOTAL_COUNT: Type change                       
      ALTER TABLE is not possible                         
    Structure change at field level (convert table YQM32) 
    Check on table YQM32 resulted in errors   
    Table YQM32 could not be activated                       
    (E- Structure change at field level (convert table YQM32)
    plz suggest.i need to change the data type from char to numc.
    Thanks & Regards

    Hi Pabitra......
    From the SE11 change the table as u wanted and then from menubar select
    UTILITIES--> DATABASE UTILITY
    It will open database utility
    there u select the Activate and adjust database button.
    then the database table will get adjusted.
    just try it once.........
    Suresh......

  • Can we change the lengh of a field in thestandard database tables using dat

    Hi Experts,
        I've a doubt in Data dictionary. can we modify the length of the field in data base tables using stanadrd table.
    My requirement is add customer data to business are field. but the lengh of business area field is 4 chars.and the customer field length is 10.So in sap note i've found a solution is there a table call replacement of business area(FLQGSBER_SUBST).in this first we've append the customer field to this table.then the structure of business area should be modified.
    can we modify the length of the standard table field?
    its an urjent issue
    reward points for helpful answers
    thanks in advance
    regards,
    Rekha

    Hi,
    Thank you for your reply.
    But there is solution i've found in SAP note is 'There is a standard table for business area called "FLQGSBER_SUBST" Replacement of business area.In this table we've to append the field.for ex here we've append the customer (kunnr) and
    the field business area field has no data. when we append the customer field then the data in customer field updated in business area field.when i've tried this
    and when execute this.in debugging the businee area updated with 4 chars only.
    it didnt take 10 chars(kunnr).
    is it possible...

  • I am unable to delete music from my iPhone5 either directly or via PC.  On the iPhone the tracks disappear but the phone remains full and the data is still visible on the PC.  I am unable to manipulate the data in any way on the PC.

    I am unable to delete music from my iPhone5 either directly or via PC.  On the iPhone the tracks disappear when swiping left and deleting but the phone remains full and the data is still visible on the PC. The music was installed on the phone from the backup of a previous model but with the addition of new tracks I am now unable to add more or update to the next operating system as the phone is full.  On my PC the music is still there and but the neither the delete function or any form of sorting/management on the music files is functional. Other Apple products work OK including previous phone, ipad.ipods etc Any advice/help available to get past this would be appreciated.

    I think it is 7.1.1 - there was another update today which I've uploaded but it didn't make any difference. It's just the music libary on the 5 that's causing me problems.

  • How to update Tr code FB02   and update the field reference key1 (bseg-xref

    Can any body
    help me how to update   Tr code   fb02
    and  update the field  reference  key1 (bseg-xref1)  with the interest amount
    calculated.
    Below i have  written My  program  flow logic
    The program should read the open items i.e debit items in the customer account,
    Based on the  invoice date and customer payment terms  calculate the due date and then the  interest should be  calculated on that item based on the due date.
    Use the  transaction  fb02  and update the field  reference  key 1 (BSEG-xref1)
    with the interest amount calculated
    Only  consider  customers whose  interest indicator  knb1-vzskz = 'vk'.
    Interest is to be  calculated for every  30  days
    at the rate of  1% .please see example below.
    Document date is 01.01.2007
    for amount  1000SGD   payment  term  7  days
    It becomes  due  on  08.01.2007
    until  06.02.2007 you should not  consider  for calculation of interest
    SGD  on   7.02.2007 run you can consider this  item for interest calculation

    Hi Robert,
    Thanks for answering.
    I am looking at Ref 2 should flow automatically to clearing document from the accounitng document for billing.
    Ex: Billing document is created and accounted. Ref 2 is AB
    Now when receipt is accounted for this biling document this AB should flow automatically to Ref 2 field.
    Thanks
    NNS.

Maybe you are looking for

  • How can i convert a arraycollection to an XmlList to put as a dataprovider for ADG

    I have a arraycollection which i'm getting from backend.I need to convert it into XMLList with nodes, because i have to show the data like branches in ADG. now I'm using  grouping but getting lot of sorting issues. so i want to convert it into XmlLis

  • DM152 - Creating Interactive Forms in Web Dynpro for Java

    Hi, I'm looking for the "initial" Web Dynpro project used in "DM152 - Creating Interactive Forms in Web Dynpro for Java". Does anyone know where I can get this zip file? Thanks in advance, Geraldo. [email protected]

  • Lens Profile Not Showing Up in Lightroom 5.7

    Despite the profile for a particular lens appearing in (what I presume to be) the correct places on my hard drive (see paths below), the lens profile does not appear in the drop-down within LR panel for Lens Corrections / Lens Profile.  Other new Son

  • Touch screen support (no context menu)?

    Happy to see this, but how are touch screen devices (that don't have a right-click) being supported? Even though people might not type that much on touch screen devices, they do make more mistakes *if* they have to type on them, so some easy typo cor

  • To Nokia: V20 problems

    As many of these posts have indicated there are numerous problems with the n93 v20 fw below is a list of the probs ive encountered so far(from the forum) 1.Night mode video recording-the video is recorded in B/W 2.Battery Indicator- randomly goes up