Calling function modules from a BSP page
Hi all
How do we call function modules from a BSP page.
regards,
Paul
Ok, 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
Similar Messages
-
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 -
How can i call a zreport from my bsp page.
Hi friends,
How can i call a zreport from my bsp page.
MoosaHi Friend,
These are the codings to be wirtten in BSP for transferring values to the REPORT
DATA:wf_date TYPE ztable-ID.
data:seltab type standard table of rsparams,
wa_seltab like line of seltab,
event TYPE REF TO if_htmlb_data.
DATA:p_value TYPE REF TO CL_HTMLB_INPUTFIELD.
event = cl_htmlb_manager=>get_event( runtime->server->request ).
p_requ ?= CL_HTMLB_MANAGER=>GET_DATA(
request = runtime->server->request
name = 'inputField'
id = 'i1'
if p_requ is not initial.
wf_date = p_requ->value.
endif.
clear wa_seltab.
if wf_date is not initial.
wa_seltab-selname = 'P_REQU'.
wa_seltab-kind = 'P'.
wa_seltab-option = 'EQ'.
wa_seltab-low = wf_date.
append wa_seltab to seltab.
endif.
submit *ZSAMPLEAP1* with selection-table seltab AND RETURN .(ZSAMPLEAP1 refers to the report name and AND RETURN for coming back to the BSP page after the completion of its operation in Report )
IMPORT int_name TO int_name FROM MEMORY ID '*zid*'.(For importing the obtained value from Report)
In Report
REPORT ZSAMPLEAP1.
SELECT-OPTIONS: p_requ FOR ztable-id NO INTERVALS.
SELECT SINGLE name from ztable into int_name WHERE id = p_requ-low.
WRITE:int_name.
EXPORT int_name TO MEMORY ID 'zsharmila'.
With Regards,
SHARMILA BRINDHA.M -
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 -
How to call a Function Module in a BSP Page?
Hi there,
i have no deep knowledge about BSP Programming.
So what i wanna do is to call a Function Module in a BSP Site..
I go to SE80... create a new empty BSP Application under that a Page with FlowLogic:
I see the new empty BSP Page with this Test Button and Hello world in it.
So my Funtion Module is called Z_Subscribe
What i have to do that the FM is called when i open the BSP?
Thanks
Bjoern
Edited by: bjoern bayerschmidt on Mar 3, 2009 1:01 PMHi Bjoem,
Search the forum for tutorials and blogs...
Regards,
Anubhav -
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 -
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 -
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 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,
Pratikhi 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> -
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
Maybe you are looking for
-
Attributes to be used for calculation
Hi Experts, I have a requirement for master data attribute calculation i.e. Vendor payment term's attributes like no of days. This needs to be used in a query for some calculation purpose. I wanted to know if the attributes of a master data can be us
-
Since long time I have not been able to open PDF files from a webpage I have opened in Safari. After changing to Safari 3.0.4 Safari teminates short after I try to open a PDF file. Can sombody help me with advice?? My vife has a similar computer, sam
-
Any update for acrobat 9 pro and OS X 10.6.1 ??
I am having compatibility problems between acrobat 9 pro 9.0.0 and OS X 10.6.1 especially with scanner and printer. Any updates to be downloaded somewhere?
-
Dear all, my client is using strategy-40 whn i am trying to find demand for any product , i could'nt find how to check demand for the products i used SE16- PBED & PBIM, but i could'nt find any demand what are other tables which are used to find deman
-
Hi I want to create a substitution rule to derive jurisdiction code automatically based on responsible cost center for AS01 transaction. How to achieve this. kindly help me. (Create substitution OACS) Thanks