Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 | 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x | const {cx_root} = await import("./cx_root.clas.mjs");
// cl_document_bcs.clas.abap
class cl_document_bcs {
static STATIC_SUPER = undefined;
static INTERNAL_TYPE = 'CLAS';
static INTERNAL_NAME = 'CL_DOCUMENT_BCS';
static IMPLEMENTED_INTERFACES = ["IF_DOCUMENT_BCS"];
static ATTRIBUTES = {};
static METHODS = {"CREATE_DOCUMENT": {"visibility": "U", "parameters": {"RESULT": {"type": () => {return new abap.types.ABAPObject({qualifiedName: "CL_DOCUMENT_BCS", RTTIName: "\\CLASS=CL_DOCUMENT_BCS"});}, "is_optional": " ", "parm_kind": "R", "type_name": "ObjectReferenceType"}, "I_TYPE": {"type": () => {return new abap.types.Character();}, "is_optional": " ", "parm_kind": "I", "type_name": "CLikeType"}, "I_SUBJECT": {"type": () => {return new abap.types.Character();}, "is_optional": " ", "parm_kind": "I", "type_name": "CLikeType"}, "I_TEXT": {"type": () => {return new abap.types.Character(4);}, "is_optional": " ", "parm_kind": "I", "type_name": "AnyType"}, "I_HEX": {"type": () => {return new abap.types.Character(4);}, "is_optional": " ", "parm_kind": "I", "type_name": "AnyType"}, "I_LENGTH": {"type": () => {return new abap.types.Character();}, "is_optional": " ", "parm_kind": "I", "type_name": "CLikeType"}}},
"ADD_ATTACHMENT": {"visibility": "U", "parameters": {"I_ATTACHMENT_TYPE": {"type": () => {return new abap.types.Character();}, "is_optional": " ", "parm_kind": "I", "type_name": "CLikeType"}, "I_ATTACHMENT_SUBJECT": {"type": () => {return new abap.types.Character();}, "is_optional": " ", "parm_kind": "I", "type_name": "CLikeType"}, "I_ATTACHMENT_SIZE": {"type": () => {return new abap.types.Character(4);}, "is_optional": " ", "parm_kind": "I", "type_name": "AnyType"}, "I_ATT_CONTENT_TEXT": {"type": () => {return new abap.types.Character(4);}, "is_optional": " ", "parm_kind": "I", "type_name": "AnyType"}, "I_ATT_CONTENT_HEX": {"type": () => {return new abap.types.Character(4);}, "is_optional": " ", "parm_kind": "I", "type_name": "AnyType"}, "I_ATTACHMENT_HEADER": {"type": () => {return abap.types.TableFactory.construct(new abap.types.Structure({
"line": new abap.types.Character(255, {"qualifiedName":"SO_TEXT255","ddicName":"SO_TEXT255","description":"SO_TEXT255"})}, "SOLI", "SOLI", {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"isUnique":false,"type":"STANDARD","keyFields":[],"name":"primary_key"},"secondary":[]}, "SOLI_TAB");}, "is_optional": " ", "parm_kind": "I", "type_name": "TableType"}}},
"XSTRING_TO_SOLIX": {"visibility": "U", "parameters": {"RT_SOLIX": {"type": () => {return abap.types.TableFactory.construct(new abap.types.Structure({
"line": new abap.types.Hex({length: 255, qualifiedName: "SO_RAW255"})}, "SOLIX", "SOLIX", {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"isUnique":false,"type":"STANDARD","keyFields":[],"name":"primary_key"},"secondary":[]}, "SOLIX_TAB");}, "is_optional": " ", "parm_kind": "R", "type_name": "TableType"}, "IP_XSTRING": {"type": () => {return new abap.types.XString({qualifiedName: "XSTRING"});}, "is_optional": " ", "parm_kind": "I", "type_name": "XStringType"}}},
"SET_IMPORTANCE": {"visibility": "U", "parameters": {"I_IMPORTANCE": {"type": () => {return new abap.types.Character(4);}, "is_optional": " ", "parm_kind": "I", "type_name": "AnyType"}}},
"SET_SENSITIVITY": {"visibility": "U", "parameters": {"I_SENSITIVITY": {"type": () => {return new abap.types.Character(4);}, "is_optional": " ", "parm_kind": "I", "type_name": "AnyType"}}},
"ADD_DOCUMENT_AS_ATTACHMENT": {"visibility": "U", "parameters": {"IM_DOCUMENT": {"type": () => {return new abap.types.ABAPObject({qualifiedName: "IF_DOCUMENT_BCS", RTTIName: "\\INTERFACE=IF_DOCUMENT_BCS"});}, "is_optional": " ", "parm_kind": "I", "type_name": "ObjectReferenceType"}}}};
constructor() {
this.me = new abap.types.ABAPObject();
this.me.set(this);
this.INTERNAL_ID = abap.internalIdCounter++;
this.FRIENDS_ACCESS_INSTANCE = {
"add_attachment": this.add_attachment.bind(this),
"set_importance": this.set_importance.bind(this),
"set_sensitivity": this.set_sensitivity.bind(this),
"add_document_as_attachment": this.add_document_as_attachment.bind(this),
};
}
async constructor_(INPUT) {
if (super.constructor_) { await super.constructor_(INPUT); }
return this;
}
async add_document_as_attachment(INPUT) {
let im_document = INPUT?.im_document;
if (im_document?.getQualifiedName === undefined || im_document.getQualifiedName() !== "IF_DOCUMENT_BCS") { im_document = undefined; }
if (im_document === undefined) { im_document = new abap.types.ABAPObject({qualifiedName: "IF_DOCUMENT_BCS", RTTIName: "\\INTERFACE=IF_DOCUMENT_BCS"}).set(INPUT.im_document); }
abap.statements.assert(abap.compare.eq(abap.IntegerFactory.get(1), abap.CharacterFactory.get(4, 'todo')));
}
async set_sensitivity(INPUT) {
let i_sensitivity = INPUT?.i_sensitivity;
abap.statements.assert(abap.compare.eq(abap.IntegerFactory.get(1), abap.CharacterFactory.get(4, 'todo')));
}
async set_importance(INPUT) {
let i_importance = INPUT?.i_importance;
abap.statements.assert(abap.compare.eq(abap.IntegerFactory.get(1), abap.CharacterFactory.get(4, 'todo')));
}
async xstring_to_solix(INPUT) {
return cl_document_bcs.xstring_to_solix(INPUT);
}
static async xstring_to_solix(INPUT) {
let rt_solix = abap.types.TableFactory.construct(new abap.types.Structure({
"line": new abap.types.Hex({length: 255, qualifiedName: "SO_RAW255"})}, "SOLIX", "SOLIX", {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"isUnique":false,"type":"STANDARD","keyFields":[],"name":"primary_key"},"secondary":[]}, "SOLIX_TAB");
let ip_xstring = INPUT?.ip_xstring;
if (ip_xstring?.getQualifiedName === undefined || ip_xstring.getQualifiedName() !== "XSTRING") { ip_xstring = undefined; }
if (ip_xstring === undefined) { ip_xstring = new abap.types.XString({qualifiedName: "XSTRING"}).set(INPUT.ip_xstring); }
abap.statements.assert(abap.compare.eq(abap.IntegerFactory.get(1), abap.CharacterFactory.get(4, 'todo')));
return rt_solix;
}
async create_document(INPUT) {
return cl_document_bcs.create_document(INPUT);
}
static async create_document(INPUT) {
let result = new abap.types.ABAPObject({qualifiedName: "CL_DOCUMENT_BCS", RTTIName: "\\CLASS=CL_DOCUMENT_BCS"});
let i_type = INPUT?.i_type;
let i_subject = INPUT?.i_subject;
let i_text = INPUT?.i_text || new abap.types.Character(4);
let i_hex = INPUT?.i_hex || new abap.types.Character(4);
let i_length = INPUT?.i_length || new abap.types.Character();
abap.statements.assert(abap.compare.eq(abap.IntegerFactory.get(1), abap.CharacterFactory.get(4, 'todo')));
return result;
}
async add_attachment(INPUT) {
let i_attachment_type = INPUT?.i_attachment_type;
let i_attachment_subject = INPUT?.i_attachment_subject;
let i_attachment_size = INPUT?.i_attachment_size || new abap.types.Character(4);
let i_att_content_text = INPUT?.i_att_content_text || new abap.types.Character(4);
let i_att_content_hex = INPUT?.i_att_content_hex || new abap.types.Character(4);
let i_attachment_header = abap.types.TableFactory.construct(new abap.types.Structure({
"line": new abap.types.Character(255, {"qualifiedName":"SO_TEXT255","ddicName":"SO_TEXT255","description":"SO_TEXT255"})}, "SOLI", "SOLI", {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"isUnique":false,"type":"STANDARD","keyFields":[],"name":"primary_key"},"secondary":[]}, "SOLI_TAB");
if (INPUT && INPUT.i_attachment_header) {i_attachment_header.set(INPUT.i_attachment_header);}
abap.statements.assert(abap.compare.eq(abap.IntegerFactory.get(1), abap.CharacterFactory.get(4, 'todo')));
}
}
abap.Classes['CL_DOCUMENT_BCS'] = cl_document_bcs;
export {cl_document_bcs}; |