Skip to Content
avatar image
Former Member

Retrieve data from BAPI, FM and Insert in WAS Database

Hello All.

I need to retrieve data from SAP in WedDynpro project using BAPI, FM and create tables in WAS Database to Insert.

I have created the front ends in WedDynpro project to acces data using BAPI and FM. Its works fine.

How to create these table in WebDynpro project to insert the data come from SAP (BAPI - FM) ?

I created the tables in dictionary.

--> Create a new project --> project type Dictionary Project --> Create Tables.

How can insert the data from the BAPI in tables created in dictionary?

Best Regards.

Taylor

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    Aug 27, 2009 at 06:21 PM

    hi Taylor,

    You need to write ejbs for inserting data in WAS tables.

    [EJB Help Doc|http://help.sap.com/saphelp_sm32/helpdata/de/a3/c7637aaf2e054e9cf46e9b45001b54/frameset.htm]

    You need to expose session bean's method as web service which you can import in Webdynpro.

    Hope this helps!

    Monalisa

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 27, 2009 at 04:08 PM

    Hi Taylor,

    If the data is coming from R/3 through a BAPI and if the structure is defined under the tables tab in the BAPI, it will be a node in WD Java. Now, just create a Table UI element and then Bind the table UI element to the node that represents your table coming from the backend.

    Alternatively, you can rightclick on the RootUIElementContainer in the Outline View on the Bottom left hand corner and then select Apply template. now select "Table" from the three option that you get in the pop-up window. After, this select the concerned node and all the attribute as well. This will create a table showing all the data coming from the R/3 system.

    I hope this helps.

    Regards,

    Gopal.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Gopal.

      Thanks for your atention.

      The item to show the data come from BAPI is OK ....it`s WORK FINE.

      Now ...i need insert this data in a Database Table created in Web Application Server Database in Java side.

      This is my question ....how to insert the data come from BAPI in a table created in WAS Database.

      thanks in advance...

      Taylor