Creating a Production Order from a Sales Order and Posting

imclever1205imclever1205 Member Posts: 94
Hello Guys,

I need a little advice from experts.Actually I am doing a process ,i.e,creating a production order from a Sales Order from a Location Code e.g Test 1 and Quantity 20.

The Production Order was created successfully ,the problem is when I go to the Output Journal,I want to split the the Production order No. so that I can distribute quantity to 2 different location code instead of one.(when this is done directly from the Production Oder directly it works.)But in this scenario at the time of Posting I get an error saying about the location code.

I investigated and found that there are 2 validation in two codeunits,
The first Codeunit is Prod.Order Line-Reserve,where the code is NewItemJnlLine.TestField("Location Code","OldProdOrderLine.Location Code");

And the 2nd Codeunit is ItemJnl.Line-Reserve
Oldresventry.TESTFIELD("Location Code",ItemJnline.Location Code);

On a Test database ,I commented these 2 codes and the posting was successful.

My questions are why the posting is not allowed ?
If I comment these standard code are there major implications?
Any suggestion how I could resolve this problem?


Thanks for paying attention.

Comments

Sign In or Register to comment.