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: 

S4HANA ON PREMISE 1610 - Append structure to MSEG

konstantinos_vassiliadis
Active Participant
0 Kudos
7,571

Dear experts,

I appended a structure to MSEG, structure name is ZMM_MSEG_MB51_FIELDS. The additional fields are the following:

When I run e.g. se16n to see data, I get DBSQL_REDIRECT_INCONSISTENCY: A setting in the dictionary for table "MSEG" stipulates that all read access to this table should be redirected to database object "NSDM_V_MSEG". I found note "2242679 - Redirect inconsistency - Proxy Substitution" and after downloading Eclipse Neon I installed Core Data Services. I have added the following using the Template for Extending CDS Views

but it shows the following error, what shall I write to be acceptable?

Thank you in advance,

Konstantinos Vassiliadis

SAP ABAP developer

6 REPLIES 6

Jelena_Perfiljeva
Active Contributor
2,467

I don't have S/4HANA but from what I heard MKPF/MSEG have been replaced by MATDOC there, so you probably can't refer to them the same way you used to in ECC. This blog explains it.

It can be found using simple Google search for "MSEG in S/4HANA site:sap.com". It finds many other blogs, including this one on the extension.

konstantinos_vassiliadis
Active Participant
0 Kudos
2,467

Thank you for the answer. I am not sure if by simply appending a structure to MATDOC with the new Z-fields this will not affect compatibility between MSEG and proxy object. I will try it and let you know - it may be possible since proxy objects are available mainly for upgrading to S/4 HANA

former_member431193
Discoverer
0 Kudos
2,467

Hi Konstantinoss,

We're facing the same issue, How did you solve it?

Thanks

Chale.

darapaneni_giri
Discoverer
0 Kudos
2,467

Any Solution for the mentioned issue...if solution available, please share

Thank you

former_member642854
Discoverer
2,467

I had the same issue. But it is because when creating the extended view we must refer to fields in the MATDOC, in my case they were not created. In note 2206980 it says: "In case of a system conversion all these customer fields in such APPENDs or INCLUDEs need to be appended to table MATDOC during the ACT_UPG phase (SPDD). It has to be done in any case before the MM-IM converison program will be executed which move the data from MKPF and MSEG to MATDOC otherwise data in customer fields gets lost. The structure compatibility between table MKPF / MSEG and their assigned proxy view shall be created directly after system conversion by creating extend views, see note 2242679. " It's necesary to create de fields in the table MATDOC.

BhagyashriS
Newcomer
0 Kudos
2,362

We have to firstly create structure which can be used to append in MATDOC + MSEG

e.g. i created it for field SBATCH.

BhagyashriS_0-1709240856747.png

Now refer same structure & append it in MATDOC & MSEG

BhagyashriS_1-1709240895221.png

activate it

In MSEG do append structure but it won't get activated until we extend View NSDM_E_MSEG

BhagyashriS_2-1709240954869.png

Now finally create extension of view NSDM_E_MSEG

BhagyashriS_3-1709240999637.png

And activate extended view & mseg.

This will work.