POS interface using JCo

Hello,
We're currently developing a JCo based interface to integrate a java based POS with SAP ERP. What are the relevant BAPI's to be used in order to implement an inbound (upload sales data)  and outbound (download article data and prices) interface?
Thanks in advance for your response.

Hello,
We're currently developing a JCo based interface to integrate a java based POS with SAP ERP. What are the relevant BAPI's to be used in order to implement an inbound (upload sales data)  and outbound (download article data and prices) interface?
Thanks in advance for your response.

Similar Messages

  • Without BPM:Call RFC using JCO in interface mapping using java mapping

    Hi all
    I have a very small scenario where REQUEST from the customer comes via Web Service all i have to do is to read the request using SOAP adapter and call an interface mapping(lets say the name is IM_TEST) inside which there is a JAVA MAPPING program written which will call an RFC in CRM using JCO.
    Now this was really simple and i cud test the Interface mapping successfully, but the problem is when loading the scenario in integration directory i have certain things to do
    1. to set the SENDER AGREEMENT which i did correctly
    2. set the RECEIVER DETERMINATION, INTERFACE DETERMINATION AND RECEIVER AGREEMENT now here i am stuck because there is no receiver in my case as the RFC is called inside the mapping only.
    can i call one more message mapping in IM_TEST which will write file onto the XI directory and then in RECEIVER DETERMINATION, INTERFACE DETERMINATION AND RECEIVER AGREEMENT i can mention the reciever as FTP.
    I tried it but i gives the following error
    Runtime exception occurred during execution of application mapping program com/sap/xi/tf/_MM_TEST_WRITE_FILE: com.sap.aii.utilxi.misc.api.BaseRuntimeException; Parsing an empty source. Root element expected!
    Please help me how to complete the scenario so that customer can run it end to end.
    <REMOVED BY MODERATOR>
    Edited by: Prateek Raj Srivastava on May 12, 2010 1:44 PM

    Stefen
    What do i do then...actually this is the project requirement. They want a very fast response from PI and thats why they wnt us to omit BPM and the Graphical mapping from the scenario.
    I am able to test the interface mapping which calls the the Java mapping inside which there is an RFC call, but i cannot implement it end - to - end as there is no receiver business system in this case. The only business system i have is the SOAP sender.
    I am really troubled now, please help me with a solution.
    Is there any other possible way through which the process can become very fast whic hcan meet their requirement.
    Regards
    Naina

  • Handling of Down payments / advance payments retail POS interface

    Hi all,
    Does anyone know if there´s a best practice to handle down payments with POS interface?
    thanks in advance
    Mariana

    Hi Mariana,
    Pl use the following link:
    help.sap.com/bp_retailv1470/documentation/EN/Store%20Business%20Offline%20EPOS_EN_PRES_V147.ppt
    <b>IDOC</b> for down payment is <b>WPUTAB01</b>. 
    Entries will be as follows:
    If a customer is making a down payment of Rs.1000/-
    <b>Cash a/c    DR                                                                                1000/-
    Customer or Site CR(Retail Stores if u dont maintain individual customers)     1000</b>/-
    When sales are closed say for example Rs.10000/-
    <b>Cash a/c     DR    Rs.9000/-
    Customer   or Site DR Rs.1000/-
    Sales         CR     Rs.10000/-</b>
    In SAP u need to create a <b>Special G/L with Indicator A </b> and this special G/L will be assigned to your main a/c in Tcode <b>OBXR</b>.
    <b>F-29</b> Post Customer Down Payment ,<b>F-32</b> Clear Customer ,<b>F-39</b> Clear Customer Down Payment are the FICO transactions which will be used. Pl contact yr FICO
    consultant for further details.
    Hope this helps you.
    Regards,
    Mani

  • Problem in creation function interface in JCO program

    I am using BLOB /people/gregor.wolf3/blog/2004/08/26/setup-and-test-sap-java-connector-outbound-connection for making connection SAP & JAVA it is working properly and giving the same O/P as maintained in example. Now my requirement is that i want to use another JAVA program for outbound processing with SAP i mean....
    I have a program by the name FetchMailUsage which is fetching mail from a perticular id. I m using this program in JCO program and when i m creating a function interface through bellow code , import export working well but when i m creating a table interface for that function it is giving short dump  in ABAP program jco.server could not find server function.
    the code for function interface is
    JCO.MetaData fmeta = new JCO.MetaData("CONNECTION");
       fmeta.addInfo("REQUTEXT", JCO.TYPE_CHAR, 255,   0,  0, JCO.IMPORT_PARAMETER, null);
       fmeta.addInfo("ECHOTEXT", JCO.TYPE_CHAR, 255,   0,  0, JCO.EXPORT_PARAMETER, null);
        fmeta.addInfo("RESPTEXT", JCO.TYPE_CHAR, 255,   0,  0, JCO.EXPORT_PARAMETER, null);
         fmeta.addInfo("RFCTABLE", JCO.TYPE_TABLE, 150, 0, 0, 0, "ZMTAB");
        repository.addFunctionInterfaceToCache(fmeta);
    connection:- object of class FetchMailUsage
    ZMTAB :- Table type placed in SAP have one field.
    Anyone please tell me procedure which i m using is correct if not tell me the process by which i create table for function interface.

    Hi Gregor ,
    Thanks for your reply, it is solving my problem partially.By defining structure i am able to implement function interface with table but i want to pass some data through this table to ABAP.How i will pass data through table structure . is there any requirement to set value like this
    ZIT_TAB.setValue(value,field name);
    Actually when i am exicuting FM from ABAP it is not fatching data in table which i m passing.
    I m sending my test code please correct where it is wrong.
    <b>Function Interface with table structure:-</b>
    JCO.MetaData fmeta = new JCO.MetaData("CONNECTION");
       fmeta.addInfo("REQUTEXT", JCO.TYPE_CHAR, 255,   0,  0, JCO.IMPORT_PARAMETER, null);
       fmeta.addInfo("ECHOTEXT", JCO.TYPE_CHAR, 255,   0,  0, JCO.EXPORT_PARAMETER, null);
        fmeta.addInfo("RESPTEXT", JCO.TYPE_CHAR, 255,   0,  0, JCO.EXPORT_PARAMETER, null);
         fmeta.addInfo("RFCTABLE", JCO.TYPE_TABLE, 150, 0, 0, 0, "ZIT_TAB");
        repository.addFunctionInterfaceToCache(fmeta);
    JCO.MetaData smeta  = new JCO.MetaData("ZIT_TAB");
         smeta.addInfo("FIELD",   JCO.TYPE_BYTE,   3, 24, 0);
         repository.addStructureDefinitionToCache(smeta);
    <b>code bywhich i m passing data through table</b>
    FetchMailUsage CONNECTION = new FetchMailUsage();
    CONNECTION.readMail();
    output.setValue(CONNECTION.mimeType,"RFCTABLE");
    <b>CONNECTION is object of my class FetchMailUsage</b>
    <b>Function using in ABAP is :-</b>
    CALL FUNCTION 'CONNECTION' DESTINATION 'JCO'
      EXPORTING
        requtext = requtext
      IMPORTING
        echotext = echotext
        resptext = resptext
      TABLES
        RFCTABLE = RFCTABLE  .

  • Urgent : Error in RFC  Look Up using JCO.

    Hi,
    I have a scenario od accessing a database table by passing the name through XI and also giving the Where condition ,passing the fieldnames and getting back the field values . The FM that id used for this on ABAP side is <b>RFC_READ_TABLE</b>. 
    For this Scenario I inserted a Java Code using JCO's in th UDF for the  RFC Look Up's.
    I got errors while activating the MM which i am not able to rectify.Please Help me in this.
    <b>Activation of the change list canceled Check result for Message Mapping MM_Notes_2_ED_Z_SDIDOC |
    Starting compilation  Source code has syntax error:  /usr/sap/EXD/DVEBMGS49/j2ee/cluster/server0/./temp/classpath_resolver/Map303c42607df411dc8b1d00e000c553d9/source/com/sap/xi/tf/_MM_Notes_2_ED_Z_SDIDOC_.java:1539: cannot resolve symbol symbol : method createClient (java.lang.String,java.lang.String) location: class com.sap.mw.jco.JCO JCO.Client mConnection = JCO.createClient("200","EN"); ^ /usr/sap/EXD/DVEBMGS49/j2ee/cluster/server0/./temp/classpath_resolver/Map303c42607df411dc8b1d00e000c553d9/source/com/sap/xi/tf/_MM_Notes_2_ED_Z_SDIDOC_.java:1578: cannot resolve symbol symbol : variable result location: class com.sap.xi.tf._MM_Notes_2_ED_Z_SDIDOC_ result.addValue(resultSet[pos]); ^ 2 errors</b>
    <b>This is an Urgent Requirement. Please reply ASAP.</b>
    Regards,
    Priyanka.

    Hi Priyanka,
    The error message says there are 2 errors:
    1. createClient
    2. result.addValue
    For the first one, I guess you might not have included all the API required for lookup
    For second one, please check what is the type of object you are adding to the resultset, maybe you can just say result.addValue(resultSet[pos] + ""); to typecast it.

  • Problem with BAPI_DOCUEMENT_CHECKOUTVIEW2 while caliing using JCO

    Hi DMS Gurus,
    The above FM is successfully executing and creating a local copy in temp folder of where the FM running using SAP GUI.
    But when i call using jco,i am getting some problems.
    1. If i execute the FM with default values for http dest and ftp dest, i am getting error saying << c:\temp\....file could not be created.
    2. When i changed the HTTP destination to <<SAPHTTPA>, it is executing fm successfully but dont know in which system the file is downloaded.
    My client application or xMII server ( where jco service is running ) or ABAP server.
    I checked in the first 2,i didn't find.
    SAP GUI is not installed in xMII server.
    But my requirement is to download to the physical server of xMII ( jco ).
    Is this any thing to do with creating http destinations??
    If that is the case, can any body help me in creating http destinations..
    and i heard something about SAPFTP.EXE ,is that should be some where in client or any servers??
    Please help me.
    Thanks
    Vansi

    Vamsi,
    As I mentioned in this forum thread, bapi_document_checkoutview2.  You have to use the POST action in BLS to communicate with the HTTP Interface of Content Mgmt. directly.  The only other alternative is to write your own BAPI to retrieve the content and send it back to xMII via the JCo action (Hint: The data will be base64 encoded and can be saved to the filesystem via the Image Saver action even though it is not an image).
    Sam

  • Problem with BAPI_DOCUMENT_CHECKOUTVIEW2 while calling using JCO of XMII

    Hi DMS Gurus,
    The above FM is successfully executing and creating a local copy in temp folder of where the FM running using SAP GUI.
    But when i call using jco,i am getting some problems.
    1. If i execute the FM with default values for http dest and ftp dest, i am getting error saying << c:\temp\....file could not be created.
    2. When i changed the HTTP destination to <<SAPHTTPA>, it is executing fm successfully but dont know in which system the file is downloaded.
    My client application or xMII server ( where jco service is running ) or ABAP server.
    I checked in the first 2,i didn't find.
    SAP GUI is not installed in xMII server.
    But my requirement is to download to the physical server of xMII ( jco ).
    Is this any thing to do with creating http destinations??
    If that is the case, can any body help me in creating http destinations..
    and i heard something about SAPFTP.EXE ,is that should be some where in client or any servers??
    Please help me.
    Thanks
    Vansi

    Vamsi,
    As I mentioned in this forum thread, bapi_document_checkoutview2.  You have to use the POST action in BLS to communicate with the HTTP Interface of Content Mgmt. directly.  The only other alternative is to write your own BAPI to retrieve the content and send it back to xMII via the JCo action (Hint: The data will be base64 encoded and can be saved to the filesystem via the Image Saver action even though it is not an image).
    Sam

  • Problem with BAPI_DOCUMENT_CHECKOUTVIEW2 while calling using JCO

    Hi DMS Gurus,
    The above FM is successfully executing and creating a local copy in temp folder of where the FM running using SAP GUI.
    But when i call using jco,i am getting some problems.
    1. If i execute the FM with default values for http dest and ftp dest, i am getting error saying << c:\temp\....file could not be created.
    2. When i changed the HTTP destination to <<SAPHTTPA>, it is executing fm successfully but dont know in which system the file is downloaded.
    My client application or xMII server ( where jco service is running ) or ABAP server.
    I checked in the first 2,i didn't find.
    SAP GUI is not installed in xMII server.
    But my requirement is to download to the physical server of xMII ( jco ).
    Is this any thing to do with creating http destinations??
    If that is the case, can any body help me in creating http destinations..
    and i heard something about SAPFTP.EXE ,is that should be some where in client or any servers??
    Please help me.
    Thanks
    Vansi

    Vamsi,
    As I mentioned in this forum thread, bapi_document_checkoutview2.  You have to use the POST action in BLS to communicate with the HTTP Interface of Content Mgmt. directly.  The only other alternative is to write your own BAPI to retrieve the content and send it back to xMII via the JCo action (Hint: The data will be base64 encoded and can be saved to the filesystem via the Image Saver action even though it is not an image).
    Sam

  • Using JCo as an RFCServer in a J2EE Container (Threading Issue)

    Hello,
    I want to use JCo as an RFCServer in a J2EE Container
    (e.g. JBoss, BEA WLS or WAS6.40).
    Threrefore I use a the JCo.Server class
    as shown in Example5 in the JCo Examples.
    But the JCo.Server class starts a thread (JCo.ServerThread) for each Server(Listener).
    According to the J2EE specs it is not allowed
    to start (user) threads in a J2EE Container,
    because the container does the whole thread
    manangement/lifecycle.
    If JCo creates threads on its own, this might
    lead to erros. For Example: BEA WLS stores
    information in ThreadLocal variables and if you
    call a SessionBean from the JCoServer.handleRequest method
    the Container will (perhaps) fail, because the
    thread created by JCo does not have the ThreadLocals
    needed by the container.
    I know that there is the IServerThread interface in JCo,
    but I don't know how to use it in a J2EE Container.
    What is the correct way to implement a JCo Server
    in a J2EE container?
    Does anyone know a working solution of a JCo Server
    in the BEA Application Server?
    Thanks,
        Joachim

    Joachim,
    As you wrote, it may not be a good idea to use JCO.Server's inside a J2EE container; i suggest you to build an 'adapter' for this purpose.
    An adapter is a program that can listen for any type of event and, once the event has been identified (type and specific data), the adapter will handle it accordingly.
    In this case, you can create a program that starts a JCO.Server (as in Example5) and use JMS to send messages (built from the info gathered from the JCO.Function call) to a Message Driven Bean in the J2EE container.
    Hope this helps.
    RaTB

  • POS Interface with SAP

    Hi,
    We are currently using SAP ECC6.0, not on IS Retail.
    As we have quite a few POS machines being used in the business, we would like to interface POS with ECC6.0.
    Is there any third party tools available in the market for achieving this solution?
    Thanks
    Ram.

    Hi Ram
    SAP offers regarding POS integration to IS Retail basically two options:
    - POS DM (see http://wiki.scn.sap.com/wiki/pages/viewpage.action?pageId=113246846)
    - classic POS interface direct in ECC (WPUBON/WPUFIB/WPUTAB IDoc's for POS transactions)
    You want to interface directly in to a non IS Retail ECC system.
    Question is what do you want to interface only financial postings or also goodsmovements?
    How are the stores represented in SAP (customers/plants?)
    The transaction logs (TLOG) info from the POS should be converted to a IDoc that will represent you functional needs on the ECC side.
    For this mapping SAP offers SAP PO (proces orch), formally know as PI (or before that XI).
    There are also several middleware solutions from third party vendors that can work with SAP.
    In such a tool you have to map the TLOG to the desired IDoc you want to use in SAP.
    (IDoc could also e replaced with a BAPI/RFC for instance).
    Regards
    Bob

  • POS Interface

    Hi Friends
    I am working on Batch Valuation. Using Standard IDOC WPUUMS for sales posting from POS. The standard IDOC do not have Batch field and In have enhanced it to insert batch number in article and billing documents. But still batch number is not getting updated for the purpose of cost price that is condition type VPRS. Standard sales order, delivery and billing process is picking batch level cost price. Can you please let me know any exit for sales inbound processing which can pass batch number in standard table MBEW to get correct valuation for VPRS during inbound processing.
    Regards
    Gautam Anand

    Hello,
    The standard POS interface idocs do not include the batch number because it is not relevant nor necessary for the POS sale transactions however, The batch number could be included using an enhancement segment.
    Idoc type WPUBON it is possible to have the batch number using E1WPB02-SERIENNR, after which userexit "EXIT_SAPLWPUE_102" can be used the field e1wpb02-seriennr into g_t_imseg-charg. Using the enhancement
    segments for WPUMMS you should also be able to add the batch number.
    Goodluck.
    Suhail Shaik

  • Fire Joint Query using JCO

    Hi All,
    I am using JCO Connection from a Webdypro Java Application to access the ERP backend, and fetch all the vendors for a particular Purchasing Organization.
    I am using the FM RFC_READ_TABLE. But I have to pick data from 2 tables here LFA1 and LFM1, as one contains vendor details and one contains Vendor - Purchasing Organization Mapping. Can I use RFC_READ_TABLE to fetch data from both these table using a single Joint query. Tried but getting exceptions while executing the functions.
    First fetching all the related vendors from LFM1, and adding these vendor IDs to the query on LFA1 worked. But it seems I cant add more than 900 vendor ids to the query. And customer is targetting more than 1000.
    When I added more than 900 vendor ids to the query, I get the following exception
    com.sap.mw.jco.JCO$Exception: (104) RFC_ERROR_SYSTEM_FAILURE: Error in module RSQL of the database interface.#
    So can you help me here with any kind of solution,
    1) Is it possible to fire a joint query with both these tables involved, through JCO.
    or 2) is there anyway to avoid the exception mentioned above and add more than 900 vendor ids to the query.
    Regards,
    Prakash

    HI Lavanya,
    Do you think this is due to time out issues.
    Because so far, in my system and as well as customer's system we havent faced any timeout issues.
    When I didnt pass any search parameters to the query I was still able to retreieve all the records in the table, without any timeout exceptions (though there were performance issues).
    When I went through other forums, they said this particular exception occurs when they had used more than 900(approx) parameters in the query (IN Parameters).
    My query goes like this.
    Select Field1, Field2 from LFA1 where Field0 = '1' or field0 ='2' or field0='3'.... or field0 = '900' .
    Saravanan had suggested to create a BAPI which does this Joint query stuff in the backend itself. But since customer is going live in a week approving any development in the backend is not possible now.
    So is there any work around to get through this exception, or is there any other RFC already available that can take in joint queries.
    Regards,
    Prakash

  • POS interface without IS Retail

    Hello everyone,
    We have ECC6.0 but do not have IS retail. There are some retail business in the organization, so we are trying to build a POS interface with development. Does anyone has experience with that?  Does anybody know how the AR should be posted with all the sales data uploaded from POS?
    Thanks a lot for the help!

    To,
    Dear Colleague,
    The objective can be achieved by using SAP Middleware and you have to define Business Object, IDOC, BDOC, and sites and you have to activate all parameters as same as in both Source system and Target system,
    Also try Groupware, FTP Server, TREX, for further compatibility as per your business process.

  • Any standard way to use JCO

    Hi Gurus,
    I want to use JCO to communicate with a custom Bapi.
    In one standard application I observed that many classes related to interface are created.
    With this I assume that there must be some API to create the class files required to read the data from a BAPI.
    The code looks like this
    EmergencyContact_PortType proxy = new EmergencyContact_PortType();
    ((AbstractProxy) (proxy)).messageSpecifier.setJcoClient(client);
    Hrwpc_Rfc_Address_Getlist_Output output = proxy.hrwpc_Rfc_Address_Getlist(input);
    Any help in this regard is grateful.
    Regards,
    Suraj.

    Hi Suraj
    Refer to
    <a href="http://help.sap.com/saphelp_erp2005/helpdata/en/11/e2bc3d9ecc6b3be10000000a114084/content.htm">Proxy Generation</a>. Proxy generation will be done in NWDS and that helps you creating all the class files required.
    Regards,
    ND

  • POS Interface with no POSDM!! Possible?

    My client is planning to implement standard POS interface in IS Retail. I have worked several times with POSDM in order to post the Sales, Financial and Inventory Data into SAP, but all used standard POSDM. The client does not have POSDM license and just wants to post the sales and financial data.
    Can this be done with standard POS Interface by posting WPUBON01, WPUFIB01 Idocs straight in IS-R?

    Hi Raj,
    My client is asking for POS to POSDM integration using SAP standard services (not IDOC or BAPI). You have mentioned using standard in your previous integrations. Can you please provide more information on the POS to POSDM that you have done so far. I have no knowledge in this integration. Any documentation or links that you can provide will be great.
    Thanks in advance.
    Regards,
    Srinivas

