Passing a parameter to Web Dynpro from an external system

Hi All,
I want to pass a parameter to a Web Dynpro Application from an external browser.
I have developed a simple application with an input "ServiceOrder".
In the Portal I have created an Iview for the Web Dynpro application and have set an Application Parameter (ServiceOrder="000003000012"). Just for testing.
In web Dynpro Controller I have created an attribute in the Context and write tje code below in the wdDoInit.
String SO = WDProtcolAdapter.getProtoclAdapter().getRequestParameter("ServiceOrder");
wdContext.currentContextElement.setServiceOrder(SO);
My problem is that the String SO is empty.
Please help.
Regards,
Ridouan

Hi R. Taibi,
try this.
IWDProtocolAdapter protocolAdapter = WDProtocolAdapter.getProtocolAdapter();
IWDRequest request = protocolAdapter.getRequestObject();
wdContext.currentContextElement().setServiceOrder(request.getParameter("ServiceOrder"));
regards
Gunter

Similar Messages

  • Initiate web dynpro from non-SAP system

    Hi all,
    My costumers are using a non-SAP system, and I need to open a SAP purchase order from this system (based on the order number). Is it possible to put in a link on the non-SAP system, that initiates a web dynpro pop up filed with a SAP purchase order?
    Please advise.
    Thanks

    Hi Thomas,
    WebDynpro is technology native to SAP. WebDynpro Application is developed, utilizing the runtime , libraries & underlining platform in the SAP system. However when webDynpro component is to be used, its consumed as a simple Web Application( i.e you have a URL to invoke it ), thus if you have a WEBDYNPRO application, with fair amount of knowledge of HTML & JAVAScript you can call the URL, which is going to display you the webdynpro application.
    so in effect a webdynpro application would appear as good as a webapplication that CAN be called on Browser from any where, but to build & change it you need SAP Netweaver.
    Greetings
    Prashant

  • Flash Islands : pass event parameters to Web Dynpro

    Hi,
    I am trying to pass a parameter to Web Dynpro using "FlashIsland.fireEvent()". The event is fired, but I cannot get the parameter.
    I WD I created a GACEvent :
    name = doSomething
    onAction = doSomethingAction
    In this Event I created a GACEventParameter
    name = returnText
    type = string
    In Flex I implemented following function :
    private function click():void
       var returnText:String;
       returnText = "Dit is een test";
       FlashIsland.fireEvent(this,'doSomething',returnText);
    This is the code of the action in WD :
    public void onActionDoSomethingAction(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent)
        //@@begin onActionDoSomethingAction(ServerEvent)
           wdComponentAPI.getMessageManager().reportSuccess(wdEvent.getString("returnText"));
        //@@end
    The event is fired, but I get the message "invalid message: null". What am I doing wrong?
    Regards,
    Jeroen

    Hi,
    Wrong syntax when you fire the event. The correct syntax is :
    flex code :
    var myParam:String = new String();
    var myValue:String = "Test";
    FlashIsland.fireEvent(this,"Event1",);
    Regards,
    Jonas

  • Calling ERP Web Dynpro from CRM Opptunity with parameters

    Hi, experts!
    In CRM7.0, I'm calling ERP Web Dynpro from CRM Opptunity.
    We've added a button in Opptunities and the buttom can navigate into ERP Web Dynpro.It works fine.
    Now, I'm trying to move the value of Opptunity ID to a field in ERP Web Dynpro when we push the buttom. That's a problem I want to solve. We're struggling to move the value, but it doesn't work.
    We uses the following settings:
    1) We call Z- Logical Links generated by Transaction Launcher when we push the buttom.
    2) We define Transaction Parameters in a Transaction Launcher Wizard(Step5). We've set "//clipboardBTOrder/BTOrderHeader/OBJECT_ID" or "//datacontextCURRENTBT/BTOrderHeader/OBJECT_ID".
    But both of them doesn't get any value.
    3) If you set SYST data or constants in Transaction Launcher Wizard(Step5), you can find the data in ERP Web Dynpro.
    Does anyone know which parameter gets the value of current opptunity data?
    Or if you have any tips to create URLS using programing, could you please share the information with me?
    BestRgards.
    Miki

    Does anyone have tips??

  • How can i pass the  parameter for strored procedure from java

    dear all,
    I am very new for stored procedure
    1. I want to write the strored procedure for insert.
    2. How can i pass the parameter for that procedure from java.
    if any material available in internet create procedure and call procedure from java , and passing parameter to procedure from java

    Hi Ram,
    To call the callable statement use the below sample.
    stmt = conn.prepareCall("{call <procedure name>(?,?)}");
    stmt.setString(1,value);//Input parameter
    stmt.registerOutParameter(2,Types.BIGINT);//Output parameter
    stmt.execute();
    seq = (int)stmt.getLong(2);//Getting the result from the procedure.

  • Reg: Web Dynpro Test Tools under System Administration - Support

    Hello Guru's,
    I came across Web Dynpro Test Tools under System Administration - Support
    And I have these options there:
    1. Application Integrator Tests
    2. OBN Web Dynpro Tests
            OBN Source
            OBN Target
    3. Web Dynpro Page Builder Tests
    I want to know how to test the OBN and other tests under that.
    Any help is highly appreciated.
    Thanks & Regards,
    Pramod

    Closing the thread no longer working on the issue.
    Cheers-
    Pramod

  • HTTP REST API call to CPSC 10.x from an external system

    Hi,
    I would like to know the below items.
    Is it possible to connect with the CPSC 10.x from an external system via HTTP REST API call to process a request and complete a task?
    Is it possible to create a new ticket / request in CPSC for a specific service via the HTTP REST API call?
    One of the use case is to know how many requests are pending in a queue via a HTTP REST API call? How to pass a queue name in the HTTP REST API call to get the result? These kind of custom piece is not available in the integration guide.
    Is there any specific REST API guide available which Cisco provides for the REST capability in CPSC?
    Any help is highly appreciated!
    Thanks.

    When a task is invoked from a service catalog request to an external system, the request remains open and the task is pending until the external system issues a call to complete the task.  The API for completing the task is SOAP-based.  Check out the Cisco Prime Service Catalog Integration Guide.  Within the doc, go to the section about "Web Service Listener Adapter" for the WSDL.
    You can order a service within Prime Service Catalog with a SOAP call, which is also documented in this same document.  Starting with Prime Service Catalog 10.1, you will have a way to order a service via a REST API.
    Existing REST APIs are also documented in the integration guide.

  • How to find in R/3 System, which FI document is from which external system?

    Hi Moderator/ FICO Experts,
    How to find in R/3 System, which FI document is from which external system?
    In case of different Non-SAP external Systems posting the data to one R/3 System.
    Thanks
    Chandra

    Hi,
    That really depends on the interfaces that your external systems are using. Check with your ABAP or BASIS team to see what is the method used for posting those documents and with which parameters is passed. Look at BKPF table (FI header) to see the attributes such as user, document type, reference, etc.
    Regards,
    Eli

  • Sender File Adapter  not able to get file via FTP from an external system

    Hi,
    I have a Sender File Adapter using FTP which polls a server every 10 seconds looking for a file ".xml".  The adapter will connect and pick up the waiting file, but sometimes the adapter not able to get file via FTP from an external system. The file is on the server, but despite the polling, the adapter does not pick up it. There is no return error.
    The connect mode is Permanently and the transfer mode is Binary.
    Can you help me?
    Thanks.
    T.

    Hi Teresa,
    does this case appears with a file size higher the others?
    Personally, I do not recommend to have a polling under 1min.
    10s could be too just, if the file is not small and/or if the file server is far (several kilometers) to where the Adapter Engine is, and/or this file server is beside a firewall. Do not forget also that, with previous points, you could have like a conflict, betwen the 1st polling and the 2nd polling, if in less 10s PI adapter has not enough time: to connect to the FTP server (several Km), find the file (perhaps among 100 other files in the directory), go back to the file to Adapter Engine server (several Km again), convert your file to XML message (with a complex Content Conversion), then check the XML structure, and when all that is done, return back to FTP server (several Km), to archive the source file... Well It's my understanding of a FTP exchange with FILE adapter...
    If you really need a 10s polling, that's mean your have a pseudo real time interface. In that case, in my mind file should not be used! but we should use a Web service, JDBC JMS (any exchange without a physical object like a file). For me, it's a non-sens to have a file in that case.
    regards.
    mickael

  • How to trigger Solution Manager Change request from an external system

    Hello All,
    I have a scenario where in I would like to create and trigger a Change Request in Solution Manager from an external system, for instance, a custom web application. How could this be done? Are there standard interfaces (BAPIs) available in Solution Manager for doing this? If yes, then what are the BAPIs? Or Can a custom RFC be developed to achieve this..? If yes, then what are the underlying / base BAPIs that could be wrapped?
    Any pointers will be highly appreciated. Sorry if the question is naive. I'm a novice to the Solution Manager topic.
    Bala

    Hi Bala,
    I am facing the same issue. I want to create a change request in background from an external application, like an adobe form for instance. Would you be so kind to tell me, which BAPI you used in your solution?

  • Change owner for transport from an external system

    Hi Everyone,
    I have some transports that were brought into our DEV system from an external system.  (They're BSI transports but I don't think that detail is important.)  We are using a third party transport management system (Insite) and in order to move these transports using Insite, I need to change the owner of these transports to myself.  When I try to do so I receive an error "Request L6BK134312 cannot be changed: Incorrect system or wrong naming convention".
    I've been told that all I need to do is to configure or add the source system to our DEV system and then I should be able to change the owner.  My problem is that I cannot figure out where to go to make this change.
    Can anyone point me in the right direction?
    Thanks!
    Jeff

    Hi Jeff,
    Yes, I do have a regular procedure that I follow to get this to work.  Ruchit Khushu was correct when he said that it had to be "a normal customizing or workbench request."  Creating a transport of copies never worked for me, so I had to set the task to Workbench.
    Here's my procedure:
    1) Import the transports
    2) Go to SE10 and create a new transport
    3) Change the task to Workbench by selecting it, using menu option Request/Task > Change Type... and select Workbench.
    4) Click on the transport number to select it.
    5) Select menu Request/Task > Object List > Include Objects...
    6) Enter a transport you want to include
    7) Repeat 5 & 6 until all transports have been included.
    Hope that helps.
    Jeff

  • Read/Open a file in SAP DMS from an external system

    Hello Sap Gurus,
    I want to read/open a file in SAP DMS from an external system . External system is basically a non-sap system.
    Can this be achieved through an RFC..
    Does anyone know of any BAPI's/FM's that can be called from an external system (non-sap system) through RFC which will open a document which is stored in SAP DMS.
    Regards,
    Madan Shetty.

    Hi Madan,
    If you want to view documents from an external system, there are many ways of achieving this.
    It depends on the solution that you are approaching.
    Few methods that I have come across are, OData services, Custom RFC Function  Modules, to retrieve document attachments.
    FTP is also a possible solution.
    Please let us know your exact requirement.
    Regards,
    Tamilnesan G

  • SQL queries against a database view from an external system?

    Hi,
    I have a question about Database views in se11.
    Is it possible to create a database view and that do SQL queries against this  view from an
    external system, Not a SAP system?
    Please, I need you help.
    Best Regards
    Annika

    Hi Annika,
    it is possible , yes... but depends on your database systems in the SAP source DB and the external DB
    (easier if they are the same,  i.e. both ORACLE) - check out with your BASIS team (they have to create something like a "database link" in the external DB system  that you can use to access the tables in the SAP source).
    In the external DB you sure can create a view on these "remote" tables.
    We used this to pull data form SAP DB  to another DB system (both ORACLE based).
    But this is NOT supported by SAP , so be carefull. Below is the restriction for ORACLE (as well for other DB systems )
    see SAP note 581312 "Oracle database: licensing restrictions"
    As of point 3, it follows that direct access to the Oracle database is
    only allowed for tools from the areas of system administration and
    monitoring. If other software is used, the following actions, among
    other things, are therefore forbidden at database level:
    * Querying/changing/creating data in the database
    * Using ODBC or other SAP external access methods
    This means that additional application software is only allowed if this
    accesses the database through SAP interfaces (for example, RFC, SAP J2EE
    or BAPI).
    I would say if you KNOW the tables involved (using valid WHERE conditions and joins )
    and don't start queries from hell (ad-hoc type) wich can bring down your SAP system performance
    you can try it.
    But be warned...
    good luck...
    bye
    yk

  • Creating an IT 0015 from an external system

    Hi,
    I would like to post a new record in IT 0015 (additional payments for an employee), from an external system (XI/PI) as the information is coming via mapping from an external system.
    Do any of you have an idea of an RFC to use ?
    I taught I could use BAPI_WAGE_COMP_EXT_CREATE but finally saw that it is for IT 0579 and also I tried, I couldn't place a correct record via SE37.
    Thanks in advance for your suggestions.
    greg

    After some discussions, seems that the only viable solution for IT 0015 is to use encapsulation into a personal written RFC with HR_INFOTYPE_OPERATION *** proposed.
    Do any of have experience with BAPI_WAGE_COMP_EXT_CREATE as it would permit to create a IT 0579 that could be included in the payroll process and which can be used from XI/PI directly. More over, it limits the possibilities of the caller (XI/PI) to the strict Wage type defined. (I'm not yet clear about how to create and allow accesses for a specific application to a particular wage type, if somebody has any tips about it, thanks in advance)
    Cheers,
    greg

  • Creating shopping cart in SRM through an interface from an external system

    Hello,
    i am currenlty working on a SRM implementation at a client and we are looking into
    building an interface for purchase requisitions from an external system to SAP.
    To be able to get these requisitions as a package approved I would want them to go though the
    approval process in SRM. Does anybody know if it is possible to create a shopping cart in SRM through an interface from another system?
    thanks,
    Geert

    SRM has a standard business scenario of PDP PM
    here the external requirements are transferred to SRM for sourcing
    in normal business scenario ECC PR is transferred to SRM which creates a dummy SC or say sourcing SC in SRM which appears in Purchaser's worklist after correct settings
    SRM can work with NON SAP system also
    so logically yr requirement should be possible
    but in ECC PR transfer case the SC created in SRM is already apparoved.
    BR
    Dinesh

Maybe you are looking for