Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

L_TO_CREATE_MULTIPLE with error "Specified alternative unit of measure is not defined"

tracyhang
Explorer
0 Kudos
334

I tried to run L_TO_CREATE_MULTIPLE, but there is system exception:

"Specified alternative unit of measure is not defined"

Please kindly guide what is wrong in it. Many thanks!

Note:I have filled with bellow parameters:

function.SetValue("I_LGNUM", "HV1");

function.SetValue("I_BWLVS", "999");

IRfcTable tTable = function.GetTable("T_LTAP_CREAT");

tTable.Append();

tTable.CurrentRow.SetValue("WERKS", "PL1"); //WERKS: Plant

tTable.CurrentRow.SetValue("LGORT", "SL01"); //LGORT: Storage Location

tTable.CurrentRow.SetValue("MATNR", "93-13063-00"); //MATNR: Material Number

tTable.CurrentRow.SetValue("ANFME", 1); //NISTM: Requested quantity

tTable.CurrentRow.SetValue("ALTME", "PC"); //ALTME: Unit of Measure

tTable.CurrentRow.SetValue("VLTYP", "N00"); //VLTYP: Source Storage Type

tTable.CurrentRow.SetValue("VLPLA", "N-033"); //VLPLA: Source Storage Bin

tTable.CurrentRow.SetValue("NLTYP", "N00"); //NLTYP: Destination Storage Type

tTable.CurrentRow.SetValue("NLPLA", "N-034"); //NLPLA: Destination Storage Bin

tTable.CurrentRow.SetValue("SQUIT", "X"); //SQUIT: Indicator: confirmation of a transfer order item

1 ACCEPTED SOLUTION

raymond_giuseppi
Active Contributor
285

Replace

tTable.CurrentRow.SetValue("ALTME", "PC"); //ALTME: Unit of Measure

with

tTable.CurrentRow.SetValue("ALTME", "ST"); //ALTME: Unit of Measure

Internal format (There is a conversion exit on unit of measure)

3 REPLIES 3

raymond_giuseppi
Active Contributor
286

Replace

tTable.CurrentRow.SetValue("ALTME", "PC"); //ALTME: Unit of Measure

with

tTable.CurrentRow.SetValue("ALTME", "ST"); //ALTME: Unit of Measure

Internal format (There is a conversion exit on unit of measure)

0 Kudos
285

Hello raymond.giuseppi

Thank you so much for your reply.

I tried again and it works now, great!

DominikTylczyn
Active Contributor
0 Kudos
285

A very similar question has already been asked and answered: Exception with L_TO_CONFIRM for change data