2007 Aug 26 7:13 AM
Hi All,
I have one problem .
I made a z-table,included a z-structure, two times in this z-table.
while inserting some values in the table field. it is ok with the z-table fields but i am able to inseert values in the z-structure fields used in the table.
Thankx in advance..
Lakhan
2007 Aug 27 4:59 AM
Hi..Lakhan..
Observe these points carefully . you will get the solution.
To add the Same structure multiple times in the Same Table We have to Assign the Suffix while including the Structure.
How To:
Open the Table in Change mode in SE11
Select the Menu path : EDIT->Include->INSERT.
Enter Structure : <Your Z structure>
Suffix : <any character string Eg: A>
Save .
Now you can see all the Fields from include structure will have Suffix A.
Same way you can include the Structure Several times to the
Table using a different suffix each time.
This ensures that the field names are not duplicated.
Finally Activate your Table.
Now create the entries.
<b>Reward if Helpful</b>
Hi..Lakhan..
Observe these points carefully . you will get the solution.
To add the Same structure multiple times in the Same Table We have to Assign the Suffix while including the Structure.
How To:
Open the Table in Change mode in SE11
Select the Menu path : EDIT->Include->INSERT.
Enter Structure : <Your Z structure>
Suffix : <any character string Eg: A>
Save .
Now you can see all the Fields from include structure will have Suffix A.
Same way you can include the Structure Several times to the
Table using a different suffix each time.
This ensures that the field names are not duplicated.
Finally Activate your Table.
Now create the entries.
<b>Reward if Helpful</b>
2007 Aug 26 1:58 PM
A little confused by your description - you say you have "<i>included a z-structure, two times in this z-table</i>". SAP should not let you include the same structure twice in a table and activate it because you would end up with duplicated column names. Can you clarify what steps you have taken, and where the problem lies?
2007 Aug 27 4:59 AM
Hi..Lakhan..
Observe these points carefully . you will get the solution.
To add the Same structure multiple times in the Same Table We have to Assign the Suffix while including the Structure.
How To:
Open the Table in Change mode in SE11
Select the Menu path : EDIT->Include->INSERT.
Enter Structure : <Your Z structure>
Suffix : <any character string Eg: A>
Save .
Now you can see all the Fields from include structure will have Suffix A.
Same way you can include the Structure Several times to the
Table using a different suffix each time.
This ensures that the field names are not duplicated.
Finally Activate your Table.
Now create the entries.
<b>Reward if Helpful</b>
2007 Aug 27 8:29 AM
Hi
Structures: Consist of components that can have any type.
Structures (structured types) Structured types describe the structure and functions of any structured data objects, that is of data structures with components of any type. A component can be a field with an elementary type or can itself be a structure. A table can also be used as a component in a structure. A database table always has a structure and is therefore implicitly a structured type. However, the fields of a database table can only have an elementary type.
reward if usefull
check this with ur table
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |