Application Development and Automation 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: 
Read only

How to scroll a table control from a batch input

Former Member
0 Likes
1,072

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.

1 REPLY 1
Read only

Former Member
0 Likes
420

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