ABAP table in XI

Hi,
Project IDoc is triggered from SAP system, when project status is REL(Release). Project IDoc, does not have  information about if it is a new project or an existing changed project.
Any idea how i can deal with this problem? Can i use ABAP table to maintain status info?  
Thanks,
Gowri

Hi,
In the example by Bhavesh Kantilal :
import com.sap.aii.mapping.lookup.*;
import java.io.*;
// Business Service -- give the name of the business service / system
String bussService="";
// RFC Comm Channle -- give the name of the RFC Comm Channel
String CommChannel="";
Channel channel = LookupService.getChannel(bussService,CommChannel);
RfcAccessor accessor = LookupService.getRfcAccessor(channel);
//Request RFC XML with values poppulated.
String rfcxml ="";
InputStream inputStream =new ByteArrayInputStream(rfcxml.getBytes());
XmlPayload payload = LookupService.getXmlPayload(inputStream);
Payload rfcOutPayload = null;
//The response will be a Payload. Parse this to get the response field out.
rfcOutPayload = accessor.call(payload);
If the ztable in called (table1) and has 3 fields (field1, field2 and field3).  What would be an example of the rfcxml string if I would like to do this select:
Select field1 field2 field3 from table table1 where field1 = ‘1234’.
In my EDI scenario, I need to do some r/3 table lookups in my mapping and using the RFC Lookup seems to be a good way. 
Thanks
Yves

