‎2008 Apr 29 5:21 AM
Dear Friends,
When doing BDC in F-02 TC , the amount field value giving error message ' Field BSEG-wrbtr input value is longer than screen field ' . But the in flat file value is not longer than screen field.
plz urjent help me.
Thanks & regards,
Subash
‎2008 Apr 29 6:42 AM
Hi
Check ur recording
and secondly the logic where u r reading the file
it only happends when u r passing the wrong value to that field
reward points if successful
‎2008 Apr 29 6:42 AM
Hi
Check ur recording
and secondly the logic where u r reading the file
it only happends when u r passing the wrong value to that field
reward points if successful
‎2008 May 01 9:15 AM
Dear Sg
After Declare it as
wbrtr(16) type c.
the same error is comming.
can any body solv it
‎2008 May 01 12:33 PM
pls paste the code where you have done mapping of the screen fields with itab fields...
like,
perform bdc_dynpro.....
perform bdc_dynfield...
~Sid
‎2008 May 01 12:43 PM
Thanks sid
i am sending you the mapping field
LOOP AT T_UPLOAD INTO W_UPLOAD.
REFRESH T_BDCDATA.
perform bdc_dynpro using 'SAPMF05A' '0100'.
perform bdc_field using 'BDC_CURSOR'
'RF05A-NEWKO'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_field using 'BKPF-BLDAT'
W_UPLOAD-BLDAT.
*perform bdc_field using 'BKPF-BLART'
record-BLART_002.
*perform bdc_field using 'BKPF-BUKRS'
record-BUKRS_003.
*perform bdc_field using 'BKPF-BUDAT'
record-BUDAT_004.
*perform bdc_field using 'BKPF-MONAT'
record-MONAT_005.
*perform bdc_field using 'BKPF-WAERS'
record-WAERS_006.
*perform bdc_field using 'FS006-DOCID'
record-DOCID_007.
perform bdc_field using 'RF05A-NEWBS'
W_UPLOAD-NEWBS.
perform bdc_field using 'RF05A-NEWKO'
W_UPLOAD-NEWKO.
perform bdc_dynpro using 'SAPMF05A' '0301'.
perform bdc_field using 'BDC_CURSOR'
'BSEG-SECCO'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_field using 'BSEG-WRBTR'
W_UPLOAD-WRBTR.
perform bdc_field using 'BSEG-BUPLA'
record-BUPLA_011.
perform bdc_field using 'BSEG-SECCO'
record-SECCO_012.
perform bdc_field using 'BSEG-ZFBDT'
record-ZFBDT_013.
perform bdc_dynpro using 'SAPLFWTD' '0100'.
perform bdc_field using 'BDC_CURSOR'
'WITH_DIALG-WT_AMOUNT(01)'.
perform bdc_field using 'BDC_OKCODE'
'=GO'.
perform bdc_field using 'WITH_DIALG-WT_BASE(01)'
record-WT_BASE_01_014.
perform bdc_field using 'WITH_DIALG-WT_AMOUNT(01)'
record-WT_AMOUNT_01_015.
perform bdc_dynpro using 'SAPMF05A' '0301'.
perform bdc_field using 'BDC_CURSOR'
'RF05A-NEWKO'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_field using 'BSEG-WRBTR'
record-WRBTR_016.
perform bdc_field using 'BSEG-BUPLA'
record-BUPLA_017.
perform bdc_field using 'BSEG-SECCO'
record-SECCO_018.
perform bdc_field using 'BSEG-ZFBDT'
record-ZFBDT_019.
perform bdc_field using 'RF05A-NEWBS'
record-NEWBS_020.
perform bdc_field using 'RF05A-NEWKO'
record-NEWKO_021.
perform bdc_dynpro using 'SAPMF05A' '0300'.
perform bdc_field using 'BDC_CURSOR'
'BSEG-MWSKZ'.
perform bdc_field using 'BDC_OKCODE'
'=STER'.
perform bdc_field using 'BSEG-WRBTR'
record-WRBTR_022.
perform bdc_field using 'BSEG-MWSKZ'
record-MWSKZ_023.
perform bdc_field using 'DKACB-FMORE'
record-FMORE_024.
perform bdc_dynpro using 'SAPLKACB' '0002'.
perform bdc_field using 'BDC_CURSOR'
'COBL-KOSTL'.
perform bdc_field using 'BDC_OKCODE'
'=ENTE'.
perform bdc_field using 'COBL-KOSTL'
record-KOSTL_025.
perform bdc_dynpro using 'SAPLTAX1' '0300'.
perform bdc_field using 'BDC_CURSOR'
'BSET-FWSTE(01)'.
perform bdc_field using 'BDC_OKCODE'
'=GOBU'.
perform bdc_field using 'BSET-FWSTE(01)'
record-FWSTE_01_026.
*perform bdc_transaction using 'F-02'.
*enddo.
*
*perform close_group.
*perform close_dataset using dataset.
CALL TRANSACTION 'F-02' USING T_BDCDATA MODE 'A' UPDATE 'S' MESSAGES
INTO T_BDCMSGCOLL.
CLEAR W_BDCMSG.
READ TABLE T_BDCMSGCOLL INTO W_BDCMSG INDEX 1.
‎2008 Apr 29 6:57 AM
Hi
In F-04, the Amount field only allows 11 digits and 2 decimals.
If it is more that that it will throw this error.