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: 

How to Increment the Page in transaction using BDC program

Former Member
0 Kudos

Hi Friends,

I am facing Page up problem in BDC program,

In CT02 transaction, we have to upload mass data for the characterisitic, in the screen we can able to upload 7 rows (actually 7 rows ar there in the transaction) even after doing the Page up (P+) in the BDC, still that overwirtes in the existing rows. How to solve this issue.

Thanks in advance.

Here i have attached the Program, For you reference.

LOOP AT ITAB.

ATNAME = ITAB-ATNAM.

perform bdc_dynpro using 'SAPMCTAV' '0100'.

perform bdc_field using 'BDC_CURSOR'

'CABN-ATNAM'.

perform bdc_field using 'BDC_OKCODE'

'=WERT'.

perform bdc_field using 'CABN-ATNAM'

ITAB-ATNAM.

rows = counter MOD 7.

IF rows EQ 0.

PERFORM bdc_dynpro using 'SAPLCTMV' '0200'.

PERFORM bdc_field USING 'BDC_OKCODE' 'P+'.

counter = '02'.

PERFORM bdc_dynpro using 'SAPLCTMV' '0200'.

ENDIF.

CONCATENATE 'CAWNT-ATWTB(' COUNTER ')' INTO var.

CONCATENATE 'CAWN-ATWRT(' COUNTER ')' INTO var1.

perform bdc_dynpro using 'SAPLCTMV' '0200'.

perform bdc_field using 'BDC_CURSOR'

var.

perform bdc_field using 'BDC_OKCODE'

'=SICH'.

perform bdc_field using var

ITAB-ATWTB.

perform bdc_field using var1

ITAB-ATWRT.

COUNTER = COUNTER + '01'.

opt-defsize = 'X'.

opt-dismode = 'A'.

opt-updmode = 'S'.

CALL TRANSACTION 'CT02' USING

bdcdata OPTIONS FROM opt MESSAGES

INTO it_mess.

REFRESH bdcdata.

ENDLOOP.

Regards

Shankar

1 ACCEPTED SOLUTION

Former Member
0 Kudos

You can use RCTMV-PAGAC for that. This Entry - of N will help if you enter N there. It will display last record at first row. Then you can use second row each time. Hope it helps. Reply if you still need clarification.

4 REPLIES 4

Former Member
0 Kudos

u have to call Ok_Code = 'P+'.

Regards

Prabhu

Former Member
0 Kudos

You can use RCTMV-PAGAC for that. This Entry - of N will help if you enter N there. It will display last record at first row. Then you can use second row each time. Hope it helps. Reply if you still need clarification.

0 Kudos

Hi Geeta Yash,

Thanks for ur timely help.

But we have done it thro 'P+'

Thanks.

Shankar

0 Kudos

For transaction ct02 , if rows are more than 10000 how to proceed in BDC

as in ct02 transaction for entry field 9999 of 9999.--RCTMV-PAGAC

has datatype & length num(4) . so entry in table control possible for only 9999 records/ rows.

plz.reply.