Function Returns an object given the attribute name
Example s10objectbyname( "kunnr" ).
Format data:
  myattrname type string,
  myobj type /s10/any.

  s10objectbyname(
    exporting
      attrname = myattrname
    importing
      obj = myobj ).
Parameters
Name Type Description
attrname string
Attribute name
obj /s10/any
Object
Description s10objectbyname() first calls s10build() to update the attribute value by a build method if necessary.

If the attribute is of type object reference, it checks if the attribute value is an empty object reference and then automatically creates an object. The attribute value is returned.

If the attribute is not an object reference, the result of s10link()  is returned.

If the attribute name is invalid, an empty reference is returned.
Components S10 Framework