Custom code does not work

Hi all,
I'm a newbie of SMP and SCN. I sincerely respect SMP leaders who posted nice blog.
I’d like to know how can I process the request (the number of customers) from client application to SOAP request.
My requirement is to connect SOAP WebService to client with Integration Gateway in SMP3 SP06.
SOAP service is provided by RFC. I checked the following blog and created function module.
http://scn.sap.com/docs/DOC-28582
This function module can input customer code (optional) and the number of entities to output customer information such as customer code, name, address, country, postal code and city.
I have configured SOAP WebServices with Integration Gateway in SMP3 SP06.
http://scn.sap.com/people/marvin.hoffmann/blog/2014/03/15/how-to-connect-soap-webservices-with-integration-gateway-in-smp3
OData looks like this:
Operation is Query and Response Mapping is defined as below:
At that time, I couldn’t see the Service Document of my OData service. So I added custom script to pass the Basic Authorization and input parameter.
http://scn.sap.com/docs/DOC-58551
Basic Authorization is working but the request
parentMap.put(“IM_COUNT”, “5”) [the number of customer from FM]
does not work. I thought I could see 5 customers information in the service document but I could see all the customers information.
In addition, When I click on ”Define Request Mapping”,  eclipse says "Request mapping is not available for SOAP Query.”
How do I implement my request successfully?
Thanks,
Hanae

Hi Midhun,
thank you for your quick response!
I have already used SOAPUI to test my query.
>it's creating an xml file in a specific format where you need to pass values to get the output.
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:sap-com:document:sap:soap:functions:mc-style">
   <soapenv:Header/>
   <soapenv:Body>
      <urn:ZGetcustomerWebservice>
         <!--Optional:-->
         <ImCount>5</ImCount>
         <!--Optional:-->
         <ImKunnr>
            <!--Zero or more repetitions:-->
         </ImKunnr>
      </urn:ZGetcustomerWebservice>
   </soapenv:Body>
