‎2008 Mar 14 11:31 AM
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
‎2008 Mar 14 11:38 AM
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.
‎2008 Mar 14 11:36 AM
Hi,
Internal table field should be character type.I think you missed this
Reward me if useful
‎2008 Mar 14 11:36 AM
check that values getting into internal table in debugging..
check the screen fields correctly.
regards.
santhosh reddy
‎2008 Mar 14 11:37 AM
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
‎2008 Mar 14 11:38 AM
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
‎2008 Mar 14 11:38 AM
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.