Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Call RFC INSIDE THE SMARTFORM

Former Member
0 Likes
996

Hi Experts,

i want to know , is it possible to call the RFC in side the smartform. In my requirement, i need some data from ECC system to display in the smartform of the CRM.

currently i am trying to call outside the smartform and pass to the same, but smartform is triggered from actions and due to other constrints i am not able to to do so..

hence kindly suggest me the other options or is it possible to fetch the data from the ECC to CRM usinfg the RFC inside the smartform.

Thanks in advance

Pradeep

1 ACCEPTED SOLUTION
Read only

mvoros
Active Contributor
0 Likes
840

Hi,

when you activate smart form SAP compiles it to standard function module. So there should not be any constraints about RFC calls. Obviously printing of the form will be slower. The easiest way is to test it.

Cheers

Hi Experts,

i want to know , is it possible to call the RFC in side the smartform. In my requirement, i need some data from ECC system to display in the smartform of the CRM.

currently i am trying to call outside the smartform and pass to the same, but smartform is triggered from actions and due to other constrints i am not able to to do so..

hence kindly suggest me the other options or is it possible to fetch the data from the ECC to CRM usinfg the RFC inside the smartform.

Thanks in advance

Pradeep

5 REPLIES 5
Read only

mvoros
Active Contributor
0 Likes
841

Hi,

when you activate smart form SAP compiles it to standard function module. So there should not be any constraints about RFC calls. Obviously printing of the form will be slower. The easiest way is to test it.

Cheers

Read only

Former Member
0 Likes
840

Hi,

Write a driver program and call your rfc here as you are calling in normal report.

Thanks,

Asit Purbey.

Read only

Former Member
0 Likes
840

Hi,

I hope yes you can write the RFC fm code inside the layout of the smartforms, but the problem is if RFC could not able to fetch the data from R/3 some times, or if it could not able to find the right records then it will return with error / blank records. To avoid all this kind of problems its better to write the same code in your driver program. In case if you dont get the data from R/3 then you can control the layout set from triggering.

Regards,

Satya

Read only

Former Member
0 Likes
840

Hi Pradeep,

U can call the RFC in smartforms.

u can write the code in Program lines.

1. get rfc destination first.

2. call the RFC FM.

Read only

Former Member
0 Likes
840

Thanks every one for valuable input....