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: 

Problem while Running BDC for KB31N

Former Member
0 Kudos

Hi..

I have created a BDC Program for Data Uploading for Statistical Key Figures through T.Code KB31N.

Here I am Uploading Data for Cost Center Wise, Men in Roll i.e., No. of Men Posted under a Particular Cost Center in a Particular Month. Only one record is generated with multiple line items for all the cost centers.

Here in KB31N there are 2 methods to upload data . one is List Entry and Other is Individual Entry.

For List Entry the data should be uploaded at a time. suppose i am having 90 line items. so all the line items should come in the list first and get posted. but only the first 13 rows are getting displayed. i also used the code for page down after every 10 entries. but still 13 entries are coming and after page down all other entries are not coming..

so i used the second method ie individual entry which is working successfully.

but the problem is that, if the screen of kb31n is opened at list mode..so the bdc for individual mode will not work. and if the screen for individual mode is opened the BDC for list mode will not work. i used transaction variant for that purpose also. but still it doesn't work. i am writing the code below.

PERFORM BDC_DYNPRO USING 'SAPLSPO4' '0300'.

PERFORM BDC_FIELD USING 'BDC_CURSOR'

'SVALD-VALUE(01)'.

PERFORM BDC_FIELD USING 'BDC_OKCODE'

'=FURT'.

PERFORM BDC_FIELD USING 'SVALD-VALUE(01)'

'viin'.

LOOP AT IT_COEPR.

PERFORM BDC_DYNPRO USING 'SAPLK23F1' '1200'.

*perform bdc_field using 'BDC_OKCODE'

  • 'LIST'.

PERFORM BDC_FIELD USING 'COHEADER-SEND_REC_REL'

'01SAP'.

PERFORM BDC_FIELD USING 'RK23F-STATUS'

'S'.

*perform bdc_field using 'COHEADER-BLDAT'

  • '19.12.2008'.

*perform bdc_field using 'COHEADER-BUDAT'

  • '19.12.2008'.

PERFORM BDC_FIELD USING 'RK23F-STAGR'

'100'.

PERFORM BDC_FIELD USING 'RK23F-MBGBTR'

IT_COEPR-MBGBTR. " '75'.

PERFORM BDC_FIELD USING 'BDC_CURSOR'

'RK23F-EKOSTL'.

PERFORM BDC_FIELD USING 'RK23F-EKOSTL'

IT_COEPR-EKOSTL. " '200001'.

ENDLOOP.

PERFORM BDC_DYNPRO USING 'SAPLK23F1' '1200'.

PERFORM BDC_FIELD USING 'BDC_OKCODE'

'=POST'.

PERFORM BDC_FIELD USING 'COHEADER-SEND_REC_REL'

'01SAP'.

PERFORM BDC_FIELD USING 'RK23F-STATUS'

'S'.

PERFORM BDC_FIELD USING 'COHEADER-BLDAT'

'19.12.2008'.

*perform bdc_field using 'COHEADER-BUDAT'

  • '19.12.2008'.

*perform bdc_field using 'BDC_CURSOR'

  • 'RK23F-STAGR'.

*perform bdc_transaction using 'KB31N'.

*

*perform close_group.

CALL TRANSACTION 'ZKB31N_TV' USING BDCDATA

MODE 'E' UPDATE 'S' MESSAGES INTO MSGTAB.

please tell me if there is any error... i think there is no problen in the recording part.

so kindly please help me in this issue.

thanks in advance.

srikanth kumar

1 REPLY 1

Former Member
0 Kudos

HI

i want to say that first you have to check your 90 row recording in the recording.In the recording

when you fiil first 13 row then you press P+ the curser goes where .2nd page first row or 13th row.

some time for 1 times page down we have to write two times P+.