cancel
Showing results for 
Search instead for 
Did you mean: 

Bor object macro.............

Former Member
0 Kudos

Hello Experts,

      i came across code where  a bor object type is passed as import parameter to a class- method

with a object type obj_record. In below code its attributes have been called in . I could not get how or where it got instantiated.

swc_get_property io_zinstln:

                'BizType'          lv_biztype,

                'BizName'          lv_bizname.

       

*       Get the installation attributes

        swc_get_property io_zinstln:

              'CellNetFlag'      lv_cellnet,

              'RDDInstalledFlag' lv_rdd,

              'Property'         lv_owner,

              'InstallationType'  lv_anlart.

please provide some sample code where it got instantiated.

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member185167
Active Contributor
0 Kudos

Hello,

"i came across code where  a bor object type is passed as import parameter"

The BOR instance was passed as the import parameter.

regards

Rick

Former Member
0 Kudos

It might have been passed to the method through workflow binding. In this case, you don't need to worry about instantiating the object because the workflow runtime environment will do it for you.

If you just want to learn how to instantiate a BOR object, you do that by using macor "swc_create_object <p1> <p2> <p3>" where <p1> is the object reference/variable itself, <p2> is the SWO1 object type, and <p3> is the object key.

Take a look at include program <CNTN01> in SE38 for all BOR macros.