Skip to Content
author's profile photo Former Member
Former Member

Problem while Running BDC for KB31N

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Dec 23, 2008 at 08:04 AM

    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+.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.