Skip to Content
avatar image
Former Member

C4C - How to update a value when calling a C4C web service from external system

Hi everyone,
If I consume a web service from C4C from external system, How can i change one of the request attribute in the service from SAP Cloud Application Studio.(For Example: I need to change title attribute in the request like Mr or Ms when i get Gender value as Male or Female respectively). How can i achieve this, please provide your valuable suggestions. Does C4C provide us to do customization during a webservice call to C4C?

Thanks,
Adithya

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Nov 18, 2017 at 07:24 PM

    Hi,

    Do you want to call this WS in some batch job, or each time you access this object? Do you want to store this data in database or only present this walue in UI?

    br,

    Zoran

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hello Zoran,

      1) Example : When the Customer address changes in External system, I need to call ManageCustomerIn webservice from external system to update Address Information in c4c, while doing so can i capture the request object and change something in req obj like putting prefix text to address(this is just an example). No I don't want to call from a batch job.

      2) Yes I need to store it in DB

      Thanks for the update

      Thanks,

      Adithya

  • Nov 19, 2017 at 11:43 AM

    Hi,

    you may find a bunch of already prepared WebServices in Administrator-->input and output managements-->service explorer.

    For this case that you described I assume that is enough to call manitain accouns webService:

    https://myXXXXXX.crm.ondemand.com/sap/bc/srt/scs/sap/managecustomerin1

    If you need more WebServices with some special behaviors you might need to implement them with PDI coding.

    br,

    Zoran

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hello Zoran,

      Thanks for the quick response. Here like i mentioned before I need to capture the webservice request in SDK, Would it be possible from SDK. FYI i went through the videos you provided but those are for custom BO, In our scenario we need it for Standard BO or XBO.

      Thanks,

      Adithya

  • Nov 22, 2017 at 09:10 AM

    Hi Jalda,

    What I understand is:
    There is a webservice from C4C which you are consuming in external system, and you want to add Mr or Ms based on the gender in the input request.

    If the understanding is correct, then
    1. Is the webservice standard service?
    If yes, then you can create XBO on the BO of the webservice and then create event BeforeSave, here you can add Mr or Ms
    2. Is the webservice custom service created in SDK?
    If yes, then you create event BeforeSave on the custom BO, and here you can add Mr or Ms

    Thanks, Pradeep.

    Add comment
    10|10000 characters needed characters exceeded