Skip to Content
0
Former Member
Mar 22, 2006 at 08:26 PM

Restricting some sales orders in Report

101 Views

hi i have a problem , i want to restrict some sales orders based one the following logic , can any one help me in coding this logic

if ( 0Doc_categ = k ( Credit memo request) or H (Returns))

get( Sales Documents )

for all these sales Documents get Reference sales Doucmens and the Refece Document Category )

case ( Reference Document category )

when ( 0 )credit memeos

inc = inc + 1 ,

when (s ) credit Memo cancelations

dec = dec + 1 ,

endcase.

if (inc > dec )

result = sales order

esle dont consider the record

i want to implement this login in the report while selecting the Orders , i cant do this in the start routine or update routine becasue other reports consider these sales orders . Thanks in advance.