Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 11212

How to reach an external web service from CRM web client

$
0
0

Hello everybody, I am enhancing a CRM Case:

app component     CRM-CM
view:                    CRMCMP_CMG/Detail
object type          CRM_CMG

 

I have to call a web service and set the result to my fields.
I have tested the WS and:

 

in SAP GUI it asks me for user and password then DO retrieves result.. 
in CRM web client it does Not ask so is not reaching the WS and no result,

 

code in an button event in my Case:
***call to Function that calls the WS

  CALL FUNCTION 'ZBSIGNED'
    IMPORTING
      e_value        = l_value
    EXCEPTIONS
      not_found      = 1
      OTHERS         = 2.

***set field value

  CALL METHOD me->typed_context->detail->if_bsp_model_binding~set_attribute
  EXPORTING
    attribute_path = 'EXT.ZZFLD000052'
    value          = l_value.

 

I made my function with code like this (at the end of pdf link), plus an export parameter added to my function.
https://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/802edea6-274e-2e10-fd95-e5e1a8bc0892&overridelayout=true


Please help, Thank you


Viewing all articles
Browse latest Browse all 11212

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>