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

Currency field

Former Member
0 Likes
719

Hi,

I am doing a BDC for F-43 transaction... & in my T_BDCDATA internal table all fields for FVAL are getting populated except for the WRBTR (currency feild). For this field I tried using 13(length given in BSEG table) as well as 16(output length)in my flat file ... but nothing getting populated. Can somebody give me other solution for populating this field??...

Please Help.

-SB.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
664

Hi,

For the amount field first declare a variable

say v_wrbtr(18)type c,

write T_BDCDATA-WRBTR to v_wrbtr.

condense v_wrbtr.

finally populate v_wrbtr to BDC table.

Hope this will solve your problem.

Thanks

Rajeev

Hi,

I am doing a BDC for F-43 transaction... & in my T_BDCDATA internal table all fields for FVAL are getting populated except for the WRBTR (currency feild). For this field I tried using 13(length given in BSEG table) as well as 16(output length)in my flat file ... but nothing getting populated. Can somebody give me other solution for populating this field??...

Please Help.

-SB.

3 REPLIES 3
Read only

Former Member
0 Likes
664

Can you post the relevant code where you fill this field? Is your character field having the value left-justified, with no seperators except the decimal point? Also, this field probably is line item data, so are you using the correct index like WRBTR(01), WRBTR(02) etc?

Srinivas

Read only

Former Member
0 Likes
665

Hi,

For the amount field first declare a variable

say v_wrbtr(18)type c,

write T_BDCDATA-WRBTR to v_wrbtr.

condense v_wrbtr.

finally populate v_wrbtr to BDC table.

Hope this will solve your problem.

Thanks

Rajeev

Read only

0 Likes
664

Hi,

For correct results, you should use:

data: L_WRBTR_CHAR(16) type C.

write BSEG-WRBTR to L_WRBTR_CHAR currency BKPF-WAERS (Or your Currency Field).

T_BDCDATA-WRBTR = L_WRBTR_CHAR.

Cheers,

Bhanu