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

problem in table control

Former Member
0 Likes
879

Hi friends,

I have a requirment in table control

my initial screen is 100

in that i have table control with only one column which displays VBELN data.

now when i select any one sales order number and click on a button it takes me to screen 200 and displays the details about that sales order number in another table control in screen 200.

now the table control in my screen 200 ie : details screen is in display mode except one particular field

NOTE QUANTITY in changed mode.

example :

In screen 100 in table control i have following sales order numbers

1000

2000

3000

now when i select sales order number 1000 and clcik on the button it is displaying 5 line items in the next table control in screen 200.

now when i clcik back button on screen 200 it navigates back to screen 100 and now iam selecting sales order number 2000 and click on the button it is diaplaying 3 line items for that sales order number 2000 in screen 200 table control.

now here iam facing a problem

since ist the sales order number 1000 contains 5 line items in 1st 5 coloumns now when iam going back to sceen 100 and slecting sales order number 200 its showing 3 lines in ist 3 lines but for the field NOTE QUANTITY it is showing in change mode for 5 rows but it should show only for those rows which it has items ie : 3 rows in this case.

ie : when iam going back the screen is not refreshing .

how can i refresh screen when i go back.

How can i get this..

Can any one suggest me.

Regards

priyanka.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
834

Hi Priyanka,

try this out.

Once you select a sale order in screen 100 and before selecting the corresponding item data (may be) using select query into another internal table you refresh the internal table that is going to display the item details of the selected sales order.

regards

Ramchander

7 REPLIES 7
Read only

Former Member
0 Likes
834

Hi Priyanka,

Your Problem would be solve be in 2-3 ways......It depends on you which appraoch would be best catchable by you.

When you are going back from screen 200 to 100 and then selecting next one order 2000 you are getting 5 line insted of 3 ..........The solutions are follows..

1)you have to refresh all that Table control before going to dispaly.

2)check whether the table used by for table control still have 5 rows if yes the make sure at that time table would be refresh so it's contain 3 rows for that 2000 order.

3)If you can also used the attribute of table control....but it complex too.

4)Make sure the screen should be refresh.

If you still have the same problem then reply to me....

Regards

Ricky

Read only

0 Likes
834

can u please tell me any one approach.... how to do that.

Read only

0 Likes
834

Hi Priyanka.......

For choose out the exact approach you should require depth knwoledge of modulepool.

Do as below.....

1)Go to screen 200..

2)check which table r u using for table control?

3)Make sure that it should be populate at time of selection of order at screen 100 only and before it should be blank.

4) when you r going back screen 200 to 100 ,refresh/clear all the fields of screen 200.

5) For consitency check jus in devugg mode check whether table fo display have data before selecting 200 at screen 100...........if yes then above approach would be better for you.....

If you still face proble then let me now your code .....so i can suggest you more.....

Regards

Ricky

Read only

0 Likes
834

my internal table is getting cleared......when iam going back from 200 to 100 screen.

now the problem is with only the screen ie : NOTE QUANTITY field is in changed mode in my table control .

now for ist selection iam getting 5 rows in screen 200 and when i go back to screen 100 and select another entry and click excute iam getting 3 values for that 2nd entry now the changed field NOTE QUATITY should be 3 rows but intead it is showing the next 2 rows also in change mode for that note quantity.

how can i do that can u please explain me.

Regards

priyanka.

Read only

0 Likes
834

Hi Priyanka,

whatever you are explaining.........its showing that in table control for first order you are getiing 3 rows as in change mode and while you are coming back to screen 100 and again selecting 2000 order you geting total 5 rows in change mode.........

you can do two things

1) at time of Table control display you can check the attribute of NOTE QUATITY against the field value or your internal table field value.......

2) just use 'SPACE' key word as below explanation

you have 3 rows for 2000

it mean ur internal table have only 3 rows so update the value with 'SPACE' for rest of two rows which u r getting extra.........

if you can give me your table control code..........then i can expalin you in more detail.

Regards

Ricky

Read only

Former Member
0 Likes
834

In the PBO

write like this,

If first_time_200(varible of type c) is initial.

Refresh 'TC(tc name)' from screen 200.

first_time_200 = 'X'.

endif.

when you going back

clear first_time_200.

It will definately work.

Regards,

Alpesh

Edited by: Alpesh on Nov 14, 2008 5:11 PM

Read only

Former Member
0 Likes
835

Hi Priyanka,

try this out.

Once you select a sale order in screen 100 and before selecting the corresponding item data (may be) using select query into another internal table you refresh the internal table that is going to display the item details of the selected sales order.

regards

Ramchander