on 11-16-2017 5:17 PM
if IsNull(INPUT.ZINB_OUTB) then ((if Not(IsNull(INPUT.DELIV_NUMB)) then (if Not(IsNull(INPUT.DOC_NUMBER)) then 'OUT' else 'INT')
else (if Not(IsNull(INPUT.DOC_NUM)) then 'INB' else 'INT'))) else (INPUT.ZINB_OUTB)
Please help me how to code this piece in SAP BODS .
Check below ifthenelse logic. You can also use decode() function
ifthenelse(INPUT.ZINB_OUTB IS NULL,ifthenelse(INPUT.DELIV_NUMB IS NOT NULL,ifthenelse(INPUT.DOC_NUMBER IS NOT NULL,'OUT','INT'), ifthenelse(INPUT.DOC_NUM IS NOT NULL, 'INB','INT')),INPUT.ZINB_OUTB)
Regards
Arun Sasi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
This will work.
ifthenelse( nvl(INPUT.ZINB_OUTB,'') ='',
ifthenelse( nvl(INPUT.DELIV_NUMB,'') <> '',
ifthenelse( nvl(INPUT.DOC_NUMBER,'') <>'', 'OUT', 'INT'),
ifthenelse( nvl(INPUT.DOC_NUM,'') <>'', 'INB','INT')),
INPUT.ZINB_OUTB)
Thanks,
Rk
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.