BOR representation in ABAP
Is it possible to create an ABAP class that inherits from a business object in the BOR ?
If it isn't possible, is there a way to create a business object instance in an ABAP program ?
Thank you,
Elad.
Hi,
You can have a look at the TRXN SE24 -> class browser. Here you will find all the Classes related to all the application components....
I think you can instantiate these classes and use...
Hope it helps...
Lokesh
Pls. reward appropriate points
Similar Messages
-
Hi,
Can anybody say when to use BOR object and Abap class in the task with an example.
Thanks,
MugundhanThere is no any specific condition or rule that for this purpose you need to use BOR and Class , it depends on your requirement. not only the requirement but also the new techniques to make classes not just as simple way to create objects but when you use classes in the Workflows they are not simple classes but they are BUSINESS CLASSES which makes a lot of difference.
Check the blogs of [Jocelyn Dart|https://www.sdn.sap.com/irj/scn/wiki?path=/pages/viewpage.action%3fpageid=55566] -
Graphical Representation in Abap
Hi Abappers,
How to show Graphical Representation in Abap.If is possible plz send by showing examples.
Regards,
vani.Hi,
The following FM's are used to create graphs in SAP...
You can execute them and check the paramters to be passed
BUSG SAP Business Graphics
GRAPH_2D Calling up the 2D business graphics
GRAPH_2D_MENUE DO NOT USE (use 'GRAPH_2D' and 'GRAPH_BUSG_MENU_SET')
GRAPH_3D Calling up the 3D presentation graphics
GRAPH_BUSG_COLOR_SET Definition of color pallets for business graphics
GRAPH_BUSG_MENU_SET Pushbutton menu (tool bar) for all BUSG modules
GRAPH_MATRIX Calling up SAP Business Graphics (2D, 3D and 4D)
GRAPH_MATRIX_2D Calling up the 2D graphics (user-friendly version)
GRAPH_MATRIX_3D Structure of 3D graphics (user-friendly version)
GRAPH_MATRIX_4D Calling up a 3D graphic (4th dimension stacked representation)
Regards
Sk -
Hi Experts,
We are implementing the Leave Request WF using WS12300111. The user raises a leave request from the portal.
As per the functional point of contact, they have said that this WF can be set up in the configuration in SPRO to be triggered when a leave request is raised.
When we saw the standard SAP provided WF, the steps in it are based on ABAP class. I just want to know if the approach has to be only using ABAP classes or can BOR objects be used.
We require some customizations in the sense, we need to add some custom logic to retrieve some data from some custom tables and also display the same.
Kindly let me know if we need to use ABAP classes or we can use a BOR Object.
Cheers,
Belinda ClarkeHi Karri,
Thanks a lot for your response.
I was actually evaluating the possibilities of the same as our WF consultant is currently on leave. I was just seeing a scenario where they have used BOR Object for Travel and Expenses module. When i saw the standard WF for Leave Request WS12300111, I was seeing mainly ABAP Objects and there was no BOR objects used.
I just wanted to confirm whether we could create a BOR Object or go on with the ABAP Classes. Does the ABAP Classes involve a lot of effort? We need to actually send email notifications and add some new steps etc...so was just thinking as to which would involve more effort.
We need to actually retrieve data from table PTREQ_ATTABS and send the email notification to the concerned user whenever the leave request is approved/rejected/cancelled as shown below :
Your leave request has been approved/rejected
Name : abcde
Emp No : 123456
Type of Leave : Annual Leave
Date : 7th July to 11th July
No. of Days : 3 days
So do u imply that all of this can be done with an ABAP Class
Could you kindly guide us. -
Hi,
I would like create new PO workflow (BUS2012) using ABAP OO workflow. Is it possible to use the existing BOR event, such as RELEASESTEPCREATED instead of creating new one for the ABAP OO workflow class? And if we can re-use the event, how do we bind the BOR to the class object?
ThanksHello Jani,
I just spotted this almost by accident. It is custom on this forum to ask new questions in a new thread. Why? Because your question is unrelated to the title of this thread, so it already has less chance to come to the attention of someone who knows the answer. Of course you can always place a link to an older thread into a new question as well.
Anyhow, to your question, you should use a RETURNING parameter, which enables you to perform the instantiation in a container operation step - far better performance-wise. This is described in detail in the WF book (all authors' proceeds donated to charity). But you're of course always still welcome to ask further questions on here if you get stuck.
Regards,
Mike -
Guys,
Not even sure if this is possible...
How do I find BOR calls in an ABAP program.
Example: BUS2088 or BUS2008 in program SAPLCOIH - for PM/CS orders).
PeteAHi Peter,
Specify your business object and the method of the BOR object in the BASIC data tab in PFTC transaction.
If you want to trigger the Workflow through and event then you will have to first link your event of the Business Object to the WorkFlow Task in Workflow Builder (TCODE PFTC) and then you can do the following :
Please refer the code below to for your information.
Data for workflow trigger
DATA: objtype LIKE swetypecou-objtype,
objkey LIKE sweinstcou-objkey,
event LIKE swetypecou-event,
event_container LIKE swcont OCCURS 0 WITH HEADER LINE.
objtype = 'ZBUS1001'. "Material [sub object of BUS1001]
MOVE v_wfmatnr TO objkey. "V_WFMATNR is material number
event = 'CreatePLMMaterial'."Custom Event defined in
ZBUS1001 [Tcode SWO1]
REFRESH event_container.
*Following are the Event parameters required in the *Workflow
swc_set_element event_container 'Attachment' v_wfattachment.
swc_set_element event_container 'Material' v_wfmatnr.
swc_set_element event_container 'TisGroup' v_wftisgroup.
swc_set_element event_container 'SchDate' v_schdate.
CALL FUNCTION 'SWE_EVENT_CREATE'
EXPORTING
objtype = objtype
objkey = objkey
event = event
TABLES
event_container = event_container
EXCEPTIONS
objtype_not_found = 1
OTHERS = 2.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
COMMIT WORK.
Please reward some points if it helps you.
Regards,
Amit M. Mishra -
Hello,
I am writing method in ABAP class which I will link to the Workflow Step. I want to access values of one of the Workflow Element which is Multiline and refering to BOR Object Type. My queries are as below:
1. How should I define Importing Parameter of Method which will import values from the Workflow Element which is Multiline and refering to BOR object type.
2. If I change value of that Workflow Element (Multipline refering to BOR object type) in ABAP class method, will it be automatically reflected in Workflow Container due to binding?
Edited by: Ashwin Sonkusare on Apr 1, 2011 3:35 PMHi,
1. How should I define Importing Parameter of Method which will import values from the Workflow Element which is Multiline and refering to BOR object type.
Please create a table type same as workflow multiline element type. ( You can also use standard table if present ).
Then use this table type as the type of the import parameter of the class.
Then u can pass the multiline element of workflow to abab calss
2. If I change value of that Workflow Element (Multipline refering to BOR object type) in ABAP class method, will it be automatically reflected in Workflow Container due to binding?
If u change the Workflow Element (Multipline refering to BOR object type) in ABAP class method, then u need to update the values of the workflow multiline element through reverse binging ( binding abap class to WF ).
Thanks and regards,
SNJY -
Link BOR Event with ABAP code (program or function)!
Hello experts,
I am trying to link program or function to bor event. Change of data in HR IT0002 trigger event CHANGE of PERSDATA Object. I need to execute some ABAP code (program or function) on CHANGE event, so I have to link event and ABAP code.
Question: is it possible and how?Hi,
It is very much possible....
You can use the Workflow & use BO as PERSDATA & this workflow can be triggered on event change.
& You can write your code ...
Regards,
Rahul -
Hi
I am using a BOR objects, but in one of my activity I am trying to use a Z class. In the method of the Z class I want to get some of the attributes of the BOR class.
I have followed the same approach ( Defining constant ) as mentioned in the blog by Jocelyn Dart.
I am able to get the Binding in the workflow but not able to get the attribute value or instantiated object in the method.
How do I get those attributes or the instance of the BOR object in the method. Am I missing something?
Thanks
DhavalHi
Well I wanted to achieve something as follows:
1) The workflow was getting triggered from an Event of the BOR. So the binding was from the event to the workflow
2) Now the second step in the workflow was a method of a Zclass in the workflow. Somehow I was not getting the key of the BOR to the class so that the class can be instiated. ( Say the PR number or PO number which triggered the event)
I am able to do it using static attribute of the class to instiate the class. I do know whether the approach is right, but somehow it resolved my issue.
1) I declared a static attribute in the class.
2) Defined a container and hold the value in the container from the event object id. ( This holds the PO number which triggered the workflow )
3) In the binding between the workflow and the task where my class was used, I passed the container to the static attribute of the class.
4) In the class method FIND_BY_LPOR, I used the static attirbue instead of LPOR-INSTID to create the object.
Thanks for you help.
Regards
Dhaval -
Hi Friends,
I am new to work flow , I need to understand the BOR in HR ABAP. Can any one please help in understnad the BOR in HR ABAP and How to identify the HR related BOR.
It will be helpfull if you have explain with an Business scenaraio (For Example Hiring or Sepration -- > what are the BOR are related to this scenario)
Thanks!Hi Dilek,
Thanks for your reply!
I understand how to identify the BOR using HR Package name. I need to understand more abt business secnario and Paritcally how to handled the Business secnario through workflow.
Let say example : when I am hiring Employee through PA40 email has to trigger to respective deprtments. Could u pls help in understnad the Business secnarios sepcial for HR Workflow.
I have some basic understanding of how to use work flow.. to explore more i need to pratice the busniess scenarios. If you ahve any examples which will help me in understnad one or two business scenarios that will great help.
You can send documents to my personal email id.
Thanks for your help! -
Problem with "CALL Transformation" in ABAP
Hello All,
I am creating XML from ABAP program and using CALL TRANSFORMATION. Everything works fine but when my XML is created sometimes in some "element" values it is truncating space between the texts. For example, I have a field "description" with value "Bon Apetite" it changes to "BonApetite" (space truncated) after transformation! I did research everywhere but could not find why this would happen! Please give me any feedback if you have any information.
Thanks.
MithunHello Mithun,
when you use the call transformation statement you have to specifiy the xslt transformation used. As a first step you usually use the transformation with the name ID. This is a special transformation for making the asXML representation of abap data. Unfortunately if you look into this transformation you find the following:
<xsl:transform version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
>
<xsl:strip-space elements="*"/>
<xsl:template match="/">
<xsl:copy-of select="."/>
</xsl:template>
</xsl:transform>
If I remember correctly when you use another transformation this will first call the ID transformation and after this the specified one. So it should not be possible to just copy ID transformation and remove the line. I'll have to think again how to avoid the behaviour.
Best Regards
Roman -
How to Handle Business Object event in ABAP class
Hello Everybody,
I wanted to know if it was possible to reference BOR objects in ABAP class and handle BOR events in ABAP Objects.
Thanks in advance.Hi,
Catch the et_VALIDATE event, when InnerEvent = False and ItemChanged = True.
If pVal.EventType = BoEventTypes.et_VALIDATE Then
If pVal.InnerEvent = False And pVal.ItemChanged Then
'TODO Your code here...
End If
End If
Regards,
Vítor Vieira -
ABAP OO Help material needed?
hi guys
i am new to BI-7 and i could write start routines etc in BW3.5 but now in BI-7 everything is ABAP Object Oriented can some one tell me where to find some good site or file with syntaxes for basic statements. like Loop at, if than, and defining internal tables etc... in ABAP OO.
secondly is it true that u have to use ABAP OO for Satrt and End rt's but for the Characteristic Rt u can use old ABAP? thats weird if true.
thanksHi Adnan,
Check below blogs for your reference...
Why use ABAP OO with Workflow?
Referencing BOR objects in ABAP OO classes
Also find the below threads...
ABAP issues in BW
How to convert old Abap routine in to ABAP OO in 2004s
Find the below search link which helps u...
https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_forums&query=abapOOinBI7.0+routines&adv=false&sortby=cm_rnd_rankvalue
Assign points if these helps u...
Regards,
KK. -
ABAP OO - Any tips on where to start?
Hi all,
we are in 6.40 and I have read Jovelyn's blogs on ABAP OO.
We are now ready to start developing the workflow and I am a bit unsure about how to get started...
The workflows are for HR business processes. A few questions:
1 - If anyone told me they were about to start developing workflows for HR, I would immediatley suggest that BUS1065 and EMPLOYEET would be used. If we are going to used ABAP OO, can anyone give me a hint about which classes are normally required? e.g. you will need one to represent the employee, another one to represent position, etc
2- I would rather not have to replicate BUS1065 / EMPLOYEET in a new class; I am aware that we can reference BOR objects in ABAP OO classes but I don't know how to do it or how to use it.
3 - I noticed several classes CL_HRPA_INFOTYPE_*. I am assuming they represent the several Infotypes delivered in HR. Any hints about how to 'test' these classes - I didn't quite grasped yet how to 'test' these classes - I am trying!
4 - If I want to use CL_HRPA_INFOTYPE_* in my workflows, I need to add IF_WORKFLOW interface. How to do that? Do I say that CL_HRPA_INFOTYPE_* is a Superclass and add the interface IF_WORKFLOW in my ZCL_HRPA_INFOTYPE_*?
Thanks in advance for any help you can provide.
I really want to start using ABAP OO in my workflows, but feeling really unsure about how to do it!
CristianaThanks Mike, I am still septical about going for ABAP Classes - I know it is the direction that SAP wants to go, but with so little information about how to do it properly, I am afraid of doing more harm than good.
You suggested that I should use a BO as an attribute of a class. So, are you suggesting that a should create a class called ZCL_EMPLOYEET, assign the BO EMPLOYEET as an attribute type SIBFLPORB and add any extra bits and pieces that I need in class ZCL_EMPLOYEET?
Have you worked with classes CL_HRPA_INFOTYPE_*. I am assuming they represent the several Infotypes delivered in HR. Any hints about how to 'test' these classes - I didn't quite grasped yet how to 'test' these classes - I would like to see what they do, but I am not getting it.
Thanks for any help you can provide,
Regards,
Cristiana -
Hello,
I'm migrating BOR tasks to ABAP OO (some compatibility issue arose) using a task with a class/method. The method is static like the BOR method was instance independent.
Inside my method I need to retrieve the workitem ID. In BOR method I used the macro swc_get_element to retrieve the workitem object and then the workitem ID. How do I do the same thing in a class method?
I tried using the IF_SWF_IFS_PARAMETER_CONTAINER but it is only usable in instance methods. Does the method need to be instance based?
Thanks.Hello,
Curious, I'm able to bind the task id (&_WORKITEM.WORKITEMID) to a method in the task builder.
Perhaps try to acces to the task via SWDD instead of directly going to PFTC.
Or try to put the value manually. If you have a look at SWI2_FREQ, at an item level, the field &_WORKITEM.WORKITEMID has the workitem id and not the workflow id.
Olivier
Maybe you are looking for
-
IOS 5.1 update and Music App Artist sort
Since I have updated my iPhone to iOS 5.1, I have noticed something in my music app. When I select to sort my library by Artist, it now includes every artist that is included on any compilations I have. This wasn't doing this before. Whenever I had a
-
Proyecto en FLASH MX Professional 2004
Estimados amigos. Tengo un archivo enorme desarrollado en Flash. Lo he dividido en archivos más pequeños formando lo que se llama un "proyecto". ¿Tengo necesariamente que designar un sitio y un modo de conexión? ¿Cómo puedo hacer para dividir mi arch
-
IPhoto 8.1.2 - want to replace with iPhoto '11 but App Store says Installed
I have a MacPro at home and a MBP which I also use - I have the 'old' iLife 09 which provided iPhoto in ver. 8 form [updaed to 8.1.2 in 2010] - I went to the App Store to get iLife '11 to update fully and it says it's Installed. But I checked on my M
-
Hi all, when I try to import tables from database I not see none Oracle connection type. I see only ODBC 2, ODBC 3.5, DB2, XML. I have installed Oracle 9.2 (created into one Tablespaces, Users, ecc..) and after OBISE1. How do I can connect directly w
-
Simplest way to copy iPhoto library
What is the simplest way to copy the iPhoto library from my laptop to my new iMac? I don't want to use migration because iPhoto and iTunes are the only things I want. I've synced contacts,mail,etc with Mobile me.