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

BDC Help

Former Member
0 Likes
801

Hi All,

I am writing a bdc program for f-02.all the records are passing from the internal table,BUT wrbtr (amount) field not passing the value,if i hard code the amount it'll pass, can u help some wht is this happening,

perform bdc_field using 'BSEG-WRBTR'

w_amount. "NOT PASS THE VALUE

perform bdc_field using 'BSEG-WRBTR'

'1200'. "PASS THE VALUE

perform bdc_field using 'BSEG-ZFBDT'

wa_data-zfbdt.

perform bdc_field using 'BSEG-ZUONR'

wa_data-zuonr.

perform bdc_field using 'BSEG-SGTXT'

Thanks

kanishka

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
782

Hi,

Try this one out.

declare a variable .

Data : amt(16) type c.

amt = w_amount.

*try this.

perform bdc_field using 'BSEG-WRBTR'

amt.

Regards,

Balakumar.G.

Reward points if helpful.

5 REPLIES 5
Read only

Former Member
0 Likes
782

Hi,

Internal table field should be character type.I think you missed this

Reward me if useful

Read only

SantoshKallem
Active Contributor
0 Likes
782

check that values getting into internal table in debugging..

check the screen fields correctly.

regards.

santhosh reddy

Read only

Former Member
0 Likes
782

hi,

Use this code,

Data:amt(16).

Move that wrbtr value to amt.

condense amt no-gaps.

use that amt in BDC.

This will work surely.

REWARD POINTS IF HELPFUL,

KUMAR

Read only

Former Member
0 Likes
782

Hi,

you can only pass character-like values to BDC:

DATA: c_amount(20) type c.

WRITE w_amount to c_amount.

PERFORM BDC... USING 'BSEG-WRBTR' c_amount...

Good luck

Jo

Read only

Former Member
0 Likes
783

Hi,

Try this one out.

declare a variable .

Data : amt(16) type c.

amt = w_amount.

*try this.

perform bdc_field using 'BSEG-WRBTR'

amt.

Regards,

Balakumar.G.

Reward points if helpful.