How to get abapName property of model classes in program

Hi, all.
  i'm using NW2004s SP10 WDJ.
  As you know, when we import the models(aRFC model) into NWDS, we
can see abapName(which indicates BAPI or RFM name), defaultScope,
isExecutable... properties from property view of each model node.
  How can i get this abapName property in program? i tried to get these values
using ICMIModelClass or related ones, but i couldn't find the above value.
  Best Regards. 
  Sejoon

Sejoon,
What is your task?
I understand that you want to get ABAP name from Java name but for what? RFC? Structure? Field?
Actually, all Java names are mangled from ABAP names, so sometimes it's possible to restore them back via simple algorithm. Sometimes, but not always -- names like /A/B is valid in ABAP, but after they are transformed into AB in Java there is more then one way to convert them back, i.e. process in unpredictable.
Btw, for field/structure name you may try com.sap.tc.webdynpro.services.api.WDUtil class.
Valery Silaev
SaM Solutions
http://www.sam-solutions.net

Similar Messages

  • How to get DocSet property values in a SharePoint library into a CSV file using Powershell

    Hi,
    How to get DocSet property values in a SharePoint library into a CSV file using Powershell?
    Any help would be greatly appreciated.
    Thank you.
    AA.

    Hi AOK,
    Would you please post your current script and the issue for more effcient support.
    In addition, to manage document set in sharepoint please refer to this script to start:
    ### Load SharePoint SnapIn
    2.if ((Get-PSSnapin "Microsoft.SharePoint.PowerShell" -ErrorAction SilentlyContinue) -eq $null)
    3.{
    4. Add-PSSnapin Microsoft.SharePoint.PowerShell
    5.}
    6.### Load SharePoint Object Model
    7.[System.Reflection.Assembly]::LoadWithPartialName(“Microsoft.SharePoint”)
    8.
    9.### Get web and list
    10.$web = Get-SPWeb http://myweb
    11.$list = $web.Lists["List with Document Sets"]
    12.
    13.### Get Document Set Content Type from list
    14.$cType = $list.ContentTypes["Document Set Content Type Name"]
    15.
    16.### Create Document Set Properties Hashtable
    17.[Hashtable]$docsetProperties = @{"DocumentSetDescription"="A Document Set"}
    18.$docsetProperties = @{"CustomColumn1"="Value 1"}
    19.$docsetProperties = @{"CustomColum2"="Value2"}
    20. ### Add all your Columns for your Document Set
    21.
    22.### Create new Document Set
    23.$newDocumentSet = [Microsoft.Office.DocumentManagement.DocumentSets.DocumentSet]::Create($list.RootFolder,"Document Set Title",$cType.Id,$docsetProperties)
    24.$web.Dispose()
    http://www.letssharepoint.com/2011/06/document-sets-und-powershell.html
    If there is anything else regarding this issue, please feel free to post back.
    Best Regards,
    Anna Wang
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • How to get the source code of Java Concurrent Program?

    Hi,
    How to get the source code of Java Concurrent Program?
    Example
    Programe Name:Format Payment Instructions
    Executable:Format Payment Instructions
    Execution File Name:FDExtractAndFormatting
    Execution File Path:oracle.apps.iby.scheduler
    Thanks in advance,
    Senthil

    Go on Unix box at $JAVA_TOP/oracle/apps/iby/scheduler
    You will get class file FDExtractAndFormatting.
    Decompile it to get source code.
    Thanks, Avaneesh

  • How to get all property names and values of an bean instance at runtime?

    How can I get all property names and values of an bean instance at runtime?
    (The class of the bean instance is dynamic and I can not know before I write the code .)

    Look at Class. It has a way to get at all public methods and attributes.
    If you need to get to private attributes you can do what the Introspector does and expect the methods to follow the Bean pattern and pull the attributes out based upon that. Privates are all hidden from direct access but through the Bean Pattern they can be figured out.

  • How to get charEncoding property and set it to a perticular encoding?

    hi all,
    i would like to know
    1)how to get browser encoding property
    2) if the encoding is Western European(ISO) how can we change to arabic
    windows.
    i think i have to use like below
    request.getCharacterEncoding();
    request.setCharacterEncoding();
    but i dont have any idea what is charencoding for Western European(ISO) and arabic windows.
    Am i in the right direction.
    waiting for a valid solution.

    those are the methods, but you can't use getCharacterEncoding(), actually, cuz it seems it's not necessarily filled in.. or at least that might be on some servers only, like Tomcat 4. As for encodings, you need to do a search for character encoding names and use the appropriate one.

  • How to get OIDs of indexes for class-map ?

    I have policy-map configured on cisco router with some class-maps inside. I need to draw a graph traffic passing through these classes. To make a graphs I use Cacti  which use SNMP query to draw the graphs (object name cbQosObjectsIndex).
    How to get OIDs of class-map indexes ?
    I tried to do this by following query:
    #snmpwalk -c community_string -v 2c 192.168.0.252 1.3.6.1.4.1.9.9.166.1.5.1.1.1
    but the answer was:
    iso.3.6.1.4.1.9.9.166.1.5.1.1.1 = No Such Object available on this agent at this OID
    The information i need is contained at the OID 1.3.6.1.4.1.9.9.166.1.15.1.1.7:
    # snmpwalk -c community_string -v 2c 192.168.0.252 1.3.6.1.4.1.9.9.166.1.15.1.1.7
    iso.3.6.1.4.1.9.9.166.1.15.1.1.7.1251.1277 = Gauge32: 0
    iso.3.6.1.4.1.9.9.166.1.15.1.1.7.1251.13363 = Gauge32: 0
    iso.3.6.1.4.1.9.9.166.1.15.1.1.7.1251.13383 = Gauge32: 0
    iso.3.6.1.4.1.9.9.166.1.15.1.1.7.1251.13435 = Gauge32: 734000
    iso.3.6.1.4.1.9.9.166.1.15.1.1.7.1251.13481 = Gauge32: 233000

    Because 192.168.0.252 1.3.6.1.4.1.9.9.166.1.5.1.1.1 is marked "non-accessible" according to http://tools.cisco.com/Support/SNMP/do/BrowseOID.do?local=en&translate=Translate&objectInput=cbQosObjectsIndex
    You'll need to obtain the indices as explained in this blog post:
    http://pierky.wordpress.com/2009/04/09/cisco-class-based-qos-snmp-mib-and-statistics-monitor-for-nms/
    Joe wrote a very illustrative post on the subject of snmptables: https://supportforums.cisco.com/message/3051004#3051004
    And if your IOS supports it, you would want to configure the following to keep the indices from changing after every reboot or OIR:
    "snmp mib persist cbqos"

  • af:chooseDate - how to get selected month in java class

    <af:chooseDate id="choose_date_ID"
    binding="#{EventsBackingBean.choose_date_ID}">
    </af:chooseDate>
    in adf ,how to get the selected month value in the component.
    and if we change the the month from the drop down,then again new value should be reflected in java class.

    Hi Hoque,
    As per the documentation of af:choose at http://download.oracle.com/docs/cd/E12839_01/apirefs.1111/e12419/tagdoc/af_chooseDate.html
    "In order to indicate that a particular inputDate should be updated in response to chooseDate selection changes, the the inputDate's "chooseId" attribute must be set to the id of the associated chooseDate component.ts mentioned that the the af:choose "
    So, i believe that if you can create a binding to the af:inputDate component in your backing bean, you can extract the newly selected date in a ValueChangedListener using the getValue() function on the bound component.
    private RichInputDate chooseDateInput;
        public void setChooseDateInput(RichInputDate chooseDateInput) {
            this.chooseDateInput = chooseDateInput;
        public RichInputDate getChooseDateInput() {
            return chooseDateInput;
        public void chooseDateInput(ValueChangeEvent valueChangeEvent) {
          Date selectedDate = (Date)chooseDateInput.getValue();
        }Regards,
    Ryan

  • How to get the universe metadata information (class , tables...)  through JSP coding ?

    Hi,
         I am new to BO. I am developing tool which will extract the metadat information of report and universe using JSP (java ) in BO XI R2 . My problem is how to get universe metadata ? i listed the universe name by quering the CI_APPOBJECTS table. i couldn't get other information (Class and objects in the universe ).. I need the advice or idea or code to complete work... Please help to resolve my problem..
    Thanks Advance

    There's three ways to get the Universe Class/Object info:
    1. Use the Universe Designer SDK.  This is COM-based, so you'd write VBScript, VBA or VB6 code.
    2. Use the ReportEngine Java (REBean) API.  Programmatically create a Web Intelligence document, specify the Universe as DataProvider, then get the DataSource, which holds the Classes/Objects hierarchy.
    3. Use the QueryService Service in the BusinessObjects Web Service (via Java or .NET Consumer API) to do something similar to 2.
    Sincerely,
    Ted Ueda

  • How to get the name of a class invoking

    Can a method get the name of the class invoking it?
    As:
    public void myMethod(){
       System.out.println("the name of the class invoking this method is: " + XXXXX);
    }Edited by: Maria1990 on Aug 17, 2010 8:46 AM

    Maria1990 wrote:
    .getStackTrace() gives me an array with the all details.Or, if you only care about the class, ask a SecurityManager.
    public final class ClassUtils {
        public static final Class[] getClassContext() {
            return new SecurityManager() {
                protected Class[] getClassContext(){return super.getClassContext();}
            }.getClassContext();
        private ClassUtils() {};
        public static final Class getCallingClass() { return getClassContext()[2];}
    }

  • How to get the text elements for a particular program

    Hi All,
    I want to get the all text elements , selection texts for a particular program...How to get.
    I have used one FM READ_TEXTELEMENT_FROM_REPORT , but not much useful..
    please help me..
    Regards,
    raj

    Hi..
    You may use this statement to read the text elements:
    DATA: i_reptx  TYPE STANDARD TABLE OF textpool   WITH HEADER LINE.
    READ TEXTPOOL (reports) INTO i_reptx. " reports is the report name.
    Best Regards,
    Pradeep.

  • How to get select-options type fields in module programming

    i need to get ranges type of fields ( like we use select-options in reports) in module prgrming..im only gettin single entry field (like we use in paramenters)...how to get it like this
    field1  ___  to  ___    ->
    field2  ___  to  ___    ->
    Thanx,
    Naveen Vishal

    Hi,
    report zrich_0006 .
    tables: mara.
    Custom Selection Screen 1010
    selection-screen begin of screen 1010 as subscreen.
    selection-screen begin of block b1 with frame title text-001.
    parameters: p_rad1 radiobutton group grp1 default 'X',
    p_rad2 radiobutton group grp1,
    p_rad3 radiobutton group grp1.
    select-options: s_matnr for mara-matnr,
    s_matkl for mara-matkl,
    s_mtart for mara-mtart.
    selection-screen end of block b1.
    selection-screen end of screen 1010.
    start-of-selection.
    call screen 100.
    *& Module STATUS_0100 OUTPUT
    module status_0100 output.
    SET PF-STATUS 'xxxxxxxx'.
    SET TITLEBAR 'xxx'.
    endmodule.
    *& Module USER_COMMAND_0100 INPUT
    module user_command_0100 input.
    endmodule.
    Create Screen 100 with a subscreen area called "subscreen_1010"
    Screen Flow Logic follows
    *process before output.
    module status_0100.
    call subscreen subscreen_1010 including sy-repid '1010'.
    *process after input.
    call subscreen subscreen_1010 .
    module user_command_0100.

  • How to get the Title and Tcode of a Program during run time

    Hello,
    I am new to abap and I have this question please. Is the a way to get the title, Tcode and Author of a program during run time? I would like to get the name and title of a program or a view or an include during run time.
    Using table TADIR, you can only get the object_name and the author. Is the a way for me to get the Title of the repository object and any Tcode if any is available for the case of a program?
    I loop forward for your respond.
    Thank you.
    Sabina

    You can get it by accessing SYST.
    SY-TITLE for Title
    SY-TCODE for Tcode
    I don't think there is any field in SYST for the Author.
    To get the author name you can use the TRDIR table.
    Regards,
    Naimesh Patel

  • How to get the property name of a srop down menu in the Actiion Class

    Hi All!
    I am trying to build two drop down menu in the jsp!When the page first loads the first menu is populated with the data from the database.Depending on the choise made in the first menu the second gets populated!
    As of now I am using these codes!
    The JSP contains:
    function getCorrespondingSkills(obj)
              document.forms[0].target="_self";          
              document.forms[0].action='<%=request.getContextPath()%>/jsp/resume/Skill.do?method=getSkillsList&technologyId='+obj.value+'&selectedField='+obj.property;
              document.forms[0].submit();
         function submitTechSkills(obj)
              document.forms[0].target="_self";
              document.forms[0].action='<%=request.getContextPath()%>/jsp/resume/Skill.do?method=getSkillsValue&skillId='+obj.value;
              //document.forms[0].submit();
    <td class="brdrInput">
                                                            <%--<html:select name="SkillsForm" property="technologies1" onchange='getCorrespondingSkills(this)'>--%>
                                                            <html:select name="SkillsForm" property="technologies1"onchange='getCorrespondingSkills(this)'>
                                                                 <html:optionsCollection  property="technologyList" value="technologyId" label="technology" />
                                                                </html:select>
                                                            </td>
                                                                  <td class="brdrInput">
                                                                  <html:select name="SkillsForm" property="skills1"onchange='submitTechSkills(this)' >
                                                            <html:optionsCollection  property="skillList" value="skillId" label="skill" />
                                                                </html:select>
                                                            </td>The action class is something like this:
    public ActionForward unspecified(ActionMapping mapping, ActionForm form,
                             HttpServletRequest request, HttpServletResponse response)
                        HttpSession session=request.getSession();
                        String str=(String)session.getAttribute("employeeId");
                        System.out.println("this is the employeeId"+str);
                        SkillsForm formObject=(SkillsForm)form;
                        List technologyList;
                        technologyList=(List)TechnologyDelegate.getTechnologyFromDB();
                        for (Iterator iter = technologyList.iterator(); iter.hasNext();) {
                             Technology tech= (Technology) iter.next();
                             System.out.println("Technology"+tech.getTechnology());
                             System.out.println("TechnologyId"+tech.getTechnologyId());
                        formObject.setTechnologyList(technologyList);
                        //Populate a Skills drop menu corresponding to the first technologyId
                        int var=1;
                        Integer var1=new Integer(var);
                        List skillsList;
                        skillsList=(List)SkillsDelegate.getSkillFromDB(var1);               
                        formObject.setSkillList(skillsList);
                        System.out.println("associated Skills"+formObject.getSkillList().size());
                        System.out.println("=============>");
                        session.setAttribute("employeeId",str);
                        return mapping.findForward("skillsPopulation");
                   public ActionForward getSkillsList(ActionMapping mapping, ActionForm form,
                             HttpServletRequest request, HttpServletResponse response)
                        HttpSession session=request.getSession();                    
                        SkillsForm formObject=(SkillsForm)form;
                        List technologyList;
                        technologyList=(List)TechnologyDelegate.getTechnologyFromDB();
                        for (Iterator iter = technologyList.iterator(); iter.hasNext();) {
                             Technology tech= (Technology) iter.next();
                             System.out.println("Technology"+tech.getTechnology());
                             System.out.println("TechnologyId"+tech.getTechnologyId());
                        formObject.setTechnologyList(technologyList);                    
                        Integer techId=new Integer(formObject.getTechnologyId());                    
                        String technologyId=formObject.getTechnologyId();                    
                        List skillsList;
                        skillsList=(List)SkillsDelegate.getSkillFromDB(techId);
                        //All the skillList being set along with the one that has to be!                    
                        formObject.setSkillList(skillsList);
                        //the SkillLsit that is being used to populate the drop down is being reset
                        //every time a new technology is set!
                        //to overcome this we need to define seperate SkillList for each row!
                        List var=formObject.getSkillList();
                        for (Iterator iter = var.iterator(); iter.hasNext();)
                             Skills vari= (Skills) iter.next();
                             System.out.println("SKILLS IDSFASDFGAGFG "+vari.getSkillId());
                        System.out.println("skillsList"+skillsList.size());
                        System.out.println("associated Skills"+formObject.getSkillList().size());
                        session.setAttribute("employeeId",session.getAttribute("employeeId"));
                        session.setAttribute("technologyList",technologyList);
                        session.setAttribute("technologyId",technologyId);
                        System.out.println("TECHNOLOGY ID"+technologyId);
                        System.out.println("TECHNOLOGY ID"+techId);
                        return mapping.findForward("refreshAgain");
                   }* The first function id used to populate the form with the first technology in the databse and its corresponding skills! The second function fetches the skills wrt the selected technology!
    My prob is that when ever I change the technology in the dropdown My all skills menu gets populated with the skills associated with the selected technology!
    I have 5 rows of such tech and skills columns! And the prob is that if I select tech inthe 2nd row then all the skills rows gets changed! all I want is that the 2nd row only be populated!
    Is there a way in which I can know in my action class ,'which row has been selected'.
    I am a newbie to Java and am just learning things!
    Pls do help! I am desperate!!!!!!!1

    So far as I'm aware, you can't get metadata information about the underlying tables in a query from Oracle and/or the Oracle drivers. I suspect, in fact, that the driver would have to have its own SQL parser to get this sort of information.
    I'm curious though-- how do you have application logic that depends on the name of the source table but not know in the application what table is involved? Could you do something "cheesy" like
    SELECT 'tbl_customerRegistration' AS tbl1_name,
           tbl_customerRegistration.*
    ...Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • How to get array values from one class to another

    Supposing i have:
    - a class for the main()
    - another for the superclass
    And i want to create a subclass that does some function on an array object of the the superclass, how can i do so from this new subclass while keeping the original element values?
    Note: The values in the array are randomly generated integers, and it is this which is causing my mind in failing to comprehend a solution.
    Any ideas?

    If the array is declared as protected or public in the superclass you can directly access it using its identifier. If not, maybe the superclass can expose the array via some getter method.
    If this functionality can be generified (or is generic enough) to apply to all subclasses of the superclass the method should be moved to the superclass to avoid having to reproduce it in all the subclasses.

  • How to get the name of the class which is currently in use

    Hi all,
    I have two classes Mother and Child, and I use this code to print the name of the class in use
      DATA m TYPE REF TO zmother.
      DATA class_name type string VALUE 'CHILD'.
      CREATE OBJECT m TYPE (class_name).
      CALL METHOD m->PrintName .
    So, what is the source code that I have to put in the PrintName methode?
    Thanks.

    Ok, but how can I get the name of the object class that calls the methode!
    REPORT  ztest_method.
    *       CLASS c1 DEFINITION
    CLASS c1 DEFINITION.
      PUBLIC SECTION.
        METHODS: get_data.
    ENDCLASS.                    "c1 DEFINITION
    *       CLASS c1 IMPLEMENTATION
    CLASS c1 IMPLEMENTATION.
      METHOD get_data.
    ****** What is the code to put here to know the name of this Class?*
      ENDMETHOD.                    "get_data
    ENDCLASS.                    "c1 IMPLEMENTATION
    DATA oref TYPE REF TO object.
    DATA: method TYPE string.
    DATA: cla_name(20).
    START-OF-SELECTION.
      cla_name = 'C1'.
      CREATE OBJECT oref TYPE (cla_name).
      BREAK-POINT.
      CALL METHOD oref->(method).

Maybe you are looking for

  • Adobe native control panel does not appear in system preferences

    I have flash 10,3,181,34 installed on my mac running osx lion. As other people i have trouble with flash and lion. However i also have problems with the "fix". I cannot see the native control panel when i open system preferences. it is not in the "ot

  • Purchase order for a line item

    Hi Guys,              I have got the following business sceanrio. I have got a material "A" which can get from locally or can get from 3rd party also. In the sales order i have entered like following. Line item no.  Material     Qunatity     Item cat

  • D4260 Printer-Co​lour Ink not Working

    My last colour cartridge was working fine then one day it just stopped and I have flashing light, i tried getting it cleaned, troubleshotting with my computer and it still didtn work. I had to delete the driver and then reinstall it in order to get t

  • Logo outline transparent for web

    I have created a logo. I did it with black fill and white lines. This works well for a white background, like in print; but for the web the white needs to be transparent so the background colors show through and where lines cross you can see the back

  • XSLT Sort Issues

    I have an XML document that give me a list of PO lines and orders. When I get the PIX message I want to sort it by PO number and then PO Line. For some reason my syntax below isn't working. I need to sort by Reference2 then Reference4. I tried to jus