Skip to Content
0
Former Member
Dec 07, 2009 at 04:45 AM

"Use one as many "function

55 Views

Hi All

I have a scenario from RFC to WSDL in which if certain conditions fulfil only then can I pass the value to the target field "SERVCODE".

The problem is there are many conditions which are to be fulfilled to have the value passed.

I tried using the function "use One As Many" but I got stuck at the "OR" condtion because its taking only boolean values.

Please have a look at the scenario and help me!!

Also I am preferring to have a graphical mapping but if nothing works out User defined function would do.

u2022 IF VBAP-PSTYV = Z004 & VBAP-UEPOS <> BLANK & MARA-MATKL = 800001031----


then SERVCODE = 400 (400 is the Value to be passed to the target field to SERVCODE)

u2022 IF VBAP-PSTYV = Z004 & VBAP-UEPOS<> BLANK & MARA-MATKL <> 800001031 & VBAK u2013AUART = Z000 & MVKE u2013 MVGR2 = 001 -


then SERVCODE= 201(201is the Value to be passed to the target field to SERVCODE)

u2022 IF VBAP-PSTYV = Z004 & VBAP-UEPOS <> BLANK & MARA-MATKL <> 800001031 & VBAK u2013AUART = Z000 & MVKE u2013 MVGR2 = 002 -


then SERVCODE= 202 (202 is the Value to be passed to the target field to SERVCODE)

u2022 IF VBAP-PSTYV = Z004 & VBAP-UEPOS <> BLANK & VBAK u2013AUART = Z001& MVKE u2013 MVGR2 = 001 -


then SERVCODE= 301(301 is the value to be passed to the target field to SERVCODE)

u2022 IF VBAP-PSTYV = Z004 & VBAP-UEPOS <> BLANK& VBAK u2013AUART = Z001 & MVKE u2013 MVGR2 = 002 -


then SERVCODE= 302 (302 is the Value to be passed to the target field to SERVCODE)

u2022 IF VBAP-PSTYV <> Z004 VBAP-AUART = Z000 -


then SERVCODE = 1 (1 is the Value to be passed to the target field to SERVCODE)

u2022 IF VBAP-PSTYV <> Z004 VBAP-AUART = Z001 -


then SERVCODE = 101(101 is the Value to be passed to the target field to SERVCODE)

u2022 IF VBAP-PSTYV = Z004 & VBAP-UEPOS = BLANK &VBAP-AUART = Z000 & MVKE-MVGR2 = 001 -


then SERVCODE = 201(201 is the Value to be passed to the target field to SERVCODE)

u2022 IF VBAP-PSTYV = Z004 & VBAP-UEPOS = BLANK & VBAP-AUART = Z000 & MVKE-MVGR2 = 002 -


then SERVCODE = 202(202 is the Value to be passed to the target field to SERVCODE)

u2022 IF VBAP-PSTYV = Z004 & VBAP-UEPOS = BLANK & VBAP-AUART = Z001 & MVKE-MVGR2 = 001 -


then SERVCODE = 301(301 is the Value to be passed to the target field to SERVCODE)

u2022 IF VBAP-PSTYV = Z004 & VBAP-UEPOS =BLANK & VBAP-AUART = Z001 & MVKE-MVGR2 = 002----


then SERVCODE = 302 (302 is the Value to be passed to the target fieldto SERVCODE)

Thanks a lot in advance !!