Application Development 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: 

Retreiving Item Number

Former Member
0 Kudos

HI Experts

In my requirement I am getting the change document number passing Order number (VBELN) as object id to FM CHANGEDOCUMENT_READ_HEADERS.Then based on the change number in the returning table of above FM I am reading the change document items from table CDPOS.But in this method I am unable to get the item number .Can anyone please suggest any FMs or table where to get the item no (POSNR) against the selected change items.

Thanks In Advance

1 ACCEPTED SOLUTION

former_member784222
Active Participant
0 Kudos

Hi,

You need to pass vbeln+posnr as object id into CDHDR table and with the key you can hit CDPOS to get changes in a particular line item of your document.

Thanks and regards,

S. Chandra Mouli.

Message was edited by:

Chandramouli Subburathinam

4 REPLIES 4

former_member784222
Active Participant
0 Kudos

Hi,

You need to pass vbeln+posnr as object id into CDHDR table and with the key you can hit CDPOS to get changes in a particular line item of your document.

Thanks and regards,

S. Chandra Mouli.

Message was edited by:

Chandramouli Subburathinam

0 Kudos

Hi ,

I have done as u have said but when I pass concatenating both vbeln and posnr I am not getting table entries in cdhdr. Please suggest any method

Regards,

Gopi.

0 Kudos

Hi

You need to read the CDHDR using VBELN only and then read the item modification in CDPOS using VBEL+POSNR (field TABKEY).

Max

Former Member
0 Kudos

you can use function module

CHANGEDOCUMENT_READ_POSITIONS

Thanks.