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 error

Former Member
0 Likes
974

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

1 ACCEPTED SOLUTION
Read only

manubhutani
Active Contributor
0 Likes
822

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

5 REPLIES 5
Read only

manubhutani
Active Contributor
0 Likes
823

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

Read only

0 Likes
822

Dear Sg

After Declare it as

wbrtr(16) type c.

the same error is comming.

can any body solv it

Read only

0 Likes
822

pls paste the code where you have done mapping of the screen fields with itab fields...

like,

perform bdc_dynpro.....

perform bdc_dynfield...

~Sid

Read only

0 Likes
822

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.

Read only

asik_shameem
Active Contributor
0 Likes
822

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.