</soapenv:Envelope>
Is this the xml file you mentioned?
I checked the following blog and tried debugging, but I couldn't see any variables value...
Debugging Custom Script in Integration Gateway
Here is my custom code:
function processRequestData(message) {
   message.setHeader("Authorization", "Basic XXXXXXXX=");
   importPackage(com.sap.gateway.ip.core.customdev.logging);
   importPackage(com.sap.gateway.ip.core.customdev.util);
   importPackage(org.apache.olingo.odata2.api.uri);
   importPackage(java.util);
   importPackage(com.sap.gateway.core.ip.component.commons);
   importPackage(com.sap.gateway.ip.core.customdev.api);
   parentMap = new LinkedHashMap();
   parentMap.put("IM_COUNT", "5");
   //Set the message body back
   message.setBody(parentMap);
   //Logger
   importPackage (com.sap.gateway.ip.core.customdev.logging);
   log.logErrors(LogMessage.TechnicalError, "This is first log"+message.getBody().toString());
  return message;
Authorization is perfectly working but others are not.
It would be great if you could have suggestions.
BR,
Hanae

Similar Messages

  • Redemption Code does not work

    I am trying to install CS6 from the email I was sent from Adobe. The redemption code does not work. Is there a phone number I could call for support. I bought my Adobe Creative Suite 6 from Ivy Tech Community College in Indianapolis, IN. I have recently moved to Bodfish California and need help to install this.
    Thank You
    Cathy Talbott

    Hi Sunshine2014,
    You can try the options in obtaining serial number from
    http://helpx.adobe.com/x-productkb/global/redemption-code-help.html
    http://helpx.adobe.com/x-productkb/global/redemption-code-help.html
    You canalso contact Adobe regarding this, they can assist you better.
    Regards,
    Rajshree

  • Hello, I purchased design premium 4.0 German Windows  (LIZ 390232 from 22.02.2010) from my friend and wanted to installation it. However, the key code does not work. He has the PC is no longer, so he can not  disable the product key. He loaded it, but onl

    Hello, I purchased design premium 4.0 German Windows  (LIZ 390232 from 22.02.2010) from my friend and wanted to installation it. However, the key code does not work. He has the PC is no longer, so he can not  disable the product key. He loaded it, but only in Englisch (trial version?) Please help me for the next step. I have the license agreement in my hand.

    Moving this discussion to the Downloading, Installing, Setting Up forum.
    Jakobh53157856 before you begin the installation process please complete the transfer of license process to transfer the Adobe Creative software license you wish to utilize to your possession,  You can find details regarding the transfer process at Transfer an Adobe product license.

  • I purchased design premium 4.0 German Windows  from my friend and wanted to installation it. However, the key code does not work.

    I purchased design premium 4.0 German Windows  from my friend and wanted to installation it. However, the key code does not work. He has the PC is no longer, so he can not  disable the product key. He loaded it, but only in Englisch (trial version?) Please help me for the next step. I have the license agreement in my hand.

    Nobody here can help you with this. You'll need to contact Adobe directly.
    Did your friend fill out and send in the license transfer form?
    Transfer an Adobe product license

  • HT201209 redemption code does not work for mountain lion

    app store says code is is not recognized

    http://helpx.adobe.com/x-productkb/policy-pricing/serial-number-retrieval-process-faq.html
    If that does not work, call Adobe Customer Service.

  • CWA using customized portal does not work IPAD 2

    Hi all,
    I have another interesting case that I have been testing for more than a month but it is not working. Cisco provides templates to create the customized portals for LWA or CWA. However, Success Page HTML does not work on LWA and Cisco ISE uses internal default success page.
    On my specific case, we need to move from LWA to CWA in order to minimize the number of redirections and the customized portal for login and AUP work fine BUT when the SUCCESS PAGE is presented on the IPAD, the button on the top right corner never changes from CANCEL to DONE even though the Authentication is successful. We modified multiple times the HTML Files following Cisco Templates and the following link (which looks like has an error) with the same incorrect behavior. Only works if I click the go back arrow on the IPAD so I move back to the AUP page (not an acceptable workaround).
    Reference Link:
    http://www.cisco.com/c/dam/en/us/td/docs/security/ise/how_to/HowTo-42-Customize_ISE12_Web_Portals.pdf
    In the link, Cisco mentions version 1.2.0.899 patch 8 as the version to be used on the ISE devices running the customized templates. However, we recently moved from 1.1.3.124 to 1.2.1.198 patch 3. I created a brand new VM running 1.2.1.198 patch 3, imported the cisco templates for login, AUP, success and error and I am still getting the same problem on IPAD 2 for SUCCESS PAGE even though I am using Cisco Templates.
    I could give a try configuring another VM running 1.2.0.899 patch 8 and use the Cisco templates + IPAD 2 but that is not a good solution.
    Have anyone experienced the same problem?
    thanks

    I opened a case with Cisco TAC, let's see what happens. In the meantime, I created a VM ISE which will be running 1.2.0.899 patch 8 so I will upload the Cisco HTML Files on it and see it this option works properly on IPAD 2, IPAD 4, Chromebook, Win 7 and Samsung Tablets.

  • Data Binding: Simple code does not work.

    hi... the following simple code is used to display the ename field for a record selected in scott.emp on the console. the code is placed in an event handler. it is as follows:
    DCBindingContainer bindings = ctx.getBindingContainer();
    DCControlBinding binding = bindings.findCtrlBinding("ename");
    String Name = (binding != null) ? binding.toString() : "";
    System.out.println(Name);
    is the code above correct????
    if so, why it does not work???
    thanks for every help in advance & best regards.

    Hi,
    please check the UIModel.xml file for the page if the binding name is "name". The code you have is the same code we published in our QBE workshop and it works there. The only difference is the name of the control binding. So please check if the binding name exists. (e.g. it could be ename1 instead of ename)
    Frank

  • OS X Mountain lion code does NOT work - Please help

    I bought my 2012 Macbook pro June 21 2012. I qualify for the free OS X Mountain lion upgrade. I got my emails, one with the PDF file, one with the password to it. I open up the red PDF file, enter my password and it does NOT work. I took my password to the Mac App store, clicked Quick Link, Redeem, placed my code in and it STILL DOES NOT work. PLEASE HELP!!! I need the new OS, plus Im supposed to get it for free! Its not fair how they sent me a bad code / improper instructions on how to redeem it.

    suggestion - call apple.....since we're all users here, it's hard to give you the right suggestion/answer regarding your issue...

  • Removing _root code does not work

    I've tried removing or using this and code dose not work. Any help is appreciated.
    var j:Number;
    for (j = 0; j < 7; j++) {
    _root["holder_mc"+j].onPress = function() {
    with(this){
        startDrag(false);
           lineStyle(3,0xcccccc,100);
          lineTo(_root.myWidth,0);
           lineTo(_root.myWidth,_root.myHeight);
           lineTo(0,_root.myHeight);
           lineTo(0,0);

    I used:
    eval("holder_mc"+j).onPress = function()

  • HT201209 I have a Amex Gift card and input everything and the code does not work

    I have a Amex gift card and input everything and the code does not work

    http://www.apple.com/legal/itunes/us/terms.html  - Does an Amex gift card count as a credit card?  For example, it doesn't say debit cards are accepted.  I believe one of hte differences between American Express and other cards is AmEx is not a credit card.

  • MSS Team Viewer: WDPortalEventing.subscribe in custom iView does not work.

    Dear all,
    we are trying to integrate a custom Web Dynpro Java iView into the MSS environment. This iView should receive the portal event "selection_changed" as described in SAP note 1112733. Which does not happen. I have followed the description within the note and done the following:
    - In WdDoInit() added: WDPortalEventing.subscribe("urn:com.sap.mss.employeesearch", "selection_changed", wdThis.wdGetGetEmployeeQualificationsAction());
    - implemented action "onActionGetEmployeeQualifications(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent, java.lang.String dataObject, java.lang.String Namespace, java.lang.String Name )"
    - created WD Java iView and added it to a new portal page which also contains the employee profile page
    The result is: the action method never gets called. What am I missing here?
    Any input on this topic would be greatly appreciated!
    Kind regards,
    Helga

    Hi Kim,
    I have recently worked in one such developement work related with MSS iView. Please see following link:
    https://www.sdn.sap.com/irj/scn/wiki?path=/display/profile/how-toaddacustomWebDynproiViewtotheMSSEmployeeProfile%2528ECC+6.0%2529
    https://wiki.sdn.sap.com/wiki/display/profile/HowtoreadinformationfromtheteamviewerinWeb+Dynpro
    Using these links, you can create one WD Appl. In the application, when you will click on a particular employee, the employee no will be selected.
    Once you are able to select the employee, you can play with it and execute other BAPIs.
    Hope this will suffice.
    I have used above links and created the WD Appl.
    Regards,
    Gary

  • Code does not work

    I inserted the following in my website but the graphic does not show in Firefox 31.0. It shows in all other browsers. What is the problem?
    <pre><nowiki><!-- begin super lawyers badge -->
    <div id="super_lawyers_badge" style="margin:0; padding:0; line-height:1; font-size:1em; font:100 0.8em/1em 'Arial',sans-serif; position:relative; outline:none; border:none;">
    <div id="large_super_lawyers_badge" style="height:150px; width:180px; background-image:url('http://i.superlawyers.com/shared/badge/lawyer/basic/large_blue.png'); text-align:center; outline:none; border:none; line-height:1; font-size:100%">
    <table width="180px" border="0" cellpadding="0" cellspacing="0" frame="void" rules="none" summary="" dir="ltr" style="margin: 0; padding:0; outline:none; border: none;">
    <tr align="center" char="" charoff="" valign="bottom" style="height:75px; vertical-align:bottom; margin: 0; padding:0; outline:none; border: none;"><td align="center" colspan="1" rowspan="1" valign="bottom" style="margin: 0; padding:0; outline:none; border: none;"><a href="http://www.superlawyers.com/redir?r=http://www.superlawyers.com/new-york-upstate/lawyer/Brian-Shiffrin/825ef828-f578-45b9-ad57-334c2b85e45f.html&amp;c=basic_largeblue_badge&amp;i=825ef828-f578-45b9-ad57-334c2b85e45f" rel="nofollow" style="height:75px; width:150px; display:block; text-decoration:none; margin:0; padding:0; text-align:center; outline:none; border:none;">&#160;</a></td></tr>
    <tr align="center" char="" charoff="" valign="middle" style="margin: 0; padding:0; line-height: 1; font-size: 100%; outline:none; border: none;"><td style="height:0px; vertical-align:middle; margin: 0; padding:0 10px; line-height: 1; font-size: 100%; outline:none; border:none;" valign="middle" align="center" colspan="1" rowspan="1"><a href="http://www.superlawyers.com/redir?r=http://www.superlawyers.com/new-york-upstate/lawyer/Brian-Shiffrin/825ef828-f578-45b9-ad57-334c2b85e45f.html&amp;c=basic_largeblue_badge&amp;i=825ef828-f578-45b9-ad57-334c2b85e45f" alt="View the profile of Upstate New York Criminal Defense Attorney Brian Shiffrin" title="View the profile of Upstate New York Criminal Defense Attorney Brian Shiffrin" style=" height:40px; width:150px; display:block; text-decoration:none; margin:0; padding:0; line-height:1; text-align:center; font-family:arial,sans-serif; color:rgb(255,255,255); font-size:16px; font-weight:bold; outline:none; border:none;">Brian Shiffrin</a></td></tr>
    <tr align="center" char="" charoff="" valign="bottom" style="margin: 0; padding:0; line-height: 1; font-size: 100%; outline:none; border: none;"><td style="height:26px; vertical-align:bottom; margin: 0; padding:0; line-height: 1; font-size: 100%; outline:none; border: none;" valign="bottom" align="center" colspan="1" rowspan="1"><a href="http://www.superlawyers.com/redir?r=http://www.superlawyers.com&amp;c=basic_large_blue_badge&amp;i=home_page" alt="Visit the official website of Super Lawyers" title="Visit the official website of Super Lawyers" style="height:20px; width:150px; display:block; text-decoration:none; margin:0; padding:0; line-height:1; font-size:100%; outline:none; border:none;">&#160;</a></td></tr>
    </table></div></div><div style="display:none;"><img src="http://www.superlawyers.com/services/badge/beacon/825ef828-f578-45b9-ad57-334c2b85e45f/l/9.gif" width="1" height="1" border="0" /></div>
    <!-- end super lawyers badge --></nowiki></pre>

    No problem here with the image when using your code.
    *http://i.superlawyers.com/shared/badge/lawyer/basic/large_blue.png
    Do you see the image in Tools > Page Info > Media or does it work when you paste the URL in the location/address bar?
    You can inspect and manage the permissions for the domain in the currently selected tab via these steps:
    *Click the "[[Site Identity Button|Site Identity Button]]" (globe/padlock) on the location/address bar
    *Click "More Information" to open "Tools > Page Info" with the Security tab selected
    *Go to the Permissions tab (Tools > Page Info > Permissions) to check the permissions for the domain in the currently selected tab
    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem.
    *Switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance
    *Do NOT click the Reset button on the Safe Mode start window
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • BPC V7 MS CUSTOM MENU DOES NOT WORK

    Hello all,
    We are in the process of upgrading from BPC V5 to BPC V7 Microsoft and my custom menu no longer works. I am using Windows XP Pro, Office 2007 and BPC 7.0. I have a file called M01Summary2.xlt which contains various graphs that change whenever the settings in the current view are changed. On my EV_DEFAULT worksheet the settings are: Action is HIGHLIGHT, P1 is Reports\Wizard\ProcessMenu\MenuReports\M01Summary2.xlt, P2 is blank, P3 is blank, P4 is DEFAULT. When I test the custom menu, the graphs do not appear on the EV_RESULT worksheet. I can change a cell on M01Summary2.xlt (say add a color to the cell), save the file and the test the custom menu again and the color will appear in EV_RESULT but not the graphs. Can anyone offer any suggestions to fix this problem? Does V7 not recognize graphs? Could it be the fact that I'm using Office 2007? Any help would be greatly appreciated.
    Thanks,
    Renee

    Please check the SAP Note 1404813. It seems a well known behavior and it should have been fixed in 7.5 SP1.
    It seems that this issue only happens when working with Excel 2007. With Excel 2003 all works fine.
    Regards,
    Simmaco

  • Javascript code does not work in preview

    I use the following code to determine if an object is an array or not
    function isArray (arg)
              if (typeof arg == 'object'){
                        var criteria = arg.constructor.toString().match(/array/i);
                        return (criteria != null);
              retrun false;
    It runs ok in the browser (IE, FF etc.) but it does not run OK in the preview mode from Dreamweaver CS4.
    I allways debug my code using FF with FireBug but it is annoying that it does not run ok in the preview mode. Since it is a "core" function in many applications i was wondering if there was a work around it so preview works ok..

    Thanks. I have also solved the problem with another script:
    function typeOf(value) {
        var s = typeof value;
        if (s === 'object') {
            if (value) {
                if (value instanceof Array) {
                    s = 'array';
            } else {
                s = 'null';
        return s;
    Now it doesn't give any problem or error in the preview mode.

  • BPM Worklist: Searching in custom views does not work for protected flexfields !

    Hello,
    Have mapped few protected attributes in my .task file. Also created the corresponding labels on target SOA server. I am able to create custom views using these protected flex fields.
    But what I have observed is keyword based search is not working for custom views using protected fiexfields.. however it works fine with public fiexfields.
    Any pointers on this? Am I missing something in the configuration?
    Thanks..

    Can anyone help me?

Maybe you are looking for

  • What's the use of START_FORM?

    hi experts, wat is the exact use of start_form. if i writes the code like this: call function 'OPEN_FORM' exporting *   APPLICATION                       = 'TX' *   ARCHIVE_INDEX                     = *   ARCHIVE_PARAMS                    = *   DEVIC

  • Wwc- 41653 The partner application configuration is missing or expired.

    We have the following scenerio. Application server 9iR1, apache server, login server, portal3.0.9.8.4 on 9iR2 database on host A. There is another database in 9iR2 where portal3.0.9.8.4 installed on host B. I want to use this database for another web

  • Resizing redo log files on a 3 node RAC with single node standby database

    Hi On a 3 node 11g RAC system,I have to resize the redo logs on primary database from 50M to 100M. I was planning to do the following steps: SQL> select group#,thread#,members,status from v$log; GROUP# THREAD# MEMBERS STATUS 1 1 3 INACTIVE <-- whenef

  • HELP! insufficient privileges in OMS

    Hi, i am beginner in oracle, and i need this for my final year project ! i have set up the OMS in the enterprise manager console(oracle 9i), and now i need to backup my database, but while i connect my databse with SYSDBA role, it pop up the error me

  • HT4927 Restoring Iphoto library/different user name

    Dear all: I bought a new  macbook pro 13" and created a new user (different from the one I had in my previous mac). Now I want to restore the iphoto library from the old one with Time Machine, but since the user name is different, it is telling me th