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

functin module for getting old and new data

Former Member
0 Likes
550

i want a function module for getting old and new values for contract validity date and contract value by passing purchasing document number (ekko-ebeln).

Like i have used the following function module for getting only contract values.:

CALL FUNCTION 'MEDCMM_READ_REVISIONS'

EXPORTING

im_edokn = V_EBELN

im_bstyp = 'K'

  • IM_EDOKP =

TABLES

t_erev = git_erev

EXCEPTIONS

NOT_FOUND = 1

OTHERS = 2.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
503

make a query against the tables CDHDR & CDPOS.

i want a function module for getting old and new values for contract validity date and contract value by passing purchasing document number (ekko-ebeln).

Like i have used the following function module for getting only contract values.:

CALL FUNCTION 'MEDCMM_READ_REVISIONS'

EXPORTING

im_edokn = V_EBELN

im_bstyp = 'K'

  • IM_EDOKP =

TABLES

t_erev = git_erev

EXCEPTIONS

NOT_FOUND = 1

OTHERS = 2.

2 REPLIES 2
Read only

Former Member
0 Likes
504

make a query against the tables CDHDR & CDPOS.

Read only

Former Member
0 Likes
503

Use CDHDR table and give the date and objectclas. Then take the objectid fro the table and go to CDPOS and use the objectid from CDHDR table and use as input.