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
Hi people, i have an issue with a report in WebIntelligence that i want to build. Here it goes: I created a derived table that brings every material that has or not any movement. The thing is that when I build the report using other information like [More]
Hi,   I want to know the billing process, we are in manufacturing as well as in service providing,  in manufacturing  for the finish material  for the billing we follow the process,  after delivery with VL01N  we create the billing document with VF01 [More]
Hi While doing revenue recognition  for a sales document using VF44 for Korea  company code , i got an error to "enter sectio code". There is no WHT for the customer, only VAT is entered in the sales price. How to resolve this issue, Please help [More]
Hi, We have a situation. We have a Z report in Finance. We have linked KE5Z to this Z report using the Report Painter along with 15 others. When we run the Z report it works fine and displays result. In the displayed result, if we futher drill down f [More]
Hey all, I had an external drive crash but was able to save the data last year. I'm trying to revisit an old project, but FCP doesn't recognize the quicktime files. Originally FCP wouldn't open the project file, but after doing some poking around I r [More]
Hi All, I want to know how to attach a contact at customer Account Level. Please let us know the API for the same. Or share some sample code if any. Thanks in advance.Hi, Are you using R11 or R12? Well i have an API that i used in R11 for the creatio [More]
I am considering switching my home business phone to a Skype number.  The ideal useage solution would be to be able use Skype on my PC while at my desk, and route to the phone (or my cell) at other times. I see that you offer the FreeTalk Home adapte [More]
How to hide repeated details using SQL Query? For Ex: ------------------------+ DEPTNO| ENAME | JOB | ------|-------| --------| 10 | JAMES | MANAGER | 10 | BLAKE | CLERK | 10 | FORD | SALESMAN| 20 | SCOTT | MANAGER | 20 | ADAMS | CLERK | 20 | KING | [More]
It took me a while to find this out so I thought I'd share it and save other people the hassle... 1. Open Finder. 2. Select 'Go' from the menu at the top of the screen. 3. Select 'Go To Folder'. 4. Type '~/Library/Safari' 5. The contents of this fold [More]
Read all the blurb about using a cut down Mail Client to avoid timeouts and I can understand why this might/will work. However, I'd like to know why having migrated from Yahoo Mail to BT Mail that the decision has been made to provide a less robust, [More]