Stock change web service

SOLVED

I am trying to use the SCS object as a web service to do a stock status change.  Has anybody had any luck with this?  It accepts the XML with no errors, but it doesn't do the updates.  I am trying to move stock from a status of "Q" to "A".

Parents Reply
  • 0 in reply to Diego Rodrigues

    I copied the standard SCS import template, and named it YSCS.  Them I added PCUSTUCOE to the STOJOU record on the import, as described above.  Then I manually created a stock change, exported it, removed the VCRNUM, and imported it.  I am getting the error below.  I'm not sure why I'm not authorized to status A when I just manually entered one with status A.

Children
  • 0 in reply to Denise Hartman

    I am not sure about the status error but I get that same error when I try to import values that are the same as currently is on sage (no changes) - try changing the destination location of the export file, then try importing again.

  • 0 in reply to Denise Hartman

    Denise, I assume you have 4 lines on the stock change? Are they just LOT managed or LOT and LOC managed? The message, "Unauthorized stock status", is generated during SAIMSK load of the stock working mask STOCHG from the STOJOU record. The error is generated in the stock library, it validates the input status against the stock management rules for the product. Normally the global variable GSCSAUZSST is loaded with the values from the TABSTORUL table, but its possible that its not on the import, so each line is failing, and it cannot complete the matching stock load.