Skip to Content

How to create Engineering Change Order in ABSL (SAP Business ByDesign)?

Hi,

I need to create BO ECO programmatically (in ABSL), but I did not find how to fill field Valid From.

There is my code which I am stuck on:

var engineeringchangeorderData : elementsof EngineeringChangeOrder;
engineeringchangeorderData.ID.content = newECO;
engineeringchangeorderData.TypeCode = "5"; // Single-Date Code
var engineeringchangeorder = EngineeringChangeOrder.Create ( engineeringchangeorderData );

var validityData : elementsof EngineeringChangeOrder.Validity;
validityData.StartDate = Library::Date.Create ( 2017, 8, 10 );

engineeringchangeorder.MainValidity.StartDate = Library::Date.Create ( 2017, 8, 10 );
 

There is some field StartDate (I believe that is it) in node Validity, but I cannot create the node (Validity) because Validity does not have method Create.

Any ideas?

Thank you.

000087.jpg (37.9 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    Aug 14, 2017 at 01:28 AM

    Hi Aleksei,

    I tested the code:

    var engineeringchangeorderData : elementsof EngineeringChangeOrder;
    engineeringchangeorderData.ID.content = newECO;
    engineeringchangeorderData.TypeCode = "5"; // Single-Date Code
    var engineeringchangeorder = EngineeringChangeOrder.Create ( engineeringchangeorderData );

    engineeringchangeorder.MainValidity.StartDate = Library::Date.Create ( 2017, 8, 10 );

    It is OK, it can create the record and the Valid From is filled.

    Best regards

    Benny

    Add comment
    10|10000 characters needed characters exceeded

  • Aug 14, 2017 at 07:59 AM

    Hi Bin,

    I checked your code and it works!

    Many thanks.

    Best regards,

    Aleksei

    Add comment
    10|10000 characters needed characters exceeded