on 2014 Jul 16 7:29 AM
Hi Gurus,
We have a requirement of writing logic on Sales document/Order Item from sources.
Scenario:
Here the scenario is, we have the two DSO's 1) Orders and 2) Despatches at source level and we are loading Orders, Despatches source level DSO's to target DSO with Sales Document/Order Item as Key fields.
We need to write logic as "If Sales Document / Order Item in Orders DSO has no corresponding Sales Document / Order Item in Despatches DSO then 1 else 0 to target DSO.
Please guide.
Thanks,
Pavan kumar
Hi Pavan,
please try the below.
Data : IT_DSO1 type STANDARD TABLE OF /BIC/(dso active table),
WA_DSO1 TYPE /BIC/(dso active table).
SELECT SALES DOC
ORDER ITEM
FROM /BIC/........(dso active table)
INTO CORRESPONDING FIELDS OF TABLE IT_DSO1.
loop at IT_DSO1 into WA_DSO1.
loop at result_package assigning <result_fields>.
if <result_fields>-sales doc NE WA_DSO1-sales doc or <result_fields>-order item NE WA_DSO1-order item.
New field(result) = 0
else
New field(result) = 1.
endif.
endloop.
endloop.
Regrads,
Fathima.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
71 | |
10 | |
8 | |
7 | |
7 | |
6 | |
6 | |
6 | |
6 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.