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: 

regarding BDC - Table control

Former Member
0 Kudos

Hai guys,

I want to record ME21 transaction.

If suppose i have more than 14 records to enter how can i record the Scroll bar down used in Table control for the screen(ME21 second screen)

Please help me.

Regards

Ambichan.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

U have to handle this ur self based on the size of ur table control.

If suppose ur table control fits 7 line items, then u have to handle the records from 8 the record.

For example,

ADD 1 TO w_line_i.

IF w_line_i > 7.

w_line_i = 1.

PERFORM bdc_dynpro USING 'SAPMM07M' '0421'.

PERFORM bdc_field USING 'BDC_OKCODE' '=NP'.

ENDIF.

Set a flag once the line item are greater than 7

Try in this way.

Regards

6 REPLIES 6

Former Member
0 Kudos

Hi.

Use button "PageDown" in toolbar to scroll the grid screen.

OK-Code is 'P' or 'P+'.

gopi_narendra
Active Contributor
0 Kudos

Hi Ambi,

Please check this <a href="http://www.sap-img.com/abap/bdc-example-using-table-control-in-bdc.htm">Link</a>

Regards

- Gopi

0 Kudos

hai guys,

Thanks for your replies.

But looks like Pagedown and P,P+ did not work here.

If u see ME21 second screen, There are only PO items line number till 190. if suppose i have 22 item how to do this using BDC recording.

Thanks.

ambichan

0 Kudos

Hi

Set the last item number to 'RM06E-EBELP',and

press Enter key (OK-code: /00),it will page down automatic. Then you can continue input your item data

from the second line.

-


'RM06E-EBELP' <- '140'

'BDC_OKCODE' <- '/00'

0 Kudos

'RM06E-EBELP' is the input field under the grid screen.

Former Member
0 Kudos

U have to handle this ur self based on the size of ur table control.

If suppose ur table control fits 7 line items, then u have to handle the records from 8 the record.

For example,

ADD 1 TO w_line_i.

IF w_line_i > 7.

w_line_i = 1.

PERFORM bdc_dynpro USING 'SAPMM07M' '0421'.

PERFORM bdc_field USING 'BDC_OKCODE' '=NP'.

ENDIF.

Set a flag once the line item are greater than 7

Try in this way.

Regards