Secon step create object
Hello,
how can I create an object here from the interface IF_WD_SELECT_OPTIONS.
in order to use its method ADD_SELECTION_FIELD
First step is done:
data zb type ref to IF_WD_SELECT_OPTIONS.
Secons step: create object
regards
sas
Pls refer to this [Document|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/21706b4b-0901-0010-7d93-c93b6394bc1d]
Similar Messages
-
Create object IF_WD_SELECT_OPTIONS
Hello,
how can I create an object here from the interface IF_WD_SELECT_OPTIONS.
in order to use its method ADD_SELECTION_FIELD
First step is done:
data zb type ref to IF_WD_SELECT_OPTIONS.
Secons step: create object
regards
sasThis interface is related to WebDynpro ABAP, you better check these webdynpro examples
WDR_SELECT_OPTIONS
WDR_TEST_SELECT_OPTIONS -
Creating objects when count is greater than 1
Hi
I'm trying to create a runbook that checks service manager for incidents that have been created in the last 10 minutes of the same category. When the result of this check brings back more than 5 objects I want a problem to be created with the incidents linked
to the problem.
I know a junction will be required somewhere in order to stop the create object running multiple times but when this occurs I cannot address the scobject guids in the create relationship step. I have attached a screenshot of the runbook below.
ThanksHi,
Flatten the "Get Object Count" Activity so it triggers only once.
Regards,
Stefan
www.sc-orchestrator.eu ,
Blog sc-orchestrator.eu -
Hi all,
Can anyone tell me how to create an object of the class CL_BP_HEAD_CORPACCOUNTDET_CTXT .
Please reply as fast as possible.
Regards,
VijayHi Balasubramanian,
The below steps might help u out.
1. Call the function Create Object.
You have the following options:
¡ Choose Object ->New () in the main menu (or the pushbutton Create Object ).
¡ Position the cursor on a structure node in the navigation area and choose New () from the context menu.
In this case, there are already entries in the Create Object dialog, corresponding to the position of the cursor in the navigation area.
Integration Builder (Integration Directory): You have positioned the cursor on the Service node of a communication party. If you call the function Create Object from the context menu, there are already entries for the object type Service and the party field.
You cannot create objects of type RFC or IDoc again.
2. Enter the required information. Select the object type first and then specify the object key.
An input help is available to help you specify the key values. To call the input help, use the icon . The value selection offered by the input help may depend on which values have already been defined for the other key attributes.
Integration Builder (Integration Repository): The namespace selection depends on the selected software component version.
3. To confirm your entries, choose Create.
This calls the object editor for this object. The specifications that you made when you created the object are displayed in the header. You can edit the object further in the work area of the object editor.
Once you have confirmed your entries by choosing Create in the Create Object dialog, you can no longer change the object key.
Reward if helpful.
Thankyou,
Regards. -
Help !!! Homogeneous system copy hold on step: Create Database
Group,
we use homogeneous system copy to install PRD system. The system hold on step : create databse.
When we check the server and found the data library has been restored from tape. The installation just hold on the step and can't going on. And there is not additional information on install directory except to see the file keydb.xml were updated.
Could we adjust the file keydb.xml to continue the installation ? If we could, how ? Thanks in advance.
Regards.
JennyHi Jenny,
The first question would be:
Is the database restored properly ?
How many objects are in there ?
First stop the SAPinst program so that no "duplicate updates" happen on the log/xml files.
Most likely you are doing this on another server and therefore the old users are not available which creates an error during restore. This causes often/always an abnormal end of the SAPinst.
If this is the case, you might want to check the keydb.xml after that you copied that and search for "ERROR" in uppercase and the finally try to set this to OK. If you then rerun SAPinst, this problem is hopefully solved. Unfortunately this is more or less an "standard-error" in this procedure - at least up to 1 year ago I don't know on any generic solution. That's why I do not use this procedure if not really necessary.
Regards
Volker Güldenpfennig
P.S.: Do not forget to distribute forum points as in the last questions - otherwise, you will receive less and less answers ... -
Installation Of ECC error in step create temp licence:
We are in process of installation of ECC 6.0 on our server with OS: RHEL5 and DB:MaxDB
We are getting an error in step Create Temp Licence. The error reads as follow.
INFO 2008-02-21 04:56:12
Execute step createTempLicense of component |NW_Onehost|ind|ind|ind|ind|0|0|NW_Onehost_System|ind|ind|ind|ind|1|0|NW_CreateDBandLoad|ind|ind|ind|ind|10|0|NW_Postload|ind|ind|ind|ind|10|0|NW_Postload_ADA|ind|ind|ind|ind|1|0.
INFO 2008-02-21 04:56:12
Working directory changed to /tmp/sapinst_exe.8005.1203531194.
ERROR 2008-02-21 04:56:12
FRY-00001 Cannot load library iamodapp.so: iamodapp.so: cannot open shared object file: No such file or directory.
INFO 2008-02-21 04:56:12
Working directory changed to /sapinstd11n.
ERROR 2008-02-21 04:56:12
MUT-03025 Caught ESAPinstException in Modulecall: ESAPinstException: error text undefined.
ERROR 2008-02-21 04:56:12
FCO-00011 The step createTempLicense with step key |NW_Onehost|ind|ind|ind|ind|0|0|NW_Onehost_System|ind|ind|ind|ind|1|0|NW_CreateDBandLoad|ind|ind|ind|ind|10|0|NW_Postload|ind|ind|ind|ind|10|0|NW_Postload_ADA|ind|ind|ind|ind|1|0|createTempLicense was executed with status ERROR .
Please suggest.Hi,
the installation process aborts in "Create sap license" with error message "library iamodora missing", some libraries needed are missing to work around this, either after it aborts or event before staritng the installation unpack the libraries into the installation directory using:
SAPCAR -xvf /<sapinst-CD>/SAPINST/UNIX/LINUX_32/SAPPROD.SAR
1. Copy the installation media dvd to a directory on a files system
2. change directories into the sub-directory which contains the executable (sapinst)
3. run the command sapinst -extract
4. It will unpack the missing libraries into the same directory where you executed the command..
5. copied these libraries to lib folder
6. Stop and restart the installation
regards,
kaushal -
Create Object Link Field Mandatory
Hi,
I want to create Object Links Field mandatory for some document type in CV01N. so user can not upload file without linking file to any Object Links (WBS / Network Activity).
If this possible kindly let me know the steps.
RegardsHi,
Maybe you could add some code in the BADI - DOCUMENT_OBJ. But if that doesn't work, you definately would be able to add code to the BADI DOCUMENT_MAIN01~BEFORE_SAVE. Check that there is a DRAD record (table that stores DIR object links) of object type LFA1. If the entry exists, allow the save to continue. If the entry doesn't exist, give error message for user to add vendor information.
Hope it helps!
Regards
Poongs -
FDMEE 11.1.2.3 ActiveX component can't create object
Hello Gurus,
I am testing FDMEE 11.1.2.3 and am running into an issue when trying to export to my target HFM application. (Import/Validate work fine). Below is the error log:
I am loading from a flat file.
E:\Oracle\Middleware\EPMSystem11R1\products\FinancialDataQuality\bin\HFM_LOAD.vbs(4, 1) Microsoft VBScript runtime error: ActiveX component can't create object: 'erpiHFMAdapter.clsFMAdapter'
2014-01-02 16:11:03,568 FATAL [AIF]: Error in HfmData.loadData
Traceback (most recent call last):
File "<string>", line 106, in loadData
RuntimeError: Load Error
2014-01-02 16:11:03,614 FATAL [AIF]: Error in HFM Load Data
2014-01-02 16:11:03,617 INFO [AIF]: FDMEE Process End, Process ID: 12please follow oracle doc
FDMEE Validate Step Failing with Intersection Check Enabled (Doc ID 1588419.1)
cause : Currently the TNSNAMES.ORA file on the FDMEE Server does not contain a connect descriptor entry named AIF_ORCL pointing to the FDMEE database instance. When the intersection check code is being ran for the adapter it is unable to resolve the connect descriptor because it does not exist in the 32 bit TNSNAMES.ORA file.
Solution : A) Logon to the FDMEE Application Server
B) Browse to the Oracle\Middleware\EPMSystem11R1\DBClient32\Network\Admin directory
C) Open the TNSNAMES.ORA file in notepad
D) Add the following connect descriptor and save:
AIF_ORCL =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = <DBHOST>)(PORT = <DBPORT>))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = <SERVICE>)
regards,
-DM -
XL Reporter Run-time Error '429' ActiveX component can't create object
Hi Everyone,
When trying to install XL Reporter on a Windows 2003 Server SP2 machine getting the following Error:
XL Reporter
Run-time error '429':
ActiveX component can't create object.
Did anyone get this error? Please advise of any steps we can try to resolve.
Kind Regards,
KafilDear Friend,
I had described the problem to our technical support team, and they replied as follows u2013
They solved the Script related error by several stages.
They checked the machine for any mal-ware existence by the tool provided by Microsoft (MS Mal-ware remover).
Then they tried by installing the following patches from Microsoft u2013
http://support.microsoft.com/kb/949140
Windows Script 5.7 for Windows XP
http://www.microsoft.com/downloads/details.aspx?familyid=887fce82-e3f5-4289-a5e3-6cbb818623aa&displaylang=en
Windows Script 5.6 for Windows Server 2003
http://www.microsoft.com/downloads/details.aspx?FamilyId=C717D943-7E4B-4622-86EB-95A22B832CAA&displaylang=en
Windows Script 5.6 for Windows XP and Windows 2000
The internal matter to this problem was about the following DLL and its version u2013
C:\WINDOWS\system32
vbscript.dll
5.5.0.8820
Desired
5.6.0.8820
Check, if the information helps you. -
Automation server can't create object when calling a jsp from a button
Hello,
I have created the following jsp that allow me to execute an external program that is located on the client side:
<script language="JavaScript" type="text/javascript">
<!--
function execAppli(app)
var wshShell = new ActiveXObject("WScript.Shell");
wshShell.Run(app+".exe", 1, true);
-->
</script>
If I call this jsp in a simple html page is works correctly when i call it from a button in apex (3.0) I got the error message Automation server can't create object.
Any idea ?
Thanks,
Claude-AlainHi Claude,
Just be sure that you really (like really) trust your endusers, because I can see some huge opportunities for exploiting that JavaScript routine you've shown. If you're not taking steps to prevent cross site scripting (search this forum or Google for details on what that is), then it's not beyond the bounds of possibility for someone to do something 'nasty' which would do horrible things to your end users if your executing a program on their client machines without any warning or validation of what that program actually does.
Sometimes it's best to work backwards from the point of view of....what if you walk into work one morning and find that 400 end users machines have had their hard-drives wiped because the script arbitrarily executes whatever command you pass to it? Then you can perhaps see that what sometimes looks like a good idea might not be such a good idea after all ;) -
Creating object type u0093no objectu0094
We have created No objcet table SBO will create only code and name fields but create document table SBO will create DocEntry and also the Extra fields that will help to link to other documents.
Above things that we have clear idea
Could u tell me creating object type no object can we insert the data ..??
Or its compulsory to using UDO?using .srf is it possible ??? i have sending u code
error form bad datasource.. form Unique id 'MPPeriod',item unique id ' cmbppt'
but we check all unique id that is correct
Public Class payperiod
Private WithEvents SBO_Application As SAPbouiCOM.Application
Dim AddStarted As Boolean
Dim RedFlag As Boolean
Private oform As SAPbouiCOM.Form
Private oCodetext As SAPbouiCOM.EditText
Private noteedittext As SAPbouiCOM.EditText
Private daystext As SAPbouiCOM.EditText
Private worktext As SAPbouiCOM.EditText
Private starD As SAPbouiCOM.EditText
Private endD As SAPbouiCOM.EditText
Private Sub SetApplication()
AddStarted = False
RedFlag = False
'// Use an SboGuiApi object to establish connection
'// with the SAP Business One application and return an
'// initialized application object
Dim SboGuiApi As SAPbouiCOM.SboGuiApi
Dim sConnectionString As String
SboGuiApi = New SAPbouiCOM.SboGuiApi
'// by following the steps specified above, the following
'// statement should be sufficient for either development or run mode
sConnectionString = Environment.GetCommandLineArgs.GetValue(1)
'// connect to a running SBO Application
SboGuiApi.Connect(sConnectionString)
'// get an initialized application object
SBO_Application = SboGuiApi.GetApplication()
End Sub
Public Sub New()
MyBase.New()
SetApplication()
addmenuitems()
End Sub
Private Sub DrawForm()
Dim oitem As SAPbouiCOM.Item
Dim oCombopptype As SAPbouiCOM.ComboBox
Try
LoadFromXML("PayPeriodMaster.srf")
Catch ex As Exception
MessageBox.Show(ex.Message)
End Try
oform = SBO_Application.Forms.Item("MPPeriod")
'''''''''combo for pay type
oitem = oform.Items.Item("cmbppt")
oCombopptype = oitem.Specific
oCombopptype.ValidValues.Add(CStr(3), "Employee")
' oCombopptype.ValidValues.Add(CStr(SAPbouiCOM.BoStatusBarMessageType.smt_Success), "Labour")
oCombopptype.ValidValues.Add(CStr(4), "Labour")
''''''' combo for code
oitem = oform.Items.Item("txtcode")
oCodetext = oitem.Specific
'''''''' startdate
oitem = oform.Items.Item("txtSDate")
starD = oitem.Specific
''''''''''end date
oitem = oform.Items.Item("txtEDate")
endD = oitem.Specific
''''''''''days in period
oitem = oform.Items.Item("txtDPrd")
daystext = oitem.Specific
'''''''''''' working days
oitem = oform.Items.Item("txtWDays")
worktext = oitem.Specific
''''''' notes''''''''''''
oitem = oform.Items.Item("txtNotes")
noteedittext = oitem.Specific
End Sub
Private Sub addmenuitems()
Dim oMenus As SAPbouiCOM.Menus ' the menus collection
Dim oMenuitem As SAPbouiCOM.MenuItem ' the new item
'get the menus collection from the application
oMenus = SBO_Application.Menus
Dim ocreationPackage As SAPbouiCOM.MenuCreationParams
ocreationPackage = SBO_Application.CreateObject(SAPbouiCOM.BoCreatableObjectType.cot_MenuCreationParams)
oMenuitem = SBO_Application.Menus.Item("2048") 'sales menu id
oMenus = oMenuitem.SubMenus
ocreationPackage.Type = SAPbouiCOM.BoMenuType.mt_STRING
ocreationPackage.UniqueID = "mnu1"
ocreationPackage.String = "Payperiod"
ocreationPackage.Enabled = True
ocreationPackage.Position = 15
Try
' if the menu already exist thus code will fail
oMenus.AddEx(ocreationPackage)
Catch ex As Exception ' menu already exist
MessageBox.Show("menu already exist")
End Try
End Sub
Private Sub SBO_Application_MenuEvent(ByRef pVal As SAPbouiCOM.MenuEvent, ByRef BubbleEvent As Boolean) Handles SBO_Application.MenuEvent
If (pVal.MenuUID = "mnu1") And (pVal.BeforeAction = False) Then
Try
Dim f As SAPbouiCOM.Form
f = SBO_Application.Forms.Item("MPPeriod")
f.Select()
Catch ex As Exception
DrawForm()
End Try
End If
End Sub
Private Sub SBO_Application_StatusBarEvent(ByVal Text As String, ByVal MessageType As SAPbouiCOM.BoStatusBarMessageType) Handles SBO_Application.StatusBarEvent
If MessageType = SAPbouiCOM.BoStatusBarMessageType.smt_Error And AddStarted = True Then
RedFlag = True
End If
End Sub
Private Sub LoadFromXML(ByRef FileName As String)
Dim oXmlDoc As Xml.XmlDocument
oXmlDoc = New Xml.XmlDocument
'// load the content of the XML File
Dim sPath As String
sPath = IO.Directory.GetParent(Application.StartupPath).ToString
oXmlDoc.Load(sPath & "\" & FileName)
'// load the form to the SBO application in one batch
SBO_Application.LoadBatchActions(oXmlDoc.InnerXml)
End Sub
Private Sub SBO_Application_ItemEvent(ByVal FormUID As String, ByRef pVal As SAPbouiCOM.ItemEvent, ByRef BubbleEvent As Boolean) Handles SBO_Application.ItemEvent
Dim oDocRec As SAPbobsCOM.Recordset
Dim f As SAPbouiCOM.Form
Dim s As String
' Events of the Blanket Agreement form
If (FormUID = "MPPeriod") Then
If (pVal.Before_Action = True) Then
If pVal.EventType = SAPbouiCOM.BoEventTypes.et_ITEM_PRESSED And pVal.ItemUID = "1" Then
Dim objRecser As SAPbobsCOM.Recordset
objRecser = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset)
' SBO_Application.MessageBox("hi")
' objRecser.DoQuery("INSERT INTO [@MastPayPeriod]( Code,Name,U_PayPeriodTypeCode, U_PayPeriodCode, U_StartDate, U_EndDate, U_DaysInPeriod, U_WorkingDays, U_Notes) VALUES (1,1,'" & oform.Items.Item("cmbppt").Specific.Value & "','" & oform.Items.Item("txtCode").Specific.Value & "',& '"oform.Items.Item("cmbSDate").Specific.Value & "','"& oform.Items.Item("cmbEDate").Specific.Value & "','" & oform.Items.Item("txtDPrd").Specific.Value & "','" & oform.Items.Item("txtWDays").Specific.Value & "','" & oform.Items.Item("txtNotes").Specific.Value & "')")
objRecser.DoQuery("INSERT INTO [@MastPayPeriod](Code,Name,U_PayPeriodTypeCode, U_PayPeriodCode, U_StartDate, U_EndDate, U_DaysInPeriod, U_WorkingDays, U_Notes) VALUES (1,1,'" & oform.Items.Item("cmbppt").Specific.Value & "','" & oform.Items.Item("cmbCode").Specific.Value & "','" & oform.Items.Item("txtSDate").Specific.Value & "','" & oform.Items.Item("txtEDate").Specific.Value & "','" & oform.Items.Item("txtDPrd").Specific.Value & "','" & oform.Items.Item("txtWDays").Specific.Value & "','" & oform.Items.Item("txtNotes").Specific.Value & "')")
End If
End If
If (pVal.Before_Action = False) Then
If (pVal.ItemUID = "2") And (pVal.EventType = SAPbouiCOM.BoEventTypes.et_ITEM_PRESSED) Then
End If
End If
End If
End Sub
'Private Sub SaveAsXML(ByRef Form As SAPbouiCOM.Form)
' Dim oXmlDoc As Xml.XmlDocument
' Dim sXmlString As String
' oXmlDoc = New Xml.XmlDocument
' // get the form as an XML string
' sXmlString = Form.GetAsXML
' // load the form's XML string to the XML document object
' oXmlDoc.LoadXml(sXmlString)
' Dim sPath As String
' sPath = IO.Directory.GetParent(Application.StartupPath).ToString
' // save the XML Document
' oXmlDoc.Save((sPath & "\PayPeriodMaster.xml"))
'End Sub
End Class -
Crystal Report Addon Error : ActiveX Component Can't Create Object
Hello Experts,
We are facing an problem when we start the Crystal Report Addon .The error message getting
displayed is "CR_Crypto ActiveX Component Can't Create Object".This issue is happening only on the
server its working fine on the client. We had even unistalled and re-installed the addon in the server but
still it throws the error when we start the addon.
Please help us to resolve this issue
Thanks,
VishwanathDear Friend,
I had described the problem to our technical support team, and they replied as follows u2013
They solved the Script related error by several stages.
They checked the machine for any mal-ware existence by the tool provided by Microsoft (MS Mal-ware remover).
Then they tried by installing the following patches from Microsoft u2013
http://support.microsoft.com/kb/949140
Windows Script 5.7 for Windows XP
http://www.microsoft.com/downloads/details.aspx?familyid=887fce82-e3f5-4289-a5e3-6cbb818623aa&displaylang=en
Windows Script 5.6 for Windows Server 2003
http://www.microsoft.com/downloads/details.aspx?FamilyId=C717D943-7E4B-4622-86EB-95A22B832CAA&displaylang=en
Windows Script 5.6 for Windows XP and Windows 2000
The internal matter to this problem was about the following DLL and its version u2013
C:\WINDOWS\system32
vbscript.dll
5.5.0.8820
Desired
5.6.0.8820
Check, if the information helps you. -
How can I importing when create object?
Hi Gurus,
Im beginner with OO Abap. Please give me a hand with this.
Im using the programming interface REPORT Z_TEST_ST_TEXT_EDITOR for text editor found on /people/igor.barbaric/blog/2005/06/06/the-standard-text-editor-oo-abap-cfw-class which is good and useful for me (highly recommended) but I need to import the text created (t_text) in method constructor in order to send it via e.mail.
Could anybody tell me how to get/import the text created?
Thank you in advance.
Below is the coding. (program which uses the developed class and method consisting the created text)
DATA: o_txe TYPE REF TO <b>zcl_standard_text_editor</b>,
v_caption TYPE char100,
s_thead TYPE thead.
call screen
CALL SCREEN 0100.
MODULE s0100_start
MODULE s0100_start OUTPUT.
SET PF-STATUS 'BASIC'.
s_thead-tdname = 'VENDOR0000000011'.
s_thead-tdid = 'ST'.
s_thead-tdobject = 'TEXT'.
s_thead-tdspras = sy-langu.
CONCATENATE 'Standard text:' s_thead-tdname
INTO v_caption SEPARATED BY space.
IF o_txe IS INITIAL.
<b> CREATE OBJECT o_txe</b>
EXPORTING i_thead = s_thead
i_caption = v_caption.
<b>IMPORTING????</b>
ENDIF.
ENDMODULE.
<b>method CONSTRUCTOR</b>.
DATA: o_dialogbox TYPE REF TO cl_gui_dialogbox_container,
t_text TYPE STANDARD TABLE OF tdline,
s_event TYPE cntl_simple_event,
t_events TYPE cntl_simple_events,
t_lines TYPE STANDARD TABLE OF tline,
v_text TYPE tdline,
v_text_temp TYPE tdline,
v_line_temp TYPE tdline,
v_line_len TYPE i,
v_index TYPE i.
FIELD-SYMBOLS: <line> TYPE tline.
me->thead = i_thead.
me->caption = i_caption.
*------ containers
IF i_container IS INITIAL.
CREATE OBJECT o_dialogbox
EXPORTING top = 50
left = 200
height = 150
width = 500
caption = i_caption.
me->main_container = o_dialogbox.
SET HANDLER me->on_container_close FOR o_dialogbox.
ELSE.
me->main_container = i_container.
ENDIF.
IF me->splitter IS INITIAL.
CREATE OBJECT me->splitter
EXPORTING
parent = me->main_container
orientation = me->splitter->orientation_vertical
sash_position = 10. "percentage of containers
------ toolbar
CREATE OBJECT me->toolbar
EXPORTING parent = me->splitter->top_left_container.
CALL METHOD me->toolbar->add_button
EXPORTING fcode = me->c_save
is_disabled = ' '
icon = '@2L@' "icon_system_save
butn_type = cntb_btype_button.
CALL METHOD me->toolbar->add_button
EXPORTING fcode = me->c_close
is_disabled = ' '
icon = '@3X@' "icon_close
butn_type = cntb_btype_button.
*------ register events
REFRESH t_events.
s_event-eventid = cl_gui_toolbar=>m_id_function_selected.
s_event-appl_event = ' '.
APPEND s_event TO t_events.
CALL METHOD me->toolbar->set_registered_events
EXPORTING events = t_events.
SET HANDLER: me->on_toolbar_func_sel FOR me->toolbar.
*------ create textedit control
CREATE OBJECT me->textedit
EXPORTING parent = me->splitter->bottom_right_container.
ENDIF.
get text
CALL FUNCTION 'READ_TEXT'
EXPORTING ID = me->thead-tdid
LANGUAGE = me->thead-tdspras
NAME = me->thead-tdname
OBJECT = me->thead-tdobject
TABLES LINES = t_lines
EXCEPTIONS ID = 1
LANGUAGE = 2
NAME = 3
NOT_FOUND = 4
OBJECT = 5
REFERENCE_CHECK = 6
WRONG_ACCESS_TO_ARCHIVE = 7
OTHERS = 8.
*------- convert text to text editor format
LOOP AT t_lines ASSIGNING <line>.
IF <line>-tdformat = space OR <line>-tdformat = '=' OR sy-tabix = 1.
v_line_temp = <line>-tdline.
CONCATENATE v_text v_line_temp INTO v_text_temp.
ELSE.
CONCATENATE: cl_abap_char_utilities=>cr_lf <line>-tdline
INTO v_line_temp.
CONCATENATE v_text v_line_temp INTO v_text_temp.
ENDIF.
IF sy-subrc = 0.
v_text = v_text_temp.
ELSE.
APPEND v_text TO t_text.
v_text = v_line_temp.
ENDIF.
ENDLOOP.
IF sy-subrc = 0.
APPEND v_text TO <b>t_text</b>.
ENDIF.
*------- display text
CALL METHOD me->textedit->set_text_as_stream
EXPORTING text = t_text.
me->t_initial_text = t_text.
endmethod.good book on ABAP objects(OOPS)
http://www.esnips.com/doc/bc475662-82d6-4412-9083-28a7e7f1ce09/Abap-Objects---An-Introduction-To-Programming-Sap-Applications
http://www.sapgenie.com/abap/OO/
http://www.sapgenie.com/abap/OO/index.htm
http://help.sap.com/saphelp_nw04/helpdata/en/c3/225b5654f411d194a60000e8353423/content.htm
http://www.esnips.com/doc/375fff1b-5a62-444d-8ec1-55508c308b17/prefinalppt.ppt
http://www.esnips.com/doc/2c76dc57-e74a-4539-a20e-29383317e804/OO-abap.pdf
http://www.esnips.com/doc/5c65b0dd-eddf-4512-8e32-ecd26735f0f2/prefinalppt.ppt
http://www.allsaplinks.com/
http://www.sap-img.com/
http://www.sapgenie.com/
http://help.sap.com
http://www.sapgenie.com/abap/OO/
http://www.sapgenie.com/abap/OO/index.htm
http://www.sapgenie.com/abap/controls/index.htm
http://www.esnips.com/doc/2c76dc57-e74a-4539-a20e-29383317e804/OO-abap.pdf
http://www.esnips.com/doc/0ef39d4b-586a-4637-abbb-e4f69d2d9307/SAP-CONTROLS-WORKSHOP.pdf
http://www.sapgenie.com/abap/OO/index.htm
http://help.sap.com/saphelp_erp2005/helpdata/en/ce/b518b6513611d194a50000e8353423/frameset.htm
http://www.sapgenie.com/abap/OO/
these links
http://help.sap.com/saphelp_47x200/helpdata/en/ce/b518b6513611d194a50000e8353423/content.htm
For funtion module to class
http://help.sap.com/saphelp_47x200/helpdata/en/c3/225b5954f411d194a60000e8353423/content.htm
for classes
http://help.sap.com/saphelp_47x200/helpdata/en/c3/225b5c54f411d194a60000e8353423/content.htm
for methods
http://help.sap.com/saphelp_47x200/helpdata/en/08/d27c03b81011d194f60000e8353423/content.htm
for inheritance
http://help.sap.com/saphelp_47x200/helpdata/en/dd/4049c40f4611d3b9380000e8353423/content.htm
for interfaces
http://help.sap.com/saphelp_47x200/helpdata/en/c3/225b6254f411d194a60000e8353423/content.htm
For Materials:
1) http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCABA/BCABA.pdf -- Page no: 1291
2) http://esnips.com/doc/5c65b0dd-eddf-4512-8e32-ecd26735f0f2/prefinalppt.ppt
3) http://esnips.com/doc/2c76dc57-e74a-4539-a20e-29383317e804/OO-abap.pdf
4) http://esnips.com/doc/0ef39d4b-586a-4637-abbb-e4f69d2d9307/SAP-CONTROLS-WORKSHOP.pdf
5) http://esnips.com/doc/92be4457-1b6e-4061-92e5-8e4b3a6e3239/Object-Oriented-ABAP.ppt
6) http://esnips.com/doc/448e8302-68b1-4046-9fef-8fa8808caee0/abap-objects-by-helen.pdf
7) http://esnips.com/doc/39fdc647-1aed-4b40-a476-4d3042b6ec28/class_builder.ppt
8) http://www.amazon.com/gp/explorer/0201750805/2/ref=pd_lpo_ase/102-9378020-8749710?ie=UTF8
1) http://www.erpgenie.com/sap/abap/OO/index.htm
2) http://help.sap.com/saphelp_nw04/helpdata/en/ce/b518b6513611d194a50000e8353423/frameset.htm
Rewards if useful......................
Minal -
runtime error 429, activeX component cant create object while using netbet pro
does anyone know what I could do to fix this problem??? netbet pro was't available for a while then it's back but has yet to runWhat's netbet pro?
I'd recommend asking questions about third party applications in the vendor's forum, not a Microsoft forum meant for admin scripting.
EDIT: Ah, some gambling website...
Don't retire TechNet! -
(Don't give up yet - 12,950+ strong and growing) -
ABAP OO: Duplication of selected data in created objects?
I am new to ABAP OO and I have a conceptual question/concern that I cannot resolve. Can someone explain what I am missing?
I would think that selecting and storing (in internal tables) a large amount of data from many related database tables and, at the same time, creating and storing objects from this same data would unnecessarily consume a huge amount of memory. To avoid this problem, it seems that the selected data and created objects should not be stored in internal tables simultaneously.
Does this concern make sense? If so, how is this problem best handled?
Does it make sense to delete the corresponding data once the objects are created (to free memory)?
Or does it make sense to keep the data and only temporarily create objects as needed?
Thanks.Hello Matt
The approach you describe is to select data first and the feed the object instances with them. <b>Why not let the object instances do the data selection themselves?</b>
I will give you an example what I mean.
(1) Lets assume I want to write an application that allows to deal with cost center hierarchies. On the selection screen you can choose one or many cost center hierarchies.
(2) Using the selection criteria I would select all cost center hierarchies but without any details (just the key values).
(3) Next I would loop over the cost center hierarchies and create a cost center hierarchy instance (a class you have to define yourself) for each key value. The CONSTRUCTOR of this class will have an IMPORTING parameter like <i>id_kostl_hier</i>.
(4) In the CONSTRUCTOR method I first check if the cost center hierarchy exists (if not raise an exception-class based exception) and then do the selection of the hierarchy details (e.g. the cost centers).
(5) The instances are collected in an itab of the "frame" application.
Using this approach you will have little duplication of data within your application. Furthermore, if you really have to deal with huge amounts of data then you could read them only on demand (like in tree controls where the sub-nodes usually are read when the parent node is expanded).
Hope I could give you some fresh insights into this exciting topic.
Regards
Uwe
Maybe you are looking for
-
Hi all My laptop MSI GE60 has been working fine for about a month and a half. I let my brother play it yesterday and when i went on it 3 hours after he finished with it. i noticed the fan kept spinning up every 4 seconds it spins to 100% and then dow
-
Trying to do .CSS drop shadows
Hi, I'm trying to get a similar look and feel as this website Livingsteel.org but can't seem to crack the drop shadow for the main table/container. It's the one down that covers the bottom and right side and makes the site look very tidy. I'm trying
-
How to setup the sequence order's of PO's vision instance
I need to create PO's in a sequential order in vision instance. How should I do that? Thanbks regards,
-
Mountain Lion Setup doesn't start after reboot
I have a curious problem: I wanted to upgrade my MBP to ML, but it doesn't work. I start the installation script, accept the licence agreement and choose the SSD as the installation target. The installation script prepares the installation (Install O
-
"Change end source frame" option in Retime Editor ???
Hello Folks, In page 372 of Diana Weynand's APTS book on FCP X (a Peachpit Book), she said (two first lines) there should be a "Change end source frame" option within the pop-up menu of the Retime Editor when "clicking the triangle next to the speed