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

Calling smartform from other system in ECC.

kanishakgupta1
Contributor
0 Likes
1,285

Hi friends,

I have a smart form in other system....In Ecc there is an alv report where in when i click on any line item,it should fetch the information in terms of smart form from the other system.that is a smart form present in other system should be displayed in ECC.I have not to create any smart form in ECC...Only call smart form from the other system....

Has somebody done this before or have any ideas how to do it.

I ll be highly thankful l to you

kanishak

Hi friends,

I have a smart form in other system....In Ecc there is an alv report where in when i click on any line item,it should fetch the information in terms of smart form from the other system.that is a smart form present in other system should be displayed in ECC.I have not to create any smart form in ECC...Only call smart form from the other system....

Has somebody done this before or have any ideas how to do it.

I ll be highly thankful l to you

kanishak

10 REPLIES 10
Read only

Former Member
0 Likes
1,181

You might want to consider create a simple Webdynpro application that embeds the pdf smartform in it. Thereafter, you can call this webdynpro application via URL on click of the item from which you want to launch the smart form.

Read only

0 Likes
1,181

hi ,,

there is no web dynpro coming.....in the picture..i have to do it without dynpro

Read only

RaymondGiuseppi
Active Contributor
0 Likes
1,181

Builld a RFC enabled FM () that wrap the call of Smartforms (*) in the other system.

Regards,

Raymond

(*) [Writing Remote Function Modules in ABAP|http://help.sap.com/saphelp_nw04/helpdata/en/22/0425f2488911d189490000e829fbbd/content.htm]

(**) [Integrating the Smart Form into the Application|http://help.sap.com/saphelp_nw70/helpdata/en/1c/f40c5bddf311d3b574006094192fe3/frameset.htm]

Read only

0 Likes
1,181

Hi Raymond,

Will it really work? Normally when you call FM by RFC and it uses dynpro (for example message box) then in calling system you'll get an error. Wouldn't it be the same for Smartform?

Best regards

Marcin Cholewczuk

Read only

0 Likes
1,181

Hi,

you wouldn't show the PDF in the RFC call, but get it as XSTRING back and then handle dynpro yourself.

Best regards,

Oliver

Read only

0 Likes
1,181

- You have to code in the wrapper and its call to prevent pop-ups (fill the CONTROL_PARAMETER and OUTPUT_OPTIONS)

- Of course you could get the spool back into an OTF or PDF format internal table that you will display in the calling system, but you could also display the PDF in the target system.

Regards,

Raymond

Read only

0 Likes
1,181

Hi Guru's

Thanks for the overwhelming response.

I am planning of using the RFC function module which fetches the smart-form in different server in form of XML....Once i get the XML,,i ll convert it into the PDF format which would be displayed in ECC.Thus i don't create any smartform,i only bring the data back in form of XML and then convert it to PDF for display.

Please put your inputs over this if it is feasible...I think that In the FM which is generated corresponding to the form,there is an option of getting the form data as XML..Please help if that can be done.

Read only

0 Likes
1,181

Yes you give the information to the FM in OUTPUT_OPTIONS parameter, read this sample in SAP documentauion : [Output Example|http://help.sap.com/saphelp_nw04/helpdata/en/2b/468ca63fa611d5b6a1006094192fe3/content.htm]

Regards,

Raymond

Read only

0 Likes
1,181

Hi Raymond,

I understand i get the data in OTF format...I am little confused with XDF format....Do i need to convert OTF to XDF or OTF to PDF to display the form in ECC which is in other system...Or no conversion would be required

Thanks

Kanishak

Read only

0 Likes
1,181

In the JOB_OUTPUT_INFO deep structure ([SSFCRESCL|http://help.sap.com/saphelp_nw70/helpdata/en/71/9ccda28e0e11d4b608006094192fe3/frameset.htm]), don't use the OTFDATA but the XMLOUTPUT-XSFDATA. (Check [Options for XML/HTML Output|http://help.sap.com/saphelp_nw04/helpdata/en/84/1f14b817aa11d5b67b006094192fe3/frameset.htm])

Regards,

Raymond