Anonymous User
  Tuesday, 08 October 2024
  0 Replies
  348 Visits
0
Votes
Undo
  Subscribe

Requirement:During internal transfer posting of a Full HU (/SCWM/ADHU) or a Product transfer( /SCWM/ADPROD) using Fiori or RF transaction, there shall be a capability of switching the destination stock type from its source one. If source HU has stock type has F2, the destination stock type of HU should be Q4 or B6. This is primarily used in industry where HU or partial HU stock will undergo Tempering or Thawing process( A kind of Quarantine for specific Hour),a process of improving the state or characteristics  of the product. After certain hours when tempering time is over, the Stock type should be automatically changed from QQ to FF in the same storage type via background job reading HU custom field.

Problem Addressed/ Standard Scenario: There is no standard functionality available in SAP which allows to flip the destination HU stock type on the fly when it is internally moved from one storage type A to destination Storage type B. One way is to hard code the 'Non Location Independent Stock Type'' QQ or BB in the destination storage type. However, the major pitfall is the storage type will never allow the posting change from QQ or BB to FF in Standard.

SolutionThis blog will showcase a solution how to flip the stock type even hard coding the the 'Non Location Independent Stock Type'' QQ or BB to F2 in config .Also, there is no Badi available in EWM landscape which allows to change destination stock type at Warehouse task level. In the past there was BADI /SCWM/EX_WHO_DSTGRP which allowed to change everything on WT level, this door is now closed unfortunately. 

The above issue is raised in customer connection as well.

Improvement Request Details - Customer Influence (sap.com)

However, there is workaround of flipping the stock type using Badi /SCWM/EX_CORE_GM_CAT.  This BAdI Allows  to determine the destination stock type in the case of automatic posting change upon warehouse task confirmation.

The current logic of stock type change is based on certain condition when a HU is internally moved from Storage type A to Storage Type B( QQ Hard code), system will flip the stock type from FF to QQ which is all standard. However after quarantine hour is overthe posting change from Monitor, /SCWM/POST, using  program /SCWM/R_STOCK_TYPE_CHANGE or using FM /SCWM/STOCK_CHANGE  allows to change the stock type from QQ to FF using BAdI /SCWM/EX_CORE_GM_CAT. 

In Standard, once storage type stock category is hard coded, it never allows to switch from QQ to FF or BB. System will always give an error message stock type change is not allowed. Hence, the above BAdI helps to ve multiple stock type even storage type allows single Stock category.

PICX1.png

Storage type Config: The storage type has stock category as 'QQ'. Here QQ stock category is without QM. Customer can also chose BB if HU needs some rest time before it is switched back to FF.

picx2.png

In nutshell, the solution revolves into 2 aspects.

  1. Movement of HU from X to Y storage type and posting change from FF to QQ via Storage type config
  2. Posting change of HU from QQ to FF, the destination stock type change upon WT confirmation along with BAdI /SCWM/EX_CORE_GM_CAT to skip hard coded configuration.

picx3.png

  1. Perform a internal Transfer of an HU

PICX4.png

The stock type changes to Q4 based on standard configuration.

Perform the stock type change from Q4 to F2 via Warehouse Monitor considering tempering time is over.

picx6.png 

Post BAdI implementation, system would allow to flip the stock type disregarding storage type configuration.

PICX5.png

Badi details:

picx3.png

To allow the scope of this BAdI only for tempering storage type, we have added an external switch so to influence the stock type change specific for tempering storage type . For other storage type, the logic will not influence and execute as per standard logic.

image (6).png

Below is the switch created which is public attribute and has been utilized externally to set 'X'.

image (4).png

Thanks for reading.

Thanks to authors Shailesh Mishra and Prem Swaroop Mund from SAP

Ayhan Akkaya set the post as Normal priority — 1 month ago
Ayhan Akkaya set the type of the post as  Development — 1 month ago
Ayhan Akkaya labelled the post as KT - Document — 1 month ago
There are no replies made for this post yet.

Bottom menu module

SAP is registered trademark of SAP AG.
EWMWIKI.COM is not affiliated to SAP AG or any of its subsidiaries.