cancel
Showing results for 
Search instead for 
Did you mean: 

How to write rfc when value change in the screen (browser) in webdynpro.

Former Member
0 Kudos

Hi,

I want to know how can i write an RFC when screen value change in webdynpro. I already designed a rfc where all the value can be seen in the webdypro screen. Now when user change the value how can i pick the changed value in R/3 so that i can save it into the respective database. Please send some code for understanding it easily as i am new to this field.

Regards

Deep

Accepted Solutions (0)

Answers (3)

Answers (3)

former_member189631
Active Contributor
0 Kudos

Hi Deepak,

You can create your RFC function module /BAPI and display the result

to webdynpro Java.

R/3 Side:

*Create a Function module and mark as RFC Enabled and write code

for your requirement.

*You can use Standard RFC FMsor BAPIs.

Webdynpro Java:

*Create a model in your webdynpro application to use ur function module or BAPI

*Pass the inputs to it and get the result

*Display the details in the webdynpro screen.

EP:

*You can integrate your webdynpro Java application into EP by using

webdynpro Java Iviews.

Regards,

Ramganesan K.

sid_sunny
Contributor
0 Kudos

Hi Deepak,

Though I dint understand your requirment properly but as it is raised in Web Dynpro forum I considering that you want to send the data filled by the user to your backend using RFC calls. For this purpose you can refer to this two documents available on SDN.

<a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webdynpro/creating%20a%20web%20dynpro%20application%20accessing%20abap%20functions.pdf">Tutorial 4</a>

<a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/d352a790-0201-0010-5082-b1a608d22b6c">Tutorial 5</a>

Regards

Sid

abhijeet_mukkawar
Active Contributor
0 Kudos

hi,

Your FM will have some import parameters, so whichever value is changing in the web dynpro , pass these values to the backend through the inport parameter and then then execute the model(this is as good as executing FM in r3), when the insert query written into the FM gets executed the passed values will also get stored in r3.

check out this link for creating the models ie calling FM of abap,

https://www.sdn.sap.com/irj/sdn/downloaditem?rid=/webcontent/uuid/f0b0e990-0201-0010-cc96-d7ecd2e517... [original link is broken]

hope it helps

let me know if any problem

regards