Category Archives: How to Fix

On the usage of ‘ref.stor.type search’ field in SAP WM movement type

SAP WM Movement Type   On the usage of ‘ref.stor.type search’ field in

The author is responsible for the implementation of mm and WM in the current project. According to the current situation of the storage area of the customer warehouse, I have enabled the following storage type in the design of storage type at the WM level:

001: high level storage area of raw materials

005: fixed shelf storage area for raw materials

PBL: isolation area beside the production line (production red area)

Qbl: quality isolation area (quality red area)

As well as self-made semi-finished products and finished products storage area.

The storage type indicator is enabled when the raw materials are delivered,   There are different indicators for different types of materials, so that when these materials are put on the shelf or removed from the shelf, the system can automatically suggest that they be put on the shelf or removed from the shelf in the specified storage area.

For example, when some raw materials are removed from shelves for production preparation, they are first delivered from 001 and then delivered from 005;

When some raw materials are removed from shelves for production preparation, they are first discharged from 005 and then from 001. According to these requirements, I have completed the relevant configuration in storage type search.

When business departments need to isolate materials for some reason, they need to move the materials to PBL and qbl. If judged by the quality department, these isolated materials need to be scrapped. At this time of shipment, when the business does not want to issue from to in this scrap scenario, the system recommends to issue from 001 or 005 by default, but requires the system to automatically recommend to issue from PBL and qbl.

To achieve this requirement, you can enable ‘ref.stor.type search’ in WM mobile type settings. That is to say, for the same material, different storage types are recommended for different business scenarios

Then, in the configuration of storage type search, add the following configuration items:

Of course, the premise is that when you search for storage type, you should consider  ‘ Ref.storage type search ‘, as shown in the following figure:

This completes mb1a + 555 at the front desk   After the mobile type scrap issue, when lt06 is executed to create to, the interface will automatically suggest that the business be transferred from PBL & amp; In qbl:

In other scenarios, for example, when the goods are delivered to the cost center, the system will issue the goods from 001/005 and other storage areas according to the normal delivery strategy

2016-12-01   Written in Wuhan Economic Development Zone

AttributeError: ‘_io.TextIOWrapper‘ object has no attribute ‘softspace‘

Write the title of the table of contents here

1. Problem presentation 2. Solutions

1. Problem presentation

Problem display:

when I was learning the file module, I encountered such a situation. How can I solve this situation?

2. Solutions

This involves a version problem. As we all know, Python is mainly divided into Python 2 and python 3. When we check the python official website, we can see that
(Python website address: www.python. ORG)

it can be seen that in versions above 3.0, the softspace attribute may have been removed, so use the command line py – 2 (if you do not install python2, you need to install python2 first, python2 and python3 can be installed at the same time, and use py – 2 and py – 3 to switch under Windows Environment) to switch to python2.7, Open a file to view the softspace property, and the command line executes normally.

The problem of error in adaptation of Vue using vant mobile terminal rem

Using vant to adapt REM to
any gate vant

If necessary  rem   It is recommended to use the following two tools for adaptation

postcss-pxtorem   Is a post CSS plug-in, used to convert PX units into REM units lib flexible   Used to set the REM reference value

npm install postcss-pxtorem --save-dev
npm i -S amfe-flexible

  Create a new postcss. Config. JS
in the root directory  

module.exports = {
    plugins: {
      'autoprefixer': {
        browsers: ['Android >= 4.0', 'iOS >= 8']
      },
      'postcss-pxtorem': {
        rootValue: 37.5,
        propList: ['*']
      }
    }
  }

Introduce main.js again

import 'amfe-flexible'

NPM run serve startup found an error

  Check that the package.json version is too high
“postcss pxtorem”:  “^ 6.0.0”,

Degraded version

npm i [email protected]

e.g. run serve 21551; 36816;

 

Path cannot be used with params in this. $router. Push() method, otherwise params will be invalid

Path in this. $router. Push() method cannot be used with params, otherwise params will be invalid!!

This. $router.push can pass parameters in two ways:

The first one is the first one

Pass parameters -- this.$router.push({path: ' route ', query: {key: value}})

Parameter fetch -- this.$route.query.key

With this approach, the passed parameters are spliced after the route and appear in the address bar.

Second:

Passing parameters -- this.$router.push({name: ' name of route ', params: {key: value}})

Parameters take values -- this.$route.params.key

With this approach, the parameters are not spliced behind the route and are not visible on the address bar...

Dynamic routing also passes params, so in this. $router. Push() method, path cannot be used with params, otherwise params will be invalid. You need name to specify the page.

