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

Table control bdc page wise

Hi expert,

i am working for MEK1 tcode this bdc working fine when i am using single page

but is data is more than one page then how to deal with it..

I haver recorded Next page button also.

perform bdc_field using 'BDC_OKCODE' '=P+'.

<b>Code is ok but ... how to evoke next page whan first page is full-fill.</b>send hint...

thanks..

**********Point is assured **********

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Oct 22, 2007 at 06:44 AM

    hi jim,

    u first manually count how many records u can upload on the first page.

    and then set a counter. when the counter exceeds the number of records u can upload on the single page then use the ok-code =P+

    IF counter GT 22. " here 22 is wat i have calculated manually

    counter = 2.

    flag = 1.

    PERFORM bdc_dynpro USING 'SAPLCPDI' '0140'.

    PERFORM bdc_field USING 'BDC_OKCODE' '=P+'.

    ENDIF.

    now also since ur records exceeds first page u have to run this code for every record after the first page,i dont think it will be usefull jst running above code once.

    and thts y i have used one variable called flag.

    so u need to add this code also jst after the above code.

    if flag = 1.

    PERFORM bdc_dynpro USING 'SAPLCPDI' '0140'.

    PERFORM bdc_field USING 'BDC_OKCODE' '=P+'.

    endif.

    also dont forget to set flag back to zero after all the records of the corresponding data r uploaded.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 22, 2007 at 06:20 AM

    Hi Jim,

    Add this code for next page :

    bdc_data-program = 'pgmname'.

    bdc_data-dynpro = 'screen no'.

    bdc_data-dynbegin = 'X'.

    APPEND bdc_data.

    CLEAR bdc_data.

    bdc_data-fnam = 'BDC_OKCODE'.

    bdc_data-fval = '=NP'.

    APPEND bdc_data.

    CLEAR bdc_data.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 03, 2007 at 12:46 PM

    thanks to all

    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.