Similar Messages

  • Dynamic configuration- Is file name stored in any abap table in PI

    Hi.
    Is there any ABAP table in XI containing the dynamic configuration's xml of a message.
    For any file scenario Can I get the file name from any of the abap table in PI
    Regards,
    Deepak

    Interesting ABAP tables in XI
    Interesting ABAP tables in XI – Part I
    Regards,
    Phani

  • Dynamic configuration in ABAP tables

    Hi,
    is there any ABAP table in XI containing the dynamic configuration's xml of a message (or an equivalent information in any format)?
    Thanks,
    Daniele

    hi
    Dynamic configurations will be a part of the xi message header
    chk these tables
    1.SXMSPMAST: (Integration Engine: Message Queue (Master)) The table is the master table for the monitoring information. You can get the timestamp, interface status, message id, and many more information.
    2.SXMSPEMAS: (Integration Engine: Enhanced Message Queue (Master)) The table provides the namespaces, the business systems and message interfaces involved in the interface.
    3.SXMSMSTATT: (Exchange Infrastructure: Message Status Description) This table provides a message status description.
    4.SXMSMSTAT: (Exchange Infrastructure: Message Status) This table is helpful if you want to show the process status icon for the corresponding message state.
    refer this for code sample
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/909760cb-0ec8-2a10-4a96-ee8417acfbc9
    rgds
    arun

  • How to handle BLOB field in receiver JDBC adapter into ABAP table

    Dear Experts,
    I am working in a synchronous scenario with Sender ABAP Proxy to Oracle Database as receiver via SAP PO 7.4.I will be calling a stored procedure view with fields ID, NAME,Age,*** and BLOB (Image binary).
    1. The response from Oracle Database field BLOB is to be stored in ABAP table.Would I have to write any JAVA program to read the BLOB or the receiver JDBC adapter will handle it and store in a table by using ABAP proxy once it reaches ECC.
    2. If yes, would the JAVA program have to deal with other 4 fields.
    3. Can I use a UDF mapping to this BLOB field.
    Regards
    Rebecca...

    Dear Praveen,
    Thanks for your response...
    Please correct me if I am wrong.
    1. For 1-1 response mapping for BLOB field, I will use just use the below UDF code.
    public static byte[] hexStringToByteArray(String s) { 
                int len = s.length(); 
                byte[] data = new byte[len / 2]; 
                for (int i = 0; i < len; i += 2) { 
                            data[i / 2] = (byte) ((Character.digit(s.charAt(i), 16) << 4) 
                                                                                         + Character.digit(s.charAt(i+1), 16)); 
                return data; 
    2. ===Using the byte data, create binary attachment in mapping for abap proxy response===
    Could you please share how to create the binary attachment.. I am not clear
    Regards...

  • HR ABAP Tables

    Hi
    are there HR abap tables in the trial version of sap netweaver
    Thanks,
    Bala.

    No. Module tables doesn't exist.

  • Access ABAP Table using Java (NWDS/JCO)

    All,
    I am trying to setup a jco connection from java program through NWDS to ECC abap table.
    However I am getting the following error in NWDS:
    Exception in thread "main" java.lang.ExceptionInInitializerError: JCO.classInitialize(): Could not load middleware layer 'com.sap.mw.jco.rfc.MiddlewareRFC'
    JCO.nativeInit(): Could not initialize dynamic link library sapjcorfc [C:\Program Files\Java\jdk1.6.0_45\bin\sapjcorfc.dll: Access is denied]. java.library.path [C:\Program Files\Java\jdk1.6.0_45\bin;.]
    and a parity error on my system:
    "Parity blocked an attempt by javaw.exe to run sapjcorfc.dll because the file is not approved.  If you require access to this file, please contact your system administrator.  Scroll down for diagnostic data."
    Here is the Java code...per the SAP website:
    package com.sap.pi.updateAbapSxmbAdminParams;
    import com.sap.mw.jco.*;
    public class ReadPiAbapTables {
      private static JCO.Client theConnection;
      private static IRepository theRepository;
      public static void main(String[] args) {
       createConnection();
       retrieveRepository(); 
       try {
        JCO.Function function = getFunction("RFC_READ_TABLE");
        JCO.ParameterList listParams = function.getImportParameterList();
        listParams.setValue("BSAUTHORS", "QUERY_TABLE");
        theConnection.execute(function);
        JCO.Table tableList = function.getTableParameterList().getTable("SXMSCONFVLV");
        if (tableList.getNumRows() > 0) {
         do {
          for (JCO.FieldIterator fI = tableList.fields();
          fI.hasMoreElements();)
           JCO.Field tabField = fI.nextField();
           System.out.println(tabField.getName()
             + ":t" +
             tabField.getString());
          System.out.println("n");
         while (tableList.nextRow() == true);
       catch (Exception ex) {
        ex.printStackTrace();
      private static void createConnection() {
       try {
        theConnection = JCO.createClient("aaa", "aaa", "aaa", "aa", "aa", "aa");
        theConnection.connect();
       catch (Exception ex) {
        System.out.println("Failed to connect to SAP system");
      private static void retrieveRepository() {
       try {
        theRepository = new JCO.Repository("saprep", theConnection);
       catch (Exception ex)
        System.out.println("failed to retrieve repository");
      public static JCO.Function getFunction(String name) {
       try {
        return theRepository.getFunctionTemplate(name.toUpperCase()).getFunction();
       catch (Exception ex) {
        ex.printStackTrace();
       return null;

    Hi Vicky,
    You need authorization to the S_TABU_DIS object, talk with the ABAP basis team about this to find the more restrictive role.
    It's not a good idea to use the RFC_READ_TABLE, for the wide permissions needed. You could think to develop a Z RFC for this.  You can check pros/cons in this document: http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/a83ec690-0201-0010-14ac-bd1d75e24a7d?overridelayout=t…
    Regards.

  • XI / PI Alert Framework to Populate an ABAP table

    We are sending an outbound proxy to PI, and if an error occurs in PI, we want to populate an abap table in the source system.  SAP has told us this could only be done via the PI alert framework.  Could someone tell me if there is one or many user exits (and what they are) in the PI alert framework that abap code could be inserted in?

    BAPI- Implementation of interface IF_EX_ALERT_MODIFY_TEXT.

  • How to capture username in ABAP table

    Hi experts,
    I have this case:
    A webdynpro application calling a BAPI throught adaptive RFC.
    The problem is the last updated username captured in my ABAP tables is the one supplied when i created the logical system names. (JCO)
    What i actually want to capture is username of the user who login.
    What am i missing ?
    Thanks a lot.
    Regards,
    Daniel

    Hi Daniel
    Use the foll. code to get the user id
    IWDClientUser clientUser = WDClientUser.getCurrentUser();
    Pass this is as a parameter to RFC. Your ABAPer will have to do a change in RFC to capture and insert this User id in the respective table.
    Regards
    Nikhil Bansal
    xxxxxxxxxxxxxxxxxxxxxxxxxx
    Edited by: Armin Reichert on Feb 18, 2008 7:24 PM

  • Access ABAP table in Webdynpro Java application

    Hi All
    Is it possible to access ABAP table in Webdynpro Java application
    Please provide your input
    Thanks
    Karthi D.

    Hi you will connect to the remote SAP system, the
    backend, using an Adaptive RFC MOdel. To access database tables, you can make use of existing functions in terms of RFC function modules. For each function module you need, the system generates a corresponding Java proxy class. All the generated proxy classes and interface are bundled together in the RFC model and treated as part
    of your Web Dynpro project
    In WebDynpro java you RFC by using Model :
    Adaptive RFC Model
    1. automatically adapts to changes in function module signature
    2 provides support for data types and extensibility
    3.support for different structure definitions in different backend
    systems (release dependent structures, custom adaptation)
    Basic principles and guidelines
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/11c3b051-0401-0010-fe9a-9eabd9c216de
    See this blog
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/wdjava/faq%2b-%2bmodels%2b-%2badaptive%2brfc
    http://help.sap.com/saphelp_nw04s/helpdata/en/6a/11f1f29526944e8580c5e59333d96d/frameset.htm
    Thanks,
    Tulasi

  • ABAP Table for DynamicConfiguration details of XML message in SXMB_MONI

    Dear All
    I have a requirement where I have to read the value from DCJMSCorreleationID property of message which is recorded in SXMB_MONI based on the SAP PI message ID.
    I have 2 interfaces as below
    Interface one (INT1) : JMS-PI-ECC --->Inbound interface to ECC when message is received on PI it will have DCJMSCorreleationID populated with some ID as shown below
    Go to SXMB_MONI -->Inbound Message ---> SOAP Header --->DynamicConfiguration
    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    <SAP:DynamicConfiguration SOAP:mustUnderstand="1" xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">
    <SAP:Record namespace="http://sap.com/xi/XI/System/JMS" name="DCJMSCorreleationID">
    a26c4276-9d5e-11e3-ba87-000004238292
    </SAP:Record>
    <SAP:Record namespace="http://sap.com/xi/XI/Message/30/general" name="senderAgreementGUID">dd3fb7c6b983314293e14ba59df1ad45</SAP:Record></SAP:DynamicConfiguration>
    Interface Two (INT2):-ECC-PI-JMS----> Outbound from ECC where I am passing a SAP PI Message ID for INT1 in one of the field
    Can I read this DCJMSCorreleationID for INT1 when INT2 is executed and have message ID for INT1 ?
    Where are these SOAP hearder porperties like DCJMSCorreleationID are stored on ABAP table?

    Thanks Jörg for your reply
    I have a back up plan for ZTable approach but the only concern there is RFC calls for read and write
    we have implemented a FM which gives the original payload using a std SAP functional modules FM SXMB_GET_XI_MESSAGE_INT and  ECATT_CONV_XSTRING_TO_STRING
    But I am looking for the SOAP Header information for DCJMSCorreleationID
    So if there is anything which will help to read this DCJMSCorreleationID property easily form existing message SOAP header is really helpful

  • ABAP Table - Invoice number & accounting doc date

    Hi ,
    In which ABAP Table i can get invoice number and Accounting document date ?
    Srini

    Hi Srini,
    I guess what you're really asking is "How can I find the tables that contain certain fields".  So, if that is really your question you should check out a blog like this;
    /people/martin.english/blog/2010/01/13/finding-what-tables-and-fields-lie-behind-an-sap-transaction
    Otherwise, every time you need to find a table for a field you don't know you'll have to ask the forum.
    Regards,
    Nick

  • How to Implement Sort, Filter funtinality in Normal web dynpro ABAP Table

    Hello,
    How to Implement Sort, Filter funtinality in Normal web dynpro ABAP Table ?
    Thanks

    hi,
    Check out this link for sorting in Table.
    Sorting option in WebDynPro ABAP UI Table
    steps to follow :
    ->Have the data in internal table (itab).
    ->Now use sort command for the particular column which ever you want to sort.
      e.g sort itab descending by <Column>.
    ->Now you can bind the internal table with the Context Node which is binded to Table.
    I hope it helps.
    Thanx.

  • Abap tables for adapter engine errors

    Hello,
    Which ABAP tables in PI will have the data relating to adapter engine errors (like the communication channel errors). Is there any way I can get the adapter engine errors from abap tables?
    Any help is very much appreciated.
    Thanks
    MLS

    Hello,
    What I am trying to do is write a report in ABAP, which will read the table for errors (for messages which are not processed successfully in Integration engine or adapter engine) and email those errors to users. If there is communication channel error in RWB, the message in sxmb_moni is still shown as success and is not being updated in table SXMSPERROR.
    We cannot use PI Alerts here since the email list is dynamic for the same PI interface.
    Any ideas on how to accomplish this?
    Thanks
    MLS

  • Abap tables for commitments

    budget abap tables for the cost element and commitment items,thanks.

    Hi,
    For budget information you have to look in RPSCO for rows with WRTTP = 41 and for actuals per cost element you look in COSS/COSP/COSSP/COSPP for rows with WRTTP = 4. Budget is stored at the object level and not at cost element level.
    Regards,
    Kenneth

  • Abap-table access via JDBC

    Hello,
    we have a java-program, that accesses data via jdbc to a mysql-database.
    Now we want to migrate the mysql-table to abap-table.
    How can we access from the  java-program to theese migrated abap-tables via jdbc?
    Regards Oliver

    Oliver,
    If you want to access those tables from SAP, then you have to use the Java Connectors (
    JCO).
    Please write the more details abount the java IDE and OS, which you are using I will send you appropriate help.
    Thanks

  • Communication Channel information in abap tables

    Hi ,
    Could you let me know any abap table which contains information about communication channels in PI 7.0.
    I have checked the following link
    Re: XI--Table for communication channels
    But the table SMPREL3 is not active in our data dictionary. is there any other table which stores this information.
    My requirement is to get the list of all channels which have quality of service as EOIO in the processing tab of the comm channel.
    Let me know if there are any other ways of checking this.

    Hi,
    Some tables in following blog:
    http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=(J2EE3417800)ID0366444450DB00849302769976173098End?blog=/pub/wlg/2754
    Regards,
    Giuseppe

Maybe you are looking for

  • Problem with asset class

    Dear Experts:                        I have a query.Its regarding Asset master data. When i open an asset in class of Motor vehicle, in input data i also input Quantity (mostly 1) But after creation asset master data of the asset created shows its qu

  • Best way to install Windows 8 on an iMac with 1tb Fusion drive

    I just ordered my first iMac. Not my first mac, I have owned numerous Mac laptops in the past but am finally ready to make the switch for my main desktop . Now I need to installed windows 8.1 because I need to run visual studio. That is literally the

  • Some events missing in ipod but appear in ical

    Some of my appointments/events in ical are not transfering to my ipod. The one I noticed last was from a subscribed calendar. There were two events on the calendar, one of which appeared on my ipod calendar and the other did not. I tried dumping the

  • IN BW how many  routines are there  in 3.5 and which scenario used

    Hi expert,   i am pradeep. a job seeker . could please send me doc of routines in bw 3.5 and i will be give good point my  id [email protected] regards pradeep

  • Subscription App won't delete.

    I have an old app I was using that is in my subscriptions and I can't delete it. What do I do?