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
How can I recover an old/disused iCloud account. I was having some issues with my apple id so I restored my iPad, I am now stuck on the activation screen as I no longer use the iCloud account i used to set up the iPad and can't remember the address o [More]
Hey Everyone, This is my first time posting a question on SDN, so please forgive me if I leave anything out. I have a question regarding XML Forms and iViews. We are using EP 6.40 SP12. I would like to have an XML Form filled out and have it's conten [More]
Hi, I am trying to activate General Object Services for viewing/creating attachments for FI Invoice ( FBV0 transaction ). I tried assigning the following roles for the user: SAP_BC_BMT_WFM_ADMIN SAP_BC_SRV_ARL_ADMIN SAP_BC_SRV_ARL_USER SAP_BC_SRV_USE [More]
Hi All, My name is Malinda and im totally new to SAP's Mobile Side. What i want to know is how or what do you need for to setup and run SAP Netweaver Mobile 7.1?, where does the Data Orchestration Engine & Mobile Administrator come? are these compone [More]
Some websites that have long pages within a page in Safari do not allow scrolling on our iPad2! Are we doing something wrong, or is there a way around it / alternate browser fix? thx for your help and advice!You should be able to use a two finger scr [More]
Hi, My Mac is keep on freezing and I would really like to know what is wrong with it. (I did PRAM NVRAM reset 100 times... didnt help.) I can't find my OSX Tiger DVD which was included when i bought my Macbook Pro in January 2007. So I've been readin [More]
Tried searching, but couldn't find my situation.  I have an old computer with a second hard drive (1.5 TB).  I pulled it from my old computer and put it in the new computer. I also copied my "My Catalog" folder which contains the catalog databas [More]
Hi Not sure if anyone can help! Trying to sync some different albums to my IPhone 5 When I go into my IPhone from the ITunes library and select music to sync, I cant 'page down' to select Albums to sync. Unable to update my music and its driving me n [More]
I want to emulate the slide effect that is on this page: http://www.excellentguesthouse.co.za/ I understand how to create it all through tweens, and how to loop it, using actionscript 2. Can someone suggest to me how to go about it in a way that woul [More]
This isn't an issue, (although it can be) but I'd like to know if there are any plans for pacman where if updating packages, pacman will calculate the file size differences.  One thing I really miss about debian was how when updating, it told me exac [More]