天天看点

When MARA-SCM_MATID_GUID16 is filled

As discussed, we will use MARA-SCM_MATID_GUID16 instead of COMM_PRODUCT-PRODUCT_GUID.

However, the field prefix SCM gives us impression that the change of appending this field to MARA belongs to SCM addon.

If this is true, suppose the scenario where the SCM addon is not installed into S4 system, then this field is not available. It means all direct access on MARA-SCM_MATID_GUID16 will cause syntax error.

So we need to figure out the change of appending this field to MARA belongs to SCM addon, or S4Core? The answer is: S4Core.

The code below is the implementation how SCM_MATID_GUID16 is created when we create material via MM01 in S4 system. From the code we can see the field is directly accessed without any dynamical programming.

If the change of this field belongs to SCM addon, the code should be written as:

When MARA-SCM_MATID_GUID16 is filled

继续阅读