cancel
Showing results for 
Search instead for 
Did you mean: 

2LIS_02_ITM, LOEKZ AND ROCANCEL

Former Member
0 Kudos

Hi SDN,

We have some Purchase Orders for which LOEKZ = 'L' but they still exist in BI DSO because ROCANCEL with 'R' have not come in yet.

Are ROCANCEL and LOEKZ linked in a way that 'L' in LOEKZ translates to 'R" in ROCANCEL or SAP considers other things before marking 'ROCANCEL' = 'R' for reversal?

Should we assume that whenever EKPO-LOEKZ = 'L', the record in the DSO should be dropped after the next load? And if not, what is the relationship and what can we expect?

We have mapped ROCANCEL to both RECORDMODE as well as STOR_NO.

Please advise.

Thanks.

SM.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi

There as 2 possibilities

1.

PO item is deleted and there is no statistical relevance ( i.e. no GR / IR created against that po item), in that case LIS logic is intelligent enough and simply sets recormode = D and that po item gets deleted from BW. in that case loekz is extracted as blank . you can check in rsa3

2. po item is deleted but it still has statistical relevance aginst it. then LIS logic does not delete such items from bw and sends loekz ='L' in extraction. however if you still want that such PO items shud be deleted from BW,, then you can write routine to below effect

loop at datapack

if datapak-loekz = 'L'

datapak- recordmodel = 'D'

modify datapak

endif

endloop

i dont remember sap note.. i will post later once can find it

regards

sanjyot

Former Member
0 Kudos

Hi Sanjyot /Alice,

Where should I write this code (routine)? In the standard function module in R3?

Did you find the SAP note?

I'm facing this issue and I have no clue how to get those deleted rows "statistically" relevant.

Thanks

Answers (1)

Answers (1)

Former Member
0 Kudos

Dear Shahid,

LOEKZ is the PO deletion marker (L mean blocked I think and R deleted...)

I beleive ROCANCEL is used like 0RECORDMODE to delete unwanted records in BW.

You should not map those together because there are cases where the PO del marker is not present and yet, ROCANCEL is used for SAP internal logic processing...

I hope this is clear.

Alice