Application Development 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: 

Declaring variable in BDC always C

Former Member
0 Kudos

HI All,

Why we need to declare all the variables as C ( character) is there any perticular Reason for this?

in Data conversion also we used to declare all the variables as C...

Can anybody explain the reason for this?

Regards,

pandu

2 REPLIES 2

Former Member
0 Kudos

Hello,

As far as the Experience we had while Running BDCs for some Transactions such as VA02 / VL02N, I found that the Fields such as Quantities / Weights are not getting updated if we declared the variables as

WS_C_WEIGHT TYPE P Decimals 2,

WS_C_QTY TYPE P.

An internal Conversion happens when the BDC is run for some particular Transactions (Most of the Transactions for that matter) to convert it into Type C.

So, for the same Reason we declare the Variables as C eventhough the fields are Quantity / Weight Fields.

Hope it was clear.

Thanks and Regards,

Venkat Phani Prasad Konduri

ThomasZloch
Active Contributor
0 Kudos

BDC is simulating user input into screen fields. This means that all values need to be entered in external format, e.g. for dates in format DD.MM.YYYY (German notation) instead of the internal YYYYMMDD. If you try entering YYYYMMDD, you will end up with an error. Same applies to other formats like amounts, quantities.

For that reason, BDC structures contain only character type fields, so that the fields can hold the external formats.

Thomas