Maybe you are looking for

  • How to send an email with from address not as a SAP user id

    Hi, sender = cl_sapuser_bcs=>create ( pv_user ). I am using the above piece of code to send an email. In the method "CREATE" , I CAN PASS ONLY THE SAP USER ID. But i want to pass the email address (user) which does not  a SAP user id? how to do this.

  • Video's not showing up... Help!

    I got the video file to go onto my ipod and it's recognised as a video, but it's not playing (the video) it plays as if its a song. Any idea what's causing this? oh, and the program i'm using to convert these files to be ipod friendly leave this fugl

  • SignalHandler

    Hello, I try to handle the signal which is throwed when someone kill the process in the taskmanager, but it does'nt work. If I try to handle the Ctrl+C signal (SIGINT) it's working, but not whith SIGTERM. Why, How can I do to handle this signal ? Her

  • CST Value Printing Wrongly

    HI, We are using function module CALCULATE_ TAX_ITEM to print the values of VAT & CST.We have a delivery cost condition before the tax calculation.Tax has to be calculated for the price & delivery cost condition.In Purchase Order the tax value are co

  • Teststand sockets

    TestStand using sockets, I have two Teststand sequences and I would like to condition the sequence to run using sockets. The two sequences are called from a Main Sequence. The test environment is connected to a database through a custom barcode inter