cancel
Showing results for 
Search instead for 
Did you mean: 

How to Insert data into ECC System

Former Member
0 Kudos

Hi Friends,

I have one doubt in webdynpro with java. How to insert data into ECC System through view.

I have called one BAPI (BAPI_SalesOrder_Createfromdat1) that is inster data in to ECC System. So I need how to write code in that

If u have any example program please provide that.

Regards

Vijay Kalluri

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Dear Vijay,

Please follow the steps given in this article [Handling Transactions with BAPIs in Web Dynpro|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/d352a790-0201-0010-5082-b1a608d22b6c?quicklink=index&overridelayout=true]

Hope it helps!!

Warm Regards

Upendra Agrawal

Answers (2)

Answers (2)

p330068
Active Contributor
0 Kudos

Hi Vijay,

For saving input data to the BAPI, wirte the code like under try catch block:

1. Create the object of the BAPI for which the data needs to be given (<BAPIname> object = new <BAPIname>();)

2. Bind the object created to the BAPI. (wdContext.node<BAPIname>.bind(objject);)

3. Create object of the structure if required for input data

4. Set the Input structure with the values

5. Execute the BAPI.(wdContext.current<Bapiname>.modelObject().execute();)

Hope it helps

Regards,

Arun Jaiswal

Former Member
0 Kudos

Hi,

Please refer this thread,

Regards,

Saravanan K