пятница, 27 ноября 2020 г.

How to provide custom number range for Serial Numbers

In standard way, when you generate serial number (for example in purchase order), system gives you very simple SNs, like 1, 2, 3 etc.
To have your own number range, proceed the next steps.

In t-code OIET (or SPRO: Plant Maintenance and Customer Service -- Master Data in Plant Maintenance and Customer Service -- Technical Objects -- Equipment -- Equipment Categories -- Maintain Equiment Category) create new equipment category (X for ex., copy from S)


In t-code OIEN (or SPRO: Plant Maintenance and Customer Service -- Master Data in Plant Maintenance and Customer Service -- Technical Objects -- Equipment -- Equipment Categories -- Define Number Ranges) define group and NR for group for object EQUIP_NR:


Assign group with NR to equipment category


In t-code OIS2 - create new serial number profile with equipment category X (SPRO: Plant Maintenance and Customer Service -- Master Data in Plant Maintenance and Customer Service -- Technical Objects -- Serial Number Management -- Define Serial Number Profiles) :



Inside profile, define Serializing procedures, where you will be generate SN, with Equipment Requirement = 02 always with equipment:


Create new material master with SN profile X001, Serialization Level = 1 Keep equipment number and serial number synchronous:


So, now in Purchase Order you can generate Serial Number from defined number range:


After PO save Serial Numbers keep in table EQUI.

If you do not see the button Create Serial Number Automatically, just check if Indicator: Serial Number Existence Requirement is OFF (OIS2 t-code):


If you create Purchase Order through  BAPI_PO_CREATE1 just populate SERIALNO field (SERIALNUMBER structure) by SN from external number range:


PO will be created with this Serial Number:


In case you populate UII in BAPI, system requires populate the batch and raises an error:

Serial number: maintain batch for batch management requirement
Message no. MEEXTFU021

Clean up UII and save PO.

Some additional info about the matter is here

http://saphelp.ucc.ovgu.de/NW750/EN/78/0eb753128eb44ce10000000a174cb4/frameset.htm







четверг, 26 ноября 2020 г.

How to activate Fiori service


If you've added some Fiori launcher role, some app services might not be activated.

For example, in Sales Orders chapter I have Sales Order Fulfillment Resolve Issues app


where I want to select follow-up activity:


And have an error with key-words App could not be opened either due to an incorrect SAP Fiori launchpad configuration or a missing role assignment and Failed to resolve navigation target:


After that, go to transaction /IWFND/ERROR_LOG - SAP Gateway Error Log  where you can see the service name (CB_SALES_ORDER_SRV)


Having the name of service, go to transaction /IWFND/MAINT_SERVICE where pass the procedure below: 

Add service


Put service name in search field of Technical Service Name, find the service, add them:


Confirm Package assignment:


After service activation, instead of error we see the beautiful screen of sales order overview app:



понедельник, 2 ноября 2020 г.

S4 Migration Cockpit - download stock (Material inventory balance)

 T-code LTMC. To proceed the stock create new migration project


Select migration object Material inventory balance

Download template


Populate those file


Upload it



Activate it



And transfer



Looks it's more-or-less Ok


On the mapping screen select all lines and confirm them


Go Next


Simulation step is Ok

On the next step there is some error

Missing settings of migration key date for company code RU01
Message no. CNV_DMC_SIN484


A couple notes about that

2754615 - SAP S/4HANA Migration Cockpit: Information about Fix Posting Date
2768330 - Missing settings for migration key date for company code

It says that you need to setup company code for migration in transaction FINS_MIG_CTRL_1


Repeat simulation again - looks good


Push next on the Export stage




Process status if Finished


Let's check the result in MB52





As material with batch management - the batch was created wit the same valuation type





The file you can find here - XML file from example.


You can upload special stock and serial numbers as well, here in template required data added (Material Document Item - tab, K-vendor consignment, Vendor themselves, Serial Numbers)




The Serial Numbers should be created in the system (IQ01).
In case of SN - materials, material qty = 1 per line.














вторник, 13 октября 2020 г.

First touch of S/4 HANA Migration Cockpit

Before all, please keep in mind, that data migration cockpit does not support internal number ranges, only external number range can be used (S4 cloud versions - does have Migration Object Product with internal number range):

2565362 - SAP S/4HANA Migration cockpit: Material changes from internal to external numbering


To run Migration Cockpit, hit the transaction LTMC, system will jump to browser

In case you see 403 Forbidden – don't be scared, just activate web-service dmc_wda (SICF).

Also check that others are active dmc_wda_gaf

/sap/bc/webdynpro/sap/DMC_WDA – Migrate Your Data
/sap/bc/webdynpro/sap/DMC_WDA_GAF – Guided Activity for Migration Object

The full path looks like that (888 - client)

/sap/bc/webdynpro/sap/dmc_wda?WDCONFIGURATIONID=DMC_WDA_APP&sap-client=888&sap-language=EN#

Create new project


Give your project a name


Select migration Object


Jump over the warning

Download template (*.xml file, edit with Excel)

Populate the file (different tabs are possible)


Upload the file populated earlier



Select line with uploaded file and hit Activate and Start Transfer



Jump over the message

You will see the beautiful progress bar



There are some errors:



So, the Error is
Field Material views on sheet Basic Data is not provided  Message no. CNV_DMC_SIN394

Some information about the matter here:

2554475 - SAP S/4HANA Migration Cockpit: Missing material views (e.g. Basic data) or additional views created you does not want to have

Possible material views (maintenance status)
A = Work Scheduling;
B = Accounting;
D = MRP;
E = Purchasing;
F = PRT;
G = Costing;
K = Basic;
L = Storage;
P = Forecast;
Q = QM;
S = Warehouse management;
V = Sales.

The best way to define material maintenance status - is to create material master manually and check field MARA-VPSTA


The normal result at this stage looks like below


On the next step you can repeat the procedure for all red coloured lines one-by-one:

Hit active link in the Name column, for ex. Mapping of Purchasing Group, on the next screen
1 - select line 2 - hit tick 3 - Save


Another option - select all lines and hit Confirm Mapping Values. Every new mapping appears one time, so if you will be upload same fields again no bothering.


Hit Next, Data Simulation progress bar will appear:


Success story




The file from the article is here.
Cheers!