пятница, 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.