Skip to Content
avatar image
Former Member

Suppress Record bases on sender field value

Dear Experts,

I have a requirement where the field Employee_class from Employee central(Source system) will comes multiple times under Job_information segment. And when ever there was a employee class with value H at any record then i need to suppress the whole record to not to pass to SAP. Kindly suggest.

Interfcae flow: Employee Central->PI->SAP

Ex_1: Person

Person_information

->first Name: Richard

->Last Name: Biggs

Job_information

-> Employee_status:Active

-> Employee_Class: H

Job_information

-> Employee_status:Active

-> Employee_Class: M

Job_information

-> Employee_status:Active

-> Employee_Class: X

Ex:2 Person

Person_information

->first Name: Ronnie

->Last Name: Marsha

Job_information

-> Employee_status:Active

-> Employee_Class: I

Job_information

-> Employee_status:Active

-> Employee_Class: M

Job_information

-> Employee_status:Active

-> Employee_Class: X

On the above 2 examples, I have Richard record have one employee_class = H. So, i need to supress this record at mapping level and Ronnie do not have so need to create this at SAP. Kindly help.

Regards,

Kumar

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Jul 20, 2017 at 11:14 AM
    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jul 26, 2017 at 01:16 AM

    Write a UDF that takes in entire queue. Write a logic with simple if/else and whenever your condition is met, add result.addSuppress();

    Best,

    Vibhu

    Add comment
    10|10000 characters needed characters exceeded