09-09-2006 5:10 AM
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
09-09-2006 7:12 PM
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.
09-09-2006 5:46 AM
09-09-2006 7:12 PM
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.
09-11-2006 7:48 AM
Hi Geeta Yash,
Thanks for ur timely help.
But we have done it thro 'P+'
Thanks.
Shankar
02-15-2007 9:08 AM
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.