Business Connector  : get querystring variables in url

Hi;
I have a server service in Business Connector .
a client post a url like this
http://10.10.10.10:5555/invoke/MM/mm2sms?drug_code=905913&drug_desc=aaaaa
I have to get these variables drug_code,drung_desc and assing to a recordList..
Firstly Which methods do i have to use and how?
stringToDocument , documentToRecord?
Thanks.

Just declare these parameter names as input variables of type String in the Business Connector service. Then you will have them in your pipeline automatically.
CSY

Similar Messages

  • Business connector scheduler gets hanged and Next run value is large number

    Hi All,
    I see the scheduler in business connector gets hanged and the Next run value shows huge/large number like 9223370831700598.0 sec. Please can anyone suggest what can be done.
    Currently BC ver is 4.7. The problem gets resolved every time when i restart the server.

    Hi,
    Not aware of the reason though, I guess you must be using the simple scheduled tasks.
    Try using complex reapting tasks where you specify days , minutes etc.
    It should work fine.
    Hope it helps. Reward if useful.
    Regards,
    Siddhesh S.Tawate

  • Get Data from SAP over the Business Connector into a Java Programm

    Hallo dear community,
    i would like to receive data from the sap over the application business connector into a java programm. i work with the german book "SAP Business Connector 4.8 - Administration und Entwicklung".
    Now i hand on the routing rule.
    [Screenshot|http://h-2.abload.de/img/routingruleuyt9.png]
    i don't know what i should configure here for receiving data, which i need for an java programm.
    i will be very happy, when somebody got a tip or an source (tutorial) where i can find such a configuration  :wink:

    I think u r writing BDC for Uploading the data from excel flile to sap. for this is the code I am sending u can use then for Uploading data from excel to sap.
    DATA: lv_filename TYPE rlgrap-filename.
    FIELD-SYMBOLS : <fs>.
    DATA : l_intern TYPE alsmex_tabline OCCURS 0 WITH HEADER LINE.
    DATA : l_index TYPE i.
    PARAMETERS : startcol TYPE i ,
          startrow TYPE i ,
          endcol TYPE i ,
          endrow TYPE i .
    PARAMETERS: p_flnam LIKE rlgrap-filename.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_flnam.
      CALL FUNCTION 'F4_FILENAME'
    EXPORTING
       program_name        = sy-repid
      FIELD_NAME          = ' '
       IMPORTING
         file_name           = p_flnam .
      MOVE p_flnam TO lv_filename.
    Uploading the flat file from the desktop
    START-OF-SELECTION.
      CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
        EXPORTING
          filename                      = lv_filename
          i_begin_col                   = startcol
          i_begin_row                   = startrow
          i_end_col                     = endcol
          i_end_row                     = endrow
        TABLES
          intern                        = l_intern
    EXCEPTIONS
      INCONSISTENT_PARAMETERS       = 1
      UPLOAD_OLE                    = 2
      OTHERS                        = 3
      IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      SORT l_intern BY row col.
      LOOP AT l_intern.
        MOVE l_intern-col TO l_index.
        ASSIGN COMPONENT l_index OF STRUCTURE itab TO <fs>.
        MOVE l_intern-value TO <fs>.
        AT END OF row.
          APPEND itab.
          CLEAR itab.
        ENDAT.
      ENDLOOP.
    I hope it will help u.
    Regards
    Nayan

  • Business Connector not getting start

    Hi All,
    I am new to Business connector, i am trying to install BC 4.7, bt in the processing it shows error msg. After this i am not able to start bc from command prompt.
    I typed CD\<sapbc47>\developer\bin/integrator.bat
    Bui it shows error msg "system can't find the file specified".
    Can anyone help me in this......
    Thanks & regards,
    Vinita Sharma.

    Hi Vinita,
    do chk the below links it will be helpfull
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/4f27ad80-0c01-0010-f8b8-c5e153a16ca1
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/201da22b-7482-2b10-e489-e4429dc119f6
    regards
    Sampath

  • Getting all querystring variables without knowing variable names

    I am trying to build a page that takes all the querystring variables and prints them out on the page. I have no idea how many there will be or the names of these variables. Is there way to iterate through the collection of querystring names and print the name and value?
    Thanks in advance.

    Use request.getParameterNames().
    This will return an Enumeration of String objects containing the names of the parameters contained in this request. (see the API)

  • Problem with Business Connector 4.8

    Hi Everybody, first of all I would like to clarify that this is a question about SAP BC and NOT XI, but I did not know wherelse to put this message.
    I have installed SAP BC 4.8. Created a new RFC map (SAP BC -> SAP) of a FM called Z_PO_GET_LIST.
    Then went to Business Connector DEVELOPER and created an output template, XML type, for the output of the service.
    When I test the service from the Business Connector SERVER it works perfect, I get as a result the desired XML with the PO Orders in the same format defined in the template.
    When I test it from the Internet Explorer putting in the address bar http://localhost:5555/invoke/test/Z_PO_GET_LIST it also works great, and I get the expected XML as result.
    The problem is when I try to cosume the service from an external .net application, I create an HTTP Client with all needed information (server, port, baseurl, etc) and when I send a POST to the service I get an XML with the result but NOT in the expected format (with all "value" tags instead of the tags that I defined in the template) but with this format:
    <?xml version="1.0" encoding="UTF-8"?>
    Values version="2.0">
    <value name="serverName">IDES_SERVER</value>
    <value name="$rfcname">Z_PO_GET_LIST</value>
    <record name="ZPO_CABEZALES" javaclass="com.wm.util.Table">
      <array name="cols" type="value" depth="1">
       <value>CO_DATE</value>
       <value>DOC_CAT</value>
       <value>CREATED_ON</value>
       <value>CREATED_BY</value>
       <value>VENDOR</value>
       <value>NAME1</value>
       <value>CURRENCY</value>
       <value>DOC_DATE</value>
       <value>TARGET_VAL</value>
      </array>
      <list name="rows">
       <array type="object" depth="1">
        <value>1000</value>
        <value>F</value>
        <value>2002-10-16</value>
        <value>GIESEB</value>
        <value>0000001000</value>
        <value>C.E.B.BERLIN</value>
        <value>EUR</value>
        <value>2002-10-16</value>
        <value>5000.0000</value>
       </array>
       <array type="object" depth="1">
        <value>3000</value>
        <value>F</value>
        <value>2004-05-04</value>
    Does anyone please know how can I get the response from the service in the expected format (using the defined template) just in the same way I get it from the "test service" funtionality in the BC Server?
    Any clue or help would be really appreciated and rewarded.
    Thanks in advance,
    Sebastian.

    Can you post what your expected XML result looks like ? The values structure is an internal structure of how BC represents that information. What types are you passing back as output variables in your service ? A recordlist ? Is it possible that you forgot to call a service step which converts document to string (so that you get the desired XML) ?
    CSY

  • Business Connector 4.7 SSL configuration

    HI,
    I am configuring SSL in Business Connector 4.7 (to use HTTPS using digital certificates).
    I am following the admin guide. 
    I finished the first step - Configuring the Server to Use SSL.
    The next step is to import the client certificate and map it with a user.
    My query is that , how can i get a client certificate.
    Could anyone please suggest me.
    Also, does any one has step by step configuration of SAP BC for SSL.
    Regards,
    Kuna

    Hi,
    You should  be getting the certificates from the client (where you got the URL from), for example if you are trying to connect your BC to SAP using SSL, you should get the certificates from SAP and install them in BC for communication.
    thanks...
    Karna....

  • Service for delete local files in Business Connector

    I have used the "get" service for copy the files in the Business connector, does anybody know if there is any service for delete local files, i have seen the service for delete remote files with ftp, but i don´t know how to delete the copied files in my server.
    Thanks in advance
    regards

    Hi Carlos,
    For this issue the best choice is create your own Java Service. I attach you the Java code:
      Put this code in a new Java Service
             boolean success = (new File("filename")).delete();
             if (!success) {
                 // Deletion failed
       Before, you must to create an input parameter in the new service where you must to save the file path. Change Filename with the input parameter variable.
       It's not difficult.
    Best Regards
    Ivá

  • Problems with variant configuration using BAPI on Business connector

    Hi every body I need help.
    Steps.
    1.- I created an RFC with BAPI_SALESORDER_CREATEFROMDAT2 and then  a commit function,
    I call this RFC via SAp business connector
    Im triying to create a Configure order(With characteristics) I fill all configuration structures exactly  like note 567348.
    I created a sales order but when i checked ti in VA01 transaction  the order quantys are diferents at  configuration tables, if the function is executed on directly on SAP this work fine the error is only in a SAP Business Connector
    Is necesary to send another parameter when i Execute Bapis on SAPBC?
    \[removed by moderator\]
    Edited by: Jan Stallkamp on Jun 27, 2008 4:21 PM

    Hi,
    Just debug your SAP BC service in which you are calling the RFC and check if proper values are getting mappend to your input variables of RFC.
    If that is correct than there wont be much chances of problem in BC.
    \[removed by moderator\]
    Regards,
    Siddhesh S.Tawate
    Edited by: Jan Stallkamp on Jul 1, 2008 4:32 PM

  • Receive XML with Business Connector, convert to IDoc

    Hi all,
    I am trying to receive XML files with SAP Business Connector (4.7) and convert them to IDOC and then forward the IDoc file to SAP System.
    At the moment, I have to do the testing for this.
    I don't know how to send the XML file to the special port (5555) of the server. I read that there are serveral possibilities like http, mail, ftp. Can anybody give me an advice how this works?
    Next problem is to get the created IDoc file to the SAP system. The SAP server is added in the SAP Business Connector and the connection works.
    I would be very pleased if anybody could help me.
    Thanks in advance!
    Kai

    hi,
    What i understand from your scenario is XI> BC> SAP system.
    1)XI-->BC
    U need to configure XI's-BCAdapeter(as receiver).
    in URL specify teh follwoing :
    http://<hostname>:5555/invoke/folder1.folder2./<service-to-be invoked>
    together with the username and password.
    2) BC--> SAP
    To invoke an IDoc, go to Routing rules and specify the sender, receiver, and the Message Type(IDoc name). In the next page, specify the name of the flow service to be created. and the Flowservice to be invoked whenever a message comes in.
    Hope this gives you some input.
    Regards,
    Siva Maranani

  • Business Connector 4.7 connection issue with GB HMRC

    Inland Revenue have changed their URL's and SAP issued a new note 1614588 for this change.  As instructed in the note I installed the new package and now when we try to poll with Inland revenue we get a connection refused.
    I am not too familiar with the Business connector.  I have looked in the log but cannot find what URL it is trying to access.  I also noticed the package in the note is exactly the same size as the old one and the files included in the package are all modified in 2006. This implies to me that nothing was changed between the old package we had and the new one. I have raised this issue with SAP but have got no response yet.
    Any suggestions on how to investigate this connection refused issue?
    Thanks in advance
    Shamshudin

    I never found and anwser to this problem, I was forced to create an webclient and exchange an XML file. Which also only worked correctly if the content-type was equal to:
    ContentType = "application/x-sap.rfc; charset=UTF-8";
    Hope this helps someone.
    Mensaje editado por:
            Fabricio Martinez

  • To run a java service in SAP business connector.

    Hi,
    I have created one java service in SAP business connector.When i run it, i get the error as " Service 'rfctest:validatedata' is not operational. To run this service, first recompile the Java source."
    I have set the "path" variable,still i am getting the same error.
    What should i do to solve this problem?

    Hello,
    when you call a BAPI from an external system via Business Connector, you will send a bXML document to BC (for example via HTTP). Refer to the SapbcSAPAdapterGuide for how to do that in detail, its good explained (see 4-25 and 7-3) there.
    The explanation about sender/receiver is not correct. sender and receiver are the logical system names of the SAP backend system and the external system (check in transaction SALE of the SAP system).
    Just send such document to BC, it will create the routing rule automatically. Then complete the routing rule (see 7-2) and activate it.
    CSY

  • SAP Business connector sending XML data

    Dear all,
    I am using an RFC to transfer the data from SAP R/3 to web server. I have to send the data to web server URl via SAP Business Connector in the below format.
    I am getting data in RFC sttructure, Now I need to change the above data into XMl and hence need to compress.
    The requirement is as below:
    The XML message is signed, encoded in base64.
    Signed and encoded XML message is compressed in GZIP format.
    Can u please share your ideas to achieve this.
    Thanks and regards,

    Dear Michal and Prateek,
    Thank you very much for your ideas.
    This is my flow:
    clear XML data -> SIgning with detached signature  -> Base 64 encode -> send the data via HTTP port.
    I am signing the message using pub.security.pkcs7:sign.
    But here problem is I am not able to get the detached signature.
    If I select the option Detached signature it is giving only signature.
    How can I manage the Detached signature and Message at HTTP port.
    Please help me.
    Thanks and regards,

  • Problems with invoke call in browser (SAP Business Connector)

    Hallo,
    I have a problem with the invoke call in a browser to test a build flow in the SAP Business Connector:
    I build a flow which receives a XML file, converts it into a record, then adds some mandatory data to the segment "EDI_DC40", then reconverts it into XML. After that, the XML gets converted into SAP IDOC format. Then I send it via ALE service to the connected SAP System.
    The flow works so far if I test it with the "send XML file" function in "Test" menu. But when I test it via a call in the browser, it doesn´t work. The mandatory data in "EDI_DC40" is there, but the Business connector does not recognize the data which comes with the XML for this segment ("MESTYP" and "SNDPRN") - so it can not be transfered to the SAP system. It causes a routing rule error, because sender and message type is unknown.
    Does anybody has experiences with that? Is there a difference between browser call and the test function "send xml file"?
    Thanks in advance for your help!
    Kai

    Hi,
    Just debug your SAP BC service in which you are calling the RFC and check if proper values are getting mappend to your input variables of RFC.
    If that is correct than there wont be much chances of problem in BC.
    \[removed by moderator\]
    Regards,
    Siddhesh S.Tawate
    Edited by: Jan Stallkamp on Jul 1, 2008 4:32 PM

  • Business Connector Adapter

    Hello,
    I'm trying to send data from Business Conector to XI with the sender business conector adapter.
    these are the steps i did:
    1. set up a routing roule in the BC
    2. did the configuration for the BC-Adapter sender.
    2b. configure the standard modules
         - localejbs/BcAdapterModuleConverterBean
         - localejbs/BcAdapterModuleSenderBean
         - localejbs/BcAdapterModuleConverterBean
    Questions:
    1. What can I do with own modules and when will I use these own modules?
    2. The call out of the BC is still the same URL
       (http://<hostname:portnumber>/MessagingSystem/receive/BcAdapter/BC )
    How does it work, if I get messages out of two BC's (maybe two different customer)?  And I will use two different scenarios??
    3. If we use a WebDispatcher, how would be the URL out of the BC? http://hostname:portnumber (of web-dispatcher)? I guess there would be no service "MessagingSystem/receive/BcAdapter/BC" of the webdispatcher. So that could be the reason of my error-message in the BC -> "Unknown Service"
    Up till now, I didn't understand the process of the BC-Adapter. Can somebody help me?
    Best Regards
    Christoph

    Hi,
    did you find any solution? Now I have to do the same - converting outgoing xml-files to cxml. Do we need a converter, or is it possible to customize our Business Connector?

Maybe you are looking for

  • Copy sales office from contract to sales order

    HI, How can i copy sales office from contract to sales order.is there any requirement in the standard process? Regards, Ramky

  • Cisco UCCE/UCCH 7.2: need a NMS system

    Dear all, I have a ICM system with alot of component spreading on alot of servers. In each component, there are too many of processes. But I don't have any NMS system to monitor and alarm if any error. I want a NMS to respone one by one event: there

  • TS1363 cannot get video to play in my Itunes....

    Got a new dell...loaded ITunes...loaded music and videos....videos will not play...black screen only..help?

  • Problems with iPhoto and Photo Booth

    I can't open or use iPhoto. When I click on the icon on the dock, a pop-up comes up and says I "cannot create new library" because I "do not have enough access privileges". Then when I click Photo Booth a pop-up says Photo Booth cannot save any photo

  • Get waveform subset vi lagging

    Hello all, I'm running into an issue with a Get Waveform Subset.vi taking an awfully long time to run (~15s). I'm working with a large-ish data set (5431296 data points). I double checked with the Performance and Memory tool and it's defiantly someth