How do I reverse a material tracking transaction from a web-service?

Hi!

I have successfully managed to get a web-service to issue stock to a manufacturing order using the MTK transaction.

However, we have a use case where stock issued to a manufacturing order needs to be de-issued, and I can't see how to do this via a web-service.

The MTK transaction will not allow a negative value, so I can't "negative issue" as we did on our old system.

The manual way of doing this we are being told to use is the Material Return Plan transaction MRE, but I can't see how I can automate this via a webservice, since I you have to hit a search button and then select the appropriate line to enter the details on to.

We've also looked into deleting the material tracking record, but this isn't allowed, and you need to select a button on the individual line to modify it via another screen, which clearly isn't going to work.

Has anyone got a way of either de-issuing, or cancelling the original issue, that works via a web-service?

Thanks!

Screwtape.

  • 0

    how did you automate the MTK transaction? I am having some issues with automating this piece. 

  • 0 in reply to ChrisCC

    Hi ChrisCC! I created a transaction on object MTK which only has the Material Tracking flag set in the general tab (I'm only looking at issuing materials to the order), and in the materials tab, has neither Automatic Determination nor Force Detail Entry ticked. The latter is necessary or it sends you to another screen to select the stock which fails if you are in a web-service. Apart from that, I also amended the screen MTK3 such that the STA field "control" action was only on "Interactive", as I was getting an error message when using status A stock for some reason. (I'd have thought it was supposed to only use status A stock, but this wouldn't let me inject "A" in to the field using the web-service so I turned off the validation).