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 problem in MB1A

Former Member
0 Likes
576

Hi,

When i make the BDC for transaction MB1A, Quantity was not picking from flat file. All data is coming correct from flat file but not picking quality.

At the time of BDC run, when reached at that screen, this shows the message...

Field MSEG-ERFMG(1) input value is longer than screen field...

But in my flat file, quality is 1 No.

My recording code is...this is code of that screen only

***********************************

PERFORM bdc_dynpro USING 'SAPMM07M' '0421'.

PERFORM bdc_field USING 'BDC_CURSOR'

'MSEG-ERFMG(01)'.

PERFORM bdc_field USING 'BDC_OKCODE'

'/00'.

PERFORM bdc_field USING 'MSEGK-KONTO'

itab-konto . "'628197'.

PERFORM bdc_field USING 'MSEG-MATNR(01)'

itab-matnr. "'001CB11'.

PERFORM bdc_field USING 'MSEG-ERFMG(01)'

itab-erfmg . "'1'.

***********************************

I highlight the quality in BOLD..

Can i insert any condition here...

plz guide..

1 ACCEPTED SOLUTION
Read only

GauthamV
Active Contributor
0 Likes
501

How did you declare the field ERFMG ?

use like this in your itab.

erfmg(13) type c.

How did you declare the field ERFMG ?

use like this in your itab.

erfmg(13) type c.

2 REPLIES 2
Read only

GauthamV
Active Contributor
0 Likes
502

How did you declare the field ERFMG ?

use like this in your itab.

erfmg(13) type c.

Read only

Former Member
0 Likes
501

hi

This problem occurs data declaration.

So please check the declaration of the field in structure(ERFMG)