[access through the name attribute of routing configuration]

[Solved] Scala signature package has wrong version expected: 5.0 found: 5.2 in package.class

XXX.jar broken
scala signature package has wrong version expected: 5.0 found: 5.2 in package.class

Solution:
add the dependency of the corresponding SDK in pom.xml, and the version must correspond to
if it is Scala, you must find the library of the corresponding version of scala SDK
if it says that Scala 2.12 and 2.13 are compatible, it’s better to choose only 2.12

[Solved] Mac ES Startup Error: Exception in thread “main“ java.nio.file.NotDirectoryException

Exception in thread “main” java.nio.file.NotDirectoryException: /Users/lin/software/elasticsearch/elasticsearch-7.13.2/plugins/.DS_Store
at java.base/sun.nio.fs.UnixFileSystemProvider.newDirectoryStream(UnixFileSystemProvider.java:418)
at java.base/java.nio.file.Files.newDirectoryStream(Files.java:476)
at java.base/java.nio.file.Files.list(Files.java:3765)
at org.elasticsearch.tools.launchers.BootstrapJvmOptions.getPluginInfo(BootstrapJvmOptions.java:49)
at org.elasticsearch.tools.launchers.BootstrapJvmOptions.bootstrapJvmOptions(BootstrapJvmOptions.java:34)
at org.elasticsearch.tools.launchers.JvmOptionsParser.jvmOptions(JvmOptionsParser.java:137)
at org.elasticsearch.tools.launchers.JvmOptionsParser.main(JvmOptionsParser.java:86)
[process completed]

There is no such file in the plugins folder

Use ls -a to see the .DS_Store file, delete it directly, and then start ES.

After introducing security, the service cannot be registered with Eureka

When building the Eureka service of springcloud, security was introduced for security. However, it was found that the Eureka client could not register. The error log is as follows:

DiscoveryClient_ EUREKA-CLIENT/10.168.211.109:8001 – was unable to send heartbeat!

Later, I inquired about the Security version of the project (spring boot starter security in version 2.3.2.release introduces the security configuration of 5.3. X). If the version is too high, it will be changed by default   When CSRF (Cross Site Request Forgery) is turned on, you need to turn it off. The steps are as follows:

Add the following code into the startup file:


    @EnableWebSecurity
    static class WebSecurityConfig extends WebSecurityConfigurerAdapter {
        @Override
        protected void configure(HttpSecurity http) throws Exception {
            http.csrf().disable(); // Close csrf
            super.configure(http);
        }
    }

The test is effective.

Stackexchange.redis data timeout [How to Solve]

StackExchange.Redis Error when loading large batch of hash data.
StackExchange.Redis.RedisTimeoutException: Timeout performing HGET Cache.IncomeShare.AccountData@Cache.IncomeShare.AccountData.InnerIncomeDistributionItem, inst: 1, mgr: ExecuteSelect, err: never, queue: 2, qu: 0, qs: 2, qc: 0, wr: 0, wq: 0, in: 0, ar: 0, clientName: xx, serverEndpoint: 192.0.x.x:6379, keyHashSlot: 10857, IOCP: (Busy=0,Free=1000,Min=6,Max=1000), WORKER: (Busy=0,Free=32767,Min=6,Max=32767) (Please take a look at this article for some common client-side issues that can cause。 timeouts: http://stackexchange.github.io/StackExchange.Redis/Timeouts)
According to the information to see IOCP and WORKER Busy are 0, will also report a timeout problem, is expected to be a StackExchange.Redis bug, the solution can be changed to use FreeRedis.

MacOS: How to Fix Intellij-IDEA main menu disappears Bug

I found a lot of blogs and tried them, but they didn’t work. I wasted a lot of time, such as preference  & gt;   keymap   & gt; Main menu has many methods. Finally, we found a solution on stackoverflow

idea-community version 2021.1

macOS 10.14

Follow these steps:

Step1: shortcut key shift + shift (or CMD + Shift + a)

Step 2: enter vmoptions to see the idea.vmoptions file

Step3: edit file, add at the end:

-Dapple.laf.useScreenMenuBar=false

Step 4: restart idea

The usage of typing.union in Python

1. Python can pass two kinds of parameters and return multiple values

Usually, a parameter and return value can only be of one type. In C/C + +, Java and golang, it is impossible to return two types, or pass parameters to use two types, but it is possible in Python.

def mytest(a:str or int)->str or int:
  return a*2

2. Using Uinon in Python

from typing import Union
def mytest(a:Union[str,int])->Union[str,int]:
  return a*2