Skip to Content
avatar image
Former Member

WEB DYNPRO FOR JAVA WITH RFC

Hi to all

Finally, after of very much fight, I can create, implemented and deploy the WD of example WebDynpro_FlightList, that use the bapi BAPI_FLIGHT_GETLIST, extracting info from R/3.

Now, I want do it others WD, with bapis, but, with business information: warehouse stocks of materials, open items of customers, , sales order,.....

Can somebody to have a single example of other application for to share experiencies and knowledge ??

Thank you and regards

Dario Rodriguez

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • avatar image
    Former Member
    Apr 15, 2007 at 11:50 AM

    hi,

    if you have done it in BAPI_FLIGHT_GETLIST ,, then creating model for any other FM is also same.

    1) Decide the FM

    2)Create model, mention that as a used model in component

    3)provide its proper import parameter and execute

    please go ahead and let me kno if you find something difficult

    hope it helps

    regards

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 16, 2007 at 04:32 AM

    Hi Hernan,

    The BAPI_FLIGHT_GETLIST is a very good example to learn how to call R/3 RFCs in WD. This BAPI only reads the flight table from r/3 systems but doesnt write or update any databse table.

    I guess you are now interested in hitting the databse and updating a table there?

    Here's the list of some other BAPIs that you can use ( related to flights n details only).

    1. <b>BAPI_FLBOOKING_CREATEFROMDATA </b> - Creates a new booking for a flight.

    when you use any BAPI that updates or adds to the existing tables in R/3 the you have to use following BAPIs also :

    1. <b>BAPI_TRANSACTION_COMMIT </b> - Executes a COMMIT WORK and actually

    writes the data sent by WD to the databse table.

    2. <b>BAPI_TRANSACTION_ROLLBACK </b> - Executes a ROLLBACK WORK.

    Prevents the changes from geting reflected in the databse table if bapi_transaction_rollback is not called.

    Add comment
    10|10000 characters needed characters exceeded

  • Apr 16, 2007 at 04:47 AM

    Hernan,

    The procedureto to call BAPIs/RFC Enabled FM via RFC model is same.

    Please go through this blog for Material Creation,

    /people/ramganesan.karuppaiah/blog/2006/12/14/material-creation-bapi-access-in-webdynprojava

    Regards,

    Ramganesan K.

    Add comment
    10|10000 characters needed characters exceeded

    • Hi,

      As all posts to this thread have mentioned, the procedure for using BAPI's or any FM is the same. Suggesting you look for example would be giving you a list of RFC to be used. But giving such a list does not really help much until you know the exact functionality in such RFC's. To know the functiobnality you keep a little bit of hands on ABAP programming and you must be sitting close toa specific functionl consultant to explain the business logic. A goog way to start would be to use RFC/BAPI for CRUD (create / update / delete ) operations for an order".

      Cheers!!!

      Sukanta Rudra