Passing binary data to SAP BC

I want to pass raw bytes to the Business Connector (e.g. a sequence of bytes representing an image stored in some document management system) via an RFC call from a SAP R/3  4.6C.
I have created a function module in R/3 that takes an XSTRING as an import parameter. When I create a map for that module in Business Connector 4.7, the corresponding parameter is of type String. Consequently, when I execute the inbound call (from the BC point of view), the bytes get converted into meaningless characters (according to some unknown encoding, probably the BC server's platform default).
So how can I create a function map that has a byte array as argument?
-- Sebastian Millies
IDS Scheer AG

Try using the function modules SCMS_binary_to_xstring, scms_xstring_to_binary etc..
Regards
Rajkumar V Iyer

Similar Messages

  • How to pass tables data from SAP script to the routine.

    Hi,
    I have standard program RPCTEAL0_01 which calls a SAP script form(Custom) to print the form.
    Now I have to add some additional functionality to change the values in the form. Since it is custom form I can add ROUTINE and then pass the values to the custom program to modify the variables.
    My concern here, I would like to pass the tables like RT,CRT to the custom program via form.
    Is this possible?  RT and CRT filled by standard progam.
    Regarsd
    Eswar
    <MOVED BY MODERATOR TO THE CORRECT FORUM>
    Edited by: Alvaro Tejada Galindo on Jan 20, 2009 9:06 AM

    Hi, The suggested option is not working.
    Actually I am using the below code in SCRIPT
    /:   PERFORM CAL_2008 IN PROGRAM ZHR_TEST1
    /:   USING &PER_NO&
    /:   CHANGING &W12&
    /:   ENDPERFORM
    and calling form in ZHR_TEST1. But this will pass only variables. Now my requirement is to pass tables also.

  • SAP DMS: Read document binary data stored in a 3rd party repository

    Hi,
    I'm totally new regarding SAP DMS and I'm a bit confused about what can or can't do, so maybe the question will be quite generic and unclear.
    The scenario in my company is that we have multiple repository servers where we store our documents. When a document is created or modified in one of these repositories a new record is also created/modified in SAP DMS, but this DMS entry only contains the basic metadata information and a URL link to the document, not the content. When the user is in SAP DMS, the only way to access the document content, is via the link that will open the browser outside of SAP GUI and access the repository data using the laptop credentials.
    I would like to know if DMS provides some kind of interface to be able to access the document content from SAP. Now we only have this unidirectional interface from the repository that creates the record in DMS with the metadata but there is nothing to retrieve the content.
    Our main purpose is that we want to download all the files linked to a user (we have a logic to determine if a DMS file is linked to a user). The content of these files may be stored in different content repositories. So I would like to read the binary data in SAP from the different repositories and then be able to download it.
    Thank you in advance for your help.
    - Marçal

    Hi Sagar,
    This FM can't work since there is nothing configured in SAP to access to the file content. The DMS record only has a URL pointing to it.
    Actually what I want to know is what do I have to configure in SAP in order to be able to use a FM like the one you mentioned.

  • How to pass byte array / binary data to a webservice as parameter in osb

    i have a webservice that has a byte array input parameter. i tried to use this WS in a message flow via service-callout. the problem i encountered is the following: since webservice call by using service-callout requires you to use an xml input as part of soap message, i insert both of $body/ctx:binary-content and $body/ctx:binary-content/@ref variables individually into this xml-message to pass binary-data to WS. When i debug the code, i see that it make calls to WS with $body/ctx:binary-content/@ref parameter, but the byte array passed is empty(not NULL)...
    note: i tried java-callut instead of service-called and used $body/ctx:binary-content as input parameter it worked. i think, this is because java-callout doesnt need an xml input and enable to take variables as is...
    can anybody help me to solve the problem with service-callout please?
    here is the input i use to call ws with service-callout method...
    <iso2Xml xmlns="http://www.mycompany.com.tr">
    <request>{$body/ctx:binary-content/@ref}</request>
    </iso2Xml>
    and this is my WS's signature:
    @WebMethod
    public String iso2Xml(byte[] request)

    Hi
    See this thread
    /message/2187817#2187817 [original link is broken]
    Kind Regards
    Mukesh

  • Export data from SAP R/3 to Xcelsius

    Dear Experts
    Im new to Xcelsius, my requirement is to pass a data from sap r/3 database table to Xcelsius,
    Is it possible to do this?
    Thanks & Regards
    Arun.P

    Like Neel said, you need Live Office. Basically you will have to create a Crystal Report with the R3 Data and then use live office to fetch that data from Xcelsius. That means you will also be needing a BusinessObjects Enterprise Server.
    Regards
    Victor

  • Data passing from abap to SAP Scripts

    Hi all,
    I am facing a  problem while passing the data from abap progrm to sap scripts.
    I have designed asap script which contains the main window and the text elements.
    I have to print the line item in the text element 'LINE_ITEM'
    the following :
    &wa_bseg-belnr& ,, &wa_bseg-wrbtr&.
    In the abap code :
    I have data in my internal table,
    I have used the write_form
    ELEMENT       = 'ITEM_LINE'
    FUNCTION      = 'APPEND'
    TYPE          = 'BODY'
    WINDOW        = 'MAIN'
    But When i execute the pgm my data is not disaplyed in the print.
    What could be the reason,.
    Please help me soon
    Regards,
    Priya

    hi can u check once the text element name in abap code and script main window 's text element name.it must be same
    in script u have to give like this
    \E LINE_ITEM
    in program
    u have to pass the parameters
    ELEMENT = 'LINE_ITEM'
    FUNCTION = 'APPEND'
    TYPE = 'BODY'
    WINDOW = 'MAIN'
    reward points if useful.
    Thanks,
    Usha

  • Is it possible to Pass Binary Image Data to Logical DSP via ALDSP Control?

    I have run into an issue trying to pass binary image data (hexBinary in the WSDL) from WLI's ALDSP Control to a logical service in ALDSP 3.0. I was wondering if anyone has done this successfully, and if so, can you offer any advice?
    The following error is generated:
    Caused by: com.bea.dsp.das.exception.DASException: weblogic.xml.query.exceptions.XQueryTypeException: {err}XP0006: "element {commonj.sdo}datagraph { {commonj.sdo}DataGraphType }": bad value for type element {http://idexx.com/lims/domain/image}Image { {http://idexx.com/lims/domain/image}Image }*
    at com.bea.dsp.das.ejb.EJBClient.invokeOperation(EJBClient.java:160)
    The snippet of code that I am using in the WLI to communicate with the ALDSP control is:
    try {
    byte[] bytes2;
    bytes2 = reportText.getBytes("UTF-8");
    Image image =createNewImage();
    image.setImage(bytes2);
    image.setImageFormat("XML");
    image.setImageType("RESULTS REPORT");
    image.setOwningLabId( owningLabId);
    image.setExpirationType("EXPA");
    image.setAddedBy (BigInteger.ONE);
    image.setScanDate(XMLHelper.toXSDDateTimeFormat(new Date()));
    Image[] sdos = new Image[1];
    sdos[0]= image;
    logDebug(sdoHelper. dataObjectToXml(image));
    System.out.println(sdoHelper. dataObjectToXml(image));
    imageDSPControlFile.createImage(sdos);
    sdoHelper. dataObjectToXml(image);
    } catch (UnsupportedEncodingException e) {
    // TODO Auto-generated catch block
    e.printStackTrace();
    throw new RuntimeException(e.getCause());
    Lastly, the WSDL schema is as follows:
    <?xml version="1.0" encoding="UTF-8"?>
    <schema xmlns="http://www.w3.org/2001/XMLSchema"
    xmlns:xs="http://www.w3.org/2001/XMLSchema"
    targetNamespace="http://idexx.com/lims/domain/image"
    xmlns:tns="http://idexx.com/lims/domain/image"
    elementFormDefault="qualified">
    <xs:element name="Image" type="tns:Image" />
    <xs:complexType name="Image">
    <xs:sequence>
    <xs:element name="imageId" type="xs:integer" minOccurs="0"/>
    <xs:element name="image" type="xs:hexBinary"/>
    <xs:element name="scanDate" type="xs:dateTime"/>
    <xs:element name="imageFormat" type="xs:string"/>
    <xs:element name="imageType" type="xs:string"/>
    <xs:element name="expirationType" type="xs:string"/>
    <xs:element name="owningLabId" type="xs:integer"/>
    <xs:element name="addedDate" type="xs:dateTime" minOccurs="0"/>
    <xs:element name="addedBy" type="xs:integer" minOccurs="0"/>
    </xs:sequence>
    </xs:complexType>
    </schema>

    WLI's ALDSP Control This is actually ALDSP's ALDSP Control - but you can call it from WLI. Check the Advanced Samples announcement in this forum for examples of using the ALDSP Control
    - mike

  • Passing Video (Binary Data) to a webService

    Hi
    I have 11g R2 and the webservices are working fine for non binary data.
    Has anyone used a webservice to receive Video(Binary) data?
    The SOAP XML definition does NOT handle BLOBs - what types in the oracle procedure are converted to
    Binary?
    Regards
    Chris

    Hi
    We are building a demo system to test this out.
    So I can make sure the video is sent in chunks - probably a few Meg to start with but we can start smaller.
    I would like to use a procedure something like:
    create_event(p_event_type in varchar2,
    p_video_chunk IN ???);
    What Oracle Type to use that the SOAP WebService will understand?
    I thought XMLTYPE - but not sure how to put the Binary data into the XML.
    Any help is much appreciated.
    Regards
    Chris

  • How 2 call BAPI & pass table name so that it will insert table data 2 SAP

    Hi guys,
    Has anyone tried calling BAPI from BODS; Please share screen shots and details. I want to call BAPI fron BODS which will take table name as a parameter and insert that table data to SAP.

    HI,
    in case you mean BusinessObjects Data Services with BODS then I would suggest you post your question into the EIM area of the SDN forums.
    Ingo

  • Smart forms convert to pdf binary data

    Dear All,
    I'm working on smart forms integrations with .net and  I need to send the smart forms PDF binary data though custom rfc .
    For that i'm  converting smart forms otf  data  to pdf in and pass this data  through rfc but this idata is is not wokring on .net guys when they are converting this on pdf..
    so is there any need of decoded smart forms otf data before passing through or i'm missing some basic step?
    Please guide me?
    Rg
    Anuj

    hi,
    Have a look on this wiki:
    [http://wiki.sdn.sap.com/wiki/display/Snippets/SmartformoutputtoPDFformat]
    And maybe this one could also interest you:
    [|http://wiki.sdn.sap.com/wiki/display/Snippets/SmartformtoMailasPDF+attachment]
    regards
    mickael

  • Where is the binary data of this icon stored and retrieved from Application server?

    Hello guys,
    Today I observed one phenomenon and could not explain it per my knowledge.
    I have one url which points to an icon in application server:
    https://<host name>:44301/sap/public/bc/ur/nw5/themes/sap_corbu/common/libs/Icon/SuccessMessage.gif
    I could successfully open it via chrome:
    and after that I could see an entry in ICM server cache. Everything works perfectly.
    Then I tried to check this icon in mime browser in SE80. To my surprise, the folder /sap/public/bc/ur/nw5/themes is empty.
    However, the ICM cache shows that there is a subfolder called "sap_corbu" under "themes" folder. But why I cannot find it in mime browser?
    Then I write a report to retrieve the binary data of icon via CL_HTTP_CLIENT, and clear the ICM buffer via tcode SMICM.
    I expect this time some database table will be queried to load the content of the icon, since now the buffer is not available.
    To my surprise again, in SAT no database table is involved.
    So now I am confused: since I have already cleared the ICM server cache, where does the icon binary data come from when I run the report to access the icon?
    Best regards,
    Jerry

    Hello guys,
    one colleague today told me that there is a zip file "ur_mimes_nw7.zip" in MIME repository /PUBLIC/BC/UR/ur_mines_nw7.zip. I download it locally and unzip it and indeed find many theme folders including sap_corbu folder and its resource files. So I guess there must be some logic done in web application server which will unzip this archive file and put each theme folder to the corresponding folders in application server. I would assume those logic are done outside ABAP stack side, this is the reason I cannot find any hint of them in ABAP backend via tcode SAT even I clear both client and server side cache.
    Best regards,
    Jerry

  • How do you pass the data from a SBO process to a crystal report laout

    Hi Everyone
    Can someone please assist or direct me to documentation that could be of help.
    I do production orders in SBO.
    I have a crystal report that I have imported as a layout to print these production orders.
    The report was developed the normal way, linking to the tables and returning data(all data for all production orders ever done)
    The production print option is set to make use of this layout.
    What I would like to see is that when I create production order 12345 and click on print preview I get the data of the mentioned order only displayed in my crystal layout(that is set to default)
    What I get however is all the data from the tables.
    Where am I going wrong. With my design already or is there a different way to pass the data to my report/layout direct from my SBO production order screen
    This is quite urgen
    Regards
    Burger

    Hi All
    The solution i was looking for is:
    In Crystal create the parameter called DocKey@
    This is recognized by sap and the active document number is passed to the report layout.
    In crystal itself also do a filter {<Table>.<Column Name>} = {?DocKey}
    So simple once you know how.
    Hope this help someone else that is as stuck as I was.
    Regards
    Burger

  • Loading of transaction data from SAP ECC system failed

    Hi!
    I successfully connected SAP ECC system to SAP BI system.
    The following steps have been executed:
    - user ALEREMOTE with max. authorization
    - RFC destination
    - Distributing Data model
    - Generated Partner profile
    - Maintaining message types in WE20
    Now when I try to load any data from SAP ECC system the loading process in hanging in status "yellow" and never comletes.
    [0FI_AR_4|http://www.file-upload.net/view-1447743/0FI_AR_4.jpg.html]
    The following steps within Load process are yellow:
    Extraction (messages): Missing messages
      Missing message: Request received
      Missing message: Number of sent records
      Missing message: Selection completed
    Transfer (IDocs and TRFC): Missing messages or warnings
      Request IDoc : Application document posted (is green)
      Data Package 1 : arrived in BW ; Processing : 2nd processing step not yet finished
      Info IDoc 1 : sent, not arrived ; Data passed to port OK
      Info IDoc 2 : sent, not arrived ; Data passed to port OK
      Info IDoc 3 : sent, not arrived ; Data passed to port OK
      Info IDoc 4 : sent, not arrived ; Data passed to port OK
    Subseq. processing (messages) : Missing messages
        Missing message: Subseq. processing completed
        DataStore Activation (Change Log) : not yet activated
    Question:
    Can some one give me some technical steps (tcode, report) to solve this problem?
    Thank you very much!
    Holger

    Hi!
    Many thanks for your answer.
    Via BD87 on BW system I detect that all the IDOC's (type: RSRQST) will be received from SAP ECC system.
    Via tcode SM58 I could not detect any entries.
    However the loading status from yesterday is set to "red".
    The errors are:
    Extraction (messages): Missing messages
    Data Package 1 : arrived in BW ; Processing : 2nd processing step not yet finished
    Info IDoc 1 : sent, not arrived ; Data passed to port OK
    Info IDoc 2 : sent, not arrived ; Data passed to port OK
    Can you investigate my issue again?
    Thank you very much!

  • How can I transfer binary data from a database to another database?

    Hi all.
    I want to transfer binary data from a MS SQL Server 2000 to anohter SQL Server 2000.
    I created JDBC(table) to JDBC(stored procedure) scenario,and
    I uploaded a JPG image file to the sender table using the java program I developed.
    The JPG data was transfered to receiver,but the transfered data was broken.
    I can't not open the file correctly.
    Can XI transfer binary data using JDBC adapter?
    The sender table structure is following.
    <b>column (data type)</b>
      id  (int 4)
      binary (binary 8000)
      flag (int 4)
    The receiver stored procedure parameter is following.
    <b>parameter (data type)</b>
       id  (smallint)
      binary (binary 8000)
      flag (smallint)
    Regards.
    Yuuki

    Hi,
    <i>Can XI transfer binary data using JDBC adapter?</i>
    Ans: Yes
    Supported JDBC Types
    http://help.sap.com/saphelp_nw04s/helpdata/en/16/9dc9ac8bc72a48b80e639abaa2e497/frameset.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/2e/96fd3f2d14e869e10000000a155106/content.htm
    Mapping JDBC types to Java types
    http://help.sap.com/saphelp_nw04/helpdata/en/7d/79dfa72d1049bc963f4f272bb1638e/frameset.htm
    Regards,
    Prateek

  • How to pass the  data to field of  table.

    I want to pass the data to the fields of table. I want it with codes.

    Hi sindu,
    First of all Welcome to SCN.
    I hope you need to Read the [Rules of Engagement|https://www.sdn.sap.com/irj/sdn/wiki?path=/display/home/rulesofEngagement] before posting more.
    There are lots of resources available already here, so have a habit of searching before posting a question.
    Also while posting a question ensure that you include the following details;
    1) what is your requirement?
    2) How you are doing it?
    3) Where are you struck?
    4) What have you done to overcome the problem?
    5) The part of code that needs troubleshooting.
    Regards
    Karthik D

Maybe you are looking for

  • HT4859 The restore from iCloud was not set up when my iPad was reset

    The restore from iCloud was not set up when my iPad was reset

  • Time Capsule both: Time machine and file server

    Hi! We have 3 macs that has access to a Time Capsule we use just as a file server. Now, I'll like to do backups of all the data, and I was thinking about using Time Machine in all the computers to backup in Time Capsule. My question is, can I use Tim

  • Error Message in iTunes Producer for updated iBook

    I was attempting to upload an updated version of a free book I'd created using iBooks Author. Adding the new .ibooks file to the ITMSP package went fine, and I was told it was a valid asset, but when I hit "Deliver," I got this error message: ERROR I

  • HDMI to DVI Dual

    Anybody know if the hdmi to dvi dual connection will work, so you can have 2 apple displays. I see them cheap for $20 and below. http://www.amazon.com/HDMI-Dual-Premium-Splitter-Cable/dp/B000FMPR0Q Thanks

  • Joint Venture Company - How to reduce to 50%?

    Hello Experts, I have a 50/50 Joint Venture company in ECC. I want to include only 50% of the value of it's transactions in Consolidation but have 100% of it's value in the BW Actuals and Planning Cubes that are used to load into BCS. What is the bes