cancel
Showing results for 
Search instead for 
Did you mean: 

BDC Currency value passing issue

0 Kudos

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.

Sandra_Rossi
Active Contributor
0 Kudos

I see that you don't get the messages from CALL TRANSACTION, which will give explanations why it's refused. Moreover you use UPDATE 'N' which is an invalid value, please check ABAP documentation.

NB: Please edit your question, select your code and press the button [CODE], which makes the code appear colored/indented, it will be easier for people to look at it. Thank you!

0 Kudos

Dear Sandra,

Thanks for your suggestions, Updated the code and format.

Removed the update 'N', but still I'm facing the issue, please help on this

FredericGirod
Active Contributor

Did you just write this code ? Because I didn't see the BDC_DYNPRO ... Did you try to record the screen using SHDB trans ?

Accepted Solutions (0)

Answers (0)