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: 

BDC - table control - experts please help

Former Member
0 Kudos

Hi experts,

Please help. I am in need of your help.

I am working with BDC and I have a table control in one of the screen. Table control has a check box in the first column. While recording how I entered the data is : I select the check box in a row, enter two values in next two columns of that row and then hit enter then the other columns in that row turn from grey to white (initially these columns are greyed out).

NOw in BDC when I run my session in foreground, I am able to check(select) the check box and enter the values in next two columns and then I have a Enter OKCODE. But when I hit enter it is not able to recognize the row and its unable to turn the greyed out columns in that particular row to white.

Is there a way to specify in my program that I am hitting enter in one particular row.

Please help. Let me know if something is not clear. Very urgent . Pleasee respond. Thanks

13 REPLIES 13

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

What transaction are you working with?

Regards,

Rich Heilman

0 Kudos

C201

0 Kudos

Put in MODE "A" and try to see what's going on. Make sure that the cursor is actually placed on the line when you hit "ENTER".

REgards,

Rich Heilman

0 Kudos

Hi Rich,

How do I make sure that the cursor is on the line. Do you mean by bdc_cursor in the program? For example let us say I am going to hit enter for the second line in table control. What shall I do now?

Please help.

0 Kudos

You would use an index to place the cursor on the specific line of the table, you probably already see this in your BDC code. It will be an integar in parenthesis next to the field name.

REgards,

Rich Heilman

0 Kudos

Hi Rich,

Thanks for the replies. I will try that. I got one more doubt. While manually creating the recipes using C201, there is a screen Recipe header. When I record this transaction, I see a different screen for the Recipe header. Fro example the screen numbers are like 4210(manual) and 4211(recording).

But my problem is there are two fields which are missing in the screen which I am getting while recording C201. These two fields are present on the screen for manual creation. I need to enter those two fields while I record. But how can I do this.

Please help.

0 Kudos

In a lot of cases, you will get a different screen when recording the transaction, some times the fields will be in different places. You need to explore the transaction thoroughly when doing the recording and see if the fields exist on any other screen.

Regards,

Rich Heilman

0 Kudos

Hi Rich,

Thanks for the replies. If you have access to the system, can you please have a qiuck look at the recording of the C201. I am looking for two fields Charge quantity and Operation quantity which are missing on the recipe header screen(2nd screen). PLKOD-UMREZ and PLKOD-UMREN are the fields for Charge quantity and Operation quantity fields.

May be you find these two fields. I greatly appreciate if you can give a tyr. Wiating.............

0 Kudos

Unfortunately, we are not set up to use master recipes in my system.

REgards,

Rich Heilman

0 Kudos

Hi Rich,

Let us say I dont find these two fields in the recording of the transaction C201 after thorough searching, is there another way to upload these two fields, may be some alternate way..... the two fields are PLKOD-UMREZ and PLKOD-UMREN. Please let me know if you have some ideas....

Waiting.............

0 Kudos

Rich please respond.... waiting for replies.....

0 Kudos

You can probably use LSMW to upload the recipes using the Routing Object. Not sure though.

Regards,

Rich Heilman

0 Kudos

Or if you are on a new version, the BAPI BAPI_ROUTINGS_CREATE may help you. I don't have it in my system, so I can't tell whether it will allow you to upload other task lists types like recipes.

Regards,

Rich HEilman