Dear Experts,
In Query I have Material , Plant, Movement type and Posting Date fields.
Source of the below Query is DSO.
My Requirement is to get the Records Max Posting Date based on Material, Plant Combination only ONE Record Feacting (Unique).
(Material, Plant combination and check the movement if 601 & 602 take the record which is max Posting Date , Else check the the Movement Type 201 & 202 take the record which is max Posting Date, Else check the the Movement Type 101 & 102 take the record which is max Posting Date).
Ex: In DSO.
Material Plant Movement Type Posting Date
10001 1100 601 10.12.2013
10001 1100 602 23.12.2013
10001 1100 101 12.10.2013
10002 1100 101 01.12.2012
10002 1100 102 22.12.2012
10002 1100 201 11.10.2012
As Per my Requirement I need
Below Two Records wants to get after executing the CMOD Code.
10001 | 1000 | 602 | 23.12.2013 |
10002 | 1000 | 201 | 11.10.2012 |
I Started writing the code with Posting Date with variable CHAR and Processing Type CUSTOMER EXIT.
WHEN 'ZVAR_LMD'.
data: it_DMR type table of /BIC/AZDSO_DMR00.
Select * from /BIC/AZDSO_DMR00 into table it_dmr
I Strucked here.
Please help me on ABAP CODE.
Thanks & regards,
Srinu.Rapolu