SAP assignment object contains list from logical devices and their SAP addresses and Logical Device Name.
Properties
-
1. Logical Name
Logical name of the object.
-
2. SAP assignment list
List from logical devices and their SAP addresses and Logical Device Name.
Actions
-
1. Connect logical device
Connects a logical device to a SAP.
//Show all SAP Assignments. int pos, ret; gxSapItem *it; for (pos = 0; pos != object->sapAssignmentList.size; ++pos) { ret = arr_getByIndex(&object->sapAssignmentList, pos, (void**)&it); if (ret != 0) { return ret; } printf("%d %s", it->id, bb_toString(&it->name)); }
//Add new SAP Assignment. gxSapItem* it = (gxSapItem*)gxmalloc(sizeof(gxSapItem)); bb_init(&it->name); it->id = 1; bb_addString(&it->name, "Gurux"); arr_push(&object->sapAssignmentList, it);