How to Create a Instance of Business Object Inside a class?
Hi All,
I am facing a problem regarding , creating a instance of BO inside a global class ( SE24 ). Initially I have included <CNTN02> in the class and i even tried to use the MACRO SWC_CREATE_OBJECT but , the main issue is that my method exporting parameter is not accepting the type SWC_OBJECT in the class for this reason I am not able to pass the instance of the BO.
Any suggestions
Can we acheive this through classes
Do I need to perform Type casting?
Thanks In Advance
Pavan
Hello Pavan
On ERP 6.0 you find the following documentation in include :
* BITTE NEUES INCLUDE CNTN01_SWC benutzen!!!
* Dieses Include führt bei der Nutzung innerhalb eines CLASS-POOLS zu
* einer Vielzahl von Warnungen. Um dieses zu vermeiden, bitte das oben
* genannte Include in den lokalen Implementierungsteil einer gloabeln
* Klasse inkludieren.
*************************** Macros *************************************
* Types
TYPES:
swc_object LIKE obj_record.
Basically it says that you should replace this include with the new include CNTN01_SWC.
If you add type-pool SWC0 to the properties section of your global class you can define method parameters having type SWC0_OBJECT which should be identical to SWC_OBJECT:
TYPE-POOL swc0.
* Types
TYPES:
swc0_object LIKE obj_record.
Regards
Uwe
Similar Messages
-
How to create and instance of Java Object from an XML Document.
Hi,
How can we use a XML Document to create an instance of Java Object and do vice versa ie from the Java Object creating the XML Document.
XML Document is available in the form of a String Object.
Are there helper class available to achieve this.
I need to do this in a Servlet.
Regards
Pramod.JAXB is part of JavaSE while Xmlbeans claims full schema support and full infoset fidelity.
If the standard APIs do all that you need well then use them. -
How to create a universe in Business Object from BW
Dear Memebers
I need your help, I'm trying to create a report in business object using a cube as datasource, but when execute it does not appears the text, for example costumer 1000, his name is coca-cola.
Does anyone help me?, maybe i does not set something
Thanks a lot
ArielHi Ariel,
Not sure what BW is? If this is not related to using a SDK you may want to post your question in the Business Objects enterprise or Crystal Report Designer Forum.
Thank you
Don -
Need Ideas for creating and using Custom Business Object
Hello Guys,
I am developing an application which uses a Request->Approve->Create approach for creating Purchase documents.
Now I am a little puzzled about how to make use of the Business Object BUS2014.
The application I am developing has its own unique 'Request Number' (say REQID) which will point to the Request for Creation of a purchase order.
Whenever a Request is created (from a Z-Tcode) a workflow needs to be initiated and it has to be sent to the approver.
The Purchase Document will be created once the approver approves.
Now my confusion here is, if I use BUS2014, the object will be instantiated only during the final step of the workflow. But I need an instance during the beginning of the Requestor ->Approver negotiations as I am playing with events. These events needs an Object_key.
How should I proceed here?
Should I create a new logical Business Object like ZPOREQ where I have the above mentioned REQID as the key?
And should I have an attribute of type BUS2014 inside the custom BO?
How will I make use of the methods like BUS2014.Create etc which I may need to create the purchase document?
Any small direction will be a huge help for me to get used to this wilderness.Hi,
You should continue with the ABAP class idea. The business objects are kind of "obsolete" already, and if there is a need to create a new "object", ABAP classes are the way to go. Business objects are still useful, but I normally use them only when an existing standard business object fulfills the requirements (possibly with slight additions) which is almost never.
From my point of view you can use the existing class. Depending on the circumstances I normally have just one class that I use for both workflow and the possible other functionality that is required, but you have to understand that I have this goal in my mind already when starting the development process. As your class most probably has many useful features already (such as you have the header and item data as attributes etc. (if I understood correctly?), these are also useful in in workflow (class attributes will be available in WF container etc.).
If you are hesitant to use the same class directly in your workflow, you could also create a new class ZCL_REQUEST_FOR_WF (with the workflow interface), and then simply add your existing class ZCL_WF_REQUEST as an attribute to this new class. Then this new workflow class could include the pure workflow stuff, and your existing class the non-workflow stuff. But this most probably will not make much sense - just implement the if_workflow interface in your existing class (this is just one possibility that you might consider.)
Regards,
Karri -
How to create multiple instance on same database
Hi ,
I would like to know how to create multiple instance on same database . I know that some people use database configuration assistant to do this but i could not figure out how they did it.
Any how if some one can help me with this and can give me links of this it would be great help for me.
Thank you for reading my problem and helping me !
Amil
please if possible mail me on [email protected]How to create multiple instance?????Do you mean multiple instances on the same database, or multiple databases on the same machine ?
I m new to this field....
Willin to learn a lot about oracle....Then it wouldn't be bad reading a bit of Database Concepts -
How to create a report in business explorer?
Hi All,
how to create a report in business explorer after creating the information spaces then how to operate the exploration view sets please if anyone knows can you explain me step by step...
Thanks...what exactly you want to do tell me
1.in business explorer
or you want to create a webi
or you want to see the data in business explorer -
I have error while testing the system created from a sap business objects template in SAP portal
I have error while testing the system created from a sap business objects template in SAP portal. Error text:
com.sapportals.connector.connection.ConnectionFailedException: Connection Failed: A nested exception occurred. Could not initialize physical connection. Connection Failed: A nested exception occurred. Could not initialize physical connection. Connection Failed: A nested exception occurred. Could not create JCO connection. 'mshost' missing
I configure integration SAP portal and SAP BW system. All system requirements are complied.
Environment
SAP Business Objects 4.0
SAP BW 7.31
1. I configure SSSO between SAP BW and SAP Business Objects Enterprise 4.0
2. Next I setting integration SAP PORTAL with SAP BW system
3. I download certificate from portal. Select Certificates and key (http://sapserver:port/nwa) – See scren_
4. In next window selected Ticketkeystore and Saplogonticketpair-cert( near part window form)
5. Select Export entry button and binary format file certificate for download. Press download.
6. Save certificate file in local PC folder
In next step need export certificate file to SAP system. Sequence of step:
1. Run STRUSTSS02 transaction .
2. Chose certificate ->import.
3. Select downloaded certificate file
4. Select Add to certificate list button and Add to ACL button
5. Inter System ID and Client(000)
6. In next I download iview sap business objects template into sap portal: System administration->transport->Import. And select and download sap business Objects iview template in .epa format into sap portal.
7. Result – downloaded iview.
8. In next step I create system from template. System administration->system landscape.
9. In next step I input parameters for my system in Connector category, Sap business objects and user management categories: See screen _2
10. When I created the system and test the connection error occurred: See screen_3
This issue is important enough. I would be grateful for opinions and ideas. Thanks in advance.Did you find a solution?
-
How To Create A Technical And Business Systems For Web AS ABAP ???
Hi Experts,
How To Create A Technical And Business Systems For Web AS ABAP ???
Please Let me Know All the Step-By-Step Process to Create ????
Points Will be Given
Regards
KhannaHi Sumit,
When U Told the thing that first time to execute the RZ70 and All i Did this in XI System
So I got An Entry for the Technical System for XI System.
Now i Deleted that and Executed RZ70 in R/3.
When I Executed RZ70, I got this Error.
<b> "RFC Call failed: Error Opening an RFC Connection "</b>.
Now I am Unable to see Any Technical System Under Web As ABAP. It's Showing Empty Now.
Please Let me know
Regards
Khanna -
How to create dynamic connection in business view manager.
Hi Sir,
Can u explain how to create dynamic connection in business view manager.
Thanks
Vishali Raghava RajuHI Vaishali,
Can you please elaborate your requirement ?
-Regards
B -
How to create an instance of a protected class outside the enclosing packag
Hi all,
I have a piece of code like this:
package test;
public class A {
protected class B { }
How to create an instance of B outside the package test ? Could you please give me an example ?
Thanks
Ha ChauThank WirajR for your reply, but in your solution,
you have to create an instance of B inside class A
and pass it outside. I would like to know whetherwe
can create an instance of class B outside thepackage
test. That means I want the instance creation
expression of B appears outside the package test.Can
we do that?
If you want to use a class this way then it shouldn't
be marked protected. I can't see why you don't
just declare it public if that's what it is.
Wouldn't be much point to haveing a protected
modifier if it had no effect, would there?I think there is use for it if you use an interface to filter out the parts you want to give public access to, and keep the part you want to keep protected, protected -
How to create an instance for RemoteSession without using create() method
How to create an instance for RemoteSession without using create() method?
What's RemoteSession? Not in the JDK. And does the question have anything to do with concurrency?
-
How to create an instance of the database
No that won't work. I have to set it up independant from each other because I can't get to Uni until Monday and I want to have this done over the weekend really.
The main issue seems to be now how to create an instance of the databaseTo create a database:
you first connect as internal (user) with the passeword 'oracle'
the syntax is: connect internal/oracle
You type in this script:
STARTUP NOMOUNT PFILE=$PFILE
CREATE DATABASE db01
LOGFILE
GROUP 1 ('c/oracle/oradata/db01/redo_01a.log',
'c/oracle/oradata/db01/redo_01b.log'
) size 100k,
GROUP 2 ('c/oracle/oradata/db01/redo_02a.log',
'c/oracle/oradata/db01/redo_02b.log'
) size 100k
MAXLOGFILES 32
MAXLOGMEMBERS 2
MAXLOGHISTORY 1
DATAFILE 'c/oracle/oradata/db01/system01.dbf'
size 7M
MAXDATAFILES 254
MAXINSTANCES 1;
This script could be modified to reflect the features you want for your database.
db01 = the name you can give to your database
Good luck,
Henri -
Create webservice using different Business Objects
Hi Experts
Is it possible to create a webservice using different business Objects i.e "BOL Intergration for cases" and "Business Partner"?
This is a scenario:
I created webservice and on Business Object field I chose "BOL Intergration for cases" reason being that I want to see all attributes related to root object "case" and at the same time I also want to view attributes related to business object Busines Partner root object "Account" Is it possible to do that?
Thanks for your help
Regards
MariaHi,
>>>I created webservice and on Business Object field I chose "BOL Intergration for cases" reason being that I want to see all attributes related to root object "case" and at the same time I also want to view attributes related to business object Busines Partner root object "Account" Is it possible to do that?
sure it is - you can even create two WS for each of those and the third on that will be using both previous
Regards,
Michal Krawczyk -
New user created. How to create Central Person and Business partner
Hi,
I got a new users created in SRM 5.0 .how to create Central person and business partner.
Without CP & BP we cannot work. please guide.
Regards
G.Ganesh KumarHI GANESH
As you aware , assign the user to organisation structure via users_gen , the system will create a BP and Central Person , Position and user for you.
br
muthu -
What is an Instance in application server and how to create an Instance?
Hi All,
What is an Instance in application server and how to create an Instance? What is the procedure to get file path from an Instance?
What is the significance of Instance in ABAP?hi
good
go through these links,this will gives you complee idea about the creating instances in application serverl.
http://www.erpgenie.com/sap/basis/
http://www.sapdevelopment.co.uk/file/file_disall.htm
thanks
mrutyun^
Maybe you are looking for
-
Chaneg data capture--interface unable to capture the changed data
hello, when i add a src table to cdc and start a journal, i am able to view the new insertions into the source table ,in journal data of the table. but when i run an interface the journalised data isnt getting updated in the target table..... but the
-
Delete records manually from report
Hi, I am having an issue implementing delete process manually in a report. Report Query: select apex_item.checkbox(1,customer_id) as del, cust_first_name, cust_last_name from oehr_customers In the above query except checkbox, all other columns are st
-
I have had problems all day trying to restore my iphone. I keep getting an Itunes symbol with a usb picture. Can anyone help restore my iphone. I tried through itunes but kept getting a 2001 unknown message
-
I am having problems viewing email attachments with adobe reader? Help?
Hi there. Can anyone help me please?
-
Why is my DVD project freezing when a video clip plays?
Hi - I have a simple Encore(CS5 Mac) project that is that is "stalling" when played. The content of the DVD is made from an After Effects(CS5.5 Mac) project so I think I should provide information on that. The 30sec AE project is mostly timeline a