Call function module from BSP0 (Parameter group)
Hello All,
I am trying to call a FM by changing the parameter group of a planning profile (BSP0) as shown:
CALL FUNCTION Z_BW_CLEAR_VAR.
The name of the function module is already entered in table RSPLF_FDIR.
In the above FM there is DB deletion statement, which is not getting process.
When I kept break point at FM Z_BW_CLEAR_VAR and executed the planning function - it did not trigger the FM.
Please let me know how to call the FM.
Thanks & Regards,
Pratik
hi Alberto,
have a look at quesiton 5 in sap note 730870
it explains what you need to restart
from this note:
restart from visual admin:
" the RfcAdapter J2EE Service 'SAP XI Adapter: RFC' is restarted or a dependend J2EE Service is restarted ('SAP XI AF CPA Cache', 'SAP XI AF Messaging')."
Regards,
michal
<a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>
Similar Messages
-
HOW TO CALL FUNCTION MODULE FROM ABAP4 EDITOR
HI !
friends
I want to call function module from abap 4 editor.
is there any shortcut key from edit menu through which if give a function module name then it calls the function automatically?
points will be awarded.
Cheers
troycommand will be like this
<b> call function 'YW2_GET_MNW_PERIOD'
exporting
w_budat = v_datum
importing
w_period = i_date-period
w_period_desc = i_date-p_desc.</b>
Regards
prabhu -
Calling function modules from a BSP page
Hi all
How do we call function modules from a BSP page.
regards,
PaulOk, You want to construct the URL pointing to a BW report and want to execute the same when a button is clicked right? if yes here is the answer.
for constructing the BW query URL
http://<bwserver>:<port>/sap/bw/BEx?sap-language=ENCMD=LDOC&infocube=<cube anme>&query=<query name>&var_name_1=<variable name1>&var_value_ext_1=<variable value 1>&var_name_2=<variable name2>&var_value_ext_2=<variable value 2>
(for more info on how to pass parameters to BW query URL refer to the BW web designer reference manual which can be found at http://services.sap.com/bw)
and for executing this from a button use onclientclick property of htmlb:button along with window.open
<htmlb:button id ="BWQ"
onClientClick = "javascript:window.open("<%= BW_URL %>" );"/>
Hope this is clear.
Regards
Raja -
How to call function module from IP
Hi
I need to trigger the process chain from the input ready queries in Bex analyzer. I figured out that I need to call RSPC_API_CHAIN_START.
How do we go about in calling the above function module in IP.
Thanks in advance
IHi Matt
Thanks for your response, it was very productive at the right time as we saw our process chain running indefinetly. With selecting all chars to be changed, it ran just once with no errors.
what is TA ? I know rsplan- transaction code for the planning modeler.
Can you tell me how can we call function module in custom exit planning function.
Where should I embed the code
CALL FUNCTION 'RSPC_API_CHAIN_START'
EXPORTING
I_CHAIN = 'ZPC_CCATOPCA'.
I_T_VARIABLES =
I_SYNCHRONOUS =
I_SIMULATE =
I_NOPLAN =
IMPORTING
E_LOGID =
EXCEPTIONS
FAILED = 1
OTHERS = 2
thanks in advance -
Can we call Function Module from Process Chain?
Hello experts,
I have a small question.
Can we call Function Module(SE37) from Process Chain?
If yes can you please provide some example link?
I m new to BI world.
regardsHi,
Create one ABAP program and call the function module from that program. Check the link to know how to call a function module from an ABAP program.
http://help.sap.com/saphelp_wp/helpdata/en/d1/801edb454211d189710000e8322d00/content.htm
http://help.sap.com/saphelp_wp/helpdata/en/9f/db98ef35c111d1829f0000e829fbfe/content.htm
Then use process type "ABAP Program" in your process chain and add the program you have created. So then this program will be executed via process chain and this program will call the function module.
Indrashis -
Calling Function Modules from BSP
Hi,
Can we call Remote Function Modules from a BSP page? If yes, can they be called from both Layout and Events and what's the proper way of calling them?
Any help will be great.HI Aurang
Calling RFC is similar to calling any other Function Module..Only thing is you need to provide the DESTINATION name of RFC Destination..
And you can call it from Event like OnInputprocessing...
inside your BSP Page..
For Example
CALL FUNCTION 'ZFI_FUNC_IM_DISPLAY_ASSE_CA_AS' DESTINATION 'Provide the RFC Destination here'
EXPORTING
I_PRCAT = 'CA'
I_DOCNO = VAR_DOCNO
IMPORTING
E_ASSE_HDR = WA_HDR
E_TEXT = VAR_STATUS
TABLES
T_ASSE_LIT = T_T900.
If you are calling from same server..Write destination as NONE
Cheers:)
Mithlesh -
Call function module from ITS template
Hi all,
Does anybody know if it is possible to call an ABAP function module (or embed any ABAP command) in an ITS template (HTML B)? If so, can someone post some sample codes?
Thanks!
Jayhi,
it is not possible to run ABAP code from a ITS template.
Best regards,
Klaus -
Call function module from BSP page
Hi Experts,
I am new to ABAP and BSP as well.
I am creating an BSP page through which I want to call an function module in R/3 which will fetch a file from the application server and place into an internal table.
I have identified the function module.
My questions are:
Since I am going to have an web interface where on a button click the file should be uploaded to the intrernal table.So how do I call the function module.
Can I use JSP and ABAP together in an BSP page.
Thanks
AnkitHello Ankit,
Please check the following link:
http://help.sap.com/saphelp_47x200/helpdata/en/bd/ac1e3a0088e042e10000000a11402f/frameset.htm
I think it will answer all your queries.
Regards,
Siddhesh -
How to Call Function Module from XI Mapping
Hi All,
I would like to call a function module that resides in ECC through XI mapping.
Can any one please through some light on how to proceed ?
RegardsHello Shabarish,
Thanks for the reply, Actually i would like to do date validation using ISHMED_CHECK_DATE_TIME FM inside Mapping.
I would like to do this way, please let me know how good is this
1) Expose the FM as a RFC enabled one
2) Use the following UDF code inside Mapping
3) do i need to import the RFC enabled FM into our XI??
4) Do i required to create any Communication channel for this?
function RFC_LOOKUP_API
Imports java.io.;com.sap.aii.mapping.lookup.;
String content = "";
MappingTrace importanttrace;
importanttrace = container.getTrace();
// filling the string with our RFC-XML (with values)
String m = "<?xml version=\"1.0\" encoding=\"UTF-8\"?><ns0:Z_UDF_CREATE_ZTOR_REC xmlns:ns0=\"urn:sap-com:document:sap:rfc:functions\">";
m = m + "<I_MESSAGEID>" + MsgID + "</I_MESSAGEID>";
m = m + "<I_EBELN>" + PONum + "</I_EBELN>";
m = m + "<I_ERDAT>" + MsgDate + "</I_ERDAT>";
m = m + "<I_UZEIT>" + MsgTime + "</I_UZEIT>";
m = m + "</ns0:Z_UDF_CREATE_ZTOR_REC>";
RfcAccessor accessor = null;
ByteArrayOutputStream out = null;
try
// 1. Determine a channel (Business system, Communication channel)
Channel channel = LookupService.getChannel("XI","GeneratedReceiverChannel_RFC");
// 2. Get a RFC accessor for a channel.
accessor = LookupService.getRfcAccessor(channel);
// 3. Create a xml input stream representing the function module request message.
InputStream inputStream = new ByteArrayInputStream(m.getBytes());
// 4. Create xml payload
XmlPayload payload = LookupService.getXmlPayload(inputStream);
// 5. Execute Record Create.
Payload result = accessor.call(payload);
InputStream in = result.getContent();
out = new ByteArrayOutputStream(1024);
byte[] buffer = new byte[1024];
for (int read = in.read(buffer); read > 0; read = in.read(buffer)) {
out.write(buffer, 0, read);
content = out.toString();
catch(LookupException e)
importanttrace.addWarning("Error while writing " + e.getMessage() );
catch(IOException e)
importanttrace.addWarning("Error " + e.getMessage() );
finally
if (out!=null) {
try {
out.close();
} catch (IOException e) {
importanttrace.addWarning("Error while closing stream " + e.getMessage() );
// 7. close the accessor in order to free resources.
if (accessor!=null) {
try {
accessor.close();
} catch (LookupException e) {
importanttrace.addWarning("Error while closing accessor " + e.getMessage() );
//returning the result u2013 RFC-XML.response
return content;
Thanks & Regards
Vamsi -
Calling function module from solman
Hi Experts,
I created one function module in solution manager with remote enabled type, how to call that rfc into development sysytem.
Regards,
Thiru. Rhi,
may be this link
Re: TMS Error In Change Request Management
can prove useful to u ... in solving ur issue
regards,
prashanti -
How to call Function Module from webdynpro application ,up on click url in
Hi Experts,
I need your help for the following scenario.
In my WebDynpro application , I am displaying the sales orders in a table.
one of the column in table i.e. sales order number is displayed with hyper link, up on click the sales order number column, i have to pass the po number to the a remotefunction with as one parameter and enjoy = 'x' as another parameter that should call me23n transaction and the transaction screen should be displayed in the webdynpro application with po details.
Thanks In Advance.
your help is rewarded.
Best Regards.
Rao.Hi Rao,
1.Create binding to view to Controller.
2.Create table->Add column->Add table cell Editor(select LinkToAction UI Element in options).
3. Bind the property <i>text ->sales order number</i> (Output/<model node>)
4. Create an Event <salesOrder>
// do null check
// set your input parameters
// input sales order number = current output sales order number
// enjoy="x"
// call controller's method() that executes RFC
5. Bind this event LinkToAction property action-> <salesOrder>
To execute RFC, the code is available in sample tutorials.
Hope this helps
regards,
Siva -
How to call a function module from a transformation
Hi,
Could somebody please let me know how I can call an abap function module from a transformation (abap xslt program). I know how to call the class methods from transformation, but how do i call a function module..?
Thanks,
Shashi.
Edited by: Shashi Kanth Kasam on Apr 8, 2010 12:45 PMYa. I can do that. But I don't want to use a class and a method to call that function module. Want to directly call function module from transformation. Is that possible..?
Thanks,
Shashi -
Type error while calling function module with in FOX formula
Hi,
I am getting following error while calling function module from FOX Formula:
"Types of parameter DAY_IN () and variable J_CALDAY(D) are inconsistent"
Following is the code:
DATA I_CALDAY TYPE 0CALDAY.
DATA N_CALDAY TYPE 0CALDAY.
DATA KYF TYPE KEYFIGURE_NAME.
FOREACH I_CALDAY, KYF.
CALL FUNCTION SLS_MISC_GET_LAST_DAY_OF_MONTH
EXPORTING
DAY_IN = I_CALDAY
IMPORTING
LAST_DAY_OF_MONTH = N_CALDAY.
{KYF, N_CALDAY} = {KYF, L_CALDAY}.
ENDFOR.
Import parameter DAY_IN is of type sy-datum (that inturn is data element SYDATUM of data type DATS - same as 0CALDAY). Not sure why error is being thrown. Any idea? Thanks.
Edited by: SAP_BOY on Dec 4, 2009 5:26 PMHi,
I think It will not identify ,though you have (data element SYDATUM of data type DATS - same as 0CALDAY).Check it out by assigning it through a variable of type D.
Data I_CALDAY TYPE D.
Hope it may work out.
Regards,
Indu -
Calling Z function module from BSP page
hi,
i am calling a z function module from BSP application ROS_SELF_REG ,The z function module is inside a z function group,It does not give any sytnax error..but while running BSP application ,it is going into dump saying that Z function module is not found..Any idea why this is happening???Hi,
Check whether the Z function module is spelled correctly. Also try activating the whole function group and function module in se80 transaction.
Check whether the BSP application is calling the Z FM from the correct server/client where it is available.
Regards,
Harish -
Call an ABAP program or a function module from command prompt/python script
Dear All,
I want to call a function module/ABAP program from command prompt or a python script.
Let me explain with an example.
There is a function module "z_add" that takes two integers as input parameters and generates their sum.
the sum is the output parameter.
Now i want to call this function module from command prompt / python script and pass parameters to this function module.
In return i must get the sum(i.e. the output of function module).
I tried using STARTRFC ,was able to call the FM but could not get the return value(output) from FM.
Can you please provide me the code of such a function module and the method to call it thereby passing parameters and getting the sum.
Thanks and regards,
Gaurav
Edited by: gauravkec2005 on Mar 4, 2010 7:41 AMthank you both! helpful answers! :o)
anyway!
i have written the program which is called from the SAPScript:
/: PERFORM GET_VATNUMBER IN PROGRAM ZFI_F140_OPERATIONS
/: USING &BKPF-BUKRS&
/: CHANGING &VATNUMBER&
CE VAT Registration No : &VATNUMBER&
REPORT zfi_f140_operations.
FORM get_vatnumber TABLES in_par STRUCTURE itcsy
out_par STRUCTURE itcsy.
DATA: lv_co_code TYPE bukrs,
lv_vat_no TYPE stceg.
READ TABLE in_par WITH KEY name = 'BKPF-BUKRS'.
MOVE in_par-value TO lv_co_code.
SELECT SINGLE stceg FROM t001
INTO lv_vat_no WHERE bukrs = lv_co_code.
out_par-name = 'VATNUMBER'.
WRITE lv_vat_no TO out_par-value.
CONDENSE out_par-value.
MODIFY out_par INDEX 1.
ENDFORM.
it is not working and i cannot work out why...
i have not been ABAPing for very long but have had a go....
any thoughts as to what i have done wrong?
or point me where i should be looking? thank you!
Maybe you are looking for
-
SSO - session time out while navigating across applications
Hi, Problem statement Handling session time out while navigating across applications involving SSO Current approach Application 1 1. Create session1. 2. URL rewrite the sesssion ID1 into the link refering to App2. Application 2 1. Create session2 2.
-
MATLAB and LabVIEW Communication Optimal Performance
I have tried my own code, searched through forums and examples to try and figure out best method to communicate between LabVIEW and MATLAB. Most of the information I found was over a year old and I was wondering if there was a better current soluti
-
I back up my iMac on my external hard drive. When trying to copy the iPhoto Library onto my MacBook, I get the message "Cannot use TM backup as main library". I don't even see an option to choose certain Events to copy. Is there any way I can choo
-
Restricted Key Figure Column heading text missing
Hello, I created a restricted Key Figure in a BEX report and dragged this RKF into the columns tab. when i execute the report , the column header text for the restricted key figure is missing. The values are fine, but the header column text for that
-
ITunes Helper.exe - Entry point not found error after upgrade
I just tried to install the latest iTunes software for Windows on two separate PCs running XP Pro SP3 and get the same error on both PCs at every windows startup: iTunes Helper.exe - Entry point not found. The procedure entry point sqlite3preparev2 c