cancel
Showing results for 
Search instead for 
Did you mean: 

Problems with mapping of context variables

Former Member
0 Kudos

Hi All,

I am trying to consume the following web service:

http://pwdf2696.wdf.sap.corp:50076/sap/bc/srt/xip/sap/EmployeePersonalDataChange_WSD?sap-client=800&...

Use the userName: DISPLAY

password: welcome

This WebService updates the employee record given the Employee ID.

I have the context variables being mapped from Client to Controller to Model.

The context Variable structure is:

ModifyDetails

-


Paramaters

-


PersonalDetails

-


GivenName

-


FormattedName

-


MaritalStatus

-


EmployeeId

MartialStatus and EmployeeId are passed to the model object and hece modifed but GivenName, FormattedName are being passed to the modelobject 'but not being modified'.

The mapping is simple and straight. From the view to the controller. Controller to the Model.

I have bound the varaibles but not sure why this is happening?

Regards,

Tarun.

Message was edited by: Tarun Kamal Khiani

Message was edited by: Tarun Kamal Khiani

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi Tarun,

Can yu post your code snippet here? (The link is still not working. It may not be accessible to the outside network).

Best Regards,

Nibu.

tkhiani
Employee
Employee
0 Kudos

Hi,

I have modifed the question. I wanted to update the GivenName and FormattedName but I am unable to do so. Even though the fields are mapped appropriately.

Use the link now with the following usename and password.

(display/welcome).

Regards,

Tarun.

Former Member
0 Kudos

Hi Tarun,

Please give a more detailed description about your problem. Please explain what this means <b>MartialStatus and EmployeeId are passed to the model object and hece modifed but GivenName, FormattedName are being passed to the modelobject.</b>. Is it that you want to modify the GivenName, FormattedName filed too?

(the link you have given is not working. I think it is a link to a system withing your network)

Best Regards,

Nibu.

tkhiani
Employee
Employee
0 Kudos

Hi,

I have modifed the question. I wanted to update the GivenName and FormattedName but I am unable to do so. Even though the fields are mapped appropriately.

Use the link now with the following usename and password.

(display/welcome).

Regards,

Tarun.

Former Member
0 Kudos

Hi Tarun,

Have you invalidate the node after executing your RFC model?

After invalidating node, you can see your contents.

Regards,

Bhavik

Former Member
0 Kudos

Hi Tarun,

Have you resolved your problem?

If yes then please close this thread.

Also reward points for helpful answers.

Regards,

Bhavik

tkhiani
Employee
Employee
0 Kudos

Hi,

The problem still exists.

Here is the code snipet:

in wdinit() of the controller. Request_EmployeePersonalDataChangeWSD_employeePersonalDataChangeRequestResponseIn changeRequest = new Request_EmployeePersonalDataChangeWSD_employeePersonalDataChangeRequestResponseIn();

wdContext.nodeModifyDetails().bind(changeRequest);

updateDetails() in the contoller:

Request_EmployeePersonalDataChangeWSD_employeePersonalDataChangeRequestResponseIn modelObject = wdContext.currentModifyDetailsElement().modelObject();

modelObject._setUser("userName");

modelObject._setPassword("password");

modelObject.execute();

wdContext.nodeOperationOutput().invalidate();

Former Member
0 Kudos

Hi Tarun,

Code looks fine.

Try to test your web service seperately. Is it working perfectly?

Is it giving you the expected result?

You want to get updated detail in GivenName attribute right?

And i guess, you are checking this value under output node only instead of where you are passing their values as input.

Regards,

Bhavik

Former Member
0 Kudos

Hi Tarun,

You explained your scenario but you didn't explain what error you are getting? and what is the problem you are facing with this?

Explain your problem in detail.

Regards,

Bhavik