‎2008 Jul 09 8:27 AM
hi,
i am doing a bdc using call transaction
but i am get an error when flat file transfer in the field WRBTR
where wrbtr type bseg-wrbtr,
in my internal table
types: begin of lt_output,
wrbtr type bseg-wrbtr,
end of lt_output.
when i give value 95000 by flat file into this field
than it gives a message as
field BSEG-WRBTR input value is longer than screen field
plz provide me solution for this
thanks jayant
‎2008 Jul 09 8:31 AM
Hi,
In bdc while using the amount fields the same problem occurs, so try to use the following code.
declare a local variable and proceed.
clear l_kbetr.
l_kbetr = it_material-kbetr.
condense l_kbetr.
perform bdc_field using : 'KONP-KBETR(01)' l_kbetr.
Hope this helps you.
Reward points if helpfull.
Thanks & Regards
Y.R.Prem Kumar
‎2008 Jul 09 8:32 AM
Hi declare like this,
types: begin of lt_output,
wrbtr(16),
end of lt_output.
‎2008 Jul 09 8:33 AM
wrbtr type bseg-wrbtr,
l_variable = itab-wrbtr.
condense l_variable .
and then pass it into bdc.
hope it helps
Regards
‎2008 Jul 09 8:34 AM
‎2008 Jul 09 8:34 AM
Dear,
Define the other filed.
Amount(13).
COpy the value of WRBTR into Amount .
amount = wrbtr.
Pass Amount as a FVAL.
Regards,
‎2008 Jul 09 8:40 AM