cancel
Showing results for 
Search instead for 
Did you mean: 

Stock transfer for stock type using /scwm/adgi

SorinMoldovan
Explorer
0 Kudos
917

Hello colleagues,
I`m facing a situation and I couldn`t find anything related to it. This is my first question ever assigned in here.
We are using EWM decentralized with ECC.
Current situation: 
We do from time to time manual goods issue posting to an ECC storage location using /scwm/adgi
Issue: 
Users are able to select and post stocks with stock type S2.

SorinMoldovan_0-1717587354413.png

How can I limit posting goods issue using tcode /scwm/adgi to ECC storage locations? 
For stock type Q2 if we do goods issue posting we receive a queue entry.

Best regards,
Sorin



Accepted Solutions (0)

Answers (1)

Answers (1)

DominikTylczyn
SAP Champion
SAP Champion

Hello @SorinMoldovan 

/SCWM/ADGI is implemented with the /SCWM/RGI_SCRAP report. Stock type is SO_CAT select option. The selection parameters are verified with the CHECK_SELECTION form routine.

You could add an implicit enhancement at the end of the routine, validate SO_CAT and throw an error message if a user selects a stock type, they are not supposed to touch.

Alternatively you can implement the /SCWM/EX_CORE_GM_STOCK BAdI enhancement to validate stock postings. 

I think the latter approach is better, as it is less invasive.

Best regards

Dominik Tylczynski

SorinMoldovan
Explorer
0 Kudos
Thank you Dominik.