Retrieving hierarchy fields from MDM to SAP R/3 using MDM ABAP API's

Hi all,
I have developed a code to retrieve fields from MDM to SAP R/3 using MDM ABAP API's, i could retrieve   all of the fields excluding the Lookup[Hierarchy] fields like-  FACILITY CODE  etc...
please update me if anyone has any experience on this.
Thanks and regards,
Aastha Mehrotra

Hi ,
Any one worked in the MDM API to retrieve Hierarchy fields ???
Regards,
Arun.

Similar Messages

  • How to retrieve all fields from Entiy Bean

    Is there a simpler way to retrieve all fields from the entity bean than calling each individual get method?
    I need to retrieve the entire record not the contents of the entire table.
    Though, I may eventually need to do that also.
    I have 56 fields on this table. It does not make sense to code a get statement for every field.
    If you can direct me to sample code that would be good.
    Also, are there any good examples out there of how to create an entity bean or session bean using a local interface?
    Thanks,
    Jim

    I think you are confusing an EJB with a DAO.
    If you want to access the database why not just use JDBC?

  • How do I retrieve multiple fields from SQL?

    I am trying to retrieve multiple fields from a SQL table such as customer name, address and phone number by entering the customer # in my form either in a text field or a data drop down list.  I can get the drop downlist to populate from the table, however the other fields do not coorespond to my selection.  It appears that they are from the first record in the table regardless of which customer # I select from the drop down list.  Any assistance would be greatly appreciated.

    Hi Carol.
    Tried to follow Marks link but didn’t work.
    Try this one.
    http://blogs.adobe.com/formbuilder/2006/09/selecting_specific_database_records.html
    At the moment I am about to start on this process with my form, so if you have any tips , please pass them on.
    Raffe.

  • Passing/retrieving hidden fields from Its template(IAC)  to BSP page

    Hi i m passing hidden fields from its template to custom BSP page...but not able to retrieve the hidden field in bsp page...is there any way we can retrieve the data....is there any equivalent of request.getattribute() method which we use in jsp to fetch the hidden fields....

    <i>i m passing hidden fields from its template to custom BSP page...but not able to retrieve the hidden field in bsp page...</i>
    from ITS template how are you calling/passing parameter to BSP
    thru a form submit? or are you just openning the BSP thru a url link, in either case
    you could pass the data as a form field (post) or in the url of the BSP (GET)
    for example if the form field name in ITS template is myformfiled and you are submitting that to the BSP page then in the corresponding bsp page declare a page attribute withe same name (myformfiled) and mark the auto check box.
    now the value passed from ITS template will be available within BSP in the ABAP variable myformfiled which you can use the way you want.
    Hope this is clear
    Raja

  • Retrieve Filter Field from af:Query Component

    I'm using an af:query component on my form and have pre-definied ViewCriterias that load the page. Each ViewCriteria contains one field that is used across all of my search criterias....I need to be able to retrieve this field in my backing bean and get the value of it. I need to know what the user is searching on for this one particular field (i.e. which will always be available in the af:query. I have the queryListener pointing to a method in my backing bean...does someone have some sample code on how to access the fields used in the query and then access the value of one in particular?
    public void headerQueryListener(QueryEvent queryEvent) {
    CommonHelperFunctions.resolveMethodExpression("#{bindings.AllChangeOrdersQuery1.processQuery}",
    null, new Class[] {QueryEvent.class}, new Object[] {queryEvent});
    // What can I add here to retrieve a filter field and then retrieve it's value??
    The queryListener on my af:query component then calls this headerQueryListener in my backing bean.
    Thanks.

    I have tried the following code just messing around:
    QueryModel varQueryModel = getQueryHeader().getModel();
    List<AttributeDescriptor> attributeDescriptors = varQueryModel.getAttributes();
    AttributeDescriptor ad = attributeDescriptors.get(3);
    The attributeDescriptors has the information that I need. I can see the elements in my query and I can see that element 3 is the one I want, but it doesn't have the an _attrDef name but it does have an mAttrName and the mValues[0] mValue has the value that I'm looking for, but I'm having trouble figuring out how to access this information and retrieve what i actually need.  I'm very new to Java and ADF so sorry if this is a basic Java question, but if anyone could point me to an example or some sample code, I really appreciate it.
    Thanks in Advance.

  • Urgent Requirement : How to retrieve Description field from Info type 1002

    Hi,
    My requirement is to fetch description field from infotype 1002 which will be stored in text format.
    I think this will be stored in TTEXT table but am not able to fetch using that.
    Can anyone please help me out in this.
    Thanks in Advance,
    Sarika.

    Try out following tables
    T582ITOPERT               Infotype Operation Texts
    T582S                          Infotype Texts          
    T591S                          Subtype Texts           
    T777U                          Subtype Texts

  • How to change  XML  Structure from one form to another form using OO ABAP.

    Hi Experts,
    In my Scenario, i need to do ABAP Mapping in order to change Incoming structure from one form to another.
    My Input to ABAP Mapping (OO ABAP Program)would be :
         <A>..........</A>
         <B>..........</B>
         <C> .........</C>
         <D>..........</D>
         <E>..........</E>
         <F>..........</F>
    OO ABAP Program need to read this input and change the XML Structure into below form:
         <A>..........</A>
         <B>..........</B>
         <C> .........</C>
          <X>
                <D>..........</D>
                <E>..........</E>
          <F>...............<F>
    Please provide inputs (sample Code) to solve this issue.
    Thanks,
    Kish.
    Edited by: Kishore Reddy Thamma on Jan 22, 2008 2:51 PM
    Edited by: Kishore Reddy Thamma on Jan 22, 2008 2:52 PM

    Hi,
    Please provide sample code or Material for converting XML Structure from one form to another using OO ABAP and
    Steps for ABAP MAPPING.
    Thanks,
    Kish.

  • Replicating GR custom fields from EBP to SAP R/3

    Dear SRM Gurus,
    We are using SRM 5.0, extended classic scenario..
    We have created 3 custom fields for GR in SRM and we want to pass these custom field values to SAP R/3(4.6C). Is there any BAdI or function module to replicate these custom field values from SRM 5.0 to SAP R/3.
    Please do the needful..
    Thanks in Advance,
    Chandra Sekhar.

    Hi
    <b>Please go through the following links -></b>
    Re: Confirmation screen field to be mapped to backend field
    Re: Creating Confirmations in SRM - What is the preferred method
    Re: GRN IDOC Transfer to ERP  - MBGMCR01 ( 2 IDOCS created)
    Re: Problem to send idoc for a Good Receipt created
    GR IDOC Number
    Re: Idoc error in Goods confirmation - urgent
    Re: Delete goods confirmation in SRM3.0
    Re: SRM / MM integratuion: goods receipt
    IDOC MBGMCR01: CO Ctd-pedido exceeded by 1 UN:
    <b>Some useful SAP OSS Notes to refer -></b>
    Note 521488 - FAQ: MB_CREATE_GOODS_MOVEMENT
    Note 521427 - FAQ: IDocs for goods movements
    Note 521488 - FAQ: MB_CREATE_GOODS_MOVEMENT
    Hope this will definitely help.
    Regards
    - Atul

  • Pre-Populating Text fields from a Data drop down list using SQL Server

    I'm currently trying to update some of our internal forms which are word based or a basic PDF form you fill in by yourself.
    I'm connecting to our SQL server as there are databases stored there for an internal bit of software that hold information
    I can use to fill in parts the form.
    I have a data drop down list that is dynamically linked to the SQL databass and allows you to select a Project Number from that database, what
    I want to do after this is selected is to automatically populate some text fields with the Project name, Account handler and other fields held in the
    database.
    I've had a look online to see if there is a solution but haven't really found anythig that is similar (although I am new to LC so may have seen it
    and not realised) and my Java is non existant.
    Has anyone tried this and able to point me in the right directions?
    I'm using LiveCycle ES2 version 9.0.0.2 from Creative Suit 5.5 on Windows 7
    Cheers

    Hi,
    Actually this error does not cause any harm except a presentation inconvenience. In my multi-select prompt I am using variable expression with dynamic repository variable. Dashboard results are correct. Just variable's value does not appear on page (error Error Codes: G689FFB3:SDKE4UTF
    Expression: @{biServer.variables['CUR_CAL_PER_MONTH_NAME']}). Pushing "GO" button on the prompt fixing the error but it's actually second execution of the dashboard.
    Any ideas ??

  • ABAP API to store DATE value in MDM 5.5

    Hello All,
    Currently I am working on MDM 5.5 and need to have some suggestions on ABAP API Function module to store date values in MDM.
    We have interface from where we take the user input which updates the field value back in the MDM.
    On the basis of similar scenario we have "DATE" field on the interface which will update the date and time in MDM, also we are making use of ABAP API for development.
    The problem is that data type mismatch is happening between MDM and ABAP API,please let me know which ABAP API Function module should we use which simply accepts the DATE and TIME for every single record.
    Source code provided will be much more appreciable.
    Regards,
    Swapnil

    Hi Swapnil.
    In the same link provided by Sudhanshu, can you navigate to the node "Retrieving Complex Types".
    It has sample codes and MDM interfaces for TimeStamp, Time Stamp, User Stamp, Literal Date, Literal Time etc.
    As suggested, you can also try to use the type MDM_CDT_DATE_TIME.
    See the sample code provided in the link as below:
    Type: MDM Literal date:
        CLEAR lv_date.
        CONVERT TIME STAMP ls_result_ddic_ex-fieldliteraldate-content TIME ZONE sy-zonlo INTO DATE lv_date.
        WRITE: AT (10) lv_date, '|'.
      Type: MDM Literal time:
        CLEAR lv_time.
        CONVERT TIME STAMP ls_result_ddic_ex-fieldliteraltime-content TIME ZONE sy-zonlo INTO TIME lv_time.
        WRITE: AT (10) lv_time, '|'.
    Regards
    Bala

  • ABAP API  MDM  vs Standard MDM !!!

    Maybe the expression that I am using is not the best one and hope that someone can give me any clarifications.
    What I am intending is to know:
    1)     If using ABAP API is the best way to implement MDM purposes or if he’s an alternative to implement MDM using ABAP API?
    2)     In the proof of concept that I am implementing, I only use the principal components of MDM (Import, Data Manager, Syndicator and Console) in order to find the solution of our enterprise business.
    3)     Using ABAP API, I have to use programming method, implement by myself some functionalities in ABAP to connect and resolve my MDM purposes.
    4)     If am not using ABAP API (The way that I am proceeding right now) , I have to use the standard software component (enterprises services ) of the  R3 Systems in order to connect MDM with client systems.
    Thanks guy for your assistance. We just want to know the best way to proceed with MDM .

    The best method for implementing MDM depends on the requirements of each scenario.  For example, if you have a program in R/3 that needs to pull some data from MDM for analysis then perhaps using the ABAP API would be the best route to take.  If you need to transfer materials or vendors from MDM to various R/3 systems, perhaps using XI would be the best route to take.  I would recommend looking at the <a href="https://websmp106.sap-ag.de/~sapidb/011000358700004656452006E">IT Scenario Configuration Guide</a> to get a better understanding of SAP's recommended practices given different scenarios

  • How to get only custom fields from a SharePoint 2010 list?

    I am working with the Client Side Object Model. In a console application I am retrieving all fields from a custom list. The problem is the Clientcontext fetches me a bunch of internal fields I do not want to be included. Also this causes some of the fields
    to appear more than once.
    string siteURL = "http:XYZ";
    ClientContext context = new ClientContext(siteURL);
    Web oWebSite = context.Web;
    context.Load(oWebSite);
    context.ExecuteQuery();
    //Get the list by title
    List produktKatalogListe = spLists.GetByTitle("Produktkatalog");
    CamlQuery camlQuery = new CamlQuery();
    camlQuery.ViewXml = "<View/>";
    ListItemCollection listItems = produktKatalogListe.GetItems(camlQuery);
    context.Load(produktKatalogListe);
    context.Load(listItems);
    context.Load(produktKatalogListe.Fields);
    context.ExecuteQuery();
    foreach(Field field in produktKatalogListe.Fields)
    Console.WriteLine("{0} - {1} - {2} - {3} - {4}",field.Title,field.InternalName,field.Hidden,field.CanBeDeleted,field.FieldTypeKind);
    Is there a way to print only custom fields? This would mean omitting fields like
    internalID, GUID...
    I tried the following:
    if(!field.Hidden)
    Console.WriteLine("{0} - {1} - {2} - {3} - {4}",field.Title,field.InternalName,field.Hidden,field.CanBeDeleted,field.FieldTypeKind);
    Unfortunately this not only does not solve the issue but is also not a very good solution for the case I do want to display custom but hidden fields.
    Algorithmen und Datenstrukturen in C#:
    TechNet Wiki

    The following approach seems to solve the issue. Instead for checking if the field is not
    Hidden I checked whether it is not FromBaseType.
    if(!field.FromBaseType)
    Console.WriteLine("{0} - {1} - {2} - {3} - {4}",field.Title,field.InternalName,field.Hidden,field.CanBeDeleted,field.FieldTypeKind);
    Algorithmen und Datenstrukturen in C#:
    TechNet Wiki

  • How to access the SAP MDM destinations using mdm java api in 7.1

    hi,
    I have SAP MDM 7.1 SP11 and SAP Portal 7.3 and developing the custom webdynpro application using the  JAVA MDM API. I want configure the SAP MDM destinations in SAP Portal .
    How to access the MDM destinations in java code using API? and how to create the connection with MDM using the MDM destinations.
    Please provide the code for access the SAP MDM destinations in java code using MDM java api and creating the connection to MDM.
    Thanks

    Jun,
    Thanks for the reply and api information.
    I have got this api information from the following sap documentation. But i am looking for the code by implementing this class and creating the mdm connection.
    Creating an MDM Connection Using Java Code - SAP NetWeaver Master Data Management (MDM) - SAP Library
    if any thing can you share it.
    Thanks

  • 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

  • Retreiving and setting fields from pdf

    Hi Everyone,
    I hope that you may be able to help. I'm working on putting together an extention to my program to allow users to load a pdf file from a database, and also save what the user has entered into the pdf, into a database. I started out using the ActiveView sample app and have gotten it to load a seleted pdf into my app. I am currently trying to get the fields from the pdf. I am using the FormsAutomation sample as a reference. Here is some code :
    This funtion is used to open the pdf (just like in the ActiveView sample)
        Public Sub OpenChartFile(ByRef Filename As String, PatientId As String, ChartId As Integer, isNew As Boolean )
            Dim ok As Integer
            Dim fIndex As Short
            ' change mousepointer to an hourglass
            System.Windows.Forms.Cursor.Current = System.Windows.Forms.Cursors.WaitCursor
            ' change form's caption and display new text
            fIndex = FindFreeIndex()
            Document(fIndex) = New frmPDFView
            Document(fIndex).PatientId = PatientId
            Document(fIndex).ChartFileId = ChartId
            Document(fIndex).ChartFileName = Filename
            Document(fIndex).isNew = isNew
            Document(fIndex).Tag = fIndex
            Document(fIndex).Show()
            Document(fIndex).Text = UCase(Filename)
            Document(fIndex).MdiParent = gShell
            ' open the selected file
            AcroExchAVDoc(fIndex) = CreateObject("AcroExch.AVDoc")
            ok = AcroExchAVDoc(fIndex).OpenInWindowEx(Filename, Document(fIndex).Handle.ToInt32, AV_DOC_VIEW, True, 0, PDUseBookmarks, AVZoomFitWidth, 0, 0, 0)
            ' See IAC.bas and the Acrobat Viewer IAC Overview for information on the
            ' OpenInWindowEx open modes
            If Not ok Then
                MsgBox("Can't open file: " + Filename)
                Document(fIndex).Close()
                System.Windows.Forms.Cursor.Current = System.Windows.Forms.Cursors.Default
                Exit Sub
            End If
            FState(fIndex).Dirty = False
            Document(fIndex).Show()
            Document(fIndex).FillChart() 'Used to fill the pdf from the DB
            ' reset mouse pointer
            System.Windows.Forms.Cursor.Current = System.Windows.Forms.Cursors.Default
        End Sub
    Here is were I try and get the fields which is located in the PDFView form
        Public Sub FillChart()
            If Not pisNew then
                formApp = CreateObject("AFormAut.App")
                acroForm = formApp.Fields  '<-----******Errors here, "No document is currently open in the Acrobat Viewer"
                FillChartData( pPatientId,acroForm,pChartFileId, Me.tag )
            End If
        End Sub
    Here is where I plan to fill the pdf file (Located in a module file): I
    Public Sub FillChartData(PatientId As string, acroForm As AFORMAUTLib.Fields, ChartFileId As Integer, FormIndex As integer )
        Dim field As AFORMAUTLib.Field
    Try
        field = acroForm.Item("PatientName")
    Catch ex As Exception
        MsgBox(ex.Message, MsgBoxStyle.Critical, "ModChartSupport.FillChartData")
    End Try
    End Sub
    Is it possible to get the list of fields in the current setup using the ActiveView forms? If so, what am I missing? In the FormAutomation sample it seems to get the fields this way:
            avDoc = CreateObject("AcroExch.AVDoc")
            Dim file As String = System.Windows.Forms.Application.StartupPath & "\..\..\..\..\TestFiles\FormsAutomation.pdf"
            bOK = avDoc.Open(file, "Forms Automation Demo")
            'If everything was OK opening the PDF, we now instantiate the Forms Automation object.
            If (bOK) Then
                formApp = CreateObject("AFormAut.App")
                acroForm = formApp.Fields
            Else
                System.Runtime.InteropServices.Marshal.ReleaseComObject(avDoc)
                avDoc = Nothing
                MsgBox("Failed to open PDF Document. Aborting...")
                End
            End If
    The OpenChartFile function has already created the avDoc object for the form, so I think I'm alright there. What am I missing? Thanks for any help you can provide.

    So let's say you have the following fields in your file:
    Incident_Report
    ClientsName
    Date
    You can then add this code to the file's WillSave action (under Tools - JavaScript - Set Document Actions):
    var newFileName = this.getField("Incident_Report").valueAsString + "_" + this.getField("ClientsName").valueAsString + "_" + this.getField("Date").valueAsString + ".pdf";
    app.response("Please copy the text below and use it as the new file-name:","", newFileName)
    Of course, you can adjust the message to the user, and even the format of the file-name, although I've used the format you specified.

Maybe you are looking for