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

get value from table control in a batch input

Former Member
0 Likes
969

Hi,

Anyboy knows how do i get a value from control table in a bach input for example

when my cursor is in line 1.I need to know the value of this field.

I need to read the value in order to know if im going to insert in that row or in the next one

I need something just like this

data count type i.

count = 1.

Perform bdc_dynpro using 'SAPLMEOR' '0205'.

<b>PERFORM bdc_field USING 'BDC_CURSOR' 'EORD-VDATU(count)'.</b>

what's the value of 'EORD-VDATU(01) field

Set cursor Field 'EORD-VDATU(01)' Line 1.

get cursor field zcampo.

If zcampo <> SPACE.

add 1 to count.

Endif.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
600

Hi,

Check the following link for using the table control in bdc..

http://www.sap-img.com/abap/bdc-example-using-table-control-in-bdc.htm

Thanks,

Naren

2 REPLIES 2
Read only

Former Member
0 Likes
601

Hi,

Check the following link for using the table control in bdc..

http://www.sap-img.com/abap/bdc-example-using-table-control-in-bdc.htm

Thanks,

Naren

Read only

Former Member
0 Likes
600

Unfortunately, this isn't the way batch input works. Once you hand over control to the transaction, control is gone until you come back to your program. If you want to know the value in a particular field or line of a table control, you have to know enough about the transaction you are calling in order to figure it out yourself.

Rob