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: 

Reading values in table control in BDC and update certain field based on the values read

Madhurivs23
Participant
0 Kudos
485

Hi,

there is a screen enhancement done in the MM02 to display the document number characteristics and one field with the sort_string in a table control.

I have material number, document number and sort string value from the the input file.

I want to read the document number from this table control and if I found a match with the input file, I need to update its sort string value in the table control.

Please help me to find out how to read the table control values in BDC and updating the certain field in table control by reading and matching that value.

thanks,

Madhuri

2 REPLIES 2

mmcisme1
Active Contributor
0 Kudos
269

What does your code look like? What do you mean reading the table control? The table control is filled with data from an internal table. Find the internal table and you'll know what is in the table control.

Are you working on adding a table control to a screen? Reading all the records? Certain records?

Really unless your user has to update something on the screen, you should use a BAPI instead of a BDC. Have a look at BAPI_MATERIAL_SAVEDATA.

Madhurivs23
Participant
0 Kudos
269

Thanks Michelle for reply.

Please find my comments on below your points:

1. What does your code look like? What do you mean reading the table control? The table control is filled with data from an internal table. Find the internal table and you'll know what is in the table control.

comment - I havent started yet coding on this one.Yes. I want to read the internal table data from which the table control is filled.

I will check if in BDC, I can access the internal table filled in with values.

2. Are you working on adding a table control to a screen? Reading all the records? Certain records?

Comment - I want to read those records and update those only records whose value matches with the input file data.

3. Really unless your user has to update something on the screen, you should use a BAPI instead of a BDC. Have a look at BAPI_MATERIAL_SAVEDATA.

Comment - This is whole big development previous developers have created and they are updating the DMS related data . which can not be done through BAPI. So left the option of using BAPI.