Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Tables that keeps PO changes...

0 Likes
4,634

Hi,

I need to find out what are the tables that record all the changes done to POs by using the transaction code ME22N. I found two tables CDHDR & CDPOS, but those tables not contains Sufficient details.

If you guys know any other way to find it, please let me know.

Else, are there any Function modules which can be used to retrieve data from...

Thanks for your help,

Yohan.

14 REPLIES 14
Read only

h_senden2
Active Contributor
0 Likes
2,614

Maybe you can use the EKBE table, which contains Purchase order history information

regards,

Hans

Read only

0 Likes
2,614

Dear Hans,

Data will goes into this table only if PO linked with a Sales Order (SO). Therefore I could not find any changes done to the relevant PO.

Please correct me if I am wrong.

Thanking you,

Yohan.

Edited by: Yohan Weerasinghe on Oct 22, 2008 10:04 AM

Read only

0 Likes
2,614

EKBE contains all PO item "events" like good receipt, invoice receipt etc., not only when linked to a sales order.

And CDHDR/CDPOS indeed contain the changes done to POs. What are you missing there?

Thomas

Read only

Former Member
0 Likes
2,614

Hello

Try to use FM 'ME_CHANGES_READ'

Read only

JoffyJohn
Active Contributor
0 Likes
2,614

You will get all the PO changes done

from table CDHDR and CDPOS itself

CDHDR is the header table

Object value for PO is: EINKBELEG

and the old and new value is stored in table CBPOS

Read only

former_member451655
Active Participant
0 Likes
2,614

hi ,

If the Feilds in "BAPIEKBE" Structure meets your Data Requirements , you can use BAPI_PO_GETDETAIL.

Br ,

Dilum

Read only

Former Member
0 Likes
2,614

Hi Yohan,

May i know what details you want other than in cdpos and cdhdr tables?

Thanks and Regards,

kamalapriya

Read only

SujeetMishra
Active Contributor
0 Likes
2,614

Hi Yohan,

you can find your changed PO only in table CDHDR & CDPOS.

what other details you are searching in these tables?

Read only

0 Likes
2,614

Dear Sujeet,

Thanks for your reply.

In those tables it does not give us the exact changes we have done. But it gives us the table name which have affected by those changes.

Therefore the information given in those two tables are not helpful for my job. That's why I am searching something more...

Read only

0 Likes
2,614

well yohan the structure cdshw does conatin the previous and new values. but if u are looking for some other info. it wud help us to guide u if u specify what exactly are u looking for.

Read only

0 Likes
2,614

Hi

Use the FM CHANGEDOCUMENT_READ_WITHOUT_ED

CALL FUNCTION 'CHANGEDOCUMENT_READ_WITHOUT_ED'
    EXPORTING
      client            = sy-mandt
      objectclass       = 'EINKBELEG'    " Purchase Order
      date_of_change    = sy-datum
    TABLES
      icdhdr            = gt_cdhdr
      icdpos            = gt_cdpos.

In the table gt_cdpos, you will get details of changes.

To get Object Class: T-Code: SCDO

Read only

Former Member
0 Likes
2,614

ME_READ_CHANGES_EINKBELEG

ME_CHANGES_READ

the above two Fm's read the changes made to the PO

the above two Fm's return these internal table

cdhdr

cdpos

cdshw

these will contain all information u need

Read only

Former Member
0 Likes
2,614

hi

try this FM.

CHANGEDOCUMENT_READ_HEADERS

CHANGEDOCUMENT_READ_POSITIONS

Read only

0 Likes
2,614

Dear Arun,

Thanks a lot.

I checked the FMs you sent. They are working and giving the exact results I wanted.

Thanks...