S/4HANA Commodity Code

https://blogs.sap.com/2018/10/29/s4hana-commodity-code/

 

What is the commodity code and how is it defined in the material master data?

 

One of the innovations that comes with S/4HANA is the change in commodity codes.

Sap Note:

 

Thread : https://answers.sap.com/questions/651551/where-is-the-configuration-of-commodity-codes-to-s.html?childToView=664237#answer-664237

What is Commodity Code?

If you import or export goods from within the European Union (EU) or outside it, you should understand the importance of commodity codes.

When trading internationally, you will need to find the correct commodity code for your goods so you can fill out customs paperwork accurately. The code is an eight-digit number for exports outside the EU or goods moving within the EU, but is a ten-digit number for imports from outside the EU. Once you know the commodity code, you can look up other important information such as duty rates and any import or export restrictions.

Classifying goods and how to do it

When trading internationally, you need to choose the right commodity code for your goods. The following describes how to define the classification codes.

Classifying your goods correctly will help ensure that you:

  • Pay the right duty and VAT
  • Know whether an import or export licence is needed

You are legally responsible for the correct classification of your goods, even if you use an agent. Incorrect classification can lead to your goods being delayed or seized and you will have to pay any duty and tax owed, plus possible financial penalties.

 

Identification of commodity codes to the system

The SAP GUI has an operation code / SAPSLL / CLSNR_01 where you can define commodity codes.

When you continue by entering the Number Scheme which you defined in the SAP GUI System, a screen appears as follows

You can define or delete the Commodity Codes on this screen.

A new commodity code is defined as follows.

The defined Commodity Codes be seen in the following tables as stated in SAP Note.

”Even though this information is not saved in the obsolete tables (MARC, T604, T604T) anymore, it still visible there anyway”

These datas are stored in  /SAPSLL/CLSNR (Trade Classification Number) tables. You can find the description of commodity codes in  /SAPSLL/CLSNRT (description of commodity codes) tables.

There are 2 methods to use the Commodity Code generated at the SAP GUI. The first one is the Migration Cockpit and the second one is / SAPSLL / CL_PRCLS_API. We will examine these two methods

  1. The first one is the transaction code of LTMC (Migration Cockpit).

In the Name field, enter the corresponding description and press the Create button.

There are commodity codes from the Migration Objects field. To start the process, the document is selected and opened.

The corresponding template is downloaded from the next screen.

Before making changes, I want to show where the change is made from the Material main data screen. The commodity code in the material master data is not open for data entry.

Relevant fields are entered in the Downloaded Material Commodity Code template.

On the Migration Cockpit screen, You can save the template with the “Upload” button.

After loading, we activate the process by “Activate” button and start the transfer.

4 Steps process. After uploading the information as in the screenshot below, the next step is called “Close”

When the data in Excell is loaded on the system, information is given about whether there is a missing, incorrect data entry in the description field. If there isnt any the incorrect data entry, the process is going on.

After you select all to match the values, the Confirm Mapping Values button is pressed. Or it can be done in manuel matching by entering the values from the name field.

On the last step, you can finish the process by “Finish” button.

We’ll see that the Commodity Code field is full when we go to check the material change to the main data screen

We entered the commodity code with the migration cockpit in this field which is closed to the data entry on the SAP GUI screen.

  1. The other method is that using /SAPSLL/CL_PRCLS_API. The related fields are entered by running Create_Classification

A constant value can be entered in the IV_STCTS, IV_DATAB, IV_DATBI fields.

The commodity code can be entered in the IV_CCNGN fields.  The material number can be entered in the IT_PRODUCTS fields.

Before the testing, The Commodity Code field in the material main data  screen as follows.

Enter the necessary parameters for changing and run the program.

 

The Commodity Code field in the material main data screen, as in the following screenshot, has changed.

As a result, it is seen that data can be entered into the commodity code field on the material main data screen using API and Migration Cockpit.

 

Hopefully, this blog will be helpful for everyone

Orhan Akman

STM32F103是意法半导体(STMicroelectronics)推出的一款基于ARM Cortex-M3内核的微控制器,广泛应用于工业控制、物联网设备等领域。本资料包主要提供了STM32F103在实现RS485通信及Modbus RTU协议的主机和从机模式下的源代码实例,帮助开发者快速理解和应用这一通讯技术。 RS485是一种物理层通信标准,用于构建多点数据通信网络,具有传输距离远、抗干扰能力强的特点。它采用差分信号传输方式,可以实现双向通信,适合于长距离的工业环境。在RS485网络中,通常有一个主机(Master)和一个或多个从机(Slave),主机负责发起通信,从机响应主机的请求。 Modbus RTU(Remote Terminal Unit)是一种常用的过程控制工业通信协议,基于ASCII或RTU(远程终端单元)报文格式,常用于PLC(可编程逻辑控制器)和嵌入式系统之间的通信。Modbus RTU使用串行通信接口,如RS485,以减少布线成本和提高通信效率。 在STM32F103上实现RS485 Modbus RTU通信,首先需要配置GPIO口作为RS485的硬件接口,包括数据线(一般为RX和TX)和方向控制线(DE和RE)。DE线用于控制发送数据时的数据线方向,RE线则用于接收数据时的方向。这些设置可以通过STM32的HAL库或LL库进行编程。 接着,你需要编写Modbus RTU协议栈的实现,这包括解析和构造Modbus报文、错误检测与处理、超时管理等。Modbus RTU报文由功能码、地址、数据和CRC校验码组成。主机向从机发送请求报文,从机会根据接收到的功能码执行相应的操作,并返回响应报文。 在主机端,你需要实现发送请求和接收响应的函数,以及解析从机返回的数据。在从机端,你需要监听串口,解析接收到的请求,执行相应的功能并构造响应报文。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值