Send Data in format 0000000066field1|value1|field2|value2 through BPEL

hi
We have a requirement where we need to send data in the following format:
<10byte length>field1|value1|field2|value2.
we need to use socket adapter in BPEL to send data to client system.
In the socket adapter we are using outbound synchronous request/reply and opaque schema for the request message.
The client server is unable to read the data.
when we do the same through pl/sql using utl_tcp we are able to communicate with the client server.
We need to do this through socket adapter.
What could be the issue in this when we are using socket adapter?
Thanks

Hi,
here is the piece of code to transfer data from internal table to applivcation server as a comma seperated file..
FORM comma_sep_file .
  DATA: l_cost_center_str            TYPE type_cost_center.
  IF it_cost_center[] IS NOT INITIAL.
  **Concatenate file path and file name
    CONCATENATE p_cpath p_cfile INTO v_cost_cen_output.
    OPEN DATASET v_cost_cen_output FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.
If Network file could not be opened, give a message.
    IF sy-subrc <> 0.
      WRITE : / text-030 , v_cost_cen_output .
   MESSAGE s000(zp) WITH text-015 .
      CLEAR : v_cost_cen_output,
              p_cpath .
    ELSE.
      LOOP AT it_cost_center INTO l_cost_center_str.
        CONCATENATE l_cost_center_str-co_cen_code
                    l_cost_center_str-co_cen_name
                    l_cost_center_str-fld3
                    l_cost_center_str-fld4
                    l_cost_center_str-set_true INTO wa_csvdata
                                               SEPARATED BY c_const_sep.
        TRANSFER wa_csvdata TO v_cost_cen_output.
        CLEAR wa_csvdata.
      ENDLOOP.
    ENDIF."IF sy-subrc <> 0.
    CLOSE DATASET v_cost_cen_output.
  ENDIF.
ENDFORM.                    "
i hope this will help you...
Thanks & Regards
Ashu Singh

