2009 Nov 27 11:24 AM
Hi experts
i have a problem with the badi, MB_DOCUMENT_BADI this is i am using for MIGO transaction
my requirement is i need to call MR22 transaction in this badi but as this badi is calling in up date task i cann't use the call transaction statement and there is no BAPI available for MR22 transaction so could you please tell me is there any any way to process the session automatically after creating the session for MR22 transaction.
it would be great help for me
thanks in advance
2009 Nov 27 2:51 PM
write ur call transaction in a FM. Call this FM using starting new task addition is ur BADi method.
But there are two methods for MB_DOCUMENT_BADI.
Can you use MB_DOCUMENT_BEFORE_UPDATE which is not called in update task.
I also faced the same problem. I wrapped my logic in a FM. and then called that FM using starting new task addition
Hi experts
i have a problem with the badi, MB_DOCUMENT_BADI this is i am using for MIGO transaction
my requirement is i need to call MR22 transaction in this badi but as this badi is calling in up date task i cann't use the call transaction statement and there is no BAPI available for MR22 transaction so could you please tell me is there any any way to process the session automatically after creating the session for MR22 transaction.
it would be great help for me
thanks in advance
2009 Nov 27 11:48 AM
Hi,
I guess you can schedule the session proccessing in the background using the program RSBDCSUB.
for this create the variant and schedule the job for this in the background using the function module JOB_OPEN, JOB_CLOSE,JOB_SUBMIT.
2009 Nov 27 2:51 PM
write ur call transaction in a FM. Call this FM using starting new task addition is ur BADi method.
But there are two methods for MB_DOCUMENT_BADI.
Can you use MB_DOCUMENT_BEFORE_UPDATE which is not called in update task.
I also faced the same problem. I wrapped my logic in a FM. and then called that FM using starting new task addition
2009 Nov 27 3:16 PM
Thanks for your reply
could you please provide me the code that how to call the function module in new task i mean what are all we need to call a function module in a new task as i have already wrapped my logic in a function module.
Thanks in advance.
2009 Nov 27 3:31 PM
Call function FM_module_name starting new task.
Just press F1 on starting new task you will enough help.
2009 Nov 27 3:42 PM
Dear Rajesh
Thanks a lot for your help and could you please drop me your mobile number and convenient time to talk to my id venkatarameshj@g account.
my problem is how to create a task to use that task while calling the function module
Thanks in advance
2009 Nov 27 4:03 PM
Plz edit your post before any moderator edits it ...[:d]...providing personal information is against the forum rules
2009 Nov 27 4:07 PM
Lets the FM created is Z_Call_transaction_data. ( Make this FM as RFC enabled by selecting radiobutton Remote- Enabled Module in Attributes of the FM)
Call this FM in ur BADiI Method as :
Call function 'Z_Call_transaction_data.' starting new task 'TASK1'.
Import ...
....
Export...
...
You can ginve any name to this task.
If you want to debug it , execute ur code and when control reaches to FM , press F5 a new session will be opened .
Starting new task starts the code in new LUW.
2009 Nov 30 6:37 AM
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |