cancel
Showing results for 
Search instead for 
Did you mean: 

Call front-end API from WD ABAP

0 Kudos

Hi experts,

I'm trying to call font-end API (Destination: SAP_SSFATGUI) from webdynpro. It giving me communication_error but if i call it from ABAP its working. Pls help.

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi!

Have you solved it?I have the same problem.

0 Kudos

Still not working

prasenjit_sharma
Active Contributor
0 Kudos

Hi,

Check this link if that helps you.

http://wiki.sdn.sap.com/wiki/display/WDABAP/WebDynproApplicationUsingBAPI

Regards

Prasenjit

Former Member
0 Kudos

Can you be more clear.

0 Kudos

Hi,

I try to call API namely ssfrfc which is provided by SAP and located in SAPGUI dir in my desktop. You also will have this API program if you installed SAPGUI. When calling this API using call function....destination 'SAP_SSFATGUI' via WebDynpro ABAP it giving me communication_error . However no problem when using normal ABAP. Below are the coding.

METHOD onactionact_exe .

DATA: ostr_output_data TYPE ssfparms-outtext,

ostr_output_data_l TYPE ssfparms-outtextlen,

crc TYPE ssfparms-ssfcrc,

lv_sysubrc type sysubrc.

  • call C function 'SSFVERSION'

CALL FUNCTION 'SSFVERSION' DESTINATION 'SAP_SSFATGUI'

IMPORTING

ostroutputdata = ostr_output_data

ostroutputdatal = ostr_output_data_l

crc = crc

EXCEPTIONS

communication_failure = 1

system_failure = 2.

lv_sysubrc = sy-subrc.

  • write:/ OSTR_OUTPUT_DATA,

  • / OSTR_OUTPUT_DATA_L,

  • / CRC.

prasenjit_sharma
Active Contributor
0 Kudos

Hi,

Try to wrap the RFC into a local function i.e., create a z-FM in local system and inside the FM call the RFC.

Let me know if that works.

Regards

Prasenjit