Java conversion for xkwert like komv-kwert ABAP filed

Hi all,
I am in process of converting the ABAP routines present in ECC into user exists in CRM.
I am stuck up at a point wherein i am unable to find the java conversion for xkwert like komv-kwert abap field. If anyone has an idea on what exactly is the java conversion for the above field then please reply.
Thanks In Advance,
Vipin.

vipin,
I think this is condition value(komv-kwert ) , to get the condition value you can use the following method in java.
pricingConditon.getConditionValue().
Thanks and Regards
shanto aloor

Similar Messages

  • Simple java class for SQL like table?

    Dear Experts,
    I'm hoping that the java people here at the Oracle forums will be able to help me.
    I've worked with Oracle and SQL since the 90s.
    Lately, I'm learning java and doing a little project in my spare time. 
    It's stand alone on the desktop.
    The program does not connect to any database 
    (and a database is not an option).
    Currently, I'm working on a module for AI and decision making.
    I like the idea of a table in memory.
    Table/data structure with Row and columns.
    And the functionality of:
    Select, insert, update, delete.
    I've been looking at the AbstractTableModel.
    Some of the best examples I've found online (they actually compile and work) are:
    http://www.java2s.com/Code/Java/Swing-JFC/extendsAbstractTableModeltocreatecustommodel.htm
    http://tutiez.com/simple-jtable-example-using-abstracttablemodel.html
    Although they are rather confusing.
    In all the examples I find, there always seems to be
    at least three layers of objects:
    Data object (full of get/set methods)
    AbstractTableModel
    GUI (JFrame, JTable) (GUI aspect I don't need or want)
    In all the cases I've seen online, I have yet to see an example
    that has the equivalent of Delete or Insert.
    Just like in SQL, I want to define a table with columns.
    Insert some rows. Update. Select. Delete.
    Question:
    Is there a better java class to work with?
    Better, in terms of simpler.
    And, being able to do all the basic SQL like functions.
    Thanks a lot!

    Hi Timo,
    Thanks. yes I had gone thru the java doc already and  they have mentioned to use java.sql.Struct, but the code which got generated calls constructor of oracle.jpub.runtime.MutableStruct where it expects oracle.sql.STRUCT and not the java.sql.STRUCT and no other constructor available to call the new implementation and that is the reason i sought for some clues.
      protected ORAData create(CmnAxnRecT o, Datum d, int sqlType) throws SQLException
        if (d == null) return null;
        if (o == null) o = new CmnAxnRecT();
        o._struct = new MutableStruct((STRUCT) d, _sqlType, _factory);
        return o;
    here CmnAxnRecT is the class name of the generated java class for sqlType.
    Thanks again. Please let me know if you have any more clues.
    Regards,
    Vinothgan AS

  • ABAP routine java conversion

    Hi Folks,
    I am in the process of converting ABAP routine into java which can work in CRM system. I would like to know what would be the java function of the xkwert.
    let me know the approach also to find the correct function.
    Thanks a lot,
    Sanjeev Mourya

    sanjeev,
    xkwert is a custom field, check its corresponding type, i think it will be komv-kwert ,this is for condition value you can get the condition value using the following java method.
    pricingCondition.getConditionValue()
    Thanks and Regards
    shanto aloor

  • How to add abap stack to existing NW Java engine- for XI installation

    Hi All,
    I am having a netweaver Java Stack installed on my system. I would like to install XI - in order to install Xi ,I guess the system should be ABAP + Java. But since I am having java based engine, I would like to add ABAP stack to it. So, my question how to add an ABAP stack to already existing JAVA/J2ee engine.
    So what this process is known as-- Is it upgrading or New Installation. Because I need the guide and CD's for it.
    Can any one tell me which Guide(Install/upgrade/Master) wud help me.
    Thanks
    S

    Hi
    check the link www.service.sap.com/instguides>SAP Netweaver 7.0>installation guides there you can find what is the process which involves in installing ABAP+JAVA with PI
    Regards
    Uday

  • Why SAP has taken Java for their development instead of ABAP completely

    Hi
    I am Neelima, new to SAP and abap,
    Can u please explain
    Why SAP has taken Java for their development instead of ABAP completely
    Thanks in advance
    Regards,
    Neelima

    Hi Neelima ,
      Answer to Q . Why SAP has taken Java for their development instead of ABAP completely ?
      First of all in my view SAP has not taken Java as Such instead of ABAP .
      But you nowdays whole lot of java is coming in SAP by doors of SAP NetWeaver .
    Now why they choosed java only <b> IN MY VIEW</b>
    1)     Java is open source so SAP in tie up with SUN can develop SAP specific API’s and that’s what happenings . In Net Weaver Developer studio (NDS of SAP like eclipe of Java ) we use packages ,classes , methods for SAP.
    2)     In my view Java is rocking in Web world , Every single popular product ( like IBM MQ series , Oracle Apps ) is making use Java for making things web based .
    So why not SAP .
    3)     Now data ultimately data is getting saved in XML . And java is best to deal with that . In SAP also Idoc data is stored in XML and so same data can be used anywhere inspite of Platform , technology .
    4)     Java has much established base of web Solution , Web services .They have got beautiful architecture so that Best Web sevices can be developed with EJB (Enter prise java beans  ) , sturts  and all .
    5)     Now It’s time for SAP to be Mobile Enabled .i.e. to Run SAP over PDA , Blackberry .Such solutions possible with SAP + Java combination .Java provides that framework to understand Mobile OS platform.
    6)     Another thing now Its time of EAI (Enterprise Application Integration) . Integration is future . Multiple product integrated and used togetherly , exchanges data. Take case SAP’s message goes to Sieble , people soft .For this Java + XML is best suied as both product understand it .
    Utimately SAP is Using java to provide Best Web ERP solutions
    But it does not mean ABAP is not there. With webDynpro ABAP  you can do every thing that WD java does . In fact incase if you have existing ABAP recourses then use WD ABAP for developing web services in SAP. In uses OO ABAP as base programming language .
    Please refer to this link
    IS Webdynpro for ABAP/JAVA is same?
    so hope your question is cleared
    Cheers
    <b>Parry</b>

  • Error in Java Mapping for Single XML conversion

    We are working on ABAP Proxy --> SAP PI 7.1 --> SOAP (Synchronous Scenario).
    (ECC -> PI -> Legacy CRM)
    Client has provided a WSDL with Single Node of XML and asking us to pass the whole structure as an single string along with all the nodes of data structure. To perform mapping we are using Java Mapping.
    Message which we are getting after Java Mapping:
    Input
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:MT_SOReject_Sender xmlns:ns0="http://MTSINDIA/TC/SalesOrderReject">
       <ITEM>
          <sSlsOrderCode>1001</sSlsOrderCode>
          <sDlrCode>A250</sDlrCode>
          <sRejectReason>Z2</sRejectReason>
          <nCircleCode>2</nCircleCode>
       </ITEM>
    </ns0:MT_SOReject_Sender>
    Output
    <?xml version="1.0" encoding="UTF-8"?><MT_Trg xmlns:ns="urn:Test_File_to_File"><stringinp>&lt;?xml version="1.0" encoding="UTF-8"?&gt;&lt;ns0:MT_SOReject_Sender xmlns:ns0="http://MTSINDIA/TC/SalesOrderReject"&gt;&lt;ITEM&gt;&lt;sSlsOrderCode&gt;1001&lt;/sSlsOrderCode&gt;&lt;sDlrCode&gt;A250&lt;/sDlrCode&gt;&lt;sRejectReason&gt;Insufficient Stock Balance&lt;/sRejectReason&gt;&lt;nCircleCode&gt;2&lt;/nCircleCode&gt;&lt;/ITEM&gt;&lt;/ns0:MT_SOReject_Sender&gt;</stringinp></MT_Trg>
    Is ther any way from which we can convert &gt; as u201C>u201D and &lt; as u201C<u201D.  Required result is as follows
    Required Output
    <?xml version="1.0" encoding="UTF-8"?><MT_Trg xmlns:ns="urn:Test_File_to_File"><stringinp><?xml version="1.0" encoding="UTF-8"?><ns0:MT_SOReject_Sender xmlns:ns0="http://MTSINDIA/TC/SalesOrderReject"><ITEM><sSlsOrderCode>1001</sSlsOrderCode><sDlrCode>A250</sDlrCode><sRejectReason>Insufficient Stock Balance</sRejectReason><nCircleCode>2</nCircleCode></ITEM></ns0:MT_SOReject_Sender></stringinp></MT_Trg>
    We are using following Java Code for the same.
    import java.io.BufferedReader;
              import java.io.FileInputStream;
              import java.io.FileOutputStream;
              import java.io.InputStream;
              import java.io.InputStreamReader;
              import java.io.OutputStream;
              import java.util.Map;
              import javax.xml.parsers.DocumentBuilder;
              import javax.xml.parsers.DocumentBuilderFactory;
              import javax.xml.transform.Transformer;
              import javax.xml.transform.TransformerFactory;
              import javax.xml.transform.dom.DOMSource;
              import javax.xml.transform.stream.StreamResult;
              import org.w3c.dom.Element;
              import org.w3c.dom.Document;
              import org.w3c.dom.Text;
              import com.sap.aii.mapping.api.*;
              import com.sap.aii.mapping.api.StreamTransformation;
    public class SingleStr implements StreamTransformation{
          * @author user
          * To change the template for this generated type comment go to
          * Window&gt;Preferences&gt;Java&gt;Code Generation&gt;Code and Comments
                    public static void main(String args[]) throws Exception {
                FileInputStream inFile =
                 new FileInputStream("C:/Documents and Settings/user.HR0102WILT00033/Desktop/Input.XML");
                FileOutputStream outFile =
                 new FileOutputStream("C:/Documents and Settings/user.HR0102WILT00033/Desktop/Output.XML");
                 SingleStr xml = new SingleStr();
                xml.execute(inFile, outFile);
                System.out.println("Success");
               public void setParameter(Map param) {
                Map map = param;
               public void execute(InputStream in, OutputStream out)
                throws com.sap.aii.mapping.api.StreamTransformationException {
                try {
                 //************************Code To Generate The XML Parsing Objects*****************************//    
                 DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
                 DocumentBuilder db = dbf.newDocumentBuilder();
                 TransformerFactory tf = TransformerFactory.newInstance();
                 Transformer transform = tf.newTransformer();
                 //Document doc = db.parse(in);
                 Document docout = db.newDocument();
                 Element root = docout.createElement("MT_Trg");
                 root.setAttribute("xmlns:ns","urn:Test_File_to_File");
                 docout.appendChild(root);
                 Element stringinp = docout.createElement("stringinp");
                 root.appendChild(stringinp);
                 BufferedReader inpxml = new BufferedReader(new InputStreamReader(in));
                 StringBuffer buffer = new StringBuffer();
                 String line="";
                 while ((line = inpxml.readLine()) != null)
                 buffer.append(line);
                 String inptxml=buffer.toString();
                 Text srcxml = docout.createTextNode(inptxml);
                 stringinp.appendChild(srcxml);
                 DOMSource domS = new DOMSource(docout);
                 transform.transform((domS), new StreamResult(out));
                 } catch (Exception e) {
                   System.out.print("Problem parsing the file: " + e.getMessage());
                   e.printStackTrace();
    Please help!!

    We are using following Java Code for the same.
    import java.io.BufferedReader;
              import java.io.FileInputStream;
              import java.io.FileOutputStream;
              import java.io.InputStream;
              import java.io.InputStreamReader;
              import java.io.OutputStream;
              import java.util.Map;
              import javax.xml.parsers.DocumentBuilder;
              import javax.xml.parsers.DocumentBuilderFactory;
              import javax.xml.transform.Transformer;
              import javax.xml.transform.TransformerFactory;
              import javax.xml.transform.dom.DOMSource;
              import javax.xml.transform.stream.StreamResult;
              import org.w3c.dom.Element;
              import org.w3c.dom.Document;
              import org.w3c.dom.Text;
              import com.sap.aii.mapping.api.*;
              import com.sap.aii.mapping.api.StreamTransformation;
    public class SingleStr implements StreamTransformation{
               public static void main(String args[]) throws Exception {
                FileInputStream inFile =
                 new FileInputStream("C:/Documents and Settings/user.HR0102WILT00033/Desktop/Input.XML");
                FileOutputStream outFile =
                 new FileOutputStream("C:/Documents and Settings/user.HR0102WILT00033/Desktop/Output.XML");
                 SingleStr xml = new SingleStr();
                xml.execute(inFile, outFile);
                System.out.println("Success");
               public void setParameter(Map param) {
                Map map = param;
               public void execute(InputStream in, OutputStream out)
                throws com.sap.aii.mapping.api.StreamTransformationException {
                try {
                 DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
                 DocumentBuilder db = dbf.newDocumentBuilder();
                 TransformerFactory tf = TransformerFactory.newInstance();
                 Transformer transform = tf.newTransformer();
                 //Document doc = db.parse(in);
                 Document docout = db.newDocument();
                 Element root = docout.createElement("MT_Trg");
                 root.setAttribute("xmlns:ns","urn:Test_File_to_File");
                 docout.appendChild(root);
                 Element stringinp = docout.createElement("stringinp");
                 root.appendChild(stringinp);
                 BufferedReader inpxml = new BufferedReader(new InputStreamReader(in));
                 StringBuffer buffer = new StringBuffer();
                 String line="";
                 while ((line = inpxml.readLine()) != null)
                 buffer.append(line);
                 String inptxml=buffer.toString();
                 Text srcxml = docout.createTextNode(inptxml);
                 stringinp.appendChild(srcxml);
                 DOMSource domS = new DOMSource(docout);
                 transform.transform((domS), new StreamResult(out));
                 } catch (Exception e) {
                   System.out.print("Problem parsing the file: " + e.getMessage());
                   e.printStackTrace();
    Please help!!

  • JAVA Mapping for XML conversion during runtime

    Dear SAP JAVA experts,
    For quite I have been struggling to keep the JAVA code in place for JSON to XML conversion being a newbie.
    Following is the code snippet.
    import java.io.InputStream;
    import net.sf.json.JSON;
    import net.sf.json.JSONSerializer;
    import net.sf.json.xml.XMLSerializer;
    import org.apache.commons.io.IOUtils;
    import com.sap.aii.mapping.api.AbstractTransformation;
    import com.sap.aii.mapping.api.StreamTransformationException;
    import com.sap.aii.mapping.api.TransformationInput;
    import com.sap.aii.mapping.api.TransformationOutput;
    import com.sap.aii.utilxi.core.io.IOUtil;
    public class RuntimeJSONtoXML extends AbstractTransformation {
      public void transform(TransformationInput input, TransformationOutput output)
      throws StreamTransformationException {
      try
    //InputStream is = JSONtoXML.class.getResourceAsStream("JSON.txt");
       String strJSON = "";
       InputStream inputStream = input.getInputPayload().getInputStream();
       inputStream.close();
       String jsonData = IOUtils.toString(strJSON);
               XMLSerializer serializer = new XMLSerializer();
               JSON json = JSONSerializer.toJSON( jsonData );
               String xml = serializer.write( json );
               //System.out.println(xml);
               output.getOutputPayload().getOutputStream().write(strJSON.getBytes());
      catch(Exception ie) { }
    Caught unaware of 2 queries.
    1.I have added the com.sap.aii.utilxi.core.io.IOUtil jar files from the PI server even though its displays error "The com.sap.aii.utilxi can not be resolved". Also I added the XPI libraries in NWDS but nothing moving to solve the issue.
    2. I have commented the line of code where I have placed a test file in the path to test it i.e. JSON.text. But when it is deployed as Archived files, then this code has to be replaced.
    The Method toString(InputStream) in the type IOUtils is not applicable for the arguments (String)
    Regards
    Rebecca..

    1.I have added the com.sap.aii.utilxi.core.io.IOUtil jar files from the PI server even though its displays error "The com.sap.aii.utilxi can not be resolved". Also I added the XPI libraries in NWDS but nothing moving to solve the issue.
    Which jar file did you add?
    /usr/sap/<<SID>>/DVEBMGS<<SYSNO>>/j2ee/cluster/bin/ext/com.sap.xi.util.misc/lib
    jar file name : com.sap.aii.utilxi.core.jar
    2. I have commented the line of code where I have placed a test file in the path to test it i.e. JSON.text. But when it is deployed as Archived files, then this code has to be replaced.
    The Method toString(InputStream) in the type IOUtils is not applicable for the arguments (String)
    To read the input stream you should have
    InputStream inputstream = transformationInput.getInputPayload().getInputStream();
    Please refer to below blog just to get an idea on working with input stream and output stream.
    Dynamic file name for pass-through scenario - Process Integration - SCN Wiki

  • User mapping when installing JAVA addin for ABAP

    Hi,
    I have installd SAP ABAP on a domain.
    As the ABAP went fine and successfully gets installed.
    When I am installing JAVA addon for ABAP it is throwing an error lke the users are not mapped.
    So can any one guide me where actually I should map the SAP users in a domain.
    Prashanth

    Your question is very vague, please post the full error.
    As this is a java add-in it should user ABAP as datasource so no user mapping should be required.
    User mapping is used where java and backend system use different datasources and the naming conventions are different...
    Theres not enough information here to give you an objective answer.
    Regards
    Juan

  • Connectivity between ABAP and Java Stacks for BI

    Dear all,
    our BI developer have to use BW Analyser for showing and changing of BW reports in Java based NetWeaver Portal.
    Initially just ABAP stack (SID DCE) was installed. In Februar 2014 I installed also an Java Stack (SID JCE) and got dokumentation for
    connection to ABAP Stack from SAP Support, it is attached. Further help from SAP Support is not possible, they mean that this
    case belong to consultion issues.
    Follow activities were sucessfully done:
    1. RFC connection DMSAPERP4DEV_PORTAL_JCE was created in J2EE engine
    2. RFC connection DMSAPERP4DEV_PORTAL_JCE was created for Portal
    3. Portal Server Settings were maintained for portal
    4. Singe Sign-In in BI was maintained
    5. BI Certificate was imported from BI
    6. Portal Certificae was exported from Portal
    7. Portal Certificate was imported into BI.
    By processing of attached SAP guide it was a problem at step 7 "Create BI System in the Portal"with the
    creatig of BW system name. Under "System Administration -> System Configuration -> System Landscape"
    I found no systems which are maintained with the Portal Content Studio. I take a template "SAP_R3_Dedicated"
    but can not change the system name to "SAP_BW", it is still "Dedicated Application Server for R/3 System". All other
    properties was set fine.
    At step 8 of mentioned guide I face the next problem - there is no system names under "SAP Reference System"
    under "Administration -> System Configuration -> Configuration for User Management", because the system
    name on the step 7 could be not set correct, so I can not choose any.
    Please advice how to proceed here.
    Thank you and best regards
    Stan Oberberger
    Technical Consultant

    Hi,
    It clearly says the problem is with virtual memory. SO you need to change your virtual memory settings using configtool.
    See the relevant note.940893
    Make changes in the VM parameters for Bootstarp, Dispatched and the server nodes. Your -Xms should be less than equal to -Xmx.
    Restart the cluster then.
    It should work.
    Do reward good points.

  • Abap+java  OR java only  for EP6.0

    abap+java  OR java only  for EP6.0

    Hi charles,
    you question is not clear.
    If I correctly understood you are you asking the skills required to work on EP6.0?
    If it is so I cam more java skills required and if you want to develop customized iview you may require bit of ABAP too.
    Hope it helps.
    Regards,
    B.Guru Subramaian

  • Need java 8 for OS X for applications like PS5 to work

    need java 8 for OS X for applications like PS5 to work

    You need to go to Oracle's Java website.

  • Need I the JAVA Addin for Web dynpro ABAP

    Hello Experts,
    have I to install the JAVA-Addin for using Web dynpro ABAP?
    Best regards
    Heike

    No you don't, but when you want to use your application in Portal, you. Or if you want to use Adobe Interactive Forms, than too you need java.

  • Built-in for D2K like Java TAPI

    Hi,
    Is there any built-in for D2K like Java TAPI to track telephone
    call.
    Take care,
    Tarek

    Hi
    Please  refer below  Google  drive, where  I have very good PDF  -good for beginners and experts. If not able to access, let me know Email
    https://drive.google.com/?tab=wo&authuser=0#my-drive

  • Need java plugin for thin client like HP compaq t 5000

    Hello everybody,
    I need to know if there any java plugin for Internet Explorer on windows CE.net on a thin clinet like HP compaq t5000, my problem is that i have an oracle form that access to oracle databse, on the client i have thin client HP compaq t5000, oracle support told me to post my problem in java forums since there's no jinitiator support for windows ce.net, as the oracle forms is based on java applet, so it could be a solution if i can find a java plugin for windows ce.net on my thin client like that i can see the oracle form.........................
    please can anyone help me with a link where i can download a java plugin for windows ce.net and how to install it on such operating system...................
    Thank you in advance

    hello again, thank you for ur response, but please can u help me with how i can install the Creme jvm that support applets on the hp compaq t5000 under windows ce.net, because actually i don't have any idea on how we install software on such machine, coz it seems the isntallation on them it different than the normal windows xp...... i download the demo creme jvm zip file and i 'm not able to install it, if it is possible can u provide me with step by step instruction, just need to test my application on the demo version first, thank u in advance.....

  • Reflection like mechanism in ABAP?

    Hello Experts,
    I'm looking for a mechanism in ABAP which will allow me to create an instance of a class which is known only at runtime, much like the reflection mechanism in Java.
    The reason I need this is that I'm writing a generic code for a factory method which needs to instantiate a concrete class which is known only at runtime, and could be possibly extended later on.
    So far the only thing that comes close is the statement
    CREATE OBJECT oref TYPE classname.
    The problem is that when using this statement "classname" should be an existing class. In the solution I'm looking for, "classname" is known only at runtime, and may not exist in the specific landscape (in which case I'd like to get an exception that the class does not exist).
    Thanks in advance for your help,
    Idan

    Looking for something like this:
    DATA: gv_classname TYPE seoclsname.
    DATA: gob_object TYPE REF TO object.
    DATA: gr_error TYPE REF TO cx_dynamic_check.
    DATA: gv_message TYPE string.
    gv_classname = 'CL_GUI_ALV_GRID'.
    TRY .
        CREATE OBJECT gob_object TYPE (gv_classname).
      CATCH cx_sy_create_object_error INTO gr_error.
        gv_message = gr_error->get_text( ).
        WRITE :/1 gv_message.
      CATCH cx_sy_dyn_call_param_missing INTO gr_error.
        gv_message = gr_error->get_text( ).
        WRITE :/1 gv_message.
    ENDTRY.
    The problem would be to determine, like in this case, the obligatory parameters upon creating the object.

Maybe you are looking for