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

Table Control -

Adi_Bathineni
Participant
0 Likes
440

Hi Guru's,

I've created a Module pool program, which contains the Table Control.

In my table control we are keeping the F4 Functionality for 1 particular column. (Based on the location i need to show the Bin Values).

Suppose the first row contains the Location Value as "YARD", i need to show the YARD's BIN values in the first row.

In the 2nd row, Location is 'PORT', i need to show the PORT's BIN Values.

For that we are using FM - VRM_SET_VALUES and an internal table to hold the values.

Here my question is when i click on the First row, the cell is getting the values based on the other cell's value (Location) of the Row.

If i click on the cell of 2nd row , the First row values and the 2nd row values are getting same.

in the table control, if i click on the 2nd row directly, with out clicking on the first row, in both rows it is showing the same values irrespective of Location Value,

How to resolve this??

Hope the explanation is clear.

Thanks in advance.

Thanks,

Adi.

4 REPLIES 4
Read only

jaideepsharma
Active Contributor
0 Likes
401

Hi,

Please copy your code. You might not be clearing the variables correctly as a result previously stored values might be used in the program.

KR Jaideep,

Read only

Former Member
0 Likes
401

HI

Take the Help of FM DYNP_VALUES_UPDATE, The detailed Documentation is available for this FM

The purpose of this FM Is to Change Screen Field Contents without PBO

You can go to SE37 and know how to use it by pressing Where used List ICON

Cheers

Ram

Edited by: Ramchander Krishnamraju on Oct 24, 2009 6:27 AM

Read only

Former Member
0 Likes
401

Hi,

My understanding of your requirement is as follows:

Do you want drop down list for every row in the second column on the table control based on the values in the first column?

You gotto code differently if you want unique drop down list for every row in a table control.

You could probably try this. Just a wild guess.

I think if you loop at screen, you can also see screen-name = table control field names. You generally write this code inside the LOOP at tablecontrol module. So, essentially, for every row, the loop at screen happens. Try to keep a counter and track the column where you want the drop down list. When the counter is set for first row, code for drop down values specific to that. Do the same for the rest too.

Well, its just a guess.Never tried it before. You could probably give it a try.

Read only

Adi_Bathineni
Participant
0 Likes
401

Solved by Own...

Used GET CURSOR command to read the line number.

Thanks.