‎2009 Oct 23 9:23 PM
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.
‎2009 Oct 23 9:28 PM
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,
‎2009 Oct 24 5:25 AM
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
‎2009 Oct 24 7:41 PM
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.
‎2009 Nov 23 11:16 PM
Solved by Own...
Used GET CURSOR command to read the line number.
Thanks.