cancel
Showing results for 
Search instead for 
Did you mean: 

Checking data in START ROUTINE using grouping???

Former Member
0 Kudos

Hello everyone,

My problem is.....

When iam loading from ZODS1 to ZODS2 then i have to summarize before loading to ZODS2 in start routine to check a condition.

Iam explaining with an same example ...

ZODS1

-


Ordernumber | LastChangedOn | QTY

111 20.01.2005 10

111 21.01.2005 -10

222 20.01.2005 20

222 21.01.2005 -10

ZODS2

-


Ordernumber | QTY

222 10

In ZODS2 i should have only ORDERNUMBER "222" because QTY=0 or <0.

So to check the QTY is <=0 in START ROUTINE i want to group the data coming from ZODS1 using Ordernumber.

So can you please explain the process to be implemented to group the records.

Thanks

KT

Accepted Solutions (0)

Answers (1)

Answers (1)

GFV
Active Contributor
0 Kudos

First of all you shoul implement the ASAP available in http://service.sap.com/bw named "How to Aggregate Data in the Update Rules for Performance" (it explains how to smmarize data). Using the exposed tecnique you sould be able to obtain only two records, then you should delete those records where QTY Kf is less or equal to 0.

Be aware that however the StartRoutine works on the DataPackage, and there is no warranty about the fact that 2 records involved are in the same DataPack ... without changing some parameters in ROIDOCPRMS Table!

Depending on the sys lanscape such a modification could be difficult to be implemented.

Hope it helps

GFV