Create a activity on creation of an oppurtunity
I was trying to create an activity automatically when i save an opportunity in sap crm. I have made used of order_save badi for the purpose.But when i save the newly created activity using crm_order_save function the GUI hangs(as the save function calls order_save badi internally and recursion is taking place). Please help me out of this situation.
Hi,
you have to determine, if current processing is called for the first time (and then create document) or second time (or more)
- then you should avoid creating document.
If you are not able to check this situation using method parameters, than use EXPORT TO / IMPORT FROM MEMORY ID with some value. First try to IMPORT the value, if it is missing, than export the value and create document (when your badi will be call next time, you will not execute the code again).
Regards,
Przemysław
Similar Messages
-
Custom activity rights creation methodology....
The Activity Manager allow creating custom activity rights that can be used in customs portlets for specific activity related to the purpose of the portlet:
We plan to develop a lot of portlets using specific custom activity rights (for example Edit_Events, Edit_No_Conformity etc...). The challenge is to build a good set of customs activity rights.
Example: The manager group can edit the Events form but cannot edit the Non-conformity form witch are part of a custom portlet functionnalities.... The Everybody group can create Events but cannot create Non-conformity elements etc...
Does anybody have a methodology or experience or best practices concerning the creation (and use) of custom activity rights in portlets ???
Thanks
Georges SzczypiorskiQIT Fer et TitaneA business unit of the Rio Tinto groupWe are currently going down this road right now. From what I have learned an Activity Right (AR) can only be added on the group level but is available through the EDK on portlets residing in either the MY PAGE or COMMUNITY level. However, there is no grouping available for AR's (at least not in PT5) therefor all AR's should be named uniquely. You do not, based on my experiences, need to name your URI's with the URI-type notation. Just keep them unique to the portlet that will consume it. 'Edit_Event' is a little too generic. We use something like 'Widget_Edit_Event'.
Consider using the Community Access Levels. They will not be available through the EDK for portlets existing on MY PAGE's but can be associated on the user level as well as the group level (I think). I am still investigating this solution but the out-of-the-box access levels may be what you are looking for.
vr, Rich -
Create an Activity Report for Current Week
I would like to create a activity report for the current week. The trick is that if the weekday is Wednesday or earlier (Sunday being the first day of the week), the report shows last week's activities; but if the weekday is Thursday or later (Saturday being the last day of the week), the report shows the current weeks activities.
I have a filter that works in Access but does not seem to work in Siebel. It does just what I explained above:
Between CDate(Int((IIf(Weekday(Now())<=4,Now()-(6+Weekday(Now())),Now()-(Weekday(Now())-1))))) And CDate(Int((IIf(Weekday(Now())<=4,Now()-Weekday(Now()),Now()+(7-Weekday(Now()))))))
Thank you,
David
Edited by: DavidE on Oct 7, 2008 4:17 PMDavid,
try this:
case DAYOFWEEK(CAST(Activity."Planned Start Time" AS date))when 1 then timestampadd(sql_tsi_day,1,CAST(Activity."Planned Start Time" AS date)) when 3 then timestampadd(sql_tsi_day,-1,CAST(Activity."Planned Start Time" AS date)) when 4 then timestampadd(sql_tsi_day,-2,CAST(Activity."Planned Start Time" AS date)) when 5 then timestampadd(sql_tsi_day,-3,CAST(Activity."Planned Start Time" AS date)) when 6 then timestampadd(sql_tsi_day,-4,CAST(Activity."Planned Start Time" AS date)) when 7 then timestampadd(sql_tsi_day,-5,CAST(Activity."Planned Start Time" AS date)) else CAST(Activity."Planned Start Time" AS date) end
This gave me the sunday of the week. You should be able to modify this format for your purposes.
cheers
Alex -
How can you create an activity as subsequent act. of more than one activity
Hi.
I want to create an activity as subsequent activity of more than one activity.
I am using FM CRMXIF_ORDER_SAVE, but if I write data structure CRMXIF_DOC_FLOW with more than one item the system shows the error CRM_COPY 010 More than one predecessor was entered for data transfer.
However I have customized multiple relationship allowed, and if I do multiples links in transaction crmd_order it works all right.
Only it doesn't work with FM CRMXIF_ORDER_SAVE. I need create activities with FM because they are interface R/3. What FM can I use to create multiple subsequent activities?
Thanks and best Regards
Sorry for my english.Hi,
I have got some activities creates in the system. (e.g. Act. 1, Act. 2, Act. 3 and Act. 4). With the FM CRMXIF_ORDER_SAVE filled the structure CRMXIF_DOC_FLOW you can create subsequence activity of one of them (e.g. Act. X.1). I need create the same activity (Act X.1) from another activity, (e.g. Act. 2). I know to do this in transaction CRMD_ORDER by link tab. But I don't know how to do this using FM or BADI or another thing.
Act. 1 Act. 2 Act. 3 Act. 4
.....Act. X.1
Thanks in advance.
Edited by: Ana Isabel París on Jul 7, 2008 2:42 PM -
How can I create an active table of content in the sidebar to help readers to get to the section?
You can create bookmarks with Adobe Acrobat.
-
How to check weather a material created is active or not
Dear Friends
1 How to check weather a material created is active or not.
2 MIGO standard document has a check button, can we have similar check button in other documents like Purchase requisition.
3 In case of material valuation is Standard (Price control), the costing is done on the basis of the Standard Price or actual cost of the raw material.
I will be thankful for your advice.
Sanjeev1 How to check weather a material created is active or not.
There is a Blue "i" button for the Material, pls click that it will show you the current status..
2 MIGO standard document has a check button, can we have similar check button in other documents like Purchase requisition.
for PR you can see the check button( CtrlShiftF3) beside personal settings -
How to create an activity using business partner of document flow
hi guys,
Can anybody help me how to create an activity by using the business partner of document flow.
i am using the function module BAPI_ACTIVITYCRM_CREATEMULTI but it was giving some sort of error in level based.
so if anybody used above type of scenario can help me out. if you have an sample code please post it which is very much usefull..
thnaks
viswamHi Viswa,
I used this function module to create activity with the doc flow in my case successfully.
CALL FUNCTION 'CRMXIF_ORDER_SAVE'
EXPORTING
data = lt_contract
IMPORTING
return = lt_return.
Regards
Andy -
How to create an activity in CRM automaticly
Hi
I'm working in CRM 4.0 and try create an activity automatically when a BUPA_MAIN objects come from FI-CA.
In the BDOC-flow I start an own developed FM to check if a new activity will be created, that's no problem but which FM/BAPI will I use to create the new activity and how to fill them?
Thank for help//Hello Jan,
To create a new Activity Document use BAPI BAPI_SLSTRANSACT_CREATEMULTI.
To find out how to fill the parameters, create a documento directly in CRM and debug function module CRM_ORDER_MAINTAIN to see how you have to fill the parameters.
Maybe there is an OSS note that explains how to use this BAPI.
Regards,
Mauricio -
Hi All
I am trying to create an Interaction record Business Transaciton from code on the Web Ic.
I am using the function module crm_order_maintain, but I am getting errors.
Does anyone know if this is the correct fm to create the activity.
Any help would be greatly appreceiated.Hi Darren,
Have you use function crm_order_maintain before?
Because it is quiet complicated that you have to prepare
each of group tables (Orgman, Partner, Order_h, Order_I etc...) depending upon your requirement.
For the error, can you more specific on the error.
At which step this error occurr?
Yes you can create Activity using this function module.
The only thing you need to do is to fit necessary parameters (tables) to this function (which are some quiet
trick and complex).
Rgds,
Gun. -
Missing Account information when creating Planned Activity in Account
Hi Expert,
When creating planned activity in Account inwebUI, I am expecting that the Account information would be populated in the Account field of a planned activity but it is not. Could you please tell me if this is a SAP standard? ThanksCheck Partner Determination Procedure of Activity Transaction
regard,
vijay. -
Creating an Activity: "Display" is a mandatory field
Hey again,
I try to create an activity.
Let's say I want to create a ToDo item.
For this, I use the Webservice 2.0 and try to attach the Activity to an lead.
The code looks like this in Java:
public ActivityData activityDataByPatternA( String subject, String LeadID ) {
ActivityData ActivityData = new ActivityData();
ActivityData.setSubject( subject );
ActivityData.setType("Email");
ActivityData.setLeadId(LeadID);
return ActivityData;
public void create( ActivityData ActivityData ) {
ActivityInsert_Input ActivityInsertInput_Input = new ActivityInsert_Input();
ListOfActivityData listOfActivityData = new ListOfActivityData();
listOfActivityData.addActivity(ActivityData);
ActivityInsertInput_Input.setListOfActivity(listOfActivityData);
try {
stub.ActivityInsert(ActivityInsertInput_Input);
} catch (RemoteException e) {
e.printStackTrace();
return;
The system strangely gives me an error message in German (my development system has the language German):
org.apache.axis2.AxisFault: Erforderliches Feld fehlt in Instanz von Integrationskomponente 'Activity' mit dem Benutzerschlüssel '': 'Display' ist ein obligatorisches Feld. Geben Sie einen Wert für das Feld ein.
(SBL-DAT-00498)(SBL-EAI-04389)
at org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:512)
at org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:370)
at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:416)
at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:228)
at org.apache.axis2.client.OperationClient.execute(OperationClient.java:163)
at crmondemand.ActivityStub.ActivityInsert(ActivityStub.java:1026)
at access.Activity.create(Activity.java:94)
at CODconnection.main(CODconnection.java:40)
It means in english more or less that for the integration component "Activity" with the user key "", "Display" is a mandatory field.
I have no clue what "Display" field is meant as there is none.
Anyone has a hint?
Thanks! ChristianDisplay is a mandatory field for creating the activity.
As you must be knowing CRMOD have two type of activity "Task" and "Appointment". This field is to define that.
If you wish to Create "Task" then pass this as "Task"
If you wish to create Appointment pass as "Appointment"
Some places this same field is refer by "Activity" field.
Dinesh -
How to Create New Activity Type for Assiged to work centre Costing in Acti
Dear Sir,
We have four activity type to assigned in workcentre Costing Activity. Details are as under
AIRJET 2010 AIRJET
DONIER 2010 DORNIER
SULTEX 2010 SULTEX
SULZER 2010 SULZER
in addition one more loom is comming in our unit and require new activity type.
How can i create new.
Please guide.
Thanks in advance
Regards
AjitDear ,
To create new Activity Type , you need to follow the below steps :
KA01 - Create Primary Cost Element for the new activities type.
KL01 - Create Activity Type tied to the primary cost element.
KP26 - Change Activity Type/Activity Price Planning - maintain the Variable price
Assign the activity type to cost center using T code KP26.
In the input screen of T code KP26 ,enter version as 0, from period 1 and to period as 12 and the Fiscal Year as 20xx.
Click on Overview tab on top and key in costing details in this screen.
After performing this ,while creating the work center ,this combination of activity type & cost center should be assigned.
At work centre level , you should have
1.Create Standrad Value Key -OP19 and Formula Key in OP49.
2.Create Formula Parameters in OP7B or u can use existing one to assing in the Standard Value Key
3.In CR02-Assing the Standard value key in Basic Data and select the Formula Key in Costing tab with cost centre assingement .Save
Try and check
Regards
JH -
Hi ,
I have some hands on developing the process. So I started creating one custom activity.
I created one activity which takes inputs and gives a string after some calculation. But program requires some additional jar files which are included as lib folder in my java project.
I exported java project as jar file and installed successfully in the workbench. But while starting the component .. getting error like ::
Caused by: java.lang.ClassNotFoundException: No ClassLoaders found for: net.fortuna.ical4j.model.Date
at org.jboss.mx.loading.LoadMgr3.beginLoadTask(LoadMgr3.java:212)
at org.jboss.mx.loading.RepositoryClassLoader.loadClassImpl(RepositoryClassLoader.java:514)
at org.jboss.mx.loading.RepositoryClassLoader.loadClass(RepositoryClassLoader.java:408)
at java.lang.ClassLoader.loadClass(Unknown Source)
at org.ungoverned.moduleloader.ModuleClassLoader.findClass(ModuleClassLoader.java:291)
at org.ungoverned.moduleloader.ModuleClassLoader.loadClass(ModuleClassLoader.java:164)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
... 117 more
Please find full description of the error in the attachment. Hope LC is not taking added jars in the lib.
Because of this error i am not able to go forward.
Do I need to add/include the necessary jars into LC ? .
Please guide me how to resolve this error.
Waiting for your answer.
Thanks
PraveenPutting the jar in the appserver's lib folder is one way to have the class found at runtime, but not all sites will allow you to do this because you just made it available to everything running on the appserver. Plus, now as you move your dsc around from test to staging to production, you have to remember to move the jar as well.
The alternative is to include the jar in your DSC and reference it in the classpath node in the component.xml file.
Just checkout how the distributed DSCs do it (adobe-remoteevents-dsc shows 2 jars in the root of the package and both are referenced in the component.xml's classpath.
Jon -
How to create network activity
how to create network activity using bapi_network_maintain bapi
i am getting the error as incorrect object key for activity
reagrdsok
-
Reg: activity type creation
hi,
i have created secondary cost element with category 41(over-head rates).
when i tried creating an activity type i am gettin an error
stating the cost element is not an allocation cost element of type'43' .Hi,
Please select 43 overhead rates in activity type also.
Thanks and regards,
Ravi Vruddhula
Maybe you are looking for
-
On starting mini I get a blue screen
Bu pressing the start button the mini goes into pause and I can get the normal screen by awaking the computer. However clicking on any icon does not work for several minutes. I would appreciate suggestions on how to approch solving this anomoly. Virg
-
WinXPHomeEdition -JRE autoinstall error -1.4.2_05
hai, We are using the following code to download the JRE automatically. ============ <HTML> <BODY> Downloading Java WebStart... <OBJECT CODEBASE="http://java.sun.com/update/1.4.2/jinstall-1_4_2_05-windows-i586.cab" CLASSID="clsid:5852F5ED-8BF4-11D4-A
-
Solaris 10 x86 - software RAID
I try make software RAID on x86 server with Solaris 10. 2 ata/ide disks on Intel i865 board. I make mirroring all data partitions - it normally working. make 2-nd disk bootable. What I can do with BOOT partition ? mirror ? format on pcfs and copy dat
-
Windows 7 64bit on MSI GX660 stopped working.
My windows 7 64 bit on GX660 stopped working properly after a restart,and now i cant even use the recovery to repair it.It lets me start the tool and run it but when its done it just boots and goes to screen that tells me to repair the boot sector.Iv
-
pseudo in terms of true resolution, I would love to read comments from users about the 6220c 640 x 480 video resolution, my feeling is this was misrepresented in advertising it is so obviously not a true 640 x 480 I mean you can create a 640 x 480 fr