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

regarding BDC - Table control

Former Member
0 Likes
722

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
Read only

Former Member
0 Likes
682

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
Read only

Former Member
0 Likes
682

Hi.

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

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

Read only

gopi_narendra
Active Contributor
0 Likes
682

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

Read only

0 Likes
682

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

Read only

0 Likes
682

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'

Read only

0 Likes
682

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

Read only

Former Member
0 Likes
683

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