Similar Messages

  • Sending Data from BI to Third Party System through CIB Interface

    Hi Experts ,
    We have a requirement where we need to send data from BI to any Third Party System through CIB Interface . We do not have to use the OHD's . Please share the documents for the same .
    Regards
    Garima

    Hi,
          My problem is solved.
    Sol:  Getting wrong data from third party sytem. They are adding spaces in front of the payload and end of the payload so it was not processing. After deleting that spaces its is working fine.
            Thanks for your help.
    Thanks & Regards,
    Purshothamm

  • Is it possible to send the Pdf format of WebI linking report through email?

    Hi All,
    I have created linking between 2 WebI reports through OpenDocument. I can schedule the parent report and send it to User Email as PDF format, But when the user click the link in parent report its not opening the PDF format of child report after passing the parameter from Parent report. It throws following error.
    Is it possible to send the linked reports(without breaking the functionality of passing the parameter to Child report) to user who don't have access to BO environment? Please help me out.
    User needs to get the Parent PDF report in email, once they click the link it should pass the parameter to child report and the corresponding child report should open in PDF format. (In Infoview "View Mode" i can able to achieve this, how about in Email?).
    Thanks and Regards,
    Tharini Prabhu

    So to achieve my requirement, according to my understanding I have to do the following steps.
    Please correct me if I am wrong.
    1.     Without BO credentials the user can’t able to access the Link and child report created using OpenDoc.
    2. To overcome this I have to create one reserved userid through Admin and assign to all set of Users who will use the Reports.
    3. Have to use Single Sign on function through SDK to avoid the popping window for entering credentials right ?
    I can’t able to find the Sap Note 1326701 in http://www.sapossnotes.com/
    Could you please provide me the details how to implement that?

  • Is it possible to create a Webservice in BI which takes XML as an input and gives PDF as output with an additional requirement that Siebel expecting the XSD from BI to send data in the BI requested format

    Is it possible to create a Webservice in BI which takes XML as an input and gives PDF as output with an additional requirement that Siebel expecting the XSD from BI to send data in the BI requested format. Siebel wants to send the data as xml to BI but not sure of the BI capabilities on giving WSDL embedded with XSD (input is a hierarchical)

    Hi All,
    I am able to fulfil above requirement. Now I am stuck at below point. Need your help!
    Is there any way to UPDATE the XML file attached to a Data Definition (XML Publisher > Data Definition) using a standard package or procedure call or may be an API from backend? I am creating an XML dynamically and I want to attach it to its Data Definition programmatically using SQL.
    Please let me know if there is any oracle functionality to do this.
    If not, please let me know the standard directories on application/database server where the XML files attached to Data Definitions are stored.
    For eg, /$APPL_TOP/ar/1.0/sql or something.
    Regards,
    Swapnil K.

  • Steps to send data from BI 7.0 to PI in XML format...

    Hello everybody,
    Can somebody share any direct link to a document or thread where I can find step by step details as to how to send data from BI 7.0 to PI in XML format?
    I extracted data from ODS objects into CSV files through Open Hub Destination before, but need to know how to send same ODS data from BI to PI in XML format...
    Thanks in advance.
    ~S.H.

    just an idea:
    Maybe one way could be creating xml data via simple transformation or standard transformation in sap bw. After maybe there could create an inbound message in xi for getting the data.
    I never done it, but I thought this could be a practice?
    Hope there will be better comments for that problem, soon!

  • Error when send date format to R3

    All,
    i want to send date to BAPI , field type sy-datum, i'm using java.sql.Date as reference (yyyy-MM-dd), but error occurs , does anyone know why?

    Hi Oscar,
    First convert your date in the desired format using SimpleDateFormat .
    Then set the Date.
    SimpleDateFormat smpdtFormat =new SimpleDateFormat("yyyy-MM-dd");
    String validFr="";
    validFr = wdContext.nodeProductDate().getElementAt(0).getAttributeValue("Validfr").toString();
    <node element name>.setValidDate(new Date(smpdtFormat.parse(validFr).getTime()));
    Check this Threads.
    Re: Problems with java.sql.Date
    Re: format SimpleDateFormat
    Regards,
    Mithu

  • Need to send data in .xls format

    Hi all ,
    I have to send data from internal table to .xls file . Iam just giving file extension in .xls .Iam getting file .xls format also . my requirement one field data should be in one column  .is there any function module for that?

    Hi,
    You can use the FM GUI_DOWNLOAD to download the data from an internal table to xls file..
    pass the WRITE_FIELD_SEPARATOR = 'X' to have one field in one column..
    Thanks
    Naren

  • Sending data from final internal table  to application server in xml format

    hi to all ,
    can anyone send details about send data from final internal table to application server in xml format.right now i am able to download data to presentation server in xml format . love to here soon from all the abap gigs.

    welcome to SDN.
    are you using call transformation to convert itab to XML? the XML string is in which format?
    convert it to xstring and then use the following code to store it in application server.
    OPEN DATASET fname FOR OUTPUT IN BINARY MODE.
    TRANSFER XML_content TO FNAME.
    CLOSE DATASET FNAME.
    where fname is the path to the file name.
    Regards
    Raja

  • Is it possible to send data to ITS via POST?

    Hi guys!
    I need to call SAP transaction via thin client and I need to make a call via POST, cos' I need to send there some data to process. Is it possible?
    Thanx, Peter

    Hi Peter,
    First some information about parameter transfer with ITS in general.
    http://server:port/scripts/wgate/<service name>/!?transaction=<transaction_name>&<inputfieldname1>=<value1>&<inputfieldname2>=<value2>&okcode=<okcode>
    The parameters can als be transferred as POST parameters. For this you need a form e.g.
    <form name="<form name>" method="post" action="`wgateURL() ...
    You might get some ideas by studying the login.html in the templast folder system of your ITS instance.
    Thanks and regards,
    Dieter

  • Sending Date value to SAP R/3

    Hi,
        I am trying to send Date value from Text box (javascript) to SAP R/3 thru transaction and BAPI. But it is not accepting it. In SAP it accepting time value but it is not accepting date value. It take default date (current system date).
    But when we give date value directly in transaction it accepts.
    what is the problem. how to solve it?
    Regards,
    Senthil

    Your text box is a string.  If you assign it to a Local (or Transaction) Property of type DateTime, xMII may properly interpret it and allow the DateTime value to be populated.  However when you try to map it to SAP, it will most likely fail as it is of datatype DateTime (which is actually xml datetime).  You can assign the text box value to a Local Property with datatype String and format it from there.  Or if your Local Property is correctly interpreting the string from the text box and is updated, then you can explicitly convert from xml datetime to string type.
    functions which might be of interest or applicable are:
    datefromxmlformat
    dateformat
    stringpart
    Good luck,
    Mike

  • JDBC send data to oracle, oracle only accept column name in Upper case

    Hi experts,
    I am doing a scenario File --> XI --> JDBC,  JDBC send data to a Oracle 10g database, I have configured JDBC receiver to use XML-SQL format. in oracle database ,  table "EMPLOYEE" has a column "NAME", but when I send data to oracle using JDBC receiver, the column is "name", then XI complains
    " 'EMPLOYEE' (structure 'insert'): java.sql.SQLException: FATAL ERROR: Column 'name' does not exist in table 'EMPLOYEE'.
    can anyone help me to let oracle accpet column "name". I can't change colum in JDBC receiver from "name" to "NAME".
    Thanks a lot.

    <i>can anyone help me to let oracle accpet column "name"</i>
    Making Oracle case insensitive is not possible (in my opinion). By default all object names are stored in UPPER case in the rdbms dictionary.
    When XI searches for column name in Oracle, this search is case sensitive. So u have to configure accordingly.
    Regards,
    Prateek

  • In reciever jdbc adapter config sending data to multiple tables

    Hi Masters,
          Can u help me with examples step by step procedure of sending data to multiple tables in reciever jdbc adapter .. configuration....
    thanks in advance,
    jp.

    Hi,
    My understanding is you are  trying to use one scenario for ex a file to jdbc and want to post data into multiple tables.
    If you are using Message Prortocol XML SQL format then once you define the data type for one structure then juz right click on the statement name and select Duplicate. This will create another statement in the same data type change the table name and the parameters in the duplicates strucutre.
    <b>Document Formats for the Receiver JDBC Adapter</b>
    http://help.sap.com/saphelp_nw70/helpdata/en/2e/96fd3f2d14e869e10000000a155106/content.htm
    All the other configurations are same simple file to jdbc scenario.
    Cheers,
    *RAJ*

  • Sending data from applet to jsp

    hi all....
    i m very new in java so please and please spend ur few movement for this topic.
    i want to run a jsp page from within an applet and evantually want to send data to jsp.
    the data is an array of string object or may be a properties object,
    say String[] strarry={stringdata},or Properties props={setofkeysandvalues}
    the url of the jsp is http://8084/UASProject/Registrationform.jsp
    i have copied a code snippet from a topic posted in this forum.
    now please where should i formate in the code below to achieve this?
        try{
            URL appletURL = getCodeBase();
            String strHost = appletURL.getHost();
            String strPort = String.valueOf(appletURL.getPort());
            String strProtocol = appletURL.getProtocol();
            int portNumber = Integer.parseInt(strPort);
            String strwp ="/UASProject/Registrationform.jsp";
            //TCP port;
            URL jspURL = new URL(strProtocol,strHost,portNumber,strwp);
            URLConnection jspCon = jspURL.openConnection();
            jspCon.setUseCaches(false);
            jspCon.setDoOutput(true);
            jspCon.setDoInput(true);
            //jspCon.set
            ByteArrayOutputStream byteStream = new ByteArrayOutputStream(512);
            PrintWriter out = new PrintWriter(byteStream,true);
           // String postData= "?xmlText=" + URLEncoder.encode(genXml(),"UTF-8");
            //out.print(postData);
            out.flush();
            String strLength = String.valueOf(byteStream);
            jspCon.setRequestProperty("Content-Length",strLength);
            jspCon.setRequestProperty("Content-Type","application/x-www-form-urlencoded");
            byteStream.writeTo(jspCon.getOutputStream());
            URL tempURL = new URL(String.valueOf(jspURL));
            getAppletContext().showDocument(tempURL);
        }catch(Exception e)   {}please explain the line String postData= "?xmlText=" URLEncoder.encode(genXml(),"UTF-8");+ why it is written for??

    angilna_loves_java wrote:
    hi all....
    i m very new in java so please and please spend ur few movement for this topic.Huh?
    i want to run a jsp page from within an applet and evantually want to send data to jsp.Oh good lord, why?!
    the data is an array of string object or may be a properties object,
    say String[] strarry={stringdata},or Properties props={setofkeysandvalues}
    the url of the jsp is http://8084/UASProject/Registrationform.jsp
    i have copied a code snippet from a topic posted in this forum.
    now please where should i formate in the code below to achieve this?I recommend you get a better grasp on Java and JSP before you go any further. I'm not clear on what problem you're having or what error your getting either.
    >
    try{
    URL appletURL = getCodeBase();
    String strHost = appletURL.getHost();
    String strPort = String.valueOf(appletURL.getPort());
    String strProtocol = appletURL.getProtocol();
    int portNumber = Integer.parseInt(strPort);
    String strwp ="/UASProject/Registrationform.jsp";
    //TCP port;
    URL jspURL = new URL(strProtocol,strHost,portNumber,strwp);
    URLConnection jspCon = jspURL.openConnection();
    jspCon.setUseCaches(false);
    jspCon.setDoOutput(true);
    jspCon.setDoInput(true);
    //jspCon.set
    ByteArrayOutputStream byteStream = new ByteArrayOutputStream(512);
    PrintWriter out = new PrintWriter(byteStream,true);
    // String postData= "?xmlText=" + URLEncoder.encode(genXml(),"UTF-8");
    //out.print(postData);
    out.flush();
    String strLength = String.valueOf(byteStream);
    jspCon.setRequestProperty("Content-Length",strLength);
    jspCon.setRequestProperty("Content-Type","application/x-www-form-urlencoded");
    byteStream.writeTo(jspCon.getOutputStream());
    URL tempURL = new URL(String.valueOf(jspURL));
    getAppletContext().showDocument(tempURL);
    }catch(Exception e)   {}please explain the line String postData= "?xmlText=" URLEncoder.encode(genXml(),"UTF-8");+ why it is written for??Please read the API docs if you don't know what a particular method in Java does.

  • Send data from VI to the Database

    Hello everybody
                             I am competely new to LabView software and how it is used.  I was working with an existing VI i got from a friend of mine.  He made an ECG vi and i will be using his VI to send data to a Database.  I do not know how to accomplish this task.  If anyone can point me in the right direction it will be greatly appreaciated.  I am using LabView 8.0 on our school computer. Along with this i am attaching the VI my friend created.
    Thank you in advance
    Raj
    Attachments:
    Final Hospital screen.vi ‏58 KB

    First, you need to design and create the database. Do you have any experience with that? Do you actually need a database?
    If the answer to the first question is no, then you will also need to learn about databases and SQL.
    If the answer to the second question is that you do need it, then after you create the database you need to access it using LabVIEW. In Windows, this is usually done through ADO and there are several free tools on the web for doing this. Searching for LabSQL should provide one example. Searching these forums for Mike Porter's posts should reveal some more VIs. Searching the LAVA forums for "ADO" should get you at least one more.
    As for what to do in LabVIEW itself, this depends on your actual setup, but it seems to me that you can use the Get Waveform Components primitive to get the raw data in an easy to use format and then convert it to a string and create a relevant SQL query using the Format Into String primitive.
    To learn more about LabVIEW, I suggest you try looking at some of these tutorials.
    Try to take over the world!

  • EPM add-in for Excel question : How to send data from local member?

    Dear experts,
      for EPM add-in for excel, how do I send data from local member?
    best regards,
    Evans.

    Hello Evans,
    Could you please explain what is your requisite? What is the formula on your local member?
    You can also apply formulas to formatting sheet. This way you can reference the cells in your formatting sheet formulas and save the values in the report area.
    Please check this blog:
    How to use Excel formulas in BPC Input Schedules
    Thank you
    Best regards,
    Raquel Oliveira

Maybe you are looking for