cancel
Showing results for 
Search instead for 
Did you mean: 

udf for if else condition

Former Member
0 Kudos

Dear all,

I need a UDF or way to graphically check the following condition below and then sum all the COND_VALUE for all line items in the source idoc segment E1EDS01.

IF

E101CRMXIF_IV_BD\E101CRMXIF_IV_BDI\E101CRMXIF_PRCD_COND\cond_type = ZZ01, ZZ02, ZZ03, ZZ04, ZZ05

THEN

E101CRMXIF_IV_BD\E101CRMXIF_IV_BDI\E101CRMXIF_PRCD_COND\ COND_VALUE E1EDS01 summe Sum over all segments for all line items

Please advice as to how to first check the cond_type for all this values and secondly how do I sum all the cond_values . There could be one line item or multiple based on the incoming idoc data.

Thanks,

Teresa

Accepted Solutions (1)

Accepted Solutions (1)

rajasekhar_reddy14
Active Contributor
0 Kudos

Try aboive mapping logic, in your case

KSCHL= E101CRMXIF_IV_BD\E101CRMXIF_IV_BDI\E101CRMXIF_PRCD_COND\cond_type

Constant(COND_VALUE E1EDS01)=E101CRMXIF_IV_BD\E101CRMXIF_IV_BDI\E101CRMXIF_PRCD_COND\ COND_VALUE E1EDS01

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Teresa. Please try this trick.

FIELD = E101CRMXIF_IV_BD\E101CRMXIF_IV_BDI\E101CRMXIF_PRCD_COND\cond_type

FIELD --- FixValue --- > IF ----->  Target.

FixValue . Add the condition ZZ01, ZZ02, ZZ03, ZZ04, ZZ05 and target put as true.

if the result is trur you can use if to SUM over all segments for all line items.

Regards

Lucho.