Skip to Content
0

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

Nov 17, 2017 at 07:53 AM

198

avatar image
Former Member

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

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

3 Answers

Zoran Galijanic Nov 18, 2017 at 07:24 PM
0

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

Show 1 Share
10 |10000 characters needed characters left 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

0
Zoran Galijanic Nov 19, 2017 at 11:43 AM
0

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

Show 3 Share
10 |10000 characters needed characters left characters exceeded
Former Member

Hello Zoran,

Yes, i need to implement special behavior with PDI coding, Could you please provide any links or pseudo code to implement if any.

Thanks,

Adithya

0

Hi,

I think the this guides are good starting point:

Outbound WS

Inbound WS

If you find this answer helpful, please accept this answer

br,

Zoran

0
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

0
Pradeep Kumar N
Nov 22, 2017 at 09:10 AM
0

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.

Show 2 Share
10 |10000 characters needed characters left characters exceeded
Former Member

Hi Pradeep,

Thanks, Good suggestion, But will beforeSave work on webservice hit. If yes will it work on mass data push also?

Thanks,

Adithya

0

Yes, it will work, utilmately webservice will save data into the BO itself.

0