Trigger WF when updating entries through custom MSS screen
Hi can anyone tell how to trigger a workflow when entry in 2007 infotype is updated using custom MSS screen.What are the steps need to follow.
Thanks in advance...
Hello,
For HR, you can do it using transaction SWEHR1 to define infotype 2007 as "triggerable". Then, use transaction SWEHR3 to link that object with an event.
I got this from a website called SAPTechnical and I could not post the link here. Go to that website, then, click tutorials and select Business Workflow. Search for the word HR and you'll find an article on this.
Regards,
Abdullah Azzouni
Similar Messages
-
Insert delete or update entry in Custom table from KONV entry changed
Hi All,
I have custom table ZKONV with only few required columns and should have same number of records as KONV has at any point in time.
KONV is a cluster table so its not readable from ORACLE level. So ZKONV is created. But I dont know how to keep these both tables in sync.
I need to perform insert delete or update entry in Custom table if insert delete or update happens on cluster table KONV from any transactions.
As KONV is a cluster table and does not have changed time stamp I am not able to know the number of records changed in perticulat time period.
Thanks,Thanks for reply,
There is a Outside SAP system which needs to read KONV data to feed into their system, but as KONV is cluster table they are not able to read it from ORACLE level.
To solve this we are thinking to create a transparent Z-table and will fill it with KONV and catch Update, delete or Insert statement and do same on ZKONv.
Is this possible some how? by some database event or something.... -
Need Trigger reject when update more than 1 row
I need make a trigger who rejects when a user intents update more than one record.
The user only can update one row, but when update without WHERE all data was modified and cause problems.
Thanks,
MIGUEL ANGEL CARO
[email protected]YTou can keep track of the number of updated records in a global package variable, as in the next example.
create or replace package pkg_test as
g_count number;
procedure p_reset;
procedure p_increase;
function f_updated return number;
end;
create or replace package body pkg_test as
procedure p_reset is
begin
g_count := 0;
end;
procedure p_increase is
begin
g_count := g_count + 1;
end;
function f_updated return number is
begin
return g_count;
end;
end;
create table ttemp (t_col varchar2(10))
create trigger bu_tmp before update on ttemp
begin
pkg_test.p_reset;
end;
create trigger au_tmp after update on ttemp for each row
begin
if pkg_test.f_updated > 0 then
raise_application_error(-20000,'Trying to update more than 1 record at the same time');
end if;
pkg_test.p_increase;
end; -
Lock Objects Problem while updating entries in custom table
Hi Friends,
Iam updating a custom table ztable from internal table entries.
ie : Modify ZTABLE from table ITAB.
Now the entries are updating and inserting perfectly..
But my problem is i need to use lock objects before doing this..
I have created a lock obect EZTABLE with all th ekey fields of the table.. ie : it has 2 key fields
item & matnr .
Now how to use lock objects here.. do i need to loop the internal table and use enque & deque function module each and every time in loop or use it out side the loop..
Can any one explain me this..
Regards,
Kumarhi kumar,
**check if the equipment is already locked by user, if yes, trigger a mail
CALL FUNCTION 'ENQUEUE_EIEQUI'
EXPORTING
MODE_EQUI = 'E'
MANDT = SY-MANDT
equnr = lv_equi_temp
X_EQUNR = ' '
_SCOPE = '2'
_WAIT = ' '
_COLLECT = ' '
EXCEPTIONS
foreign_lock = 1
system_failure = 2
OTHERS = 3.
IF sy-subrc <> 0.
lv_subrc1 = sy-subrc.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ELSE.
CALL FUNCTION 'DEQUEUE_EIEQUI'
EXPORTING
MODE_EQUI = 'E'
MANDT = SY-MANDT
equnr = lv_equi_temp
X_EQUNR = ' '
_SCOPE = '3'
_SYNCHRON = ' '
_COLLECT = ' '
ENDIF.
try like this to check if the object is locked....
u can also use
call function 'ENQUEUE,.
do the needful changes update the database then commit work
then call function 'DEQUEUE'
hope this helps,
tanmaya -
Access denied error on updating list through custom webpart
hi
I have created one webpart having multiple view option.
On selection of items from one view user is clicking on next button to get 2nd view (THis is causing postback) and on selection of 2nd view items user is clicking on next buton for 3rd view.
On third view he can see the submit button. On click on submit button the selected items are updateing in one list and also updating data in other lists.
The list in which we are updating data have limited access to all users. But previously user were able to upate the list.
But after implimenting this multiple view with next button which postbacks on click user are getting access denied error while updating the list. If i provide contribute access to that list then they able to submit the changes properly. But even after
that they got the error at first time.
Any body got this type of issue?
Is the post back on custom webpart cause access denied error?
i have written my code like this to updat list,
protected void btnUpdate_Click(object sender, EventArgs e)
try
SPSite site = new SPSite(SPContext.Current.Site.ID);
SPWeb myWeb = site.OpenWeb(SPContext.Current.Web.ID);
SPSecurity.RunWithElevatedPrivileges(delegate()
using (SPSite ElevatedSite = new SPSite(site.ID))
using (SPWeb ElevatedWeb = ElevatedSite.OpenWeb(myWeb.ID))
ElevatedSite.AllowUnsafeUpdates = true;
ElevatedWeb.AllowUnsafeUpdates = true;
//code to update multiple lists
catch (Exception ex)
Please suggest any solution for this.Yes I checked with ULS log viewer.
Its very helpfull as reading that text log file is very difficuelt.
I found that if user spend more time on that webpart then session veriables on that webpart gets expired and at the time of redirection of user to newly created list using below code currentNewList becomes empty and its redirection to wrong list(_abc) which
is dummy list and user dont have any access.
currentNewList = NewListName+ "_abc"
SPUtility.Redirect(currentNewList.DefaultViewUrl, SPRedirectFlags.Default, HttpContext.Current);
So I modified the code to reload the session data when user clisk on submit button. -
Hi guys,
I have created a copy of the AdventureWorks2012 DB called AdventureWorks2012_new on the same instance.
I have created the following trigger below but my friend who is a DBA told me that this is not correct and I should be using the inserted table when creating this trigger. I would like AdventureWorks2012_new DB to be updating/inserting/deleting data from
the same tables that have been updated/inserted/deleted in the AdventureWorks2012 DB. How exactly should I do this for all the tables in the whole database ? What I have written below is just for one of the tables, is there a quicker way to do it for all tables
in this DB so that it performs the actions mentioned above, automatically ? Help would be greatly appreciated so I can understand how this works, thanks
CREATE TRIGGER [HumanResources].[tr_HumanResources_AfterUpdate]
ON [AdventureWorks2012].[HumanResources].[Department]
AFTER UPDATE
AS
BEGIN
SET NOCOUNT ON;
UPDATE AdventureWorks2012_new.HumanResources.Department
SET Name = t2.Name,
GroupName = t2.GroupName,
ModifiedDate = t2.ModifiedDate
FROM AdventureWorks2012.HumanResources.Department AS t2
INNER JOIN AdventureWorks2012_new.HumanResources.Department AS t1
ON t2.DepartmentID = t1.DepartmentID
ENDFor insert it's easy:
CREATE TRIGGER [HumanResources].[tr_HumanResources_AfterInsert]
ON [AdventureWorks2012].[HumanResources].[Department]
AFTER INSERT
AS
BEGIN
SET NOCOUNT ON;
Insert INTO AdventureWorks2012_new.HumanResources.Department
(DepartmentID, Name, GroupName, ModifiedDate)
SELECT DepartmentID, Name, GroupName, ModifiedDate
FROM Inserted;
END
I didn't verify column names, so you may need to make sure to use correct column names for that table.
Setting replication is a bit advanced topic although BOL is clear and you may start here
http://technet.microsoft.com/en-us/library/ms151198.aspx
If it will be complicated for you, you can ask extra questions in the MSDN Replication forum.
For every expert, there is an equal and opposite expert. - Becker's Law
My blog
My TechNet articles -
Unknown error 400 when updating apps through iTunes.
I have been getting an error message 400 when trying to update apps from the app store on my macbook. I can only update them from my iphone. I am able to purchase and download the original apps as well as music and movies. Are there any fixes for this issue? I do not have this problem on my imac.
ThanksI had the same problem and after a full day on the phone with Apple, there was no solution. Then, I tripped over it! The issue was with a third party program that was supposed to be allowing all traffic, but wasn't. The program is NetBarrier and once it was removed and my MacBook Pro was rebooted, all was great. The iMac wasn't affected (in my case) because I never installed that program on the iMac.
I blogged it here: http://www.wickedblog.com/2010/03/23/itunes-wont-update-apps-itunes-error-400/. I hope this helps others avoid hours of searching. -
No change log is created when updating the customer master using LSMW
Hi Gurus,
I am a bit confused on why no change log is created when I use the LSMW to update the customer master. What I update is the customer partner of the customers. For example I have a sold-to 1000 then a customer representative (Z3) 50001, now when I use the LSMW to change the customer representative to 50002 it is correctly updated however no change log is found if you check for the changes on that specific customer. This is a bother for me since I want to send all the customer changes through IDOC and the processing needs to access the change log.
Thank you.Hello,
What process are you using object, BAPI, etc.
Regards
Waza -
Ok so i have this iPod touch (3rd gen) and i'm trying to update it through iTunes and when i click check for update it keeps saying this version of iPod software (2.2.1) is your current version. what do i do? how do i update it?
You have a 1st generation iPod Touch. It can not be upgraded beyond iOS 3.1.3, it is available at the link below.
http://support.apple.com/kb/HT2052 -
I have a trigger that is supposed to insert when a button is pressed and update when a different button is pressed. When inserting, everything works but when updating, UPDATED_ON and UPDATED_BY is put in the database but VOIDED_BY,VOIDED_ON,ARCHIVED_BY,ARCHIVED_ON are not. I am not sure what i need to do in order to fix this. Can anyone help me out here? Thanks
Deanna
create or replace trigger "CHART_BEFINSUPD"
BEFORE
insert or update or delete on "CHART"
for each row
DECLARE
v_VOIDED_ON number;
v_UPDATED_ON number;
v_ARCHIVED_ON number;
begin
--v_voided_on :=0;
--v_updated_on :=0;
--v_archived_on :=0;
IF INSERTING AND :NEW.RECNUM IS NULL THEN
SELECT CHART_SEQ.NEXTVAL INTO :NEW.RECNUM FROM DUAL;
END IF;
IF INSERTING THEN
:NEW.CREATED_BY := NVL(V('APP_USER'),USER);
:NEW.CREATED_ON := SYSDATE;
:NEW.STARTED_ON := SYSDATE;
:NEW.STARTED_BY := NVL(V('APP_USER'),USER);
--:NEW.ARCHIVED_BY := NVL(V('APP_USER'),USER);
--:NEW.ARCHIVED_ON := SYSDATE;
END IF;
if UPDATING THEN
:NEW.UPDATED_BY := NVL(V('APP_USER'),USER);
:NEW.UPDATED_ON := SYSDATE;
END IF;
if VOIDED='Y' THEN
:NEW.VOIDED_BY := NVL(V('APP_USER'),USER);
:NEW.VOIDED_ON := SYSDATE;
else
:NEW.ARCHIVED_BY := NVL(V('APP_USER'),USER);
:NEW.ARCHIVED_ON := SYSDATE;
END IF;
end;ok, I decided to take out of the trigger the code about archiving, since that is the part that seems to be giving me the most trouble. The rest of the trigger now works.
So could i just write a procedure for just the archiving part? And if so how would that be done so that the procedure would run on a click of a button?
create or replace trigger "CHART_BEFINSUPD"
BEFORE
insert or update or delete on "CHART"
for each row
begin
IF INSERTING AND :NEW.RECNUM IS NULL THEN
SELECT CHART_SEQ.NEXTVAL INTO :NEW.RECNUM FROM DUAL;
END IF;
IF INSERTING THEN
:NEW.CREATED_BY := NVL(V('APP_USER'),USER);
:NEW.CREATED_ON := SYSDATE;
:NEW.STARTED_ON := SYSDATE;
:NEW.STARTED_BY := NVL(V('APP_USER'),USER);
END IF;
if UPDATING THEN
:NEW.UPDATED_BY := NVL(V('APP_USER'),USER);
:NEW.UPDATED_ON := SYSDATE;
END IF;
if updating and :new.voided='Y' then
:NEW.VOIDED_BY := NVL(V('APP_USER'),USER);
:NEW.VOIDED_ON := SYSDATE;
END IF;
--IF UPDATING AND :new.ARCHIVED_BY IS not NULL THEN
--:new.ARCHIVE :='Y';
--:NEW.ARCHIVED_BY := NVL(V('APP_USER'),USER);
--:NEW.ARCHIVED_ON := SYSDATE;
--end if;
--if updating and :new.archived_by is null then
--:new.archive :='N';
--if v_archive > 0 then
--:new.archived_by := null;
--:new.archived_on := null;
--end if;
--end if;
END;Edited by: Dclipse03 on Oct 7, 2009 6:57 AM -
When updating through the Appstore i am asked to buy products again, how do i fix?
GarageBand and iPhoto came preloaded on my new Macbook Pro but when i try to update them through the Appstore a message appears telling me that i can only update programs that i have previously purchased, which i did, effectively, when i bought my laptop as it is bundled software. At least according to the apple store it is:
http://www.apple.com/macbookpro/built-in-apps.html
How can i stop the Appstore from trying to charge me twice?take a look here:
https://support.mozilla.com/en-us/questions/760134
thank you -
when updating my ipad through itunes, it told me it needed to be restored, when i tried that, it then told me it cannot be restored, gave an error code, and all it does is sit at tell me to plug it in to itunes... which it is.. any ideas?
Hello wombat98,
Thank you for using Apple Support Communities.
For more information, take a look at:
Resolve iOS update and restore errors in iTunes
http://support.apple.com/kb/ts1275
If you can't update or restore your iOS device
http://support.apple.com/kb/ht1808
Have a nice day,
Mario -
I've updated my Iphone but cannot activate it? When I try through wifi it says the activation server is unavailable try later and I've been doing this for 5 hrs now. When I try to activate it through Itunes it says there's no SIM in the phone when there is. The phone worked perfectly before the updating of the software? Can anyone help?
Hi johnquinn1950,
If you are having activation issues with your iPhone after an update, you may find the following article helpful:
iPhone: Troubleshooting activation issues
http://support.apple.com/kb/ts3424
Regards,
- Brenden -
why do I keep getting an update pop-up, but when it goes through it ends up giving me an error: 1602
http://get.adobe.com/reader/enterprise/
-
Error when updating Budget-This entry already exists...Budget (OBGT)
SAP 2007A SP00 PL49
When updating Budget, get following error:
This entry already exists in the following tables 'Budget' (OBGT) (ODBC-2035) [Message 131-183]
Any ideas?
Thanks,
Ajay AudichHi,
Vitor Vieira,
Thank you that your answer helped me solving my problem to some extent.
I solved the problem by creating document and document lines table and creating a UDO with it. Because the problem was with assigning some data to the u201CCodeu201D field when using master type tables.
I didnu2019t get any problem after using the document and document lines table.
Also,initially I didnu2019t bind the # column of my matrix with the LineID field of table. After doing that it is working fine and I am able to update the records.
But still this is not a proper solution and I didnu2019t get answer for why master type UDO doesnu2019t support updating.
Thanks,
V.M.Nivasini
Maybe you are looking for
-
Out of memory error when opening an .xlsx file in numbers v1.6.2 on ipad 2
The file sizes are too small (38KB) for this to be a true "out of memory" issue. Any suggestions? I didn't have any problems before updating numbers to the current version. I haven't downloaded the new iOS 6 operating system. Is that the problem?
-
Creating new analysis gives "Error loading XML Document from ..."
Trying to create analysis and getting "Error loading XML Document from saw.dll/answers/answersproperties.xml?fmapId=S1clug. The response given was:" after choosing subject area. Analysis editor is opened but Subject Areas is empty and can't do anythi
-
Urgent : can help me in my search program( mofication of my program)
Requirements: <u>Selection-Screen</u>: Parameter: String field to enter a text Select-option: to enter program names (value help shall be available) <u>Program</u>: The user shall enter a text and select one or serveral program names. (Search help fo
-
HL7 Outbound runtime error: "Mandatory attribute missing: Standard"?
I am trying to develop an outbound HL7 v2 solution. I have a composite that picks up an XML message, transforms it to a HL7 v2 XML, popuates b2b. properties and hads the payload over to teh B2B. The partners and partnerships are, seemingly, OK. Yet,
-
Frequency in Continuous counting Vs Cycle Counting
In Cycle Counting we can specify how many times a material can be counted via CC Indicator 1. Just wanted to know reg Continuos inventory counting, how do we specifcy frequency of counting of Bins ??? How does it proposes bins in LX16? 2. Might not b