cancel
Showing results for 
Search instead for 
Did you mean: 

Mapping help

former_member200386
Active Participant
0 Kudos

Dear Experts,

I am facing a issue in message mapping , I have a filed "Vehicle_OwnerDate" it needs to populate in two contexts , But it is populating only ones. Please find the screen shot below.  I need Vehicle_Ownerdate needs to be populate in 2 times.

Thnaks,

Pavan

Accepted Solutions (1)

Accepted Solutions (1)

former_member182412
Active Contributor
0 Kudos

Hi Pavan,

can you show us SaleDate display queue and date trans properties?

Regards,

Praveen.

former_member200386
Active Participant
0 Kudos

Hi Praveen,

Thnaks for the quick response. I am using one UDF  on the "Z101ZCS_IF_VEHICLE_OWNER" Node. My condition is  i need to create the "Z101ZCS_IF_VEHICLE_OWNER" node  only usertypes of "OWNER" "USER"

Please find the screen shots.

former_member200386
Active Participant
0 Kudos

Dear Experts,

Any Ideas?

former_member182412
Active Contributor
0 Kudos

Hi Pavan,

You have only one sale date but you are creating two nodes for VEHICLE_OWNER node so you need to use useOneAsMany function.

SaleDate---->useOneAsMany(as many time VEHICLE_OWNER node) --->Vehicle_owner_Date

Regards,

Praveen.

former_member200386
Active Participant
0 Kudos

Hi Praveen,

I am not able to map the Vehicle_owner node> Vehicle date in the use one as many because they are target fields. I am attaching the source structure.

former_member182412
Active Contributor
0 Kudos

Hi Pavan,

SaleDate-------

UserInfo-------- useOneAsMany------->Vehicle_owner_Date

UserType------

Regards,

Praveen.

former_member200386
Active Participant
0 Kudos

Hi Praveen,

I tried the logic as you suggested, I am getting below error.

        Exception:[com.sap.aii.mappingtool.tf7.FunctionException: Too many values in the second queue in function useOneAsMany. The number of values for all contexts must be the same as the number of values for the third queue] in class com.sap.aii.mappingtool.flib7.NodeFunctions method useOneAsMany[[Ljava.lang.String;@2f884c5e, [Ljava.lang.String;@79e8a30c, [Ljava.lang.String;@306f2ef0, com.sap.aii.mappingtool.tf7.rt.ResultListImpl@7c7f1084, com.sap.aii.mappingtool.tf7.rt.Context@11f859e9]

See error logs for details    

former_member182412
Active Contributor
0 Kudos

Hi Pavan,

Can you show me three display queues?

Regards,

Praveen.

former_member200386
Active Participant
0 Kudos
former_member182412
Active Contributor
0 Kudos

Hi Pavan,

Use removeContexts after UserInfo.

SaleDate--------------------------->

UserInfo-->removeContexts--->useOneAsMany--->Date

UserType--------------------------->

Regards,

Praveen.

former_member200386
Active Participant
0 Kudos

Hi Praveen,

I tried the mapping, But no use..Please find the details below.

former_member182412
Active Contributor
0 Kudos

Hi Pavan,

Instead of passing SaleDate to length function pass the useOneAsmany function output to length function.

useOneAsMany ----->Length

                          ------->DateTrans

Regards,

Praveen.

former_member200386
Active Participant
0 Kudos

Hi Praveen,

Thanks for the response. Now able to populate the Vehicle_OwnerDate.  I have more issue now.  I have one more field called "FIN_COMP_ENDDATE". Now it is populating one time. I am attaching the screen shot.

former_member182412
Active Contributor
0 Kudos

Hi Pavan,

Can you attach your source xml?

Regards,

Praveen.

former_member200386
Active Participant
0 Kudos

Hi Praveen,

Sent you in the direct message.

former_member182412
Active Contributor
0 Kudos

Hi Pavan,

Use below mapping.

Regards,

Praveen.

Answers (1)

Answers (1)

former_member200386
Active Participant
0 Kudos

Hi Praveen,

Thanks for the quick help.The logic you provided is working for me. I am able to populate the field now. I am closing the thread.

Thanks,

Pavan T