‎2007 Nov 22 7:30 AM
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
‎2007 Nov 22 7:33 AM
‎2007 Nov 22 7:33 AM
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.
‎2007 Nov 22 7:44 AM
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
‎2007 Nov 22 7:45 AM
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.