How to access the webservice in portal component
hai
how to access the webservice in portal component.
anyone knows give the solution
Rds
Shanthakumar
Hai
Please check this link.
https://www.sdn.sap.com/irj/sdn/wiki?path=/display/vc/connectivity&
Regards
Similar Messages
-
Urgent Please help me... How to access BAPIs from abstract portal component
I am developing an application in Abstract Portal Component (in
PDK).
In that application I can able to acess BAPIs from my Componets
using the code like
inputPopSearchBapi = new Zad_Bapi_Pop_Search_Form_Input();
outputPopSearchBapi = new Zad_Bapi_Pop_Search_Form_Output();
popSearchBapi = new DropBox_PortType();
colorList = new Tjj12Type_List();
inputPopSearchBapi.setIm_Agencyid("0010000001");
try {
jcoClient.connect();
outputPopSearchBapi =
popSearchBapi.zad_Bapi_Pop_Search_Form(inputPopSearchBapi);
colorList = outputPopSearchBapi.get_as_listIt_Color();
request.getComponentContext().putValue("color",colorList.iterat
or());
jcoClient.disconnect();
But I am not able to Access the data that is comming from the
BAPI in my JSP Page. Pleeeeeeease help me. If you want any
clarification about my problem then ask for further
clarificationsHi,
You can refer this link, to connecting the BAPI from Abstract Portal Component <a href="http://www.huihoo.org/openweb/jco_api/com/sap/mw/jco/JCO.html">JCo Tutorial1</a>
<a href="http://www.apentia-forum.de/viewtopic.php?t=1962&sid=9ac1506bdb153c14edaf891300bfde25">JCo Tutorial2</a>
With Regards,
Venkatesh. K
/* Points are Welcome */ -
How to Access the view from another Component
Hi,
Seek your advice on this following requirement.
1. Would like to add the view OVWindow of Component BTCATEGORIES in an assignment block of
CRMCMP_CMG similar to the assignment block exists in the BT116H_SRVO component.
2. Please provide the step by step procedure to implement this requirement.
Regards,
ArifHi,
I am having view1 and view2.
in view1 i am using roadmap. S1 is one of the step of road map.
in view1 i used this code to get the reference of this view in componentcontroller attribute
Data: lo_api TYPE REF TO if_wd_view_controller.
If first_time = 'X'.
lo_api = wd_this->wd_get_api( ).
wd_Comp_Controller->my_VIEW = lo_api.
endif.
in my view2 i want to access the roadmap step
i dono how to access that.. i used this code.......
wd_comp_controller->my_view->get_element( 'S1' ).
is this correct.. If not what is the code to get that id..
Can any one tell me clearly... -
How to access the User's login portal ID?
Hi all,
How to access the user's portal login id??
Thanks,
Anirudh.Hi
Try this
String loginuser="";
try{
IWDClientUser wdUser = WDClientUser.getCurrentUser();
IUser user = wdUser.getSAPUser();
if(user != null)
IUserAccount acct[] = user.getUserAccounts();
if(acct[0] != null)
loginuser = acct[0].getLogonUid();
strUserid = strUserid + acct[0].getLogonUid();
}catch(Exception e){
Kind Regards
Mukesh -
How to Call Webservice in Portal Component?
Hi Experts,
Currently, I have a URL of WSDL file, how can I consume this webservice in portal component. I know that we can call webservice via webdynpro application/standalone proxy/deployable proxy, but it seems different in portal component.
Thanks & Best Regards,
JamesAccessing an External Web Services in Portal
Accessing an External Web Services in Portal
http://help.sap.com/saphelp_nw04/helpdata/en/e9/ae1b9a5d2cef4ea4b579f19d902871/content.htm
Consuming Web Service from ABAP
Consuming Web Service from ABAP -
How to access the portal database ?
Hi ,
1. How to access the portal database from an abstract portal component program ?
2. How to insert data to the Table from the abstract portal component program ?
Please provide me some direction to proceed .
plz send me the steps how to access the Database using SQL.
Thanks
Smita
Edited by: Smita Mohanty on Nov 14, 2008 9:21 AMHi Smita,
In case your portal has MS SQL server as its databse, then I am giving the step by step directions to achieve 90% of what you wish to do. Rest 10% you can try on your own.
Go through my article given below:
[How to Create a Web Service using Enterprise JavaBeans|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/uuid/b00917dc-ead4-2910-3ebb-b0a63e49ef10]
First go through pages 1-12 which will help you to create user/table in MS SQL database as well as create a data source in Visual Admin. Page 19 will give you the code which you can use in your Portal component to access the tables you have created in your SQL database.
I hope your problem gets solved.
Bye
Ankur -
How to access the global data in user exit.
Hi All,
How to access the global data in user exit.
the question is that when we were writing a code in the FM. i need to read data from the standard program like newly created documen and this document number need to be accessed in my program.
this document number is not imported to the FM i needed to access for frther proceed.
Thanks in advance.Hi,
See the below PDF file by Jeff Goldstein. There you can find all the details about accessing data outside of the exit.
[SAP User Exits and the People Who Love Them|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/208811b0-00b2-2910-c5ac-dd2c7c50c8e8]
This will help you to solve your problem.
Regards
Karthik D
Edited by: Karthik D on Dec 2, 2008 4:18 PM -
How to access BAPI in enterprise portal perspective?
hi,I am venkat new to the portal.can anyone plz tel me how to access BAPI in enterprise portal perspective?is done through JCo or any other database connection?I hav not seen in System Landscape about BAPI access.plz give guidance about BAPI interface in enterprise portal.Hope u will understand the question and answer the query.
thanx in advance.
Regards:
Venkataramana.Guys,
Herez how you call a BAPI:
public void buildConnection(){
try {
System.out.println("**** DI2 *****");
// Add a connection pool to the specified system
// The pool will be saved in the pool list to be used
// from other threads by JCO.getClient(SID).
// The pool must be explicitely removed by JCO.removeClientPool(SID)
com.sap.mw.jco.JCO.addClientPool( SID, // Alias for this pool
10, // Max. number of connections
"040", // SAP client
"USERNAME", // userid
"PASSWORD", // password
"EN", // language
"IPADDRESS",// host name
"40" );
// Create a new repository
// The repository caches the function and structure definitions
// to be used for all calls to the system SID. The creation of
// redundant instances cause performance and memory waste.
repository = com.sap.mw.jco.JCO.createRepository("MYRepository", SID);
JCO.Client client = null;
client = JCO.getClient(SID);
// Get a function template from the repository
//IFunctionTemplate ftemplate = repository.getFunctionTemplate("BAPI_CUSTOMER_GETDETAIL2");
IFunctionTemplate ftemplate = repository.getFunctionTemplate("YGGLB_BAPI_YGGLB9PRK_PRKDOCU");
// Create a function from the template
JCO.Function function = ftemplate.getFunction();
// Get import (of Function Module) "Parameter list"
JCO.ParameterList input = function.getImportParameterList();
// Set inputs for import parameters
//input.setValue("0000009000", "CUSTOMERNO");
//input.setValue("0248","COMPANYCODE");
// Get import (of Function Module) "Structure list".
//JCO.Structure importStructure = function.getImportParameterList().getStructure("CUSTOMERADDRESS");
JCO.Structure importStructure = function.getImportParameterList().getStructure("IM_DOCUMENTHEADER");
// Set values for import parameters (of Function Module) "Structure list"
importStructure.setValue( "SA", "DOC_TYPE" );
importStructure.setValue( "20080910", "PSTNG_DATE" );
importStructure.setValue( "20080910", "DOC_DATE");
importStructure.setValue( "BHARDWS", "USERNAME" );
importStructure.setValue( "2008", "FISC_YEAR" );
importStructure.setValue( "FRE1", "COMP_CODE" );
// Get import (of Function Module) "Table list - 1".
JCO.Table orderPartners = function.getTableParameterList().getTable("TBL_ACCOUNTGL");
// Set values for import parameters (of Function Module) "Table list - 1"
//Append Row -1
orderPartners.appendRow();
orderPartners.setValue("0000000001", "ITEMNO_ACC" );
orderPartners.setValue("0000400100", "GL_ACCOUNT" );
orderPartners.setValue("H", "DE_CRE_IND" );
orderPartners.setValue( "ANYTHING", "ITEM_TEXT" );
//orderPartners.setValue( "AG", "PROFIT_CTR" );
orderPartners.setValue( "AIG0000007", "COSTCENTER" );
//Append Row -2
orderPartners.appendRow();
orderPartners.setValue("0000000002", "ITEMNO_ACC" );
orderPartners.setValue("0000400100", "GL_ACCOUNT" );
orderPartners.setValue("S", "DE_CRE_IND" );
orderPartners.setValue( "NOTHING", "ITEM_TEXT" );
//orderPartners.setValue( "AG", "PROFIT_CTR" );
orderPartners.setValue( "AIG0000007", "COSTCENTER" );
// Get import (of Function Module) "Table list - 2".
JCO.Table orderItems = function.getTableParameterList().getTable("TBL_CURRENCYAMOUNT");
// Set values for import parameters (of Function Module) "Table list - 2"
//Append Row -1
orderItems.appendRow();
orderItems.setValue("0000000001", "ITEMNO_ACC" );
orderItems.setValue("USD", "CURRENCY" );
orderItems.setValue( "2000", "AMT_DOCCUR" );
//Append Row -2
orderItems.appendRow();
orderItems.setValue("0000000002", "ITEMNO_ACC" );
orderItems.setValue("USD", "CURRENCY" );
orderItems.setValue( "2000", "AMT_DOCCUR" );
// Execute client
client.execute(function);
//******************Start to work on fetching values now********************************
// Get export (of Function Module) "Structure list".
/*JCO.Structure returnStructure = function.getExportParameterList().getStructure("CUSTOMERADDRESS");
JCO.Structure returnStructure2 = function.getExportParameterList().getStructure("CUSTOMERGENERALDETAIL");
returnStructure.getString("NAME");
returnStructure2.getString("ENTERED_BY");*/
// Get export (of Function Module) "Table list"./// Create a new template if fetching table data from a different function module than above
//IFunctionTemplate ftemplateTable = repository.getFunctionTemplate("BAPI_CURRENCY_GETLIST");
//JCO.Function functionTable = ftemplateTable.getFunction();
//client.execute(functionTable);
JCO.Table table_return = function.getTableParameterList().getTable("RETURN");
Vector tbl = new Vector();
Vector row = new Vector();
Vector colNames = new Vector();
//Loop over all rows
do {
//Loop over all columns in the current row and add all those colums values to the current row
for (JCO.FieldIterator e = table_return.fields();
e.hasMoreElements();
JCO.Field field = e.nextField();
row.add(field.getString());
System.out.println(field.getName() + ":\t" + field.getString());
} // end for
//Add this newly built row to the table
tbl.add(row);
} while (table_return.nextRow());
table_return = null;
table_return = function.getTableParameterList().getTable("RETURN");
table_return.nextRow();
for (JCO.FieldIterator e = table_return.fields();
e.hasMoreElements();
JCO.Field field = e.nextField();
colNames.add(field.getName().toString());
//DefaultTableViewModel dtvModel = new DefaultTableViewModel(tbl, colNames);
//beanObj.setModel(dtvModel);
System.err.println("getting value for you from session in Get Data 1:-");
JCO.releaseClient(client);
// return dtvModel;
catch (JCO.Exception ex) {
System.out.println("Caught an exception: \n" + ex.getMessage());
}catch (Exception e){
System.out.println("Final Message" + e.getMessage()); -
Web Dynpro ABAP: How to access the content of a mime object?
Hi everyone,
does anybody know how to access the content of a mime object of a Web Dynpro component? I added a XML file as mime object to a web dynpro component. Now I want to read the content of this xml file within a method of the component controller. The code would look something like:
DATA: xml_content type xstring.
xml_content = read_mime_object("test_123.xml").
Any ideas?
Regards,
Nilsdude here's the modification that i've done but I can't still access the content of the properties...
Mail mail = new Mail();
String message2 = sqlException.getMessage();
File file = new File("Add.properties");
Properties props = new Properties();
props.load(new FileInputStream(file));
String[] emailadd = {props.getProperty("emailadd","defaultValue")};
mail.postMail(emailadd,"An error has occurred, Auto-archive was unsuccessful.", message2,"[email protected]");
Message was edited by:
ryshi1264 -
How to access the SAP MDM destinations using mdm java api in 7.1
hi,
I have SAP MDM 7.1 SP11 and SAP Portal 7.3 and developing the custom webdynpro application using the JAVA MDM API. I want configure the SAP MDM destinations in SAP Portal .
How to access the MDM destinations in java code using API? and how to create the connection with MDM using the MDM destinations.
Please provide the code for access the SAP MDM destinations in java code using MDM java api and creating the connection to MDM.
ThanksJun,
Thanks for the reply and api information.
I have got this api information from the following sap documentation. But i am looking for the code by implementing this class and creating the mdm connection.
Creating an MDM Connection Using Java Code - SAP NetWeaver Master Data Management (MDM) - SAP Library
if any thing can you share it.
Thanks -
How to access the mysql using ordinary command line in Azure Website?
Hi
I deploying Django project on Azure. I created project and MySQL db according this method: https://pytools.codeplex.com/wikipage?title=PollsDjangoSql . I can create tables using django command "syncdb" in Visual Studio. I see
db structure in SQL Explorer. All works. But now I need to get access directly to mysql. For example with a view to set encoding of some column, or set permissions, change user password, etc.
I found about many different tools and methods in Microsoft portal. But the purpose of these tools, how to install it and how to use it is a very entangled (After several attempts to find out what's what two weeks later I found on my computer
three dozen programs with unknown purpose. I doubt that I need to install so many tools to just add the user in mysql).
How to access the mysql using ordinary command line (or the same simple tool) in my case?Hi pvgdrk,
To get access directly to a mysql database, you can use the commandline tool(open a cmd window-->type mysql the commadline ) or the
GUI MySQL workbench.
Since this is a question about MySQL, I would suggest you post your question in a dedicated MySQL forum. You will get more prompt response.
If you have any feedback on our support, please click
here.
Eric Zhang
TechNet Community Support -
How to access the jpanel and other components on click of a button
hi ,
need help,how to access the components of a frame onclick of a button ,if the actionPerformed() is written in a seperate class.
in my code
button.addActionListener(new Xyz());
Xyz is implementing the ActionListener.
in actionPerformed() i want to access the components in the frame.
thanks.public class Xyz implements ActionListener{
JFrame frame;
Component[] comps;
public Xyz(JFrame f){
frame = f;
comps = frame.getContentPane().getComponents();
public void actionPerformed(ActionEvent e){
// access elements in comps array
button.addActionListener(new Xyz(this)); // if 'this' is a JFrame in question -
How to access the Remote Appserver thru EJB
hi friends...
How to access the Remote appserver thru EJB from a Portlet.
I've tried but its not working u have any idea Plz help me out...
The scenario is I have my portal running in my machine & appserver(weblogic) running in remote and want to access that appserver
thru Remote EJB from my portal. I have tried with the t3 protocol and iiop but it is not working
The code i have use
Properties props = new Properties();
props.put(javax.naming.Context.INITIAL_CONTEXT_FACTORY,"weblogic.jndi.WLInitialContextFactory");
props.put(javax.naming.Context.PROVIDER_URL, "t3://10.1.87.46:7031");
it is giving me a nullpointer exception when i try to access the method in the ejb , it is not able to call that method...
Plz help me out to resolve this situation
Thnx in Advance.....SanjayBala, just so you know that it is possible to create a database link in Oracle to non-Oracle databases in some circumstances. Look up Generic Connectivity aslo know as Heterogenous Services. With 11g Oracle has basically renamed the feature and replaced it with somethinkg named ike DG4ODBC.
I have not spent time studying the details for DB4ODBC but with HS Oracle provided the interface and you had to obtain the necessary ODBC driver on your own. I had Oracle on AIX reading and writing to SQL Server on Windows but the developers chose to write a java program and connect to both via it. On Windows and Linux platforms the necessary ODBC drivers might be available without the requirement to go out and purchase one.
The Oracle Open Gateway product is an advanced version of the above features with drivers for specific non-Oracle databases included like DB2 or Informix.
HTH -- Mark D Powell -- -
How to access the handle of the Frame window ?
How to access the handle of the frame window through out the application ?. I want to display an alert box, while I click the fifth inner child component of the Frame . I am using Dialog Class for the alert box, I have to pass the frame handle to the Dialog constructer, I am getting the handle of the frame by getParent().getParent()......getParent().. But can any one suggest any better solution.
If you application extends Frame or JFrame, you could simply refer to "this", or if you create a global or final Frame object that you use as your "top-level" component, you could refer to it this way. Additionally, if you're ever in a situation where you really need to go all the way to the top through n levels of components, I believe you could always do something like this...
// assume myContainer is the "child" component that you're on, and you want to find its top-level parent
Container c = myContainer;
while (c.getParent() != null) {
c = c.getParent();
} -
How to access system variables in Script Component in data flow task in SSIS
Hi,
I am new to SSIS. Can someone tell me how to access system variable in Script Component in SSIS using C# code.
ThanksYou can use the System.Environment.GetEnvironmentVariable(...) to read the variables. An example is here:
http://msdn.microsoft.com/en-us/library/y6k3c7b0.aspx
Vikash Kumar Singh || www.singhvikash.in
Maybe you are looking for
-
Com.oreilly.servlet.MultipartRequest from where to download the package
Hi all From where to download this package. com.oreilly.servlet.MultipartRequest and where to copy it so that I can use this package. Vijay
-
How can I open a subvi when running a vi in an application (executable file)
I have a vi that I converted into an executable file. I would like to run it and at the same time be able to open the front panel of one of its subvis. Does anybody know how to do that? Thanks, Jerome.
-
HOW DO I CHANGE MY SECURITY SETTINGS ON WINDOWS VISTA SO I CAN DOWNLOAD MOZILLA
i am trying to download mozilla and my computer (windows vista) says my security settings will not allow this download. how do i change my security settings so i can download mozilla?
-
Export Internal Table To E-Mail via attachted html or PDF file
i have an ALV display report for which the data is in the internal table. Can anybody tell me how can i attach the simple internal table as an attachment to the mail ... give me example code if possible Maximum points will be given thanks in advanc
-
Agent desktop goes to not ready randomly
Hello, We have ctios agent desktop version 8 and we have ucce version 8. We have user that randomly was put to not ready state without clicking on anything and when she tries to put herself back all buttons are grayed out even she closed application