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

VBRK Problem

Former Member
0 Likes
706

I am using select statment as follows

select single vbeln fkdat kunag bstnk_vf netwr waerk mwsbk into corresponding fields of wa_final_list form vbrk.

The VBRK table is

Field Dataelement Datatype Length

Netwr Netwr curr 15

Mwsbk Mwsbp curr 13

The problem is while feteching from vbrk table for the fields netwr mwsbk its considering internal format of the length of the curr in this case it is 8 and 7 of type p not 15 and 13 because of this amount is displying wrong. How to correct it

Thanks

Umesh

4 REPLIES 4
Read only

Former Member
0 Likes
600

u can refer directly data element in declearsation part.

Read only

Former Member
0 Likes
600

Hi,

I think there should be some problem in the declaration of these fields in the work area. Make them same as that in the VBRK.

This may solve the problem.

Thanks,

Rashmi.

Read only

former_member404244
Active Contributor
0 Likes
600

Hi,

u can refer directly data element in declearation part. or check the output length of the fields for example if it is 16 then decalre them as like this

data : waerk(16) type c.

rewrad if helpful.

Regards,

nagaraj

Read only

Former Member
0 Likes
600

you can write the select query like

select single vbeln

fkdat

kunag

bstnk_vf

netwr

waerk

mwsbk into ( wa_final_list-vbeln,

wa_final_list-fkdat,

wa_final_list-kunag,

wa_final_list- bstnk_vf,

wa_final_list-netwr,

wa_final_list-waerk,

wa_final_list-mwsbk )form vbrk.

I think this will solve the problem.