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

append fields with custom namespace to a table

yuriy_dzhenyeyev
Explorer
0 Likes
5,635

Given a namespace prefix /XYZ/, I created a structure /XYZ/S_STRUCT with fields /XYZ/FIELD1 ... /XYZ/FIELDN and included this structure into an SAP standard table. The table activation resulted in usual warnings "Field ... does not lie within customer namespace" suggesting to create fields starting with ZZ or YY.

Is this warning still relevant for field names starting with /XYZ/ ?

Thank you!

1 ACCEPTED SOLUTION
Read only

Foxi
Participant
0 Likes
5,364

Hello Yuriy, hope that helps: adding a field to a standard SAP table. In your case you should use append, not include. Best regards

9 REPLIES 9
Read only

thkolz
Contributor
0 Likes
5,364

Why do you use a custom namespace instead of Z* names?
To me this only makes sense if you want to transfer developments to different customer systems (e.g /OPT/ for VIM).

Read only

0 Likes
5,364

yes, this will be a reusable functionality being transferred to multiple customer systems.

Read only

Jeansy
Active Contributor
0 Likes
5,364

Hi,

I tested this case as well in our system using our own namespace.

I was able to add append fields using the namespace. There was no syntax error and warning when activating the database table.

Which name has been used for the append-structure? I assume that this should be in the same customer specific namespace and not in Z-namespace.

I hope this helps you to solve the issue 🙂

Kind regards
Jens

Read only

Jeansy
Active Contributor
0 Likes
5,364

Ah now I read it again and I see that you want to include such a structure into a standard table.

I tried this as well in our system by adding a structure in our namespace into an existing table but here I can some different errors. I will try it again tomorrow as I have no time anymore this evening.

Read only

0 Likes
5,364

This is not exactly my case. I am appending to a standard SAP table, in my case /SCWM/HUHDR. You created a table within your namespace, hence ZZ / YY rule does not apply for your setup. To be precise, I was able to activate the table with the new include, but the system issued the above warning.

Read only

Foxi
Participant
0 Likes
5,365

Hello Yuriy, hope that helps: adding a field to a standard SAP table. In your case you should use append, not include. Best regards

Read only

0 Likes
5,364

I was adding my INCLUDE to an already existing APPEND. Creating an additional APPEND to standard table does not result in this warning. Still, it is unclear to me why the warning is displayed in my original case.

Read only

Sandra_Rossi
Active Contributor
0 Likes
5,364
yuriy.dzhenyeyev

Did you change a standard or a custom append?

You should not change a standard append.

Read only

Sandra_Rossi
Active Contributor
0 Likes
5,364

By "included the structure into an SAP standard table", you mean you used an Append, you didn't do a Modification of Standard, right?