2011 Feb 23 10:41 PM
Hi, here is my problem:
I have created a Z table with two fields (ZCOMP1 and ZCOMP2) with element BUKRS and they are both the primary key and both are related to table t001 as foreign keys. So far so good.
What I need is to create a table maintenance where it shows something like this:
COMP1 NAME1 COMP2 NAME2
Where only the fields COMP1 and COMP2 are editable and the names should appear automatically after adding the company codes.
I have 2 problems with this:
- I believe it is not possible to separate the primary key fields on an update view.
- I can't add the same field twice (t001-butxt) to a view.
Any ideas??
2011 Feb 28 1:14 PM
Where only the fields COMP1 and COMP2 are editable
for this create a maintenance view , include your custom table there, then in tab view flds in 4th colun choose R for the field to be read only. Generate maintenace for the view created.
and the names should appear automatically after adding the company codes
Look at table maintenance event 05.
2011 Feb 24 4:11 AM
Hi,
I think we just enter a new field name for name2 that in the update process you transfer data from comp2 (when get text) to new field name.
Please try.
Thanks,
2011 Feb 28 12:49 PM
Hi,
You may modify the function group to achiev this.
In the function group of the table, go to the screen and in the layout you can edit, rearrange the columns.
2011 Feb 28 1:14 PM
Where only the fields COMP1 and COMP2 are editable
for this create a maintenance view , include your custom table there, then in tab view flds in 4th colun choose R for the field to be read only. Generate maintenace for the view created.
and the names should appear automatically after adding the company codes
Look at table maintenance event 05.
2011 Feb 28 5:06 PM
2011 Mar 04 5:53 AM
Hi,
Take the program of generated table view maintance
This program is module pool program
Edit the same to achieve ur required functionality
Regards,
Siva
Edited by: siva kumar on Mar 4, 2011 6:55 AM