Where to include custo object types in workflow events?
Hi All,
One of my friend is working on HR related Workflow. He has a question about where to include the custom change document infotypes in workflow events.
To make it clear, he says there are three transactions swehr1, swehr2 and swehr3. Now, if he wants to include a custom object (Z object) which transaction should he use?
Please reply ASAP.
Regards
Swapna.
Yes, you use swehr1 to link the infotype to the object type. Then use swehr3 to create the event linkage to your function module or object type event.
I just did this with an e-recruiting project and it worked fine. For example:
swehr1 entry:
NB Requisition 5131 Persons Responsible ZERC_REQUI Job Requisition
swehr3 entry:
NB Requisition 5131 Persons Responsible INS 0 ZERC_REQUI Z_ON_MEMBER_ADD
This accomplishes the following: when a record is inserted for infotype 5131, the function module Z_ON_MEMBER_ADD runs. That function module decides if or which event should be raised. Alternatively I could have entered an event for the ZERC_REQUI object type, but then the event will always be raised on a 5131 record insertion, and for my application I didn't want that.
I hope this example is helpful.
~Margaret
Similar Messages
-
Batch Design Capture of tables that include Object Types
When I attempt to use the Batch Design Capture facility to capture a table that includes an Object Type the facility dies without completing.
I am using Designer 9i / Oracle Design Editor v9.0.2.80.4.
The Batch Design Capture facility reports the following and then exits:
Repository connected successfully
Server Generator 9.0.2.80.4, Wed Jun 09 17:24:33 2004
Copyright (c) Oracle Corporation 1995, 2002. All rights reserved.
CDS-15334 Warning: The Oracle Object Type MESSAGEHEADER_TYPE already exists in the Repository. NOMERGE_AND_SAC Rule selected
=> the captured property values will not replace the existing property values in the repository but the Rules for the Secondary Elements (SACs) will apply for their own update
CDS-11305 Warning: Column 'E2B.MESSAGEHEADER' property DEFAULT VALUE exceeds maximum length (60) - Truncated
The table that I am trying to capture looks like this:
E2B
E2B_ID NOT NULL NUMBER
MESSAGEHEADER MESSAGEHEADER_TYPE
DATE_TRANSMITTED DATE
DATE_RECEIVED DATE
DATE_ACKNOWLEDGED DATE
... other columns ...
MESSAGE CLOB
and MESSAGEHEADER_TYPE looks like this:
MESSAGEHEADER_TYPE
MESSAGETYPE VARCHAR2(16)
MESSAGEFORMATVERSION VARCHAR2(3)
MESSAGEFORMATRELEASE VARCHAR2(3)
MESSAGENUMB VARCHAR2(100)
MESSAGESENDERIDENTIFIER VARCHAR2(60)
MESSAGERECEIVERIDENTIFIER VARCHAR2(60)
MESSAGEDATEFORMAT NUMBER(3)
MESSAGEDATE NUMBER(14)
Is is possible to use Designer to capture tables that include object types?hi,
while running the package, use the activity "Maintain Table Reduction" in phase System Analysis to include / exclude / reduce the table from transfer.
Srila. -
Where to include the SolarisNamingProfile object class
Hi,
trying to use DS 5.1 to authenticate Solaris 8, I don't know where to include this object class. LDAP Setup and Configuration Guide (806-5580 from Jan 2001) refers to the slapd.user_oc.conf file that no longer exists.
Which of the ../config/schema files should we use?
TIA
IvoSrini
Use customer-function EXIT_SAPLVEDA_001 to put your custom checks for Segment E1EDKA1.
Thanks & regards,
Amol Lohade -
Predefined object type for Purchase order release stratergy
dear experts,
There are already predefined object type for purchase order like bus2012 where i can create new events and methods. I want to know is there any predefined objects for purchase order release strategy. The requirement is there i want to define method, that should display the po release screen. If i bind this method with work flow template, mail should be triggered and if i click the mail po release screen should be opened for respective material...
regards,
Kandhan GHello
I'm using the BUS2012 Object type in workflow task but in simulation the task run correct but in the transaction when modify a purchase orden the task send an error...
maybe the error is similar...did you solve this problem?..
Thanks!
Wladimir E.
[email protected] -
Event of delegeted Object type not showing up in event trace
Hi,
Please forgive me if this question has already been posted, I created a subtype for the object BUS2032 as ZSALESDOC and delegated the later the to the standard object type BUS2032 , but when i create a sales order it is not showing up in the event trace (TCODE : SWEL), only standard object type BUS2032 is showing up, and the ZSALESDOC object type's CREATED event is not showing up, Please i need inputs on any other thing i am missing out for delegating this object.
Regards
Narendiran RathinaveluHi
check whether you have done the following after delegation:
Event creation in status management(BSVW)
Press Customer settings
New entries
enter status(VBK) - Your copied object type ZSALESDOC
Status Restrictions
I00002 (syst Status) ..REL (released)..SAVE and see once again
Reward points if useful
Regards
Anji -
Workflow event generation failed
Hi All,
I've created a workflow which would send mail if any change occurs to HR masterdata, i've tested it successfully, now my problem is that i'm failing to generate event ,that is the change done in pa 30 should generate an event but it fails to do so.event linkage is done thru Swetypv
i've checked swehr1 swehr2 and swehr3.
i dont know the function module used in swehr3.
please help me to find out what the problem xactly is?
Thanks in Advance
HariCan you check following steps
1. Go to transaction SWDD
2. Select your workflow
3. Click on the basic data i.e hat icon on application toolbar.
4. Go to start tab
5. In workflow start by triggering event check if you have specified triggering event by 6. specifying object type and event
7. You should get green led icons in first and second column atleast.
8. If you have not specifed object type and event knidly do so and activate WF
9. If not assign object type and triggering event and activate by clicking on first column and activate WF.
Try this and let us know ur finding..
Enjoy SAP.
Pankaj -
Including Adhoc Objects in Workflow Item
Hi,
We have a process where we an External program that is creating IDocs for us and we have a Z FM to process this IDoc. If during processing within the FM the process dodnot complete we are raising a Workflow Event ( Z - Business Object ) that sends notification to a SAP users Inbox.
We need to link the Originating IDoc linked as a OBJECT in the workflow notification item.
Can I use Adhoc Objects and How do i use it. I have already created a container element referring to Object Type BO - IDOCAPPL. What i am not able to do is how to get the values populated in this element. Are there special function modules available to populate Adhoc Objects.
Has anyone used the adhoc objects. Or point me to some sample proram that use these.
Regards,
ArunavaSolved by self.
1. Create a variable for the object reference. Use the following command to do this:
DATA <Object> TYPE SWC_OBJECT.
2. Create the object reference. Use the following command to do this:
SWC_CREATE_OBJECT <Object> <ObjectType> <ObjectKey>.
3. Write the object reference into the container using the following macro instruction:
SWC_SET_ELEMENT <Container> <ContainerElement> <Object>. -
Methods inside object types WORKFLOW
Hi workflow gurus
I am trying to implement my own method in a subtyped object type, my requirement is that
if a particular condition is true then a particular outcome should be active.
For example
begin_method mymethod changing container.
select * from xxx where fff = ccc.
case xxx-ggg.
when 'aaa'.
//I want the corresponding outcome to be active
when 'bbb'.
//I want the corresponding outcome to be active
endcase.
end_method.
these outcome should show up in my workflow step.
Can any of the gurus help me out on this.
Regards
Narendiran RathinaveluHi,
I am giving you sample code with which your issue will be resolved. in case if you have any problem please ask.
CALL FUNCTION 'Y_WF_PREQ_AUTO_PO_CHG_POSSIBLE'
EXPORTING P_BANFN = OBJECT-KEY-PURCHASEREQUISITION
P_EKGRP = OBJECT-KEY-PURCHASINGGROUP
TABLES T_EBAN_REDUC = T_EBAN_REDUC
T_EKPO_REDUC = T_EKPO_REDUC
T_COMPARISON = T_COMPARISON
T_DIFFERENCE = T_DIFFERENCE
T_MESSAGES_TEXT = T_MESSAGES
T_ENDORSER = T_ENDORSER
EXCEPTIONS PURCHASE_REQ_FIELD_EMPTY = 1
NO_PURCHASE_REQ_DATA_FOUND = 2
NO_PURCHASE_ORDER_DATA_FOUND = 3
FUNCTION_PROBLEM = 4
CURRENCY_CONVERSION_FAILED = 5
NO_ENTRY_IN_T024 = 6
NO_VALID_BUYER_FOUND = 7
QTY_UNIT_CONVERSION_FAILED = 8
NOT_ALL_ITEMS_APPROVED = 9
ALL_CHANGED_REQ_ITEMS_DELETED = 10
SEVERAL_PO_ITEMS = 11.
IF SY_SUBRC <> 0.
CASE SY_SUBRC.
WHEN 1.
EXIT_RETURN 9001 W_SY-MSGV1 W_SY-MSGV2 W_SY-MSGV3 W_SY-MSGV4.
WHEN 2.
EXIT_RETURN 9002 W_SY-MSGV1 W_SY-MSGV2 W_SY-MSGV3 W_SY-MSGV4.
WHEN 3.
EXIT_RETURN 9003 W_SY-MSGV1 W_SY-MSGV2 W_SY-MSGV3 W_SY-MSGV4.
WHEN 4.
EXIT_RETURN 9004 W_SY-MSGV1 W_SY-MSGV2 W_SY-MSGV3 W_SY-MSGV4.
WHEN 5.
EXIT_RETURN 9005 W_SY-MSGV1 W_SY-MSGV2 W_SY-MSGV3 W_SY-MSGV4.
WHEN 6.
EXIT_RETURN 9006 W_SY-MSGV1 W_SY-MSGV2 W_SY-MSGV3 W_SY-MSGV4.
WHEN 7.
EXIT_RETURN 9007 W_SY-MSGV1 W_SY-MSGV2 W_SY-MSGV3 W_SY-MSGV4.
WHEN 8.
EXIT_RETURN 9008 W_SY-MSGV1 W_SY-MSGV2 W_SY-MSGV3 W_SY-MSGV4.
WHEN 9.
EXIT_RETURN 9009 W_SY-MSGV1 W_SY-MSGV2 W_SY-MSGV3 W_SY-MSGV4.
Also at Object's Method level you have to define the exceptions which the method can throw.
now when you select the method in your task level, then exceptions defined at this method level will be shown at Task level.
Thanks,
sksingh -
How to include the ordinary program in the BOR object type program
Hi Guys, while i am trying to include a program in the BOR object type program. It is showing the following error:
"Statement 'INCLUDE Z_ERC_SEARCH_VALOFACT_MACRO .' is not permitted in BOR".
then, i tried to add "<" and ">" to enclose it, but it wants the access key to create it. anyone knows how to add the ordinary program in the BOR object type program.It's correct that we CAN'T insert our INCLUDES in BOR program. We CAN only use TYPE-POOLS there. So you can create Type Group with TYPES, CONSTANTS and DEFINE statements, and then use them in BOR programs.
Using DEFINE you can construct MACROs with parameters and call your code there. It's limited, and not the easiest way, but some things can be achieved this way. Also forget about using Code Patterns while editing Type Group.
Note: Use TYPE-POOLS statement after INCLUDE statement in BOR program .
Best regards,
Tomas. -
Workflow with Object Type LFA1
Dear Workflow Gurus,
My business scenario is as follows:
1. User will create the Vendor Master
2. Workflow will be triggered to the Manager so that he can check it (Display only)
Basically, I created a workflow with the following:
Start Event - BO LFA1 CREATED
Task - BO LFA1 DISPLAY
I have tested my workflow at SWDD and SWUE. It is working fine and I get the notification in my SBWP. I can then double click/execute the item in my SBWP Inbox and it will take me to XK03 (Working Perfectly). However, in a real time scenario, when I create a Vendor Master via either FK01, MK01 or XK01, I dont get any notification in my SBWP. Im puzzled as the test at SWDD and SWUE was a success.
Im wondering whether Im using the correct Object Type and Method for my START EVENT - BO LFA1 CREATED. Please take note that everything is Active, has been binded and I have assigned (Import checkbox) LFA1 in my Workflow Container
Please advise.Hi,
It looks no event is created from FK01, MK01 or XK01.
Please activate the workflow event trace and check the event.
Regards,
Masa -
Workflow - Create a new buisness object type for an new infotype.
Hi all,
I have an issue with creating a new buisness object type, which is related to a
supertype, for an new infotype.
I am new to workflow and business object. I don't have much knowledge in these area. I need to resolve this problem ASAP.
Could someone please provide me a step-by-step guide on how to create a new business object type, which is related to an existing supertype, for an newly created infotype?
If would be very much appreciated if someone could assist me in resolving this issue.
Thank You.Business objects are maintained in SWO1 creating a subtype is done with the button: Create subtype (F9)
If you don't have knowledge of workflow or abap objects, it is perhaps better to tell your employer that and find someone who has.
If your problem is simply only creating a subtype then go with the instructions I already gave you, if however more things need to be done, like extending the subtype with (virtual)attributes, methods, events, delegating the subtype and implementing the methods in newly created tasks and subsequently workflows I really advise to find someone who can do this, or attend a SAP course on this subject.
Kind regards, Rob Dielemans -
Object type for Proxy for sending Notifcation Workflow
Hi
Object type for Proxy for sending Notifcation Workflow.
Early reply is highely appriciable.
Thanks,
Naidu.Could you make your post more cryptic? There were still some things I could understand.
Perhaps you should take a look at the forum guidelines and especially at the part on asking a question. you can find the forum guidelines through the sticky thread at the top of this forum or through the Community Guidelines which you can find on the left side of your screen.
Regards,
Martin -
S/A bridge problem: No object type found for the message
Hi all,
I've been spending days looking into the following problem. I have a RFCXIFile scenario. The R3 system sends data via an RFC to XI and XI post the data as a flat file on a certain server using FTP.
This scenario worked just fine for 1 exception. I could only run this scenario once. The second time I got timeouts when checking the data sent to my RFC destination using SM58. When I reactivated my RFC communcation channel I could again send 1 RFC to the system. All subsequent tries would fail.
I guess this is due to the fact that I use a synchonous call (RFC) to an asynchronous one. Thus the adapter is still waiting for the response from the XI system and will not accept any further new calls from R3.
So I figure let's use this pattern called the S/A bridge. So I designed everything according to guides and examples and I'm quite certain everything is configured right but when I run the scenario I get the following message:
<i> <!-- Call Adapter
-->
- <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">
<SAP:Category>XIAdapter</SAP:Category>
<SAP:Code area="BPE_ADAPTER">UNKNOWN_MESSAGE</SAP:Code>
<SAP:P1 />
<SAP:P2 />
<SAP:P3 />
<SAP:P4 />
<SAP:AdditionalText />
<SAP:ApplicationFaultMessage namespace="" />
<SAP:Stack>No object type found for the message. Check that the corresponding process is activated</SAP:Stack>
<SAP:Retry>M</SAP:Retry>
</SAP:Error></i>
It seems that the adapter cannot find any integration process to send the message into!?
I've looked at numerous threads on sdn and tried all kinds of stuff (looked at the cache==> code 0 = OK , tried to reactivate my integration process, checked the interface determination,...), but to no avail. Does anybody has an idea what could be wrong ?
Any help would be greatly appreciated for I'm all out of clues....
BobFirst of all, Thank you for trying to help me out here.
Some answer to your suggestions/questions:
The IP has return code 0 in SXI_CACHE. so that doesn't seem to be the problem.
I've checked the BPM for syntax errors. I doesn't have any.
I've reimported the BPM into the integration directory.
And did a full cache refresh in SXI_CACHE. Return code is (stays) zero, so that's OK.
I've already included the error message from SXI_MONI. It is in the last step ("Call Adater") that the error occurs.
The other steps execute just fine...
The RFC communcation channel accepts the incoming RFC call and puts into the pipeline, so no problems with the communication channel either. the problem is actually when the pipeline is trying to forward the message into an IP trhough the BPE_ADAPTER (according to SXMB_MONI).
Therefore I'm not able to go to into PE, because the workflow is never started. the BPE_ADAPTER does not find any active process for the interface determination i've entered.
So i can not debug the IP in the PE and check container variables, like some of you mentioned.
Maybe some more information about the scenario:
The RFC is called from an R3 system to XI over the interface "CONTROL_RECIPE_DOWNLOAD", which is an imported RFC, with a request and response message type.
Then I got a receiver and interface determination with lead the incoming RFC message to the IP, into interface "XI_ERP_MF_MD_CONTROL_RECIPE_REQ_AI_MI".
This is an abstract synchronous interface based on the request and response types of the "CONTROL_RECIPE_DOWNLOAD" imported RFC.
This interface is used the first step (receive) of my BPM as the synchronous interface to open the S/A bridge.
The message (container var) used in this step is
name: CORREQ
Category: Abstract interface
type: "XI_ERP_MF_MD_CONTROL_RECIPE_REQ_AI_MI"
The interface "XI_ERP_MF_MD_CONTROL_RECIPE_REQ_AI_MI" is an abstract, asynchronous interface based on the request type of the "CONTROL_RECIPE_DOWNLOAD".
Then there are 2 send steps for putting the flat files into place and finally i close the the S/A bridge using message:
name: CORRES
Category: Abstract interface
type: "XI_ERP_MF_MD_CONTROL_RECIPE_RES_AI_MI"
The interface "XI_ERP_MF_MD_CONTROL_RECIPE_RES_AI_MI" is an abstract, asynchronous interface based on the response type of the "CONTROL_RECIPE_DOWNLOAD".
I hope this information gives you guys a better understanding of hte problem.
Really looking forward to see more suggestions and to solve this nasty problem ...
Regards,
Bob -
Calling a PL/SQL from VB with IN argument of object type
I need to call a PL/SQL function in Oracle 8.1.6 from VB. One of the IN arguments is an object type (TYPE). How would I instantiate the variable of Oracle object type on VB side so that it can be passed to the Oracle?
Thank youYou have some flaws in your code.
First - don't use same identifier for pl sql variables ( including parameters) and column names. In your case oracle will evaluate the where clause as where column_name=column_name which is probably not what you want. The next one - you should ensure that select into yields one row , not more, not less, otherwise you 'll run into exception.
To actually print the desired values, you have to use dbms_output aware client ( sqlplus is such one) and for sqlplus in particular you have to issue set serveroutput on
Here is a very basic example how can you get it to work:
SQL> SELECT * FROM V$VERSION;
BANNER
Oracle Database 10g Express Edition Release 10.2.0.1.0 - Product
PL/SQL Release 10.2.0.1.0 - Production
CORE 10.2.0.1.0 Production
TNS for Linux: Version 10.2.0.1.0 - Production
NLSRTL Version 10.2.0.1.0 - Production
SQL> CREATE OR REPLACE PROCEDURE FIND_EMPLOYEES
2 (p_first_name IN VARCHAR2)
3 IS
4 LAST varchar2(10);
5 BEGIN
6 SELECT LAST_NAME INTO LAST FROM EMPLOYEES WHERE FIRST_NAME = p_first_name;
7 dbms_output.put_line(LAST);
8 EXCEPTION
9 WHEN no_data_found THEN
10 dbms_output.put_line('There is no one employee with such first name!');
11 WHEN too_many_rows THEN
12 dbms_output.put_line('There are many employees with such first name, try with another one!');
13 END FIND_EMPLOYEES;
14 /
Procedure created.
SQL> SET SERVEROUTPUT ON
SQL> EXEC FIND_EMPLOYEES('Julia')
There are many employees with such first name, try with another one!
PL/SQL procedure successfully completed.
SQL> EXEC FIND_EMPLOYEES('Eugenia')
There is no one employee with such first name!
PL/SQL procedure successfully completed.
SQL> EXEC FIND_EMPLOYEES('Adam')
Fripp
PL/SQL procedure successfully completed.Best regards
Maxim -
Sap Script - Where to find "bipmap" objects.
Hi All,
In a window of the Sap Script I find this code:
BITMAP EC_LG_0020 OBJECT GRAPHICS ID BMAP TYPE BMON
INCLUDE EC_ST1_0020 OBJECT TEXT ID ST LANGUAGE IT PARAGRAPH H1
My question: where can I find the objects saved on the Sap System, like EC_LG_0020?
If I launch the tcode SO10 I can find only the object EC_ST1_0020.
Any help will be well appreciated.
Thanks in advance.
Regards,
GiovanniHi
All Images in SAP can be Found using SE78 Tcode , based on the whether it is Color or Blackn white image u can search in this Tcode.
And all Standard texts can be found using SO10 tcode..
for further information chk this link
https://wiki.sdn.sap.com/wiki/display/ABAP/SAPscript
surya
Maybe you are looking for
-
Hi folks First time caller, long time listener. I'm hoping that someone out there can help clear this up for me. I work for a small production company (6 employees). We have one full time editor (me). Our General Manager convinced our head boss a yea
-
Some web site restart my iphone
http://m.hurriyet.com.tr/Galeri#!p=1&cid=90538&rid=2 if brows this web adress my iphone6plus restart ... why?!...
-
can help me out in,,,,,What are CDM and Partner Profiles in ALE??
-
Unsupported image format after merging aperture libraries
I've experienced a large number of files with 'unsupported image format' after merging aperture libraries from separate external hard drives. I did not have this problem in either library prior to merging them. Can anyone advise how to rectify this
-
Convert from word .doc file to pages and pages to .doc.
When I save a pages document in word the formatting is hopelessly changed. I am writing a book and reformatting 400+ pages is not fun. PDF save is not appropriate because I send bits to folks using word. When the formatting is messed up, they have no