cancel
Showing results for 
Search instead for 
Did you mean: 

Remove context function not working

former_member200386
Active Participant
0 Kudos

Dear Experts,

I am working on remove context function for practice , as per remove context functionality it will

Removes all immediate level contexts of a source field. In this way, you can delete all hierarchy levels and generate a list.  please find the mapping test screen shots.

Thanks in advance

Pavan

Accepted Solutions (1)

Accepted Solutions (1)

former_member184789
Active Contributor
0 Kudos

Hi Pavan,

For study purposes, you can also refer to below link:

http://saptechnical.com/Tutorials/XI/NodeFunctions/Page1.htm

Answers (2)

Answers (2)

nabendu_sen
Active Contributor
0 Kudos

Hi Pavan,

Share your 'removeContext' function Display Queue screen shot.

former_member200386
Active Participant
0 Kudos
nabendu_sen
Active Contributor
0 Kudos

Hi Pavan,

'removeContext' is working properly, I can say. If you want any other logic to be implemented, let us know.

former_member200386
Active Participant
0 Kudos

Hi Nabendu,

Thanks for your reply. If  remove context working fine , then username will not be populated in the second node. please refer my 1st thread screen shot.Please correct me if i am wrong.

regards,

Pavan

former_member184789
Active Contributor
0 Kudos

Hi Pavan,

You are getting it in second node as Kumar since you have mapped the segments one to one.When the second instance of the target node is getting created, it is taking the second value from the queue.

gagandeep_batra
Active Contributor
0 Kudos

hi pavan,

try splitbyvalue function after remove context to get the require value,

or use without remove context means direct one to one mapping.

i think this is not proper example to use remove context.

use this link for more information:

http://help.sap.com/saphelp_nw04/helpdata/en/1f/ea0fb12403844bbb6c4cbc8a00cda9/content.htm

Regards

Gagan

former_member184789
Active Contributor
0 Kudos

Hi,

Can you change the occurrence of field 'password' to 0: unbounded just like you have done for the field 'Username'. Also if you want to populate all the Username & password in source under one node of target as  a list, then do not map the target node with source node. Map it with say a blank constant.

former_member200386
Active Participant
0 Kudos

Hi Adara

former_member184789
Active Contributor
0 Kudos

Hi

It would help if you cud explain what kind of structure you are expecting. I assume that you are having multiple records on source side & in target you want to populate a list of all the source Username fields under one node. Do one thing, map the target segment 'records' with a blank constant instead of mapping it with a multiple occurring node from source. Then you will get a list of all Usernames under the single occurring node, with a single occurrence of password field since it is 0:1