Modify SAP data using Web Dynpro for ABAP

Experts,
I have a question. We all have working in web Dynpro to create report.
I was trying to display the data in table and update the data.
When I click on Save button the data should be saved in the SAP table.
SAP table may be standard or user-defined table.
Any idea of how to do it???
Answers will b rewarded.
Thanks in Advance
Edited by: Router on Mar 11, 2008 12:06 PM

Hi,
  The solution to this is very similar to the reports that we write.
1. Create a context node from the dictionary element in the view of the webdynpro component.
2. Now you may be displaying/editing this data in the form of a table in the view layout. For this create a table in the layout and bind the fields of the context to the node you created from the dictionary table in the context.
3. In the layout you also want to have a button SAVE. on the event of this button. Write the code from code wizard where in
  a. Read the context of the dictionary table from the context.
  b. call method
CALL METHOD lo_nd_group->get_elements
    RECEIVING
      set = lt_ddictable.
  c. update the database table using the internal table lt_ddictable.
Hope you find this helpul.
Regards,
Kinshuk

Similar Messages

  • Dynamic DropDowns using Web Dynpro for ABAP

    Hi,
    I'm creating my first Web Dynpro for my new client.
    The requirement is this:
    There are three fields to be displayed on a screen - FieldA, FieldB, FieldC.
    All three should appear as DropDowns on the screen.
    FieldA determines the possible value list of FieldB.
    Once Field B is selected, FieldA and FieldB determines the possible value list of FieldC.
    Each of the fields have their own "master" and text tables.  (eg: like T005 and T005T).
    There is also a "matrix" table that contains all three fields (as Primary Keys).  Note: There is also a "Disabled flag" field.
    So basically we have 3 tables containing the master records.
    We use these values to build a matrix of combinations:
    FieldA   FieldB   FieldC   Disabled
    A111     B111     C111     ' '
    A111     B111     C222     ' '
    A111     B111     C333     'X'
    A222     B111     C111     ' '
    A222     B111     C333     ' '
    A222     B222     C111     ' '
    Now, we want to display the three fields on a Web Dynpro View.
    I've created View Context as follows:
    CONTEXT
      +-- Header_Data (node)
          +-- FIELDA_NODE (node)
              +-- FIELDA_CODE (attribute)
              +-- FIELDA_TEXT (attribute)
    FIELDA_NODE is based on the Disctionary Structore of FieldA's text table (which contains, the LANGU field, and the FieldA Code and Text fields)
    Cardinality and Selection are both  0..1
    FIELDA_CODE (attribute) has Input Value Mode of "Automatic".  When I chose this, SAP derived the Type of Input Help as "Search Help" and Determined Input Help as "ZFIELDA_SH" (which I created using the "master" and text tables).
    (Note: FIELDB and FIELDC are defined the same way).
    I then created the Layout:
    For FEILDA_CODE, I created a DropDownByKey (using the context menu item "Create Container Form").  So now, FIELDA_CODE's property selectedKey is "...HEADER_DATA.FIELDA_NODE.FIELDA_CODE"  (as per above View Context).
    Now when I run the Web Dynpro Application, I get the error:
    Context Path HEADER_DATA.FIELDA_NODE.FIELDA_CODE Cannot Be Resolved (Last Node Is Empty) ?ꯀ ??
    Can anybody help with this?
    I have no idea why it's doing this.  I assume I've missed a step or done something completely wrong!
    I've tried DropDownByIndex for FIELDA_CODE, and got the error message:
    The ASSERT condition was violated.
    (Note: One way that does work is to create a Supply Function (node property) for the FIELDA_NODE.  And create a DropDownByIndex for the FIELDA_TEXT field/attribute.)
    But, I feel this should be un-necessary.  Since I have the master and text tables, I have the Search Help, I should be able to create a DropDownByKey field - without need for any coding.
    Also, once FieldA is working.
    How can I restrict FieldB and FieldC (based on the matrix table above)?
    I created an OnSelect event for FIELDA, but in the EventHandler module I wasn't sure
    (1) what was the easiest way to get the selected value of FIELDA, and
    (2) how to the restrict the possible values of FIELDB.
    Any help would of great value!
    Thank you in advance.
    Rajendra
    PS:  Sorry for the long winded explanation, but it's the only way to describe what I've done so far.

    Hi Rajendra,
    In order to use a DropDownByIndex the needs to be set to multiple. Currently, the node is 0..1. Please set it to 0..N and it should work.
    The reason why the DropDownByKey does not work is that the node has no element. Using 0..1 means that initially no element is present. You need to supply one.
    In summary, a better design would be to decouple the places where the dropdownbykey and dropdownbyindex get their data from or to use two dropdownbyindex with a master/detail relationship.
    Best regards,
    Thomas

  • Mulitple Line column headers for a column in ALV using Web Dynpro for ABAP

    Hi WD4A Gurus,
           I have requirement to display the header name in multiple lines for a single column using ALV. How to achieve this, do I need to do some custom code? Please help me with sample code.
    Example:
    existing column name :
                Name   |  Date (mm/dd/yyyy) | Amount
    required column name:
                Name   |    Date               | Amount
    (mm/dd/yyyy)
    Thanks
    Ketan

    Displaying header in multiple lines is not possible in alv
    Regards
    Tamil

  • New to web dynpro for abap

    HI Team.
    I am new to web dynpro for abap .
    I am trying to develop a sample application using web dynpro for abap
    for that I am making use of SAP ECC 6.0 system.
    I created the the application by following steps in pdf.
    It is a program which makes use of BAPI_FILGHT_GETLIST
    I have created city from and city to two input fields once i enter the data and click on serach flights
    it must display all the filght details in a table format
    Problem i am facing is that data is not coming into the table.once i click the button.
    Do I need to perfrom any settings like rfc destinations ?
    I do not think so because I am trying to make use of the bapi which in the ecc 6.0 system
    please help me out
    thanks in advance

    Hi,
    You posted your question in the wrong forum. This forum is for Business intelligence.
    Did you activate your Web dynpro component? You can do it in the transaction SICF.
    In this transaction, you can expand according to the below path..
    /default_host/sap/bc/webdynpro/sap/<your webdynpro component>.
    Here you right click and YourWdComponent and select Activate.
    Regards
    Nages

  • Troubles with Windows 7 Enterprise and Web Dynpro for ABAP

    Hello together,
    we've installed Windows 7 Enterprise and IE 8 and are using Web Dynpro for ABAP.
    Since this installation on one Client, it is not possible to use the WD application - the sites seems to be frozen!
    I know the fact, that SAP will support Windows 7 in March 2010 but it would be very helpfull if someone could give me a hint to solve this problem before.
    Thanks in advance,
    Andreas

    >
    Andreas Damberger wrote:
    > Hello together,
    >
    > we've installed Windows 7 Enterprise and IE 8 and are using Web Dynpro for ABAP.
    > Since this installation on one Client, it is not possible to use the WD application - the sites seems to be frozen!
    >
    > I know the fact, that SAP will support Windows 7 in March 2010 but it would be very helpfull if someone could give me a hint to solve this problem before.
    >
    > Thanks in advance,
    > Andreas
    Hi,
    Go to internet explorer -> tools -> internet options -> Advanced
    There locate the check box "Enable memory protection to help migrate online attacks" and uncheck it.
    Let me know if that works.
    Regards
    Prasenjit

  • ESS framework in web dynpro for ABAP?

    Recently, I need to start an ESS project using web dynpro for ABAP. Unlike web dynpro for java, we have ESS framework in every track, like pcui/xx DCs and ess/per DCs in the track. And as there are existed projects in the DCs like ESS/JP/ADDRESS, we can just follow suit.
    My question is: are there ESS frameworks in web dynpro for ABAP? Or existed ESS projects based on web dynpro for abap?
    Thanks for your help!

    Hi,
    As far as i know, it would need really a huge amount of effort to develop ess on Webdynpro for ABAP. As you know that it is not a part of SAP standard delivery, you really have to start it from the scratch.
    It would be a custom developed application.
    Regards,
    Sharadha

  • How to call "compensation profile" iView in ECM from Web Dynpro for ABAP

    Hi Experts,
    I developed a compensation planning iView using web dynpro for ABAP using floor plan manager in ECM. I need to call the iView "compensation profile" but I don't know how to pass parameter to it, how to trigger it from my application. Is there anyone used to do this before?
    Thanks!
    - Anthony -

    I have to develop my own iView to replicate Java iView.

  • Alternative for web dynpro for abap

    Ok,
    After a previous question we found out that if we want to use web dynpro for abap, we should upgrade to NW2004S.
    Now, are there alternatives for web dynpro for abap?
    currently (WAS 6.20 - R/3 4.7)
    Thanks in advance,
    Tom

    Hi Tom.
    On 6.20 you can use BSP. But this is not a real alternative to WD4A when lookin at the comfortable development. But a alternative as web application technology.
    Cheers,
    Sascha

  • Is Web Dynpro for ABAP accesible?

    Hello All,
    Our application in EP was developed using Web Dynpro for ABAP and POWL.
    I wanted to know if Web Dynpro for ABAP is accessible ?
    Awaiting your inputs,
    Thanks & Regards,
    Smitha

    Hello Smitha,
    The Answer would be YES.
    Webdynpro appliations are very well accessible In EP.
    Same applies to POWL also.
    Infact POWL is nothing more than webdynrpo application framework which is controlled through a feeder class.
    Regards,
    Kiran

  • Import Data from Office Control (Web Dynpro for ABAP) into SAP-Table

    Hello,
    I have a question concerning the Office Control UI-Eelement in Web Dynpro for ABAP:
    How can I import spreadsheet data from the Office Control in a SAP-table?
    I have an Excel-sheet (without any data) which is shown initially in the Office Control. First the empty Excel-Sheet will be loaded and in the second step data from an alvxml-transformation will be loaded into the Excel-sheet with the method 'activatexmlsource'. This works so far. When I change the loaded data in the Office Control and save it it will be stored as XLS-File. The problem is that I'm not able to use existing Upload-FM because every function module I tried uses GUI-functions and WebDynpro has no GUI-functionality. I always get the error that data from clipboard cannot be imported.
    So now the question is:
    How can I import changed data from the Office control into a SAP-table staying in Web Dynpro application?
    Please give some advice, if you have some useful code or ideas.
    Thanks in advance,
    Philipp
    Edited by: Philipp Hiebler on Feb 11, 2008 10:15 AM

    Hi,
    Once you save to desktop again you have made some changes to that file, this file you want to upload it right.
    Then in that case you need to use the FILEUPLOAD UI element right.
    Regards,
    Lekha.

  • Import Data from Office Control (Web Dynpro for ABAP) into internal-Table

    Hello,
    I have a question concerning the Office Control UI-Eelement in Web Dynpro for ABAP:
    How can I import spreadsheet data from the Office Control into  a internal-table?
    I have an Excel-sheet (without any data) which is shown initially in the Office Control. First the empty Excel-Sheet will be loaded and in the second step data from an alvxml-transformation will be loaded into the Excel-sheet with the method 'activatexmlsource'. This works so far. When I change the loaded data in the Office Control and save it it will be stored as XLS-File. The problem is that I'm not able to use existing Upload-FM because every function module I tried uses GUI-functions and WebDynpro has no GUI-functionality. I always get the error that data from clipboard cannot be imported.
    So now the question is:
    How can I import changed data from the Office control into a internal-table staying in Web Dynpro application?
    Please give some advice, if you have some useful code or ideas.
    Thanks
    ram
    Edited by: Ramakullay Challa on Sep 24, 2009 9:05 AM
    Edited by: Ramakullay Challa on Sep 24, 2009 9:07 AM

    Hi,
    Once you save to desktop again you have made some changes to that file, this file you want to upload it right.
    Then in that case you need to use the FILEUPLOAD UI element right.
    Regards,
    Lekha.

  • Full ABAP Edition-Trial (with Web Dynpro for ABAP) Max DB data volume

    I recently installed Full ABAP Edition-Trial (with Web Dynpro for ABAP)- SPS08.
    http://static.flickr.com/89/243544270_91e713e3a3_o.jpg
    as you can see, it's already 92% acquired ( just after installation)
    Is it correct?
    or it's better to add another volume?
    The other question is
    according to the license installation guide,
    it sounds like we can delete the temp licese with SAP*.
    so I did like that but i got the following message
    http://static.flickr.com/81/243546622_bc99d1af2b_o.jpg
    Well, I could delete the old license with BCUSER.
    Thanks,
    David

    Hello,
    to your first question.
    The MaxDB database has a feature which can
    increase the database automatically.
    This ( auto_extend ) is turned on for the SDN Preview
    installation.
    That means the database should extend a further datavolume
    automatically when the filling level gets over 90%.
    In your case the database already added two more datavolumes. The installation only creates one.
    Best regards, Stefan

  • What SAP component support Flash Island in Web Dynpro for ABAP?

    Hi  Experts,
    What SAP component support Flash Island in Web Dynpro for ABAP? I don't find flash island control to place it in the view.
    Thanks,
    Duy

    FlashIsland is a native UI element like table or image - not a reusable component like ALV.  What release level is your system?  FlashIsland is only available on NetWeaver 7.0 Enhancement Package 1 and higher.
    Also the FlashIsland UI element must be a root UI element. Therefore it has be created in its own view.  Right mouse click on the ROOTUIELMENT in the UI element hierarchy and choose Swap UI Element Definition.
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/47/b907cd77eb2d66e10000000a42189c/frameset.htm

  • Hi, Experts I installed SAP Netweaver Web Dynpro For ABAP

    Hi, Experts I installed " SAP Netweaver Web Dynpro For ABAP ".
    But the SAP Management Console Nodes " NSP" is not turning to Green Color.
    Please can anybody help me on this, Please .................
    Thanks
    Basu

    Hi
    Check this link..
    http://www.sap-img.com/basis/sap-installation-procedure-on-win-2k-adv-server.htm
    Here are the link which will explain the procedure
    http://www.sap-img.com/basis/sap-ides-installation-procedure-for-sap-install-on-w2k-server.htm
    http://www.sap-img.com/basis/sap-installation-procedure-on-win-2k-adv-server.htm
    Regards
    Anji

  • Using Native SQL in Web Dynpro for ABAP

    Hi folks,
    I am trying to access an oracle database in web dynpro for ABAP via Native SQL.
    I am able to read row by row from the database into a work area, but I am unable to read the whole table from the database into an internal table.
    Please advise as to how I can do this, and thanks for reading.
    PS: Thomas, I wasn't off-topic on the previous thread; I forgot to mention that I was trying to do this under Web Dynpro for ABAP.

    Hello,
    it doesn't matter if you try this with Web Dynpro ABAP, BSP or any other framework, this is a general ABAP question and not related to this forum.
    Regards,
    Rainer

Maybe you are looking for

  • View Maintenance

    Hello all, In custom table maintenance view I'm using a couple of events in PAI to format records to be inserted.  I also have a program that inserts entries into that table. Is there a function call that I can use instead of regular insert statement

  • Help Me, How to catch exception thrown from ejbStore

    Hi, I am working on application running on Iplanet Application Server 4.0. Problem is the application exception thrown from the ejbStore don't reach the calling servlet, calling servlet receive TransactionRollback exception which is system exception.

  • SSRS Caching for a big Report

    Hi All in one of the new requirement . Users want to see the data even if the Source is not avaiable . How can we achieve this . It is possible to store the result in Cache,?   Is it possible to set the report so that when the Source is available the

  • Need help reg SUBTOT

    Hi, I am using slis_sortinfo_alv for doing subtotal in a report,but the problem is i even wat to display some text like 'Subtot'before the value. Need help. I want to display my sub total like below format. Ex:SubTot:2345

  • HT1338 my iphoto updated but it states it has errors.  Need help please...

    tried to update my i photo.  an error occurred...cannot figure out how to update again through apps or software update.  any thoughts