on 04-03-2014 5:44 AM
Hi Experts,
I have a situation here where I need to create a form on web dynpro java, which will save and display data from R/3. Is it possible to save data to R/3 directly? I have create adaptive RFC model and JCO connection to display data from R/3. But I dont know saving is possible or not. Please help me to sort out this problem.
Hi all,
I have called the bapi as told by you. But while I am calling bapi to save the data I am getting the following screen where the fields are to editable/writable. Is there any way to make them writable so that data can be written the fields?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi Jun Wu,
i have followed the document where the bapi is called using adaptive rfc model. and zero coding is done to call it. On the R/3 side, the insert statement is running to save the data. everything is fine as I have designed the application to display also but for saving same fields i am not getting as writable.
Hi Shilpi,
Your scenario may NOT be zero coding scenario. Many times you have to write some code to add elements to node. In your case it is clearly visible that you need to make a element of the node. The node visible in the screenshot has zero elements attached to it thats why it is looking disabled.
You may want to verify it.... Make a node with attributes, Set cardinality to 0..n. Create a form bound to the node. Do not make an element of the node. Run the application. The form will look disabled. It simply implies that there are zero elements in the node.
In your scenario, just print the size of the node in the view using the following code-
wdComponentAPI.getMessageManager().reportException("custom message to display size",false);
Till the node size comes up as 0, your form will look disabled as it is right now.
As mentioned earlier, this is a common old scenario. Search for some sample code in articles, blogs and forums. I am sure you will get a lot of sample code.
Regards,
-Amol Gupta
Hi Shilpi,
WebDynpro Java enables you to call BAPIs/RFCs. The onus of saving in your case lies with the BAPI/RFC.
RFC/BAPI expose CRUD (create, read, update, delete) operations to the outside world (out of R3 system).
If your BAPI/RFC saves data, calling the BAPI from WebDynpro Java will do the same. WebDynpro Java just calls the BAPI/RFC. Actual business logic is implemented in the BAPI/RFC.
Cheers,
-Amol Gupta
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Shilpi,
Are you able to call a BAPI to read data ? If yes, then from WebDynpro point of view the code to call a BAPI for Read or Save is same.
You should test your BAPI in SE37 transaction in R3. Whatever structures are needed in SE37, same will be needed from WebDynpro Java as well.
There are so many documents to show how to consume a BAPI from R3, search a little.
High level steps -
-------------------------
1). Create Adaptive RFC model
2). Add model in used models
3). Apply template -"Service Controller" on Component Controller or View Controller
4). Context bindings, mappings and create forms, tables as required
5). Apply template - "Action Button", call execute..... method that was created in step 3.
Run the application and enjoy results. This is a common old scenario you will get a lot of documents articles etc if you search a little.
Regards,
-Amol Gupta
just call the rfc like the display case, nothing special
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
24 | |
12 | |
9 | |
7 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.