BOR or ABAP Class for MM41
Hi all.
I am wondering whether anyone ever use workflow in transaction MM41.
Does SAP provide standard BOR or ABAP Class for transaction MM41.
I know there is BUS1001006 but this only get triggers from MM01.
Does user exit or BADI is the only way to trigger workflow from MM41?
Thanks
Hello,
It might help if you said what MM41 was.
As usual, turn on the event trace (SWELS), create and save something in your chosen transaction and then check the event trace (SWEL) for any events.
regards
Rick Bakker
hanabi technology
Similar Messages
-
Include in ABAP class for Workflow
Hi,
In order to use BOR macros inside ABAP class, (From SAP help) came to know that we need to use include <cntn02> .
How to add this include to ABAP class for workflow?
Regds,
AkshayHi Akshay,
Slight difference, I said "keeping the class clean of BOR <i>code</i>". By all means use BO's in the class: basically create a ZCL_MATERIAL, and use BUS1001 as an attribute (I use a naming convention BO_* for these). As long as it's the right type (SIBFLPORB I think - no system handy right now), and the key values are populated correctly the system will instantiate it as necessary. So in WF I can refer to ZCL_MATERIAL.BO_MATERIAL whenever I need any of the BO's functionality.
You are correct though, creating a proper business class which you can instantiate such as material does involve a fair bit of effort and coding to set up. e.g. my last project I ended up creating one ZBOR subtype because all I needed was one new attribute - definitely not worthwhile creating a new class for. (USR01.zEmailAddress for what it's worth).
I've said before somewhere, it's not without pain, so if you're under time pressure etc, then it may be better to do whatever's quickest. There's nothing wrong with using BOR macros, it will still work for quite a few versions. I just meant to say that pure class(y) code is a preferred way to go if it makes sense to do so. This is not always the case.
Hope that helps,
Mike -
Error handling in Abap Class for SAP Workflow
Hi Experts,
I would like to know if we have an option in abap classes used in workflows to send errors to the workflow log. We can achieve this in BOR Object methods by using the EXIT_RETURN <CODE> var 1 var 2 to send the errors back to the workflow, but how is this achieved through methods from classes used in workflows.
Appreciate your quick responses,
ChaitanyaJust raise exceptions in the normal OO way. Any exception that is a subclass of CX_BO_ERROR should be automatically available in workflow. Use subclasses of CX_BO_TEMPORARY for temporary errors.
-
Abap Class for Enterprise Service
Hi guys.
I've published as webservice in SAP ECC as enterprise service get it in Enterprise Service Workplace.
I have two questions:
1- How can I know the abap class associated to this enterprise service.
2- Could I extend the functionality of this enterprise service? For instance I'd like to response with one more field. Is that possible or I have to create a new one?
Thaks a lot.
Regards.
Edited by: Christian Abad Chico on Feb 20, 2012 4:03 PMHi
May be the below link helps you,
[http://wiki.sdn.sap.com/wiki/display/EmTech/PublishWeberviceinABAP,ConsumeWebserviceinABAPandAdobeFlex.]
Regards,
Vijay V -
ABAP classes for WebTemplate development
Hi experts,
I am manipulating a report via ABAP classes. I need to hide an entire column including the header. Currently I have done this under the DATA_CELL method and have only been able to hide the KF area. If I need to hide the Header in the column (built under a structure) as well must I move all my code under the CAPTION_CELL method instead?
Secondly, I also need to search for a row by the text "Overall Results." Is there a quick way to search the Y axis for this particular row using the text "Overall Results?
markhi Mark,
you can try in
method CAPTION_CELL
if i_iobjnm_row = 'your charateristic to be hidden'.
C_CELL_TD_EXTEND = 'style="display:none;"'.
endif.
and ...
method CHARACTERISTIC_CELL
if I_IOBJNM = 'your charateristic to be hidden'.
C_CELL_TD_EXTEND = 'style="display:none;"'.
endif.
and I_IS_SUM <> 'X' if result not hide
to search 'Overall Result' (if you didnt get yet), can try
method CHARACTERISTIC_CELL
I_TEXT
not sure what's your requirement, to hide a characteristic you can set it bex query designer, characteristic's property 'display' = no display.
hope this helps. -
Is there an ABAP Object class which wraps or implements the BOR IMAGE?
( In particiluar, I wan't to be able to use the display method. )
Thanks...
,..Mikeclosed
-
ABAP Classes for date & day computation
<<Date questions have been asked so many times that they are not permitted in the ABAP forums>>
Hello, I have a requirement to get the date of last 2 thursdays. Can somebody please help with the class I should use for the purpose?
Thanks!
Edited by: Matt on Aug 16, 2011 11:50 AMHey,
DATE_COMPUTE_DAY will give you DAY number for any date, with day number 1 as Monday .....4 as Thursday....and 7 as Sunday.
SO, you can use ..
data: lv_day type SCAL-INDICATOR,
lv_diff type i,
lv_thurs1 type sy-datum,
lv_thurs2 type sy-datum.
PARAMETERS: p_date type datum DEFAULT sy-datum.
CALL FUNCTION 'DATE_COMPUTE_DAY'
EXPORTING
date = p_date
IMPORTING
DAY = lv_day
lv_diff = lv_day - 4. "since Thursday is 4
if lv_diff GT 0.
lv_thurs1 = p_date - lv_diff.
else.
lv_thurs1 = p_date - 7 - lv_diff.
endif.
lv_thurs2 = lv_thurs1 - 7.
write:/ lv_thurs1, lv_thurs2.
I have not included today's date if it is Thursday, if you want to include it, change 'GT' to 'GE'.
BR,
Diwakar
Edited by: Diwakar Aggarwal on Aug 16, 2011 10:49 AM -
File to Proxy Scenario using ABAP Class and DB Multi Connect
Hello Friends,
I have a scenario below and a proposed solution. I would like some input as to whether i am headed the right way.
Scenario: Thousands of records come in from the legacy accounting system. The fields of these records need to be mapped to SAP fields using cross-reference tables stored in DB2. Finally, summarize the records by deleting a few fields and feed to R/3.
Solution i proposed:
(1) File Adapter is used to send the file
(2) Although JDBC adapter comes first to mind but since i need to access the DB2 tables multiple times for each record i propose to use an ABAP class for the mapping. Within the ABAP class the intent is to open an database connection to DB2, read the relevant cross tables using native SQL and finally generate the output XML.
(3) Reciever is Proxy which feeds this generated XML to SAP for creating posting via BAPI_ACC_DOCUMENT_POST
Question: Is the above solution correct or is there a better method to implement this scenario?
Please let me know.
Thanks,
Minhaj.Looks fine. Few observations -
1. Whether it is ABAP class or Mapping in RFC lookup, you are making multiple trips to the database.
2. It looks like PI is being used only for reading the file and converting it to XML.
3. If using PI is not mandatory, then a complete ABAP class on ECC it self would be faster than swtching between PI Java, PI ABAP then round trips to DB2 finally data push to ECC.
If you could look at something like fetching all the required RFC look up data in one go and then map the fields according, might save u on processor and network resources.
VJ -
Hide a specific cell using ABAP classes
Hi Experts,
Is there a way to hide a specific cell using ABAP classes for reports?
MarceloHello Thomas Daly
I never saw a way to grant permission to a List, the only way I ever saw a list get its permissions is thru
the group site it resides in, the Discussion Board is the problem in this case (it has preconfigure permissions but they seem more like properties that you select the value from RadioButtons). However, ms-addnew gets rid of the Add new link but it
gets rid of the one in the Discusson Board too because Discussion Board falls in the category of List.
In other words ms-addnew in the master got rid of all of the Add new items, link etc as hoped but now
I can't add to the Discussion Board.
I am alright with a hack (I am open to any suggestions) that would work if it works but, the List's I am referring to are all "Links" in the Quick Launch so I dont know how you would be able to apply the jquery, how would you apply the
jquery to a Links in a Quick Launch?
Thank you
Shabeaut -
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] -
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. -
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 -
ABAP class or function for retrieving BEx query properties at runtime
Hello Experts,
I'm working on BADI RSR_OLAP_BADI and for a special calculation I need to know which characteristics are in the drill-down of the BEX query, sol later on I can aggregate some key figures using only these characteristics.
Problem is that structure C_s_DATA in method COMPUTE contains all fields of the query (filters, free chars, chars in the rows, etc) and I need to now which characteristics are currently being showing in the Bex analyzer.
So is there an ABAP class or function module I can use to find out this kind of information at run time?
Any suggestion?
Thank youTank you for the feedback,
I tried to use the class you provided, but I'm stuck now in how to get from within my class that implements RSR_OLAP_BADI interface, a handle, reference, o whatever represent my runtime query (not the query at design time) . As the class you provide must be instantiated before I can use
In pseudo code could be something like this
DATA my_query type query_ref.
my_query = get_rt_query().
my_query->get_state()
regards -
Whats ABAP class should I take for SAP BW
Hi Gurus:
I want to learn ABAP to code in SAP BW and R/3. I am planning to take some class from SAP Education, what SAP class you experts recommend.
I am working on SAP BW and my focus is to get better in ABAP coding for BW purpose.
Please suggest me.You can go through SAM's Teach Yourself in 21 days for ABAP. This good one for Basics. There are lot of posts in SDN regarding routines. You can also go through them and i hope you get some idea ......... Regarding SAP Class from SAP Education i have no idea
http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/abapindx.htm
http://help.sap.com/saphelp_erp2005vp/helpdata/en/43/41341147041806e10000000a1553f6/frameset.htm
http://www.geocities.com/rmtiwari/
Regards
Naga -
Hi all,
Can anyone give me a list of classes SAP has released for HR use by customers and all utility ABAP classes. Also any utility abap classes that would be useful for future. I am only interested in those relevant for ECC 5 and up.
Could you supply the BADIs or Enhancement Spots for HR too.
Thanks
WayneThe BADI's I have found most useful are the BADI exits that duplicate the existing PA30 PAI / PBO User exits. If you trace back to where the exits are called you will find the BADI call within a few lines of code - but the difference is that the BADI is called outside one layer of IF logic, so it gets called in some circumstances where the user exits do not - I think this was to do with certain change or copy data situations.
Can't remember the name of the BADI, and do not have a system available to check at present, but it was not hard to find when I looked in the system.
Others I have used are as exits in the HR to FI posting interface, and also some in the travel to vendor interface. There is also an exit for customising the PERNR search help - cannot remember if this was a class or a FM.
For moving data inside the user exits in a unicode compliant way there are classes for moving data from the flat PRELP character structure to individual infotype structures - CL_HR_PNNNN_TYPE_CAST=>PRELP_TO_PNNNN and CL_HR_PNNNN_TYPE_CAST=>PNNNN_TO_PRELP.
For general unicode compliant constants such as a Tab character there is class CL_ABAP_CHAR_UTILITIES with attributes like CL_ABAP_CHAR_UTILITIES=>HORIZONTAL_TAB.
Also if you go to SE38, select the Blue "Online Help" button, and then go to the ABAP Overview, you will find under the ABAP by Theme branch an entry "ABAP System Classes and Interfaces" which documents 20+ general ABAP classes
Hope this helps
Andrew
Maybe you are looking for
-
Retrieve values from a table of a JSP page in Servlet.
Hello all, I am new in JSP servlet world, I want to create a grid on JSP page using Servlet. Suppose i have some records in a JSP page and This JSP page will display these records in a tabular form. And, on a button click that table data should be ac
-
How to increase entire web site size in template?
How would I increase the entire web site size on a premade website template? All of these templates Im currently using created by the same company appear rather small to, especially in width. http://www.englecomputerservice.com/Home.html Do I have to
-
Purchases continue to go missing...five years and counting.
Does anyone know why the purchases that were once in my cloud don't show up with the little cloud now? I have had the same Apple ID for more than 5 years. I have had at least 4 computers and other devices over those 5 years that I have synced to th
-
Is it possible to change the compiler that is built into Sun Creator?
Is it possible to change the compiler that is built into Sun Creator? I would like to compile my project to run under the JNI. I have tried to use the command line to run the javah -jni filenames but I always get errors and my assumption is that I ne
-
Date_Navigator Element: How can I restrict/grey out bank hols/weekends
Hello, How can I restrict or grey out certain dates when using the date_navigator ui element in web dynpro? Thanks Samir