Sitemap

Amicuk Programming Answers

Function module in update task

-0001-11-30   Views:0

Advertisement

hello! i am using userexit mv50afz1 in the FORM USEREXIT_SAVE_DOCUMENT.  i am using transaction vl09 and thourgh this transaction  i am using a bi for updating a field in transaction vl02n. since both transactions are connected i used the fm in updat

hello!
i am using userexit mv50afz1 in the FORM USEREXIT_SAVE_DOCUMENT.  i am using transaction vl09
and thourgh this transaction  i am using a bi for updating a field in transaction vl02n.
since both transactions are connected i used the fm in update task.
i have two problems:
1.when i am trying to debugg the fm i dont see the debugger go into it. i know that i should switch something on but i dont know what.
2. after i cancel the post good issue and push enter i get the following message
Express document "Update was terminated" 
what exactly is it?

The replay answer
Advertisement
Hi!
1. You can switch on 'update debugging' in menu point 'settings'. Normally second session appears where update execution will run. If you have problems, try break-point at commit work and execute this command with F5. That works for sure.
2. You have a wrong program design. With an additional commit work you have corrupted the transaction logic -> now your logical unit of work was splitted into two (or more) parts and something like 'cancel' leads to inconsistencies.
3. You can make your changes 'later' (outside of this transaction). Create some change pointers, which will build a todo-list. A separate report can read them, call transaction and mark the pointers as 'obsolete' (with 'X').
Have a look at the following posts, to get an idea of 'how to':
Asynchronous function
regarding reports
WE81 BD50
Kind regards,
Christian

Go to See the other 4 answers

Calling Function Module in Update Task

Category:DefaultRelease time:-0001-11-30Views:130

Hello Experts,                           Can anyone let me know about Calling Function Module in Update Task. Why do we use this " In Update Task "  ?? How do we Use ?? What is the Use... ?? Kindly let me know.... Thanks and Regards Pramodhi, Wh[More]

Function module with UPDATE TASK

Category:DefaultRelease time:2015-10-11Views:130

All, Have a look at the below code. While debugging the control is not going inside the function module called using <b>call function ...... in update task</b> statement. I believe the function module is not executed immediately, but is schedu[More]

How  to debug function module in update task ?

Category:DefaultRelease time:2015-10-11Views:130

Hi ,           i have following code : CALL FUNCTION 'ZSD_t_UPDATE' IN UPDATE TASK              TABLES                               it_xvbkd = xvbkd. Inside this function module i have some code  to debug . How can i debug it ? I put the breakpoint[More]

Difference between Function module in Update task

Category:DefaultRelease time:-0001-11-30Views:130

Hi folks, What is the difference between 1. A function module calling in 'update task'( if attributes not set for update mode). 2.A function module's attributes set to update mode, but while calling not specified 'Update task'. Please clarify this do[More]

Function modules in Update task

Category:DefaultRelease time:-0001-11-30Views:130

Hi Folks, What is the difference between 1.If a function module contains in attributes 'Update mode ' and run( without 'update task - keyword). 2.call function ' fun2' in update task. In this case, do we need to set the attributes must be 'Update tas[More]

Regarding function module in update task

Category:DefaultRelease time:-0001-11-30Views:130

Hi, I have a function module(Zxxx) which is update type. i have called the fun.module in my program (Zyyy) using the syntax CALL FUNCTION ZXXX IN UPDATE TASK. As I suppose to debug the function module, I activated the update debugging in the debuggin[More]

Function module In Update Task is called more than once

Category:DefaultRelease time:-0001-11-30Views:130

Hi experts!! I had a requirement to Create a Customer ( i will call it B) when another Customer (A)  is created (ON SAVE). I used a Badi to implement the requirement, and inside my Badi i have 2 Function Calls in Update Task. The first one to create[More]

Call function module in update task

Category:DefaultRelease time:-0001-11-30Views:130

Hi I am using the follwoing logic in my prog CALL FUNCTION 'Z_Update _Task'    In update task   EXPORTING     t_vbak        =  t_vbak. But the program goes to dump at call function Please let me know if the syntax i am using is correct. Edited by: ki[More]

Regarding Error in Function Module in Update Task

Category:DefaultRelease time:-0001-11-30Views:130

Hi All, If a function module is called in Update Task and there is some error generated from it, it comes as an exit message unlike in a normal function module. Is there any possible way to avoid such an exit message? Thanks in advance. Regards, Gari[More]

Function module in updated task

Category:DefaultRelease time:-0001-11-30Views:130

hello,       i am using user exit for providing a user my own screen for accepting some values from the user, it is working fine but i didnot find a user exit where it will stop after the invoice number is generated. so i created a function as a upda[More]

Function module in update task

Category:DefaultRelease time:-0001-11-30Views:130

hello! i am using userexit mv50afz1 in the FORM USEREXIT_SAVE_DOCUMENT.  i am using transaction vl09 and thourgh this transaction  i am using a bi for updating a field in transaction vl02n. since both transactions are connected i used the fm in updat[More]

Hot
I have been putting itunes purchased tv shows on my 60g ipod as a hard drive untill it stopped working. I drag the show to the ipod icon on the desktop and the plus sign appears then nothing happens. I have 28g free and it's worked fine untill now. I [More]
When I am watching a video, in example this one http://www.youtube.com/watch?v=_jKylhJtPmI and trying to change the quality to 720p (from 480p) the video stops and the quality is set to 240p. I cannot continue the video in any way except for refreshi [More]
My computer shut down while updating my iPod touch to iOS 4.3.2 and now I'm trying to restore my iPod with the backup but my computer doesn't have enough memory space and iTunes says the backup could not be saved on the disc (I think iTunes compresse [More]
hi,      for seargablility people have been saying to convert explicitly. like select * from t1 where  colvarchar=cast(@varnvarchar as varchar(30)) pls tel me is explicit conversion  required in case of set clause of update stmt. or following is ok. [More]
We are trying to implement lost password management with multi-language support. We have updated lpm_changepwd.xsl for UI changes. Some of the text on the password change screen come for the lpm_changepwd.xsl. How can we have the text on the password [More]
Hi, Help please!! I'm trying to set a QueryPage working with web services 2.0 wsdls downloaded from the on-demand app. How do i set query parameters and the fields I want returned? Here is my code (in C#): queryInput.ListOfContact = new xxxWS.ListOfC [More]
In the bluetooth advanced options at system preferences I've unchecked the item "Allow Bluetooth devices to wake this computer". My iMac is running Lion and sleep mode works fine, i.e. trackpad doesn't recall it from sleep, the Mac's back panel [More]
Hello Sir I have an iPhone 4 and when i updated that it got updated but now for restore the data it is showing me the message The "iPhone" could not be activated because an unknown error occurred (0xE8000004). Please try again later. please help [More]
Our env is 3 node rac with ASM and 6 Standby Databases on it. I am Missing around 1.5 TB for FRA disk on ASM ASM disk FRA shows : ASMCMD> du FRA/ Used_MB      Mirror_used_MB 240646              240646 Standby database shows the usage of ASM Disk Grou [More]
Hello, I recently installed Windows 7 Ultimate x64 on my Macbook using bootcamp, I also installed the drivers for everything.When I press brightness down, the brightness doesnt go down, I see the brightness picture, but it stays on a full bar and doe [More]