Skip to Content
avatar image
Former Member

How to create a Dynamic codeList through ABSL script


Hi

I have created a code list and have added some values to it.I would like to know how to add data to the codeList dynamically from the ABSl script.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Sep 09, 2014 at 01:00 PM

    try like this, where ACTCOL is the name of your BCO

    var elemBCO : elementsof ACTCOL;

    elemBCO.ID.content = "10";

    var instance = ACTCOL.Create(elemBCO);

    var textinstance = instance.TEXT.Create();

    textinstance.ACTCOL.content = "test";

    Add comment
    10|10000 characters needed characters exceeded

    • Proceed with steps:

      1)

      Try to create an action that perform the ABSL, and bind this action to a custom button.

      2)

      Add a dropdown on the screen binded with the bco.

      3) click the button, save. Reopen the object and check if the new value is in place.

  • avatar image
    Former Member
    Sep 10, 2014 at 01:55 PM

    Hi

    I tried the steps mentioned by you.

    The values don't appear in the code List.Instead I get the following error:


    Add comment
    10|10000 characters needed characters exceeded

  • Sep 10, 2014 at 01:58 PM

    Uhmmmm ok, I think as for now it is not possible to modify a BCO from absl. Raise an incident to SAP.

    Add comment
    10|10000 characters needed characters exceeded