Functionality The function module reads the definition of an object type from thebusiness object repository. The parameters WITH_VERBS, WITH_PARAMETERS, WITH_EXCEPTIONS,WITH_TEXTS, WITH_FORMATTED_DOCUMENTATION, andWITH_SAPSCRIPT_DOCUMENTATION can be used to determine which informationshould be read. It should be noted that WITH_PARAMETERS andWITH_EXCEPTIONS are only meaningful if the verbs are read as well, thatis if WITH_VERBS has the value 'X'. Otherwise these parameters areignored. The documentation is always read on the same level as theobject type, that is the documentation of the verbs is only read if theverbs themselves are read. The individual sub-objects are returned in separate tables. Example DATA: basedat like RPYBOBS, " basic data intfs like RPYBOIF occurs 0, " interfaces key like RPYBOKE occurs 0, " key fields attribs like RPYBOAT occurs 0, " attributes methods like RPYBOME occurs 0, " methods mparameter like RPYBOMP occurs 0, " method parameters exceptions like RPYBOEX occurs 0, " exceptions events like RPYBOEV occurs 0, " events eparameter like RPYBOEP occurs 0. " event parameters ... call function 'RPY_OBJECTTYPE_READ' exporting objecttype_id = 'BUS1043' " object type customer language = 'E' " language English cico_mode = 'R' " read-only cico_request_no = ' ' " no transport request with_verbs = 'X' " read all parts with_parameters = 'X' " " with_exceptions = 'X' " " with_texts = 'X' " " with_formatted_documentation = ' ' " no documentation with_sapscript_documentation = ' ' " no documentation importing objecttype_info = basedat tables interfaces = intfs keyfields = key attributes = attribs methods = methods methodparams = mparameter methodexceptions = exceptions events = events eventparams = eparameter exceptions not_found = 1 permission_error = 2 others = 3. if sy-subrc ne 0. ... endif. Further information For further information on the business object repository, refer to theonline documentation. Detailed information on the referenced structures and tables can befound under: Basic data> Interfaces> Key fields> Methods> Method parameters> Exceptions> Attributes> Events> Event parameters> General fields> |