cancel
Showing results for 
Search instead for 
Did you mean: 

how to remove particular line item using identifier in sap pi

former_member485301
Participant
0 Kudos

Hi All,

I have a requirement, From sender one header and multiple line item is sent. If the Record Type= "0" in the line item then that particular line item should not sent to the target system.

Please help me to achieve this

<ClaimHeader>

<SalesOrganization>CV</SalesOrganization> <DealerNumber>4111012B</DealerNumber>

<DealerType>1</DealerType>

<CreditRunNumber>4UDAI</CreditRunNumber>

<CreditMemoNumber>1-Q4UDAI</CreditMemoNumber>

<ClaimItem>

<WorldCode>MEC</WorldCode>

<Model>2621CF</Model>

<SteeringFactory>GP</SteeringFactory> <ProductNumber>A4009811605</ProductNumber>

<RecordType>SP</RecordType>

</ClaimItem>

<ClaimItem>

<WorldCode>EC</WorldCode>

<Model>2621CF</Model>

<SteeringFactory>GP</SteeringFactory>

<ProductNumber>A9811605</ProductNumber>

<RecordType>SP</RecordType>

</ClaimItem>

<ClaimItem>

<WorldCode>MEC</WorldCode>

<Model>2621CF</Model>

<SteeringFactory>GP</SteeringFactory>

<ProductNumber>9811605</ProductNumber>

<RecordType>0</RecordType>

</ClaimItem>

</ClaimHeader>

Regards

Vinoth

Accepted Solutions (1)

Accepted Solutions (1)

manoj_khavatkopp
Active Contributor

Vinoth,

Just use CreateIF and create the target segment with RecordType != 0 so that the record type which have 0 will get suppressed.

Br,

Manoj

former_member485301
Participant
0 Kudos

Hi Manoj,

Thanks for your reply.

If i use record type = 0, then its creating the line item and not supressed.

manoj_khavatkopp
Active Contributor
0 Kudos

Vinoth,

You need to use Record Type !=0.

Br,

Manoj

former_member485301
Participant
0 Kudos

Hi Manoj,

I'm getting below error while using Record Type !=0

Cannot cast ' ' to boolean] in class com.sap.aii.mappingtool.flib7.Bool method notEquals[ , 0, com.sap.aii.mappingtool.tf7.rt.Context@42a97a1b]

Regards,

Vinoth

manoj_khavatkopp
Active Contributor

Use this :

former_member186851
Active Contributor
0 Kudos

Which equals your using?

change it to text equals

Answers (1)

Answers (1)

former_member485301
Participant
0 Kudos

Thanks Manoj..

Its working now.

Regards

Vinoth