Tag Archives: S4 HANA

S/4HANA material segmentation, Country of Origin (CoO) in MIGO

SAP ERP doesn’t directly capture the country of origin during a MIGO goods receipt for a newly created batch. However, you can achieve this through implementing a User Exit.

Additional batch data, such as the country of origin, region of origin, and freely available date fields, can be changed only in user exits. To create a new batch for the goods movement, use the exit EXIT_SAPMM07M_003.

MCHA-HERKL is not automatically updated based on the purchase order during a goods receipt. You must use user exit EXIT_SAPMM07M_003

The user-exit EXIT_SAPMM07M_003 is in
Enhancement: “MBCFC003” – Maintenance of batch master data for goods movements”
(Use transaction: CMOD to activate the exit and assign enhancement).

Question: Why is the user exit EXIT_SAPMM07M_003 processed for some batches but not for others?

Answer: The user exit EXIT_SAPMM07M_003 is processed only if the batch is newly created by the goods movement. This may have different consequences depending on the batch definition level.

To determine the country of origin (CoO) you can use proper setup of segmentation field. Documentation here:

SAP docs on segmentation functionality:

https://help.sap.com/docs/SAP_S4HANA_ON-PREMISE/25a41481f62e469ba0e61015a0d39d20/50d69e52c406215ce10000000a44538d.html?version=1809.000

https://community.sap.com/t5/technology-blogs-by-members/use-of-segmentation-in-s-4-hana-for-product-revisions/ba-p/13410110

https://help.sap.com/docs/SAP_S4HANA_ON-PREMISE/9905622a5c1f49ba84e9076fc83a9c2c/027ca7527218912ee10000000a44538d.html

https://learning.sap.com/learning-journeys/explore-fashion-functions-and-business-processes-in-sap-s-4hana-for-fashion-and-vertical-business/explaining-segmentation_fc861c54-b5aa-4b8c-b08a-e90d23d7325b

Segmentation (LO_SEGMENTATION) is a new SAP ERP component, integrated into:

  • LO Material Master
  • SD Sales
  • MM Purchasing

SGT_CATS – ABAP table: Segmentation Structure Fields Table

SGT_CSEGSCON – ABAP table with segmentation rules defined

SGT_VALS – ABAP table with Segmentation-Valid Combinations

Continue reading S/4HANA material segmentation, Country of Origin (CoO) in MIGO

SAP HANA versions and year of release

Some info about the conversion from SAP ERP 6.0 to S/4 HANA 2022 I used recently and find it useful.

There was times and years where you can easily check you SAP ERP version by going in the SAP GUI menu: System -> Status -> SAP System data. And by reading certain component version you have the info. Like below:

2016SAP ERP 6.0 EHP8NetWeaver 7.5 (7.50)6.182027
2016SAP S/4 HANA 1610NetWeaver 7.51 (7.51)S4CORE 1012021
2017SAP S/4 HANA 1709NetWeaver 7.52 (7.52)S4CORE 1022022
2018SAP S/4 HANA 1809NetWeaver 7.53(7.53)S4CORE 1032023
2019SAP S/4 HANA 1909NetWeaver 7.54(7.54)S4CORE 1042024
2020SAP S/4 HANA 2020NetWeaver 7.55(7.55)S4CORE 1052025
2021SAP S/4 HANA 2021NetWeaver 7.56(7.56)S4CORE 1062026
2022SAP S/4 HANA 2022NetWeaver 7.57(7.57)S4CORE 1072027
http://saphanadb.com/?p=2941 – Know your version. It helps

Check this article: https://answers.sap.com/questions/707755/how-can-i-see-if-my-sap-s4-is-a-1709-or-a-1809-rel.html

The problem I faced in recent S/4 version 2022 this does not work anymore. And as in the article someone said “This screen does not appear any more in 1909 release…

More info how to restrict info in the System / Status in OSS Note: 2658772 – System -> Status: Restriction of the available information

The solution is to view the versions of SAP / HANA / ABAP using Function Module: OCS_UI_DISPLAY_PATCH_LEVEL in SE37. Once you know the S4CORE version you can check above what exactly is you HANA release.


A collection of good articles about the ERP to S4 conversion


SAP S/4HANA System Conversion – Custom code adaptation process (by Olga Dolinskaja)

https://blogs.sap.com/2017/02/15/sap-s4hana-system-conversion-custom-code-adaptation-process/


Check your customer specific ABAP code via ABAP Test Cockpit (ATC) for compatibility with SAP S/4HANA as described in SAP note 2190420.

See also OSS Note 2241080 – SAP S/4HANA: Content for checking customer specific code.