How to call an ABAP FM using WS adapter?
Hi guys,
I need to develop a SOAP to PROXY scenario, where in the target I'll be calling a function module. Is it possible to call the function module using the WS adapter? What would the steps of setting this up look like?
Thank you, Andrzej
Hello,
Yes, is possible. You need to publish a WS related to Function that you want to call.
To expose the FM WebService: SE37 trans -> Enter FM name -> Modify
Than, in Menu -> Utilities -> Other Utilities -> Generate WebService -> From Function Module.
Than, follow the wizard!
Similar Messages
-
How to call the abap program in workflow
HI Exeprts,
I need to call one abap program in workflow.
can any tell me how to call the abap program in workflow.
thanks ®ards
rameshDear Ramesh,
U can use REPORT business object.
Method : EXECUTE_2
Regards,
Sagar -
How to call a abap program ?
Can anyone tell me how to call one abap program in another abap program ??
Hi,
You can use <b>submit</b> statement to achieve the same.
Sample Code
REPORT ZREP2 NO STANDARD PAGE HEADING.
tables: qals.
RANGES seltab for qals-prueflos.
WRITE: 'Select a Selection!',
SKIP.
FORMAT HOTSPOT COLOR 5 INVERSE ON.
WRITE: 'Selection 1',
/ 'Selection 2'.
AT LINE-SELECTION.
CASE SY-LILLI.
WHEN 4.
SUBMIT zrep1 VIA SELECTION-SCREEN
WITH PARAMET EQ 'Selection 1'
WITH SELECTO IN SELTAB
WITH SELECTO NE 3
AND RETURN.
WHEN 5.
SUBMIT zrep1 VIA SELECTION-SCREEN
WITH PARAMET EQ 'Selection 1'
AND RETURN.
ENDCASE.
Message was edited by: Jayanthi Jayaraman -
How to call smartform FM after using SSF_FUNCTION_MODULE_NAME?
Hi Experts,
How to call smartform FM after using SSF_FUNCTION_MODULE_NAME?
I mean, in driver program i called SSF_FUNCTION_MODULE_NAME to get the related FM for my smart form. after that How do I call it(smartform fm) . I tried to call by pressing PATTERN button in Report. but it is showing FM is not exist error.
Call function SSF_FUNCTION_MODULE_NAME
Export
formname = 'zsmartform'
import
fm_name = function_name.
function_name is stored the corresponding smartform fm. then How do i call it to process my smartform?
thanks in advance.hi,
Chk this sample.
DATA: p_output_options TYPE ssfcompop, "occurs 0 with header line
p_control_parameters TYPE ssfctrlop. "occurs 0 with header line
p_output_options-TDCOPIES = 3. "number of copies.
p_output_options-tddest = 'LP01'. "def
p_control_parameters-no_dialog = 'X'. "no dilog box
p_control_parameters-preview = 'X'. "no preview
DATA : v_form_name TYPE rs38l_fnam.
*---- Function to get the function module name of the ----
*---- specified Smart form. ----
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
formname = 'GIVE YOUR SMART FORM NAME'
* VARIANT = ' '
* DIRECT_CALL = ' '
IMPORTING
fm_name = v_form_name
EXCEPTIONS
no_form = 1
no_function_module = 2
OTHERS = 3 .
*---- Function Module to call the Smart Form ----
*step 1 - go to ur smart form
*step2 - take environment
*step3-take function module name
*copy that unique number.
*step4 -come back to ur driver program.
*step5 - place ur cursur here. take patter,.give that unique number.
*at that time u will get the below code.
*step6 - rename that unique number with 'v_form_name' in the code generated by pattern.
CALL FUNCTION v_form_name
EXPORTING
* ARCHIVE_INDEX =
* ARCHIVE_PARAMETERS =
control_parameters = p_control_parameters
* MAIL_APPL_OBJ =
* MAIL_RECIPIENT =
* MAIL_SENDER =
output_options = p_output_options
user_settings = ' '
* ARCHIVE_INDEX_TAB =
* IMPORTING
* DOCUMENT_OUTPUT_INFO =
* JOB_OUTPUT_INFO =
* JOB_OUTPUT_OPTIONS =
EXCEPTIONS
formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4
OTHERS = 5
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
for any clarifiaction pls revert.
regards,
Reshma -
How to call an abap report in BSP..
hi all,
Please can anybody tell me how to call an abap report in BSP application.....since I am new to BSP....
with regards,
Santoshcheck this thread
Urgent!! How to call a custom transaction or an ABAP program in BSP? -
How to call a stored procedure using its package name in Oracle
hi
we're doing a JDBC scenario where we call a stored procedure(a.prc) using its package name(b)The stored procedure has In /Out/IN-OUT parameter.
i have got 2 queries:
1- How to call the stored procedure using it's package.
2- How to capture the In/Out parameter in the response.hi Prateek
thanks for the reply.
However when i tried mapping it to Package.procedure, communication channel throws the error saying that Package.proceudre needs to be declared.
As i said , the procedure has IN-OUT parameter too.In oracle we need to write a block if we want to read the IN-OUT parameter.
How to get the IN-OUT parameter in XI? -
How to call a schema name using substitution name?
Hi All,
How to call a schema name using substitution menthod in odi?
I was trying but I got the following error..
ODI-1227: Task XXX(Procedure) fails on the source ORACLE connection YYY.
Caused By: java.sql.SQLException: Missing IN or OUT parameter at index:: 1
Here xxx procedurename.
yyy-schemaname
Please do the needful..
Thanking you in Advance.
Regards,
PP1 declare
2 sql_string varchar2(2000);
3 begin
4 sql_string := 'select ' || func_name || ' into a from dual ';
5 execute immediate sql_string;
6* end;
SQL> /
sql_string := 'select ' || func_name || ' into a from dual ';
ERROR at line 4:
ORA-06550: line 4, column 28:
PLS-00201: identifier 'FUNC_NAME' must be declared
ORA-06550: line 4, column 1:
PL/SQL: Statement ignored
1 declare
2 sql_string varchar2(2000);
3 func_name varchar2(30);
4 begin
5 func_name := 'some_func';
6 sql_string := 'select ' || func_name || ' into a from dual ';
7 execute immediate sql_string;
8* end;
SQL> /
declare
ERROR at line 1:
ORA-00904: "SOME_FUNC": invalid identifier
ORA-06512: at line 7
SQL> desc some_func;
ERROR:
ORA-04043: object some_func does not exist
1 create or replace function test_func
2 return number
3 is
4 begin
5 return 0;
6* end;
SQL> /
Function created.
1 declare
2 sql_string varchar2(2000);
3 func_name varchar2(30);
4 begin
5 func_name := 'test_func';
6 sql_string := 'select ' || func_name || ' into a from dual ';
7 execute immediate sql_string;
8* end;
SQL> /
declare
ERROR at line 1:
ORA-00905: missing keyword
ORA-06512: at line 7
SQL> Set serveroutput on
1 declare
2 sql_string varchar2(2000);
3 func_name varchar2(30);
4 return_value number;
5 begin
6 func_name := 'test_func';
7 sql_string := 'select ' || func_name || ' from dual ';
8 execute immediate sql_string into return_value;
9 dbms_output.put_line(return_value);
10* end;
SQL> /
0
PL/SQL procedure successfully completed.Hope that helps.
Regards
Raj -
How to call a ODI Job using Command line?
Hello All,
Please help me on this..
How to call an ODI Job using Command line?
Thanks
RavikiranGenerate a scenario of your package. Then go to <ODI_HOME>/oracledi/agent/bin in command prompt and invoke startscen command .
startcmd.sh OdiStartScen -SCEN_NAME=scn_load_data -SCEN_VERSION=001 -CONTEXT=GLOBAL -AGENT_CODE=odiSchedAgent001
Bhabani
http://dwteam.in -
How to Call Custom BPEL Process using JSP
Hi All,
I m not able to find out the way " How to deploy Custom BPEL process using JSP." Suppose I m Designing my custom BPEL process , and I want to call process through JSP.
In order to call the BPEL process using JSP I may get the Reference from Oracle guide, But it is for Existing Example like Hello world, Order Booking.
But I am facing the problem in order to call the Custom BPEL process.
In case of Oracle Example it looks Simple but How to call Custom BPEL process using JSP.
Please help me.
Thanks&Regards
Devesh Mishrahi
The BPEL Developer guide give the way to Locate the service.can you please specify where you are getting the problem.
Thanks,
Sivakumar -
How to send images through PI using SOAP adapter
hi,
Can anybody tell me how to send images through PI using SOAP adapter.
Regards ,
LoveenaHi Loveena,
only as attachments of a SOAP message.
Regards,
Udo -
How to call Subroutines,Standard Text & using Internal Table in SmartForm
Hi all,
need help in the following areas.Its very urgent!
1.How to CAll Subroutines in Smart Forms
2.How to CAll Standard Text in Smart Forms
Situation:
We have an Internal Table T_SALES with all the data which am going to display in the smartform,How to retrive data from an internal table in Smart forms
Any Help in this direction would be highly appreciated.
Regards
RamuHi,
When you are using quantity or currency fields, you have to mentiong the reference fileds in a tab called CURRENCY/QUANTITY FILEDS in the GLOBAL DATA node.
Specifying a Currency or Quantity Reference
Use
In the ABAP Dictionary, you can assign a currency or quantity field to a table field. In the output of these fields, the system can then insert the relevant currency or unit:
· If the value field is in the same table as the corresponding currency or quantity field, the system recognizes the reference automatically, and formats the value field according to the currency or unit in the assigned field.
· If the value field is in a different table from the currency or quantity field, the system cannot recognize this reference automatically.
In the second case, you must indicate this reference to the system in the form, to ensure that the value field is formatted correctly.
Procedure
You want to assign a currency or quantity field in one table (for example, CURTAB) to a value field in another table (for example, VALTAB).
1. Create the reference to the currency field by entering the following values:
- Field Name: VALTAB-VALUE, if this is the value field of VALTAB that you want to display.
- Reference Field: CURTAB-CURRENCY, which is the currency field of CURTAB.
2. Under Data Type, specify whether the data type is a currency or quantity.
Result
In the output of the PDF-based print form, the system formats the value field VALTAB-VALUE according to the assigned value in the currency or quantity field of the global variable CURTAB-CURRENCY.
Thanks and Regards,
Bharat Kumar Reddy.V
Message was Added by: Bharat Reddy V
Message was Added by: Bharat Reddy V -
How to call BSP based iview using Parameters
Hi,
i developed one BSP application which takes 2 input parameters 1. Document No 2. Item No.
I created a iView based on this BSP Application. I would like to call this iView by hardcoding input parameters.
Input: Document No, Item and Submit button. output displays some text based on input. which is working fine, No issues.
Now, i developed a iViews using these BSP application. If i call iViews, again no Issues. Which works great, we need to enter input manally.
I would like to call my iViews with document no = '0004000000' , Item No = '000001' and Submit = 'SET'. Which directly should display the data for above document item.
that means iView URL + Document = '0000400000' & Item = '000001' & submit = 'SET'.
how to call Parametrized iViews???
I'm talking about Application Parameters in documentation (http://help.sap.com/saphelp_nw04/Helpdata/EN/88/266a3e54a2e946e10000000a114084/content.htm).
ApplicationParameter
You can enter parameter values for certain screen fields for displaying a SAP transaction here.
This field is optional.
The parameter values are specified with the following syntax:
<Screen_field1>=<Parameter1>
&<Screen_field2>=<Parameter2>
&<...>=<...>,...
Thanks,
Ben.
Edited by: Nagesh Ganisetti on Jan 29, 2009 9:18 AMI want to pass values dynamically? How to pass values dynamically using URL???
assume my BSP URL wiht parameters:
http://nwd2bw1.corp.analog.com:8001/sap(bD1lbiZjPTAwMQ==)/bc/bsp/sap/zzsdpra123/start.htm?gv_doc=0040013811&gv_item=000001 WORKING GREAT!!!
Developed an iView using ZZPRA123 BSP application in portal without APPLICATION PARAMETERS.
http://nwd2bw1.corp.analog.com:50100/irj/servlet/prt/portal/prtmode/preview/prtroot/pcd!3aportalcontent!2fcom.analog.analog!2fcom.analog.SD_BI_REPORTS!2fcom.analog.SD_iviews!2fcom.analog.z_quote_text?sap-config-mode=true&_gv_doc%3d0040013811&gv_item%3d000001 NOT WORKING.
Simple BSP application: ON INITIALIZATION Method
event handler for data retrieval
data: gv_name type thead-tdname.
data: lt_line1 type standard table of tline,
lt_line2 type standard table of tline,
lt_line3 type standard table of tline,
lt_line4 type standard table of tline.
data: l_rfcwa type rfcdest.
data: event type ref to cl_htmlb_event,
url type string,
parameter type string,
url_page type ref to if_bsp_page.
l_rfcwa = 'PRD_CLI002'.
if gv_doc is initial.
CALL METHOD request->get_form_field
EXPORTING
name = 'gv_doc'
formfield_encoding = 0
receiving
value = gv_doc.
endif.
concatenate gv_doc gv_item into gv_name.
call function 'ZBI_STNDARD_TEXT'
destination l_rfcwa
exporting
name = gv_name
tables
lines1 = lt_line1
lines2 = lt_line2
lines3 = lt_line3
lines4 = lt_line4.
gt_line1[] = lt_line1[]. "Internal Header Text
gt_line2[] = lt_line2[].
gt_line3[] = lt_line3[].
gt_line4[] = lt_line4[].
Layout:
<%@page language="abap" %>
<%@extension name="htmlb" prefix="htmlb" %>
<htmlb:content design="design2003" >
<htmlb:page title="Quote Texts " >
<htmlb:form>
<htmlb:inputField id = "gv_sid"
value = "<%= gv_doc %>"
visible = "FALSE"
submitOnEnter = "TRUE" />
<htmlb:inputField
id = "gv_itm"
value = "<%= gv_item %>"
visible = "FALSE"
submitOnEnter = "TRUE" />
<htmlb:textView text = "Quote Texts for <%= gv_doc %> "
design = "HEADER1"
layout = "BLOCK"
textColor = "dark blue" />
<% if gt_line1 is INITIAL. %>
<htmlb:textView text = "No Internal Header Text Found"
design = "HEADER2" />
<% else. %>
<htmlb:textView text = "Internal Header Text"
design = "HEADER2" />
<% loop at gt_line1 into gs_line. %>
<htmlb:textView id = "textEdit"
layout = "BLOCK"
text = "<%= gs_line-tdline %>" />
<% endloop. %>
<% ENDIF. %>
<%--* External Header text --%>
<% if gt_line2 is INITIAL. %>
<htmlb:textView text = "No External Header Text Found"
layout = "BLOCK"
design = "HEADER2" />
<% else. %>
<htmlb:textView text = "External Header Text"
layout = "BLOCK"
design = "HEADER2" />
<% clear gs_line. %>
<% loop at gt_line2 into gs_line. %>
<htmlb:textView id = "textEdit"
layout = "BLOCK"
text = "<%= gs_line-tdline %>" />
<% endloop. %>
<% ENDIF. %>
<%Internal Item text%>
<% if gt_line3 is INITIAL. %>
<htmlb:textView text = "No Internal Item Text Found"
layout = "BLOCK"
design = "HEADER2" />
<% else. %>
<htmlb:textView text = "Internal Item Text"
layout = "BLOCK"
design = "HEADER2" />
<% clear gs_line. %>
<% loop at gt_line3 into gs_line. %>
<htmlb:textView id = "textEdit"
layout = "BLOCK"
text = "<%= gs_line-tdline %>" />
<% endloop. %>
<% ENDIF. %>
<%External Item text%>
<% if gt_line4 is INITIAL. %>
<htmlb:textView text = "No External Item Text Found"
layout = "BLOCK"
design = "HEADER2" />
<% else. %>
<htmlb:textView text = "External Item Text"
layout = "BLOCK"
design = "HEADER2" />
<% clear gs_line. %>
<% loop at gt_line4 into gs_line. %>
<htmlb:textView id = "textEdit"
layout = "BLOCK"
text = "<%= gs_line-tdline %>" />
<% endloop. %>
<% ENDIF. %>
</htmlb:form>
</htmlb:page>
</htmlb:content>
Please guide me to call iview using dynamic parameters.
Thanks,
Ben.
Edited by: Nagesh Ganisetti on Feb 2, 2009 8:47 AM
Edited by: Nagesh Ganisetti on Feb 2, 2009 8:48 AM
Edited by: Nagesh Ganisetti on Feb 2, 2009 8:49 AM -
Call a ABAP FM using 'TYPE ANY'???
Hi Pros,
I need to call a FM in ABAP that has tables and attributes of type ANY or ANY TABLE.
I do not care about how, but I need to find a way to call such a FM from a Web Dynpro Aplication and transport these "any" types to java...
can anyone think of a way how to do that???
Thanks!
P.S.: Its an important task and it constitutes a notable part of my dissertation... So, helpful threads will be rewarded.Hello,
so you can import the RFC_READ_TABLE as an adaptive RFC Model into your WebDynpro app. After that you are able to access the ModelContext node and read the return structures.
You also can use if you have a system below 4.6c which does not support Adaptive RFC the old JCO way. So u create with the SAP Enterprise Connector the needed Java classes to call inside the system using JCO.
But the deeper problem i see when you have to read the output strukture in very flat tables RFC_READ_TABLE can be a useful way but if you have complex tables with deep struktures in it you will have your problems to read the contents and concatinate them.
kind regards
Fabian -
How to call specific view of used component
Hi All,
I have the following problem:
I have component 1 which have two views: 1A and 1B. They are included in one window. Default view is 1A.
Navigation between view 1A and 1B it made with buttons and plugs ("go to 1A", "go to 1B").
I have main component 2 which uses component 1 (used component). Component 2 has view 2A and 2B. I have button "Z" in view 2A which calls method of component 1 and navigates to view 2B (where used component 1 is embedded).
First time I press button I navigate to view 1A, its correct. Then I navigate to view 1B (within used component 1).
when I go back (in main component 2) and press button "Z" again, the used component 1 is open with view 1B, not 1A (which is default). That is, used component 1 remember which view the navigation stayed on.
I nee to always see view 1A first when I navigate with button "Z" (open used component).
How I can do that?hi ,
u must be using component usage ..
in ur component2 , place the view 1B of ur used component in separate window
pls refer this thread as well :
How to call a Particular View from a View of Current Component
regards,
amit -
How to call a abap report in BSP
hi all,
Please can anybody tell me how to call abap report in BSP..
with regards,
Santosh.Also see below BSP tutorial
http://help.sap.com/saphelp_nw04/helpdata/en/c8/101c3a1cf1c54be10000000a114084/content.htm
Regards.
Maybe you are looking for
-
My friends MacBook connected easily to my wireless, but why not the ipod touch? When prompted for "Password" I enter the security key info and nothing, nadda....zip. The MacBook asks for the "Security Key" info not "Password", like the touch. What's
-
Data type is char but colum shud take numbers only
hi guys, i am using forms 6i and i am developing a custom form,my problem is i have a phone no col in my form the column is of datatype varchar2 but i shu accept only numbers in that col ie like '040234545' i cud have given number in property palette
-
Error in Oracle 10 Procedure - converted from SQL Server
I have converted the folowing script from SQL Server proc to Oracle Proc; it compiles with a warning "30 Hint: Comparision with NULL in 'sp_MyEmployee'" When this proc is executed; it generates an error "ORA-00900: invalid SQL statement" Please help!
-
Using Firefox version 19.0.2 on MAC. Appears message: "Although this page is encrypted, the information you have entered is to be sent over an unencrypted connection and could easily be read by a third party. Are you sure you want to continue sending
-
I need its aid, I have a problem activates 0material of business content 3.5.2 and marks the following error to me "material for Settings to number conversion found"