Skip to Content

Why Elements are not showing on Script (SAP Cloud Application Studio - 1705)

Hi There.

I have created an extended element as bellow

import AP.Common.GDT;
import AP.CRM.Global;

[Extension] businessobject AP.CRM.Global:CustomerQuote {
        // You must activate this business object before you can access the extension fields
        // or messages in script files, forms, and screens.
   	    node Item {
		[Label("Long Description")] 
		element ZLongDesc : LANGUAGEINDEPENDENT_EXTENDED_Text;
   	         		
            node ItemEntitledProduct {
      	    } 
        } 
       		node ServiceReferenceObject {
   	    } 
}

All works find and Activates without any issue. However this element is not showing under the script file (not even the standard ones).

Under Item.node Event-AfterModify.absl no element is available to code

import ABSL;

this.ZLongDesc = "-- Winter is Coming --";
var b = this.ID;

what am I missing ?

I can Activate the Extension but not with the event.
:(

Than you all in advance.

elementissue.jpg (20.7 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Jul 14, 2017 at 04:33 PM

    Hi,

    Please verify if "Mass" check box is unmarked while you generate script files.

    Or else, Please use following code to access ID.

    this.GetFirst().ID.content

    Thanks

    Saurabh

    Add comment
    10|10000 characters needed characters exceeded

    • Hi,

      Yes, You text will be saved into the element but to store the value for each element then you have to use FOREACH to access/update all the elements of BO collection.

      Coming to your question about making this field available into the XML, Please create a "Process Extension Scenario" and choose the specific one and then field shoul be available in the XML.

      Thanks

      Saurabh