Skip to Content
0
Jan 08 at 02:57 AM

BDC Currency value passing issue

74 Views Last edit Jan 10 at 06:12 AM 3 rev

Dear Sir,

I am using BDC to pass KBETR value. I am passing it as char field of length 18.

But while executing BDC kbetr value is not populating in screen.

Codes :
"Declaration

DATA : BEGIN OF itab OCCURS 0,
infnr TYPE eine-infnr,
lifnr TYPE lfa1-lifnr,
matnr TYPE mara-matnr,
werks TYPE ekpo-werks,
ekorg(04),
netpr like konp-kbetr,
waers LIKE eine-waers,
date(10),
kpein(04),
END OF itab.
data: t_rate(16) type c.
"Data passing into character field
write itab-netpr to t_rate no-grouping.
PERFORM bdc_field USING 'KONP-KBETR(01)'
t_rate.
CALL TRANSACTION 'ME12' USING bdcdata MODE 'E' MESSAGES INTO messtab.
REFRESH bdcdata.


Please help on this.