How to query an Infoset using SAP JCO APIs

Hi
How can I  query an Infoset (on SAP ECC) using SAP JCO APIs?
Thanks

Hi,
Please use the DDIF_FIELDINFO_GET (standard) Function Module to retireve the details which you have mentioned.
Thanks,
Arun

Similar Messages

  • How to retrieve ABAP query field metedata using SAP JCO?

    How can I retrieve all field details (such as field name, field description, output length field type) using SAP JCO for an ABAP Query?
    I have query name, user group, query area and infoset name with me.
    Thanks

    Hi,
    Please use the DDIF_FIELDINFO_GET (standard) Function Module to retireve the details which you have mentioned.
    Thanks,
    Arun

  • Call Decision Table in WDJ using SAP BRM API

    Hello All,
    Have created Decision Table(DT) with a condition and a action based on my condition value it should return action value.
    eg: DT contains condition header as ID and action header as Name
    Base on input ID it  should return corresponding Name;
    tried to do this with below code :
    try{
       DefaultRulesEditAPIFactory apiInstance = DefaultRulesEditAPIFactory.getInstance();
       RulesEditAPI  api = apiInstance.getAPI();
       String projectName = "dc_example_brm";
       IProject project = api.getProject(projectName);
       String rulesetName = "RS_example";
       IRuleset ruleset = project.getRuleset(rulesetName);
       String decisiontableName = "DT_Id_Name";
       IDecisionTable dt = ruleset.getDecisionTable(decisiontableName);
       IDecisionTableQuery dte = dt.createQuery();
       dte.setConditionValue("ID", "xyz");
       String val = dte.getActionValue("Name");
       wdControllerAPI.getMessageManager().reportSuccess("dt value:"+val);
    but getting val always null.
    Please help me how to get proper action value.
    Regards
    Sri.

    Hi Siddhant,
    yes, i know that process but here i wanted to call DT by using SAP BRM API.
    Regards
    Sri.

  • How to create Authorization policy using OIM 11g API

    Hi,
    Could you please let me know how to create Authorization policy using OIM 11g API.
    Thanks

    Constructing A Policy Programmatically
    http://docs.oracle.com/cd/E27559_01/dev.1112/e27154/cons_policy_prog.htm#CHDHACBF
    api ref for PolicyStore
    http://docs.oracle.com/cd/E21764_01/apirefs.1111/e22649/oracle/security/jps/service/policystore/PolicyStore.html#createApplicationPolicy_java_lang_String_
    something like below code to start with
    try {
    JpsContextFactory ctxFact;
    ctxFact = JpsContextFactory.getContextFactory();
    JpsContext ctx;
    ctx = ctxFact.getContext();
    PolicyStore ps = ctx.getServiceInstance(PolicyStore.class);
    if (ps == null) {
    // if no policy store instance configured in jps-config.xml
    System.out.println("no policy store instance configured");
    return;
    ApplicationPolicy ap = ps.createApplicationPolicy("Trading", "Trading
    Application","Trading Application.");
    } catch (JpsException e) {
    }

  • Unable to create sales Order/Inquiry object using SAP JCo

    Hi All,
    Pls can you help me.
    I am using BAPI_INQUIRY_CREATEFROMDATA2 and BAPI_Trancation_commit to create Inquiry object.From my Client JCo code there is no error.I debugged the BAPI_Trasaction_commit, there is no error,  return code is 0.  But th system is not creating Inquiry object. When I try the same from SAP GUI client with exactly the same input parameters it works.
    Do I need to set any option/value to commit the Inquiry to the SAP database? How to maintain the same session between the different BAPI's. Is there any issue with Session maintainance? I would appreciate if you can provide me any sample SAP JCo code for creating a Sales Order/Inquiry.
    Thanks
    mars

    Can you put the part of your code that fill the ORDER_PARTNERS table, also you could compare your coding with [Sales order creation using BAPI|http://wiki.sdn.sap.com/wiki/display/Snippets/SalesordercreationusingBAPI] in [Community Code Gallery |http://wiki.sdn.sap.com/wiki/display/Snippets/CommunityCodeGallery] (don't forget that there is a conversion exit on the partner role, so use internal codes "AG" and "WE")
    Regards,
    Raymond

  • Writing a java program to access SAP tables using SAP JCO

    Hi all,
           I have a requirement where I need to access the VBAK table and get some values out of it based on a query on some of it fields. I would like to know how this can be done via a Java program by utilising the SAP JCo library. Has anyone done this before? A sample program would be very helpful.
    Thanks in advance!

    Hi SAM,
    Welcome to SDN!!!!!!
    Chk this help doc.
    http://help.sap.com/saphelp_nw04/helpdata/en/35/42e13d82fcfb34e10000000a114084/frameset.htm
    Also chk these thread.
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/8798be90-0201-0010-d093-85f728778d37
    Re: How to access SAP database tables with Java (Jco)
    Regards.
    Maha

  • IDOC data transfer SAP to Java using SAP JCo

    Dear Experts,
              The challenging requirement we are having is, we need to create the interface for data transfer between SAP system and the Java system. The data will be transferred from SAP to java and similarly once some processing done in Java again the details needs to be transferred from Java to SAP.
                 For this data transferred we are planning to use IDOC process and for interface "SAP Java connector" we are planning to use. In this case we are having some doubts.
    1. The data from SAP is going to be transfered from one Custom transaction (Z tcode). Once  "Outbound IDOC" will get triggered and will carry the details. Now the doubt is, whether the data / details will get transfered to JAVA system automatically or we need to perform any other steps from SAP ABAP coding...(like converting in to flat file, XML file and etc) ??
    2. We are planning to install "SAP Jco" in Java server. Is this correct...??
    3. Other than SAP Jco any other softwares needs to be installed or not..??
    4. Since we are going to trigger the "outbound IDOC" from custom transaction, we are planning to develope one program in SE37. Other than this any other program we need to develop or not..??
    If anybody has detailed steps or explanation please share it with us.
    Warm Regards,
    VEL

    Hi All,
      For the above mentioned issue, we implemented JCo software in JAVA system and created the JAVA program including SAP logon credential details like Client, User name, password and Language details.
    When this JAVA program was compiled successfully then, that non SAP system will appear in SAP gateway Tcode.
    Once non SAP system started appearing in SAP gateway that means, both SAP & Non SAP are connected automatically.
    Regards,
    Velmurugan P

  • How to query a cube using SQL ?

    Hi I have a MOLAP cube say CubeA with dimensionA having Attribute A1 and dimensionB having attribute B1
    the measure of cube is M1.
    Any idea how i can query the cube using SQL dislaying both the dimensions with the measure interlinking them.
    I just need a general overview of how to sql query a cube .. I have the dimensions and sttributes and name of the cube but i ineed to know how to query it... I was given an example
    SELECT
    t.time_long_description,
    p.product_long_description,
    c.customer_long_description,
    f.sales,
    f.sales_ytd
    FROM
    time_calendar_view t,
    product_std_view p,
    customer_std_view c,
    sales_cube c
    WHERE
    t.dim_key = f.time
    AND p.dim_key = f.product
    AND c.dim_key = f.customer
    AND t.level_name = 'CALENDAR QUARTER'
    AND p.level_name = 'BRAND'
    AND c.level_name = 'STATE';
    but i cant understand it.. i cant figure out what are the dimensions and where are the attributes...
    Any idea would great...

    There's a nice tutorial here: http://st-curriculum.oracle.com/obe/db/11g/r1/olap/cube/querycubes.htm
    Here are a few basics. Note that the link between the dimensions is the join between the dimension or hierarchy views and the cube.
    * The primary key to every dimension and hierarchy view is DIM_KEY.
    * The primary key to the fact table is dim1, dim2, dim3, so all joins are between dim_keys and dim1, dim2, etc.
    * Dimension, hierarchy and cube views contain rows for both leaf (detail) and summary rows (that means cubes can return very, very large numbers of rows is you aren't careful)
    * You typically want to query for the aggregate level data rather than use SUM ... GROUP BY. Let the cube do the work and let it manage calculations.
    * Dimension views contain rows for all dimension member. hierarchy views contain rows for only members of the hierarchy.
    * You typically select one of the long or short description columns to display data within an application.
    Here's a commented version of your query:
    SELECT
    t.time_long_description, -- long descriptions
    p.product_long_description,
    c.customer_long_description,
    f.sales, --measures
    f.sales_ytd
    FROM
    time_calendar_view t, --hierarchy views
    product_std_view p,
    customer_std_view c,
    sales_cube c --cube view
    WHERE
    t.dim_key = f.time ; -- joins between hierarchy and cube views
    AND p.dim_key = f.product
    AND c.dim_key = f.customer
    AND t.level_name = 'CALENDAR QUARTER' -- Filters to ask for data at the quarter
    AND p.level_name = 'BRAND' -- brand
    AND c.level_name = 'STATE'; -- and state levels.
    You want to have a filter on every dimension to avoid return all rows in the fact table for that dimension (remember, the cube contains summary rows). If you want to drop a dimension from a query (e.g., you don't want product in the query, intending for the query to be the aggregate of all products), filter to an all/total level.
    e.g.,
    and p.level_name = 'ALL PRODUCTS'
    or
    and p.long_description = 'All Products'
    There are many variation of this query, but if you understand the basics you'll work your way there.
    And, never do a select count(*) from a cube. Doing so will select the entire cube, detail and summary data.

  • How to send e-mail using java mail api

    Hi can anyone tell me how to send mail using the javamail api, in short if possible an example code.

    Theres already lots of this code in the forums, use the search bar to the left.
    Also, there is a dedicated javaMail forum which you will find useful (you are currently in a JSP forum)
    http://forum.java.sun.com/forum.jspa?forumID=43

  • How to write chart application using netcharts.server.api ?

    Hi to all.
    i need to write a chart application in Java, which makes use of netcharts.server.api.
    Iam having only jar files. Which are netcharts.jar, chartworks.jar, commons-httpclient.jar, commons-logging.jar and ncstoolkit.jar in my hand.
    I need to make use of above jars only to build line graph or charts or any thing.
    That application has to work in html or jsp or servlets, if possible in swings.
    can any buddy please help me in this regard and guide me.
    I am very much thank full for any reply.
    please help me.
    Thanks in advance.

    Hi su,
    Thanks for your reply.
    can you tell me in detail where you have used those jar files and how?
    Comming to my basic application,
    iam in the way to find first basic application using netcharts.server.api package.
    I came to know many things.
    I found the how to build application in JSP's
    But when iam executing that, it is throwing error like
    {color:#ff6600}netcharts.server.api.NSToolKitException: java.net.ConnectException: Connection refused: connect{color}
    at the time of calling
    {color:#ff6600}String thechart = toolKit.getChartAsImageAndMap(
    "/CDXExamples/barxDATAvariable.cdx";,
    chartParams,
    request,
    true);
    {color}at first i have created
    {color:#ff6600}NSWebToolKit toolKit = new NSWebToolKit("Examples");{color}
    toolkit object with out errors.
    But in other reference i found the code like
    {color:#ff6600}NSWebToolKit toolKit = new NSWebToolKit(NETCHARTS_SERVERNAME, 8001,"MyFirstProject");{color}
    Here it is saying
    replacing {color:#ff6600}NETCHARTS_SERVERNAME{color} with the machine name where NetCharts Server is installed:
    Iam getting doubt, is it necessary to install netcharts server to make use of netcharts.server.api classes?.
    can any buddy please help me in this regard.
    Thanks in advance.

  • How to print PDF files using java print API

    Hi,
    I was goign throw lot of discusion and reading lot of forums related to print pdf files using java api. but nothing seems to be working for me. Can any one tell me how to print pdf files using java api.
    Thanks in advance

    Mike,
    Can't seem to get hold of the example described in your reply below. If you could let us have the URL to get then it would be great.
    My GUI application creates a pdf document which I need to print. I want to achieve this using the standard Java class PrinterJob (no 3rd party APIs I'm afraid, commercial restraints etc ..). I had a stab at it using the following code. When executed I get the pretty printer dialog then when I click ok to print, nothing happens!
    boolean showPrintDialog=true;
    PrinterJob printJob = PrinterJob.getPrinterJob ();
    printJob.setJobName ("Contract.pdf");
    try {
    if (showPrintDialog) {
    if (printJob.printDialog()) {
    printJob.print();
    else
    printJob.print ();
    } catch (Exception PrintException) {
                   PrintException.printStackTrace();
    Thank you and a happy new year.
    Cheers,
    Chris

  • How to send picture message using J2ME sms APIs?

    Hi,
    I experiment with SMS APIs, i successfully send simple text message. now i want to send picture message, how to send picture message using J2ME APIs.
    please guide me.
    guna.

    I experienced in coding sending and receiving sms in J2ME. Besides, I also esperienced in coding reading a binary file in a applicaition jar. But I never done these both together. Hence Im not sure it works or not. Below is the example to open and read a binary file:
    InputStream oInputStream = getClass().getResourceAsStream( "/picture.png" );
    if(oInputStream == null) {
    //File does not exist;
    throw new Exception("File not found");
    //Read the binary file and copy it to a byte array
    byte[] abyPicture = new byte[oInputStream.available()];
    oInputStream.read(abyPicture );

  • How to read .doc files using jakarta POI api......

    Hi all,
    I've googled a lot on reading the file contents of an MS word file. I couldn't get a solution yet. Can you please give some sample codes for using the POI api for extracting only the text contents from an MS word file.
    Thanks and Regards,

    whenever i click the folders, it's taking
    to the internal folders. but there's no
    option to download the whole package.Thats because you're looking at a tool which displays the contents of an svn repository through a web site.
    What you need is a subversion client (the repository is a subversion repository).
    There are several easy to use clients available:
    Here's two:
    1) subclipse: If you use eclipse. Dammed great tool IMHO. http://subclipse.tigris.org/
    2) tortoise svn http://tortoisesvn.tigris.org/
    When you've got a client, you'll need to give it a repository URL from which to check out.
    For the POI project, that URL is http://svn.apache.org/repos/asf/jakarta/poi/trunk/
    ~D

  • How to calculate call duration using java card API

    Hi,
    I am developing an application using Java card API. I want to calculate duration of otgoing calls in it. I am trying to start timer at the beginning of call in Call Control event. Can someone kindly check following code of Call control event? Here timerManagement function is sending proactive command for starting timer for 3 hours. Here I am asuming that maximum call will be of 3 hours. In callDisconnect event i can get current value of timer and use it to calculate duration of call. But this scenario is also not working.
    Problem is that during code execution program stuck at send command (proHdlr.send();) of timmerManagement function. I am sending postAsBERTLV command before starting timer so may be reason is that it is not possible to send proactive command while phone is busy.
    But I also cannot send postAsBERTLV after timerManagement function. Because it is mention in specification that "The EnvelopeResponseHandler content must be posted before the first invocation of a ProactiveHandler.send method or before the termination of the processToolkit, so that the GSM applet can offer these data to the ME (eg 9Fxx/9Exx/91xx). After the first invocation of the ProactiveHandler.send method the EnvelopeResponseHandler is no more available"
    Take a look at following code
                     * Method illustrating the use of the Call Control event.
                    private void callControlService() {
                                    /** @todo: Replace following sample code with your implementation */
                                    ProactiveHandler proHdlr = ProactiveHandler.getTheHandler();
                                    EnvelopeHandler envHdlr = EnvelopeHandler.getTheHandler();
                                    ProactiveResponseHandler rspHdlr = ProactiveResponseHandler
                                                                    .getTheHandler();
                                    EnvelopeResponseHandler envRspHdlr = EnvelopeResponseHandler
                                                                    .getTheHandler();
                                    durationCount = 0;
                                     // allow call with no modifications
                                    envRspHdlr.postAsBERTLV((byte)0x9F, (byte)0x00);
                                    // start clock using timer
                                    timerManagement(proHdlr, rspHdlr, (byte) 0x0, timer_id, tempBuffer);
                                    return;
                    }Please help me in this regard
    Thanks
    Yasir

    I am also unable to start timer in call connected event. I cannot send any proactive command while phone is busy. I am using Gemalto development Suite and there simulators (Simulation 2G chain).
    Is it limitation of simulator that you cannot send any proactive command while phone is busy?
    Is there any other work around for getting call duration?

  • How to populate boolean fields using MDM Java API's

    Hi Experts!
    I am trying to populate Boolean fields in main table of my repository using MDM JAVA API SP 05 patch 2.
    Problem is i am geting syntax error for any value that i try to put in.
    Please provide me sample code for the purpose.
    Thanks in advance!

    Hi,
    Here is the code snippet to populate boolean values from Main Table in the Repository:
    Populating boolean values from Main Table in the Repository:
    wdContext.currentNodeElement().setABC(Boolean.valueOf((strABC).toString()).booleanValue());
    Putting boolean values in the main table:
    Record objEmptyRecord = RecordFactory.createEmptyRecord(new TableId(strTableId));
    boolean bFieldValue = ((Boolean)strABC).booleanValue();
    objEmptyRecord.setFieldValue(new FieldId(strFieldId),new
    BooleanValue(bFieldValue));
    Hope this helps.
    Regards
    Neha Sharma

Maybe you are looking for

  • MBP w/R glitchy wake from sleep.

    When my late 2013 Retina MBP wakes from sleep I have this horrible glitchy screen flash up before asking me to enter my password as normal, it doesn't cause any problems, it just shouldn't happen. It doesnt' appear however if I close the lid, and ope

  • Operating system for my g4

    Hello, I reciently came across a g4 that has been wiped clean and I need to install an operating system. It has 800Mhz, 256MB, 30GB . Does anyone know which operating system(s) I will be able to install on this machine. Any help will be appreciated.

  • Easy Web Transaction

    Hi, I have created a easy web transaction for a ABAP report. This report I want to display in portal using iView. How can I do this? Please help me on this. Is there any tutorial available for the same? Regards, Sanjeev

  • Some FI documents cannot be archived

    When defining the variant for FI_DOCUMNT, cenrtain FI documents are not balanced for the given company code, account type and fisical year.  Can we run above variant without any change? I think the worst case is that ONLY the documents that are not b

  • Getting Mandatory import element 'TRACE' is not (explicitly)provided in BPM

    SCenerio>file to multiple RFC using BPM the above error getting at transformation step. getting Mandatory import element 'TRACE' is not (explicitly) provided