2010 Mar 05 7:11 AM
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..
2010 Mar 05 7:14 AM
How did you declare the field ERFMG ?
use like this in your itab.
erfmg(13) type c.
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..
2010 Mar 05 7:14 AM
How did you declare the field ERFMG ?
use like this in your itab.
erfmg(13) type c.
2010 Mar 05 7:17 AM
hi
This problem occurs data declaration.
So please check the declaration of the field in structure(ERFMG)
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |