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

Problem in data retrieving

Former Member
0 Likes
595

hi all,

i have to selet fields from table vbak, i have to use cdpos-objectid against vbak-vbeln, but i am having an error regarding

type and length, i tried using the convertion output but it seems not to solve my issue.

do you know any function module to use? or any idea, perhaps?

thanks - AUD

4 REPLIES 4
Read only

Former Member
0 Likes
544

HI AUD ,

can u show thwe code? so tat i can help u .

Read only

Former Member
0 Likes
544

Hi,

Have you used the conversion routine "CONVERSION_EXIT_ALPHA_INPUT" for CDPOS-OBJECTID?. CONDENSE cdpos-objectid before using the conversion exit. And Can i know what is your requirement using change document data ? May be function module CHANGEDOCUMENT_READ will be helpful for your requirement.

Regards

Vinod

Read only

Former Member
0 Likes
544

Hi,

The FM to get Order details is BAPI_SALESORDER_GETLIST

try this.

Read only

former_member222860
Active Contributor
0 Likes
544

Hi Aud,

Just try with the below select statement

data: begin of itab occurs 0,

vbeln like vbak-vbeln,

erdat like vbak-erdat,

end of itab.

data: begin of jtab occurs 0,

objectid like cdpos-objectid,

end of jtab.

select objectid from cdpos into table jtab

where objectid >= '0000005001' and objectid <= '0000006000'.

loop at jtab.

select vbeln erdat from vbak appending table itab

where vbeln = jtab-objectid+0(10).

endloop.

loop at itab.

write:/ itab-vbeln, itab-erdat.

endloop.

Regards

Mahesh