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 problem

Former Member
0 Likes
1,897

Hi Experts,

I've a prob with table control.

We have inserted a customized screen in MM02&MM03.

This screen has table control and right now it has around 8 fields.But now we have inserted two new fields in between exiting fields.

When we test the screen the table cntl fields sequence are proper but when we look the screen using transaction MM02 or MM03 the fields are shuffled and not in proper sequence.This table control is referring to an internal table which referred to a custom transparent table.

But when we try to add the two new fields at the end of table control, the field sequence are proper in MM02&MM03.

We dont know what s the exact problem and how to fix the issue.

Could anybody help?

Thanks in Advance,

Ponraj.s.

1 ACCEPTED SOLUTION
Read only

RaymondGiuseppi
Active Contributor
0 Likes
1,025

Maybe you have to clean TCVIEW and table-control variants

Look at OSS <a href="https://service.sap.com/sap/support/notes/379421">Note 379421 - Update TCVIEW after Table Control change</a>

Extract :

<i>Solution

Option 1:

Create new display variants and delete obsolete display variants.

Option 2:

As of Basis Release 6.10, a button "Update" is in the Administrator dialog box. You can use this button to adjust the obsolete display variants to the changed table control.

The system adds new columns to the right border of the Table Control.

Option 3:

Before Release 6.10, you can use report ZRSTCXADJ to update the obsolete display of the system variant. To update the user-specific variant, use report ZRSTCXADJ_USER. Create the report for this purpose in the customer namespace (program type: executable program).

The ZRSTCXADJ report requires you to enter three parameters: Program name, control name, and screen number.

Determine the program name and screen number as follows:

Select the relevant table control, and choose from the menu "System -> Status". The system then displays the screen number below the program name. (If two screen numbers are specified, the lower one is the one you require.) The name of the control is available from either the administrator dialog box (as of 4.6B), or the element list of the affected screen (Screen Painter SE51 -> Specify program name and screen number -> display element list.

Report ZRSTCXADJ_USER expects five parameters: Program name, control name, screen number, context and username.

Exception: The report does not work if the program contains different Table Controls that have the same name! (This is the case in program SAPLM61R, where two Table Controls are called TC_DLSAM.)</i>

Regards

5 REPLIES 5
Read only

RaymondGiuseppi
Active Contributor
0 Likes
1,026

Maybe you have to clean TCVIEW and table-control variants

Look at OSS <a href="https://service.sap.com/sap/support/notes/379421">Note 379421 - Update TCVIEW after Table Control change</a>

Extract :

<i>Solution

Option 1:

Create new display variants and delete obsolete display variants.

Option 2:

As of Basis Release 6.10, a button "Update" is in the Administrator dialog box. You can use this button to adjust the obsolete display variants to the changed table control.

The system adds new columns to the right border of the Table Control.

Option 3:

Before Release 6.10, you can use report ZRSTCXADJ to update the obsolete display of the system variant. To update the user-specific variant, use report ZRSTCXADJ_USER. Create the report for this purpose in the customer namespace (program type: executable program).

The ZRSTCXADJ report requires you to enter three parameters: Program name, control name, and screen number.

Determine the program name and screen number as follows:

Select the relevant table control, and choose from the menu "System -> Status". The system then displays the screen number below the program name. (If two screen numbers are specified, the lower one is the one you require.) The name of the control is available from either the administrator dialog box (as of 4.6B), or the element list of the affected screen (Screen Painter SE51 -> Specify program name and screen number -> display element list.

Report ZRSTCXADJ_USER expects five parameters: Program name, control name, screen number, context and username.

Exception: The report does not work if the program contains different Table Controls that have the same name! (This is the case in program SAPLM61R, where two Table Controls are called TC_DLSAM.)</i>

Regards

Read only

0 Likes
1,025

Hi Raymond,

Could you please explain what s meant by display variants and obsolette variants.

how to delete this and recreate new variants?

Thanks,

Ponraj.s.

Read only

0 Likes
1,025

To see theses variant use the right-upper icon, there you can maitain the variants.

Look also at <a href="http://help.sap.com/saphelp_45b/helpdata/en/32/f26f70d81e11d1a26f0000e8a5a614/content.htm">Activating a Table Control Variant</a>

There is a system variant created at first execution, this variant is automaticaly used and fill you table control when you use it, as you inserted fields between other fields this variant is obsolete and must be destroyed/adapted.

Look with SE16 at table TCVIEW to get an idea on information written in this table.

So depending on you version you have to adjyst or delete this variant, and any user variant that may habe been created.

The note i lentionned display the way to do it.

Read only

0 Likes
1,025

Hi Raymond,

Thanks a lot for your resolution.The problem has been completely fixed.

Thanx once again.

Giving ful points.

Bye,

Ponraj..s

Read only

Former Member
0 Likes
1,025

Answered