cancel
Showing results for 
Search instead for 
Did you mean: 

Code for capturing changes to purchasing table

Former Member
0 Kudos

I need to use a generic DS to capture changes to purchasing table EKET and need to delta enable it using BTE. I plan to use "01000740 APO-PlugIn: Goods receipt for purchase order" and need to edit the sample FM given (transaction FINF) for the purpose. The sample FM looks like...

FUNCTION SAMPLE_INTERFACE_01000740.

*"----


""Lokale Schnittstelle:

*" IMPORTING

*" VALUE(I_ELIKZ) LIKE EKPO-ELIKZ OPTIONAL

*" TABLES

*" T_XEKET STRUCTURE EKET OPTIONAL

*"----


(Need to add code here for capturing changes to table EKET)

ENDFUNCTION.

Can anyone help me with this?

AB

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

hi,

check this link and i feel it is helpful

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/d3219af2-0c01-0010-71ac-dbb...

Assign points if u found helpful

Former Member
0 Kudos

Isn't 2LIS_02_SCL enough for you?

Former Member
0 Kudos

Yes I have that but I need the code for tracking the changes to EKET.

AB

Former Member
0 Kudos

Actually requirement calls for capturing changes to table EKBZ and EKPO and I have created a view on EKBZ, EKPO, EKKO and EKKON for the purpose. Since I could not find a BTE based off these tables but there is a BTE on EKET, therefore, I plan to include table EKET in my view ---> gen DS and capture the changes using BTE for EKET.

I have seen the 'How to guide' for BTE and am looking for suitable code.

AB

Former Member
0 Kudos

Keep in mind that if you do this, you'll only capture the changes when they occur in EKET. If there are changes in EKBZ, EKPO, EKKO or EKKON you won't know about them.

There are two tables in R/3, CDHDR and CDPOS, that "capture" all the changes to any document in any table in R/3. Maybe that could help you to monitor. But it won't be so easy.

Regards,

Luis

Former Member
0 Kudos

It does not solve my problem ... thanks anyway.

AB

Former Member
0 Kudos

I'd look at EINDT (item delivery date) but the event mentioned in the first post would be the best bet IMHO.

You didn't explain why 2lis_02_scl is not enough for you as it reacts exactly at movements in eket table

Former Member
0 Kudos

What we need to track is multiple condition values which get assigned to PO items as soon as the GR is done. So I need to pull up conditions data from EKBZ for item and want capture delta for this. Did I explain ... ?

AB

Former Member
0 Kudos

No, an example would be helpful, but for good receipts shouldn't you be doing delta on mseg or ekbe?

Former Member
0 Kudos

True... I want to capture delta on EKBE and requested code for the same in the beginning of post.

AB

Former Member
0 Kudos

Ooops ... I apologize ... I meant capturing delta on EKBE since beginning ... (I said EKET in the beginning of the post).

AB

Former Member
0 Kudos

So, make up your mind, use ekbe, field cpudt and assign points if you think answers are useful

Former Member
0 Kudos

Thanks ... points awarded.

AB