Hi,
I want use to use a custom function in CBTA e.g. for setting a value in text box(i.e. SAPGuiEdit) based on its attached text.
Say my simple function is as below-
Function Custom_SetText_AttachedText(ObjName, val)
SAPGuiSession("guicomponenttype:=12").SAPGuiWindow("type:=GuiMainWindow").SAPGuiEdit("attachedtext:="& ObjName).Set val
End Function
I understand that we can include error handling and other things to it but I would like concentrate on how to use such a custom code in CBTA.
I included this function in VBS file and stored that file in CBTA\Custom folder which got created once I opened RTL for Edit.
RTL Manager is showing this function in the list of function.
But when I used this function in "InvokeFuction" default component with following parameter-
library->Custom\filename.vbs
function-> Custom_SetText_AttachedText
Parameter1->Attached text of Text box
Parameter2->value to set in text box
This component did not work.
Note:-I have already gone through RTL Manager guide and CustomCodePattern guides.
If anybody has used custom functions in CBTA, It would be great help if you suggest something.
Solman Version->7.1 SP10