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

Help on Query.

former_member224405
Participant
0 Likes
523

hi,

I am fetching teh required data from the below queries i am able to execute the first query

after which it is going into dump saying conversion not possible.

Can any one help.

Types:BEGIN OF i_reversal,

uniquekey like bsak-belnr,

lifnr like bsak-lifnr,

inv_doc_no LIKE bsak-xblnr,

doc_date LIKE bsak-bldat,

END OF i_reversal.

Types:BEGIN OF i_reversal2,

uniquekey like bsak-belnr,

lifnr like bsak-lifnr,

inv_doc_no LIKE bsak-xblnr,

doc_date LIKE bsak-bldat,

doc_time LIKE bkpf-cputm,

reversenum like bkpf-stblg,

END OF i_reversal2.

Data: i_reversal2 TYPE STANDARD TABLE OF i_reversal WITH HEADER LINE,

i_reversal3 TYPE STANDARD TABLE OF i_reversal2 WITH HEADER LINE.

SELECT belnr lifnr xblnr bldat from bsak

into table i_reversal2

where bldat in date_rng.

if sy-subrc is initial.

Select belnr cputm from bkpf

into table i_reversal3

for all entries in i_reversal2

where belnr = i_reversal2-uniquekey

and stblg <> ''.

endif.

Thanks,

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
493

This is extremely basic.

Just look at the fields you are selecting and the structure you are putting them into.

Rob

3 REPLIES 3
Read only

former_member189420
Active Participant
0 Likes
493

Please share the table structure of i_reversal3.Usually this error occurs b'coz of mismatch in the selected fields with that of the fileds defined in the table.

P.S: Suggest you to check for i_reversal2 initial before using it in for all entries.

Best regards,

Anand Patil

Read only

Former Member
0 Likes
494

This is extremely basic.

Just look at the fields you are selecting and the structure you are putting them into.

Rob

Read only

0 Likes
493

Yes i got it right!!!

thanks.