‎2006 Dec 08 6:05 PM
Hi guys.
in PA30 (0045) dynpro 2000
there is a table control there,
and i need to insert there a new row with date, amount, etc,
my problem is that the table control may have values (is not empty sometimes)
i need to fiend the next empy one!
so think in scrolling the control table from my bacth input to the last page, and last field, if i do so, when i save it SAP put the new row in the correct order, so how to i scroll the control table?
perform bdc_dynpro using 'MP004500' '2000'.
perform bdc_field using 'BDC_CURSOR'
'GT_PAYM-ZAHLD(35)'.
i tried put field(35) or some big number, but an error ocurs cuz i only can see the first field(1-7) per page.
‎2006 Dec 08 6:10 PM
Use BDC OKCODE = P++. This will do a pagedown in your table control and then you can add your entry in the first row of this new page. i.e using 'GT_PAYM-ZAHLD(01). After you hit enter this entry will automatically be the last entry in your table conrol and will be after the previous last entry you had.
Hope this solves your problem.
- Guru