Skip to Content
0

Suppress Record bases on sender field value

Jul 20, 2017 at 10:59 AM

35

avatar image
Former Member

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

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

Manoj K Jul 20, 2017 at 11:14 AM
0
Share
10 |10000 characters needed characters left characters exceeded
avatar image
Former Member Jul 26, 2017 at 01:16 AM
0

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

Share
10 |10000 characters needed characters left characters exceeded