cancel
Showing results for 
Search instead for 
Did you mean: 

/scwm/adgi - Post GI - API or FM

Nikhil1
Explorer

Hello Experts,

In SAP EWM 2022 (on-premise system), I'm developing an custom Unmanaged RAP API to automate unplanned goods issue (GI) posting. Currently, manual posting involves entering the following details:

Tcode: /n/scwm/adgi

Selection screen values:

1) Warehouse Number

2) Product

3) Storage Bin

4) GI Process: Consumption

5) unchecked checkbox: Select Scrap Stock only

Execute and Select Physical stock and pressed Post GI. 

Messages appears: Warehouse task created. 

On Refreshing, entry Disappears. 

Question:

While creating Post GI, tried checking following FM Calls. None of these FM's got triggered. 

/SCWM/STOCK_CHANGE
/SCWM/GM_POST
/SCWM/TO_CREATE

Please help with FM or standard API which will help in automating Post GI Process in SAP EWM 2022 onprem. 

Note: 

I have already checked following standard documentation.

https://help.sap.com/docs/SAP_S4HANA_ON-PREMISE/9832125c23154a179bfa1784cdc9577a/d6f87c227f894ba1b2c...

https://api.sap.com/api/OP_WHSEPHYSICALSTOCKPRODUCTS_0001/overview?ReleaseInfo=2022%20FPS02

 

Regards,

Nikhil1

 

 

Accepted Solutions (0)

Answers (2)

Answers (2)

jadhav_abhishek
Discoverer
0 Kudos

Hello Nikhil,

movement posting from transaction /SCWM/ADGI is done using FM /SCWM/GM_UPDATE. You can check by setting up a breakpoint on this FM.

BR

Abhi.

RAF
Active Contributor
0 Kudos

Hi,

you can use class /SCWM/CL_RGI_SCRAP_SRVC with method scrap_handle for this.

With methods like get_physical_stock  you can select the stock.

 

Kind regards

Robert