Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

get the latest record of p2001 .


My requirement is to get the latest record of p2001 and the condition awart eq '0620'. and i am using the macro rp_provide_from_last p2001 space p_begda i am getting the latest record but not for the condition awart eq '0620'.so how to get the latest records from p2001 of condition awart = '0620'.Cany anyone help me to solve this issue.



Former Member
Former Member replied

Hi Deesanth,

Before you use the Macro (rp_provide_from_last p2001 space p_begda p_endda) use the below code it may work for your condition.

DELETE P2001 WHERE awart NE '0620'. then use the above macro.

Please let me know if you need more information.


Ramakrishna kotha.

+91 9848468817.

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question