Creating a function module in background
Hi
Is there any way by which if i want to create any function module in background .
like in any screen i have created a button and on pressing that button a blank fucntion module should be created in the function group that is already created .
waiting for your reply.
Hello, Ashish;
When you mention a "Function Module" where are you trying to create it? The report designer? A .NET form?
What version of Crystal Reports are you using?
What version of Visual Studio .NET?
What requirements are you trying to meet?
Elaine
Similar Messages
-
Function module for background jobs email
hi abaper's
i hace to create a function module for background jobs this function module have to send an email automatically when a background job is assigned or processed in background.
thnks n regards
pardeep kumarhi dear
open this site
https://weblogs.sdn.sap.com/pub/wlg/781. [original link is broken] [original link is broken] [original link is broken]
<removed by moderator>
Edited by: Mike Pokraka on Aug 8, 2008 12:48 PM -
Scheduled function module in background job
HI all,
I have created a function module(RFC) & Now I need to schedule it in background job, i have used fm job_open ,job_close But through there i can only scheduled Reports so pls gide me how to scheduled fm .
regards,
AnujHi Anuj,
Check this one:
Re: can i scheddule a function module(rfc) in background
Regards,
Chandra Sekhar -
Calling function module in background task
Hello,
There is one function module which is called in background task. Is there any chance that background task is not created and function module is not executed. That function module is supposed to send some outbound message. The FM is called in one user exit. I don't have any idea as why it is called as background task. The probem is that this message is not getting send sometimes.(sometimes it gets send ). Because of this I am not able to make any conclusion.
Please respond if anyone has come across such scenario before.
Thanks in advance,
MinalCheck the below link...it might be helpfull
It should be executed....check it with different data as to what might fail
http://help.sap.com/saphelp_nw04/helpdata/EN/8f/53b67ad30be445b0ccc968d69bc6ff/content.htm
http://help.sap.com/abapdocu/en/ABAPCALL_FUNCTION_BACKGROUND_TASK.htm -
How to run ABAP Function Module in Background FOR LONG TIME?
I am not that experienced with ABAP. I am on SAP BI 7.0. I WANT TO RUN A FUNCTION MODULE
RSDRT_INFOCUBE_DATA_COPY.
I used SE37 and then executed the module, I supplied the parameters on the form which opped-up and then program started running. . Program was however interrupted after 10 minutes by ABAP. How can I run it in background without interruption?
THANKS A LOT.Change parameter rdisp/max_wprun_time.
Default value for this is 600 seconds (10minutes).Change it to a time which you think you need for copying infocube data.
May be 5 hours.
PS:You can not run Function Module in background directly,but you can create a Z* program and call that FM from within that program and then run the program in background.
Hope this answers your query. Best of Luck!
Thanks and Regards
Anindya
Edited by: Anindya Bose on Jun 30, 2009 1:24 PM -
What is the use of CALL FUNCTION MODULE - AT BACKGROUND TASK?
Hi experts,
I found Call functional module in background task will make the FM run at the next commit work as some people said. So I have some questions:
1 if we use COMMIT WORK commend, the pending FM will be called? If there are several FMs called at background task, what is the sequence of them? How many conditions will trigger the running of these FMs?
2 Where can I find the log of this pending FMs? In SAP library, it says there are 2 tables. But I checked these tables and can only find the FM name and user of it. And I can not understand content of these tables. It seems one is for the main information of FM, and the other is for the data of the FM, maybe the parameters.
3 If I call a FM in this way, Can I canncel it before the next commit work in some way?
Finally, thanks for reading and help.HI,
When the COMMIT WORK statement is executed, the function modules registered for the current SAP-LUW are started in the order in which they were registered. ROLLBACK WORK deletes all previous registrations for the current SAP-LUW.
If the specified destination is not available when COMMIT WORK is executed, an executable program called RSARFCSE is started in background processing. By default, this tries to start the function modules registered for a SAP-LUW in their destination every 15 minutes and up to 30 times. These parameters can be changed in the transaction SM59. If the destination does not become available within the defined time, it is recorded in the database table ARFCSDATA as the entry "CPICERR". The entry in the database table ARFCSSTATE is deleted after a standard period of eight days -
Jco Call a Function Module in BackGround
Hello All.
Some one can send me a simple exemplo how to call a ABAP Function Module in BackGround.
Can i set this in Java side?
..or only set the BackGround Work Process in SAP side?
In my java application call the Abap Function Module like this:
client.execute(function);
How to set parameters to execute the function in BackGround.
My rpoblem is when the return the data to java side ...occurs the error TIME_OUT in Dialog WorkProcess.
I need to call in background to better performance and to prevent the TIME_OUT.
Best regards.
Taylor.Hi.
I dont know how to do, but, you can do a previous RFC, this new RFC execute the original function in background mode. I did something like that:
- JAVA: client.execute("RFC_FUNCTION", input, output);
- SAP: RFC_FUNCTION:
CALL FUNCTION func IN BACKGROUND TASK
[DESTINATION dest]
parameter_list
[AS SEPARATE UNIT].
or
CALL FUNCTION update_function IN UPDATE TASK
[EXPORTING p1 = a1 p2 = a2 ...]
[TABLES t1 = itab1 t2 = itab2 ...].
I hope that help you -
Creating a Function module to send XML Byte String
Hi all,
I have to create a Function module to get XML byte string.The internal table is dynamic coloums based on how many data selected as a importparameter.from the internal; table data I have to create a XML byte string as a output.Pl help me to proceed further.
Thanks in Advance.
RamIf i have your question right you need to convert an internal table of unknown type to an xml string then to a byte string.
data xmlString type string.
data xmlXString type xstring.
call transformation id
source
table = internalTableYouWantToExport
result
xml xmlString.
export xmlString to data buffer xmlXString.
xmlString has the xml of the table and xmlXString contains the byte representation of the string. -
please help me to
create a function module as follows-
i) Have the following import parameters
empnm TYPE zb19rv2_table-empnm ,
empdj TYPE zb19rv2_table-empdj ,
empad TYPE zb19rv2_table-empad ,
empph TYPE zb19rv2_table-empph ,
depid TYPE zb19rv2_table-depid.
ii) Have the following export parameter
empid TYPE zb19rv2_table-empid ,
iii) Have the following exceptions
Raise exception if the Name field is blank
iv) Source code-
Check if the import parameter has name given, if not raise exception, else
Select the latest empid from table zb19rv2_table
Increment this id by one
Use the import parameters and the new generated empid to insert record in to the table zb19rv2_table
If the record is inserted, then move the new generated empid to the export parameter of the function moduleHi Ravinder ,,
check this link for step by step procedure to create function module ,
http://abaplovers.blogspot.com/2008/02/creating-function-module-in-sap-abap.html
http://help.sap.com/saphelp_nw04/helpdata/en/26/64f623fa8911d386e70000e82011b8/content.htm
Reward if useful,,
Thanks & regards ,
Sreekar.Kadiri. -
How to run ABAP Function Module in Background Wchich Takes Long Time to Run
How to run ABAP Function Module in Background FOR LONG TIME
I am not that experienced with ABAP. I am on SAP BI 7.0. I WANT TO RUN A FUNCTION MODULE
RSDRT_INFOCUBE_DATA_COPY.
I used SE37 and then executed the module, I supplied the parameters on the form which opped-up and then program started running. . Program was however interrupted after 10 minutes by ABAP. How can I run it in background without interruption?
THANKS A LOT.Hi,
You can call this FM in a program and run that program in background.
Regards,
Raju -
Using a function module i want to create another function module
Hi all,
My requirement is by using a function module i want to create another function module(if needs modify action should also be done if i need this is for the created function module) and the main thing is that the function module which we are used to create is should be RFC enabled.
Thanks,
Vichu.Hi,
You can do one thing... you write the BDC code in the function module name you are creating... so that if you call the function module in a program and execute that program and if you give the function module to be created in the selection screen of the program... in this way there is chance of creating another function module.
Hope this would help you.
Good luck
Narin -
Howt 2 delta with the extractor created on Function Module..
hi there,
can anybody tell me how to update delta with the extractor created on Function Module..
rgds,
amolrefer to the document at the below link
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/d3219af2-0c01-0010-71ac-dbb4356cf4bf
Generic Extractor using FM with Delta Logic
hope it helps,
rgs,
Parth.
Edited by: Partho Mukherjee on Jan 12, 2009 6:00 PM -
Debugging the Functional Module in Background.
I am calling a Custom Functional module in Background mode using the syntax CALL FUNCTION ZFM in background task.
Can anyone tell how to debug the code using this..
Thanks ,
YatishHello Yatish
You could try to use the following trick:
(1) Put an endless loop into the coding of your function module where you want to start debugging, e.g.
DATA:
lx_exit_loop(1) TYPE c.
lx_exit_loop = ' '.
DO.
IF ( lx_exit_loop = 'X' ).
EXIT.
ENDIF.
ENDDO.
(2) Call your function module in background task
(3) Call transaction <b>SM50</b> and search for the background process.
(3) Choose from menu <i>Program/Mode -> Program -> Debugging</i>
Now you the debugger should bring you right to your endless loop. Set lx_loop_exit = 'X' in the debugger and continue (F5 or F6).
Regards
Uwe -
Creating BW Function module to extract R3 Function module data.
Could you tell me how to create a BW Function Module to Extract data from R/3 Function module?.
Also, the BW function module needs to pass a date/time filter to R/3 function module basis which the R/3 function module passes the date/time restricted data to BW function module.
Thanks,
GautamYou will have to create a function module in R/3 and then call the same in BW using the RFC call function option.
Please do not raise separate threads for each question - you have asked the same question in another post of yours..
bw extraction using function module
http://tinyurl.com/lwhtk8
this will give you an idea on how you can achieve this. -
Is it possible to create a Functional module dynamically?
Hello All,
Does any one know whether is it possible to create a FM dynamically and write some code in it?
Regards,
Lisa.Hi,
Yes it is possible.
Use this FM to create a function module on the fly programatically.
RS_FUNCTIONMODULE_INSERT.
Here is an example
Here an example how to call it:
call function 'RS_FUNCTIONMODULE_INSERT'
exporting
funcname = '/TEST40P/FB_TEST_EVE99'
function_pool = 'CRAS1'
* INTERFACE_GLOBAL = ' '
* REMOTE_CALL = ' '
short_text = 'TEST Anlage FB'
suppress_corr_check = ' ' -----------------> means with transport popup
update_task = '1'
* corrnum = 'B20K8A0V3F'
namespace = '/TEST40P/'
* suppress_language_check = 'X'
* AUTHORITY_CHECK = 'X'
* save_active = ' '
new_source = it_report[]
* IMPORTING
* FUNCTION_INCLUDE =
* CORRNUM_E =
tables
import_parameter = if_import
export_parameter = if_export
tables_parameter = if_tables
changing_parameter = if_change
exception_list = if_except
parameter_docu = if_docu_tab
* SOURCE =
exceptions
double_task = 1
error_message = 2
function_already_exists = 3
invalid_function_pool = 4
invalid_name = 5
too_many_functions = 6
no_modify_permission = 7
no_show_permission = 8
enqueue_system_failure = 9
canceled_in_corr = 10
others = 11.
Regards,
Sesh
Maybe you are looking for
-
Software Update no longer working
Hi everybody, It seems that Software Update on my mac has mysteriously stopped working. Running the actual application just gives a message that there aren't any updates available. I checked the log in System Preferences, and it seems that the latest
-
Can't create or modify ldap group or user
I have a web proxy 4.0.6 (ans i try with 4.0.7)server link with 2003 active directory server But I cannot create or manage group The BaseDN is OU=company,DC=ssc,DC=com The BindDN is CN=Administrator,CN=Users,DC=ssc,DC=com The web proxy server can add
-
how to extract the audio of a zip file? if it helps I'm trying to add this album zip to my library
-
Making Fireworks colors act more like Illustrators'
I know.. they are two different tools, but at least the colors should be universal. Maybe they are and I don't know how. I want to: 1. Make the color thumbnails larger like you can in IA 2. Add gradient color swatches to the panel like you c
-
Hello I just bought the USB super drive for the mac book pro and for some reason when I put the disc in and I download the content and for some reason when I put the aplication just a bunch of random words come out,not the content the disc brings.