MDM ABAP API query to pass the date range

Hi
I want to retrieve certain data from MDM repository based on filter criteria by date stamp.
Not sure how to do it to pass the select option value in the query.
select-options: s_cdate for sy-datum obligatory .
DATA  wa_query     TYPE mdm_query.
DATA: v_search_date1    TYPE MDM_CDT_DATE_TIME.
data: v_datestamplow1   type string.
data: v_datestamplow    type TZNTSTMPL.
concatenate s_cdate-low '000000' into v_datestamplow1
v_datestamplow  = v_datestamplow1.
clear wa_query.
    wa_query-parameter_code = 'Changed_On '.             "Field code ( Field name )
    wa_query-operator = 'EQ'.
    wa_query-dimension_type = mdmif_search_dim_field.    "Field search
    wa_query-constraint_type = MDMIF_SEARCH_CONSTR_DATE. "Date  serach
I am able to get the data when I just pass the low value from selecct option.  But I dont how  to pass the date range.
   v_search_date1-CONTENT = v_datestamplow.
    ET REFERENCE OF v_search_date1 INTO wa_query-value_low.
    APPEND wa_query TO gt_query.
  CALL METHOD cl_api->mo_core_service->query
      EXPORTING
        iv_object_type_code = 'Vendors'
        it_query            = gt_query
      IMPORTING
        et_result_set       = gt_result.
II could see the below operator types . Although EQ says "Like standard select-options parameter" not sure how to pass the value.
EQ     Equal to (like standard select-options parameter)
NE     Not equal to (like standard select-options parameter)
LT     Less than (like standard select-options parameter)
LE     Less than or equal to (like standard s-o parameter)
GT     Greater than (like standard select-options parameter)
GE     Greater than or equal to (like standard s-o parameter
SW     Starts with (MDM specific parameter)
Thanks,
Krishna.

Hi,
To get the date range for select options, pass the low value with 'GE' operator and another query option with 'LE' operator for high value.
select-options: s_cdate for sy-datum obligatory .
DATA wa_query TYPE mdm_query.
DATA: v_search_date1 TYPE MDM_CDT_DATE_TIME.
data: v_datestamplow1 type string.
data: v_datestamplow type TZNTSTMPL.
concatenate s_cdate-low '000000' into v_datestamplow1
v_datestamplow = v_datestamplow1.
clear wa_query.
wa_query-parameter_code = 'Changed_On '. "Field code ( Field name )
wa_query-operator = 'GE'.
wa_query-dimension_type = mdmif_search_dim_field. "Field search
wa_query-constraint_type = MDMIF_SEARCH_CONSTR_DATE. "Date serach
GET REFERENCE OF v_search_date1 INTO wa_query-value_low.
APPEND wa_query TO gt_query.
concatenate s_cdate-high '235959' into v_datestamphigh1
v_search_date2 = v_datestamphigh1.
clear wa_query.
wa_query-parameter_code = 'Changed_On '. "Field code ( Field name )
wa_query-operator = 'LE'.
wa_query-dimension_type = mdmif_search_dim_field. "Field search
wa_query-constraint_type = MDMIF_SEARCH_CONSTR_DATE. "Date serach
GET REFERENCE OF v_search_date2 INTO wa_query-value_low.
APPEND wa_query TO gt_query.
CALL METHOD cl_api->mo_core_service->query
EXPORTING
iv_object_type_code = 'Vendors'
it_query = gt_query
IMPORTING
et_result_set = gt_result.
Thanks.

Similar Messages

  • Passing the Date range within the query

    Hi ,
    In my query , I have two date characteristic, and while doing the selection I have to do selection on only one date field.
    This selection is a date range selection , So I have used a selection variable for this.
    Can anyone please let me know if it is possible to pass the selection range to other variable. Is it possible to use Customer exit to pass the complete range.
    Thanks
    Altair

    Hi,
    You can do it in the user exit.And that is the only approach to transfer the values of one variable to other variable .
    Search this forum for the code. you will find  lot of postings.
    With rgds,
    Anil Kumar Sharma .P

  • MDM ABAP API: Query with Multiple Parameters

    I would like to query MDM repository passing multiple parameters. I used the following code, however, it didn't work.
    If I pass only one parameter, it works fine.
    DATA lt_query                  TYPE mdm_query_table.
    DATA ls_query                 TYPE mdm_query.
    DATA lv_search_text       TYPE string.
    DATA lt_result_set            TYPE mdm_search_result_table.
    DATA ls_result_set           LIKE LINE OF lt_result_set.
    * Fill query structure with FIRST parameter
        ls_query-parameter_code  = 'Name'.
        ls_query-operator        = 'CS'. 
        ls_query-dimension_type  = mdmif_search_dim_field.    
        ls_query-constraint_type = mdmif_search_constr_text.
        lv_search_text = 'BMW'.
        GET REFERENCE OF lv_search_text INTO ls_query-value_low.
        APPEND ls_query TO lt_query.
    * Fill query structure with SECOND parameter
        ls_query-parameter_code  = 'Model'.
        ls_query-operator        = 'CS'. 
        ls_query-dimension_type  = mdmif_search_dim_field.    
        ls_query-constraint_type = mdmif_search_constr_text.
        lv_search_text = '2009'.
        GET REFERENCE OF lv_search_text INTO ls_query-value_low.
        APPEND ls_query TO lt_query.
    * Query on records (search for value 'BMW' model '2009' in table Products)
        CALL METHOD lr_api->mo_core_service->query
          EXPORTING
            iv_object_type_code = 'Products'                  
            it_query            = lt_query
          IMPORTING
            et_result_set       = lt_result_set.

    Hi,
    I see you are not clearing your local structure "ls_query".  This could be reason of problem,  try this and let us know the result:
    DATA lt_query                  TYPE mdm_query_table.
    DATA ls_query                 TYPE mdm_query.
    DATA lv_search_text       TYPE string.
    DATA lt_result_set            TYPE mdm_search_result_table.
    DATA ls_result_set           LIKE LINE OF lt_result_set.
    Fill query structure with FIRST parameter
        ls_query-parameter_code  = 'Name'.
        ls_query-operator        = 'CS'. 
        ls_query-dimension_type  = mdmif_search_dim_field.    
        ls_query-constraint_type = mdmif_search_constr_text.
        lv_search_text = 'BMW'.
        GET REFERENCE OF lv_search_text INTO ls_query-value_low.
        APPEND ls_query TO lt_query.
    CLEAR ls_query.
    Fill query structure with SECOND parameter
        ls_query-parameter_code  = 'Model'.
        ls_query-operator        = 'CS'. 
        ls_query-dimension_type  = mdmif_search_dim_field.    
        ls_query-constraint_type = mdmif_search_constr_text.
        lv_search_text = '2009'.
        GET REFERENCE OF lv_search_text INTO ls_query-value_low.
        APPEND ls_query TO lt_query.
    CLEAR ls_query.
    Query on records (search for value 'BMW' model '2009' in table Products)
        CALL METHOD lr_api->mo_core_service->query
          EXPORTING
            iv_object_type_code = 'Products'                  
            it_query            = lt_query
          IMPORTING
            et_result_set       = lt_result_set.

  • MDM ABAP API Performance Problems

    Hi all,
    we developed a custom transaction into our ECC 6.0 system to remotely retreive data coming from MDM (7.1 SP05) and show them to the user. The 2 systems phisically reside in different datacenters, so running in the same WAN but in 2 different AD domains and 2 different ip networks.
    In short the transaction is working using the standard MDM ABAP API functionalities and getting the MDM data using the following methods:
          CALL METHOD lr_api->mo_accessor->connect
          CALL METHOD lr_api->mo_core_service->query
          CALL METHOD lr_api->mo_core_service->retrieve
          CALL METHOD lr_api->mo_accessor->disconnect.
    This is working, but with awful performances. for example to get a subset of materials (around 500 codes) it takes more than 1 minute, and the quantity of data transfered from MDM to ECC (around 30 KB) is not justifying this time.
    Please be so kind to suggest any kind of activity that I can perform to improve the situation.
    Thanks in advance.

    I am trying to retreieve date from MDM to ECC using ABAP API.I am getting the below dump.
    Short text
        An exception occurred that was not caught.
    What happened?
        The exception 'CX_MDM_PROVIDER' was raised, but it was not
         along
        the call hierarchy.
        Since exceptions represent error situations and this error
        adequately responded to, the running ABAP program
         'CL_MDM_PROVIDER_71_SP00_PL00==CP' has to be
        terminated.
    What can you do?
        Note down which actions and inputs caused the error.
        To process the problem further, contact you SAP system
        administrator.
        Using Transaction ST22 for ABAP Dump Analysis, you can loo
        at and manage termination messages, and you can also
        keep them for a long time.
    Error analysis
        An exception occurred that is explained in detail below.
    The exception, which is assigned to class 'CX_MDM_PROVIDER', was not caught in
    procedure "GET_LOC_SUPP" "(METHOD)", nor was it propagated by a RAISING clause.
    Since the caller of the procedure could not have anticipated that the
    exception would occur, the current program is terminated.
    The reason for the exception is:
    Internal error: field 'SEARCH_GROUPS' not found; contact your system
    administrator
    Please check at this point I am getting dump:
    LT_SEARCH_TUPLE_PATH
        Table IT_1806[0x12]
        \CLASS=CL_MDM_PROVIDER_71_SP00_PL00\METHOD=IF_MDM_CORE_SERVICES~QUERY\DATA=LT_SEARCH_TUPLE_PAT
        Table reference: 1612
        TABH+  0(20) = 000000000000000007000000579D710000000000
        TABH+ 20(20) = 0000064C0000070E000000000000000CFFFFFFFF
        TABH+ 40(16) = 04000138000F44A0000424E403000000
        store        = 0x0000000000000000
        ext1         = 0x07000000579D7100
        shmId        = 0     (0x00000000)
        id           = 1612  (0x0000064C)
        label        = 1806  (0x0000070E)
        fill         = 0     (0x00000000)
        leng         = 12    (0x0000000C)
        loop         = -1    (0xFFFFFFFF)
        xtyp         = TYPE#000300
        occu         = 4     (0x00000004)
        accKind      = 1     (ItAccessStandard)
        idxKind      = 0     (ItIndexNone)
        uniKind      = 2     (ItUniNo)
        keyKind      = 1     (default)
        cmpMode      = 12    (ILLEGAL)
        occu0        = 1
        stMode       = 0
        groupCntl    = 0
        rfc          = 0
        unShareable  = 0
        mightBeShared = 0
        sharedWithShmTab = 0
        isShmLockId  = 0
        isUsed       = 1
        isCtfyAble   = 1
        hasScndKeys  = 0
        hasRowId     = 0
        scndKeysOutdated = 0
        scndUniKeysOutdated = 0
    LV_MESS
        field 'SEARCH_GROUPS' not found
        0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
        0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
        6666622544544545455522667266766222222222222222222222222222222222222222222222222222222222222222
        695C407351238F72F50370EF406F5E4000000000000000000000000000000000000000000000000000000000000000
    SY-REPID
    I am picking the data from MAIN TABLE MDM_SUPPLIER_MAP and below is the code.
    CALL METHOD lv_mdm_api->mo_core_service->query
          EXPORTING
    *Main Table
          iv_object_type_code = 'MDM_SUPPLIER_MAP'               "#EC NOTEXT
    *      it_query = lt_query
          IMPORTING
          et_result_set = lt_result_set.
    Please suggest solution to get the records from MDM to ECC.
    When I am tring to replace the abpove with the below code it is working.But in this case I need to retreive all the data instead of using DO and ENDO.Could any please suggest solution.
    DO 10 TIMES.
    APPEND sy-index TO keys.
    ENDDO.
    CALL METHOD lv_mdm_api->mo_core_service->retrieve_simple
    EXPORTING
    iv_object_type_code = 'MDM_SUPPLIER_MAP'
    it_keys = keys
    IMPORTING
    et_ddic_structure = result_ddic

  • Possible to pass a date range to a subreport?

    Hi,
    I've created a report with three groups and I suppress the second and third group. The first group displays a summary of the details.  If I "hide" the details I have a nice summary looking report which I can then click on to drill down into the details. However, I cannot enable the "hide" functionality because of two reasons: 1. I'm using the crystal java viewer and it has serious limitations when using the hide/drill-down feature; and 2. in order to print I have to click on each group item in order to print - so when I have 20 values in my group I'm going into each group 20 times and printing 20 times.
    So, I still want a summary view of all my group summaries at the front of my report.  How can I consolidate the group values into a single summary view? I attempted creating a subreport that is the same as the main report however the issue is that the initial parameter used is a date *range". I'd like to pass the date range to the subreport and then I'm sure this would all work. Does crystal support passing a date range to a sub-report? If so, how is this done?
    thx!
    Mark

    Hi Mark,
    Yes, you can pass a date range value to the SUbreport!
    Here's how its done:
    1) Create a formula in the Main report; call it Start_date:
    Minimum({?Date_parameter})
    2) Create a second formula in the Main report and call it End_date:
    Maximum({?Date_parameter})
    3) Insert the sub-report and then Right-click the sub-report > Select Change Subreport links > Move the Start_date and End_date formulas to 'Fields to Link to' area and make sure you uncheck the 'Select data in subreport based on field' option.
    4) Edit the sub-report (Right-click > Edit) and insert a Record Selection formula to include the parameters from the Main Report.
    Go to Report > Selection Formulas > Record:
    {date_field} >= {?Pm-@Start_date} and {date_field} <= {?Pm-@End_date}
    Hope this helps!
    -Abhilash

  • Read data from MDM For Lookup and Flat table using MDM ABAP API

    Hi,
    I have requriment to read data from MDM from FLAT and Lookup table using MDM ABAP API. My design  is like this ,
    I have one ITEMS (Main table in MDM) and inside that i have one Lookup flat table ITEM_TYPE , my requriment is to read Item number and its related Item type.
    From ABAP.
    Please help if any body has any idea.
    Regards,
    Shyam

    HI Guys,
    I found my solution by myself. Below is the solution , hope this will help others:-
    Retrieve data from MDM  using MDM ABAP API.
    Step- 1. Create structure in SAP with the same name as that of MDM field code for MDM Main table.
    Step-2. Create another structure in SAP having all  lookup fields of MDM , fieldname in ECC must be same as that of MDM field
    code.
    Step-3.Create structure in SAP for  individual lookup field(Single Field only)   with the same name as MDM Field code.
    Step-4.
    DATA: IT_QUERY            TYPE STANDARD TABLE OF MDM_QUERY,  "MDM_QUERY_TABLE,
          WA_QUERY            TYPE  MDM_QUERY,
          WA_CDT_TEXT         TYPE  MDM_CDT_TEXT,
          IT_RESULT_SET_KEY   TYPE  MDM_SEARCH_RESULT_TABLE,
          WA_RESULT_SET_KEY   TYPE  MDM_SEARCH_RESULT,
          WA_STRING           TYPE  STRING.
    DATA:<Internal table> TYPE STANDARD TABLE OF <SAP Str Having all LOOKup Fields>    
    DATA: :<Internal table>TYPE STANDARD TABLE OF <SAP Str one LOOKup field>,
         <Workarea> LIKE LINE OF :<Internal table>.
    *PASS LOGICAL OBJECT NAME.
    V_LOG_OBJECT_NAME = 'Logical object name defined in Customization'.
    Define logon language, country & region for server
    WA_LANGUAGE-LANGUAGE = 'eng'.
    WA_LANGUAGE-COUNTRY = 'US'.
    WA_LANGUAGE-REGION = 'USA'.
    TRY.
        CREATE OBJECT LR_API
          EXPORTING
            IV_LOG_OBJECT_NAME = V_LOG_OBJECT_NAME.
    ENDTRY.
    CONNECT to repository. Apply particular logon language info
    CALL METHOD LR_API->MO_ACCESSOR->CONNECT
      EXPORTING
        IS_REPOSITORY_LANGUAGE = WA_LANGUAGE.
    *NOW PASS ITEM NO AND GET KEY FROM MDM.
    CLEAR WA_QUERY.
    WA_QUERY-PARAMETER_CODE  = <MDM FIELD CODE>. "Field code
    WA_QUERY-OPERATOR        = 'EQ'. "Contains
    WA_QUERY-DIMENSION_TYPE  = 1. "Field search
    WA_QUERY-CONSTRAINT_TYPE = 8. "Text search
    WA_STRING                = <Field Value>.
    GET REFERENCE OF WA_STRING INTO WA_QUERY-VALUE_LOW.
    APPEND WA_QUERY TO IT_QUERY.
    CLEAR WA_QUERY.
    *PASS ITEM NUMBER AND GET RELATED KEY FROM MDM.
    TRY.
        CALL METHOD LR_API->MO_CORE_SERVICE->QUERY
          EXPORTING
            IV_OBJECT_TYPE_CODE = <MDM Main Table>
            IT_QUERY            = IT_QUERY
          IMPORTING
            ET_RESULT_SET       = IT_RESULT_SET_KEY.
      CATCH CX_MDM_COMMUNICATION_FAILURE .
      CATCH CX_MDM_KERNEL .
      CATCH CX_MDM_NOT_SUPPORTED .
      CATCH CX_MDM_USAGE_ERROR .
      CATCH CX_MDM_PROVIDER .
      CATCH CX_MDM_SERVER_RC_CODE .
    ENDTRY.
    Pass record id into keys.
    LOOP AT IT_RESULT_SET_KEY INTO WA_RESULT_SET_KEY.
      WA_KEYS = WA_RESULT_SET_KEY-RECORD_IDS.
    ENDLOOP.
    WA_RESULT_SET_DEFINITION-FIELD_NAME = <Look field name>.
    APPEND WA_RESULT_SET_DEFINITION TO IT_RESULT_SET_DEFINITION.
    CALL METHOD LR_API->MO_CORE_SERVICE->RETRIEVE
      EXPORTING
        IV_OBJECT_TYPE_CODE      = <MDM Main Table>
        IT_RESULT_SET_DEFINITION = IT_RESULT_SET_DEFINITION
        IT_KEYS                  = WA_KEYS
      IMPORTING
        ET_RESULT_SET            = IT_RESULT_SET.
    LOOP AT IT_RESULT_SET INTO
            WA_RESULT_SET.
    *PASS KEYS INTO MAIN TABLE TO GET Structure for FALT or Look up Table
      TRY.
          CALL METHOD LR_API->MO_CORE_SERVICE->RETRIEVE_SIMPLE
            EXPORTING
              IV_OBJECT_TYPE_CODE = <MDM Main Table>
              IT_KEYS             = WA_KEYS
            IMPORTING
              ET_DDIC_STRUCTURE =<SAP Strct having all Look up fileds of MDM>         
      ENDTRY.
      LOOP AT <SAP Strct having all Look up fileds of MDM> INTO <Work area>.
        CLEAR WA_KEYS.
        APPEND <Work area>-field name TO WA_KEYS.
        CALL METHOD LR_API->MO_CORE_SERVICE->RETRIEVE_SIMPLE
          EXPORTING
            IV_OBJECT_TYPE_CODE = <MDM Lookup table name>
            IT_KEYS             = WA_KEYS
          IMPORTING
            ET_DDIC_STRUCTURE   = <Single Structure in SAP For Lookup field>.
        READ TABLE <Single Structure in SAP For Lookup field>. INTO <Work Area> INDEX 1.
    Here you can get the value of realted lookup fields associated with main table data.
      ENDLOOP.
    ENDLOOP.
    LR_API->MO_ACCESSOR->DISCONNECT( ).
    Edited by: Shyam Babu Sah on Nov 24, 2009 4:52 AM

  • MDM ABAP API exception using method invoke_matching

    Hi,
    I am using below calss in MDM ABAP API. If i can use small records
    source (1000) target (1000) it is working fine. If  i can use source (1000)
    Target ( 40, 000) i am getting exception ( kernal exception ).
    Please could you advise do i have to set any parameter.
    CALL METHOD lr_api->mo_core_service->invoke_matching
    EXPORTING
    iv_object_type_code = 'MDM_BUSINESS_PARTNERS'
    iv_strategy_id = ls_matching_strategy-strategy_id
    is_matching_filter = ls_matching_filter
    iv_wait_for_invocation = 'X'
    IMPORTING
    ev_matching_task_id = lv_matching_task_id
    ev_matched_record_count = lv_matched_record_count.
    Thanks,
    Anil

    Thank you Andreas its working fine. I am getting new issue
    if i can filter result vs result or result vs selected or sleeted vs result.
    I am passing the values in is_matching_filter.
    matching_scope = 1 or 2.
    selected_records = ( query record ids)
    query_records = ( i am not passing anything).
    1. If i can select source and target values same 2. Filter 2 vs 2
    its working fine. Remaining scenarios its not working. Please
    help me.
    CALL METHOD lr_api->mo_core_service->invoke_matching
    EXPORTING
    iv_object_type_code = 'MDM_BUSINESS_PARTNERS'
    iv_strategy_id = ls_matching_strategy-strategy_id
    is_matching_filter = ls_matching_filter
    iv_wait_for_invocation = 'X'
    IMPORTING
    ev_matching_task_id = lv_matching_task_id
    ev_matched_record_count = lv_matched_record_count.
    Thanks,
    Anil

  • MDM ABAP APIs Issues;

    Hi All,
    1. Can we Create Lookup Field in the main table which is
    link  to Lookup Sub table Using MDM ABAP APIs.
    2. We have to Assign FieldQualifiedFlatLookup entries and also qualifiers manually by going into MDM Data Manger as given in HowTo_13.Pdf. Can we achieve this Only Using MDM ABAP APIs.
    3. What is the Role of Value Check inHowTo_19.Pdf.
    4. Can change tracking achievable using MDM ABAP APIs
    Assure Ponits will be rewarded for helpful Answers:
    Thanks in Advance,
    Mandy

    Hi Mandy,
    I would like to help you out on your last query.
    ABAP API's has provided with 2 methods which are related to Change tracking.
    The 2 methods are:
    1. RETRIEVE_CHANGE_TRACKING: You can use this method to update the MDM Change tracking metadata.
    2. RETRIEVE_UPDATE_TRACKING You can use this method to retrieve the MDM Change tracking metadata.
    Along with this, you can use the tracking and CCMS Montioring functionality to keep a track on changes done in MDM through ABAP API's.
    I am also attaching a link to a very gud webinar by Klaus David on ABAP API's:
    [https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/00dd47bd-f2f1-2910-5eab-e9ca52465ae4].
    Kindly go through it.
    I hope it helps.
    *Please reward points if found useful.
    Thanks and Regards
    Nitin Jain

  • Mdm abap api retrieve method does not work properly

    Lets say i have
    in a qualified flat lookup several qualifiers.
    i try to get the table using the following code:
      loop at wa_contract_data-CONT_REMINDER into ls_qual_link.
                      wa_keys_reminder = ls_qual_link-QUALIFIED_link_ID.
                      append wa_keys_reminder to lt_keys_reminder.
                CALL METHOD g_mdm_api->mo_core_service->retrieve_simple
                      EXPORTING
                      iv_object_type_code = 'TBL_REM'
                      it_keys = lt_keys_reminder
                      IMPORTING
                      et_ddic_structure = lt_remainder_data.
    endloop.
    finally lt_remainder_data contains only the non qualifier, but not the maintained data of the qualifiers.
    what confuses me is that some fields are even not transfered at all.
    does anyone know how to get what i would expect: the actual data of all other fields?
    Thanks.
    Gideon

    Hi Gideon,
    I have used ABAP API's to successfully retrieve the data from the MDM into a DDIC structure in ECC side using the program Retrive Simple.
    I had followed the webinar by Klaus David. Here is the link for the same:
    ABAP API for SAP NetWeaver Master Data Management - Webinar Replay
    PPT:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/601ddb01-e5c8-2910-d981-b190b51fca44
    Webinar Replay
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/00dd47bd-f2f1-2910-5eab-e9ca52465ae4
    These links will take you through the configs, Sample source code for Retrieving data etc using both Retrive Simple & Retrive.
    May be there is a problem with the DDIC that you have designed. ( the data types etc.)
    Here are some additional links:
    Master Data Management ABAP API Overview:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/media/uuid/00c49ffb-e5e5-2910-73ba-c85af1da5b0a
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/profile/tip%2b%2bMDM%2bABAP-API%2b%2bThings%2bto%2bRemember%2b(for%2bStarters)
    Kindly go through the links to figure out the problem.
    Hope it helps.
    Thanks and Regards
    Nitin Jain

  • MDM ABAP API select-option

    Hi,
    I am using MDM ABAP API to retrieve values from MDM. I would like to know if there is any way to use select-option to query and retrieve values from MDM. Below is my code which retrieves values from MDM:
          IF p_stat IS NOT INITIAL.
            wa_query-parameter_code  = 'Z_EMPLOYMENT_STATUS'. "Field code
              wa_query-operator        = 'EQ'.   "Equals
            wa_query-dimension_type  = '1'.      "Fieldsearch
            wa_query-constraint_type = '8'.
            LOOP AT p_stat.
              lv_text1 = p_stat-low.
              GET REFERENCE OF lv_text1 INTO wa_query-value_low.
              APPEND wa_query TO gt_query.
            ENDLOOP.
          ENDIF.
          CALL METHOD lr_api->mo_core_service->query
            EXPORTING
              iv_object_type_code = 'Z_PEOPLE'             
              it_query            = gt_query
            IMPORTING
              et_result_set       = gt_result.
    I can't pass multiple values to gt_query like in select-option.
    Is there any way to do so?.
    Thanks & Regards,
    Soumya.

    Any solution?.

  • Locking options in MDM ABAP API

    Hi,
    In our project, we have a BSP application screen, through which the end-users create/modify material master data and post it in MDM, through MDM ABAP APIs.
    If one user is editing material data, through our BSP screen, related to a particular material, if the same material is being tried for editing by another user, we would like to ensure, that the 2nd user gets the appropriate locking message like it happens in standard SAP application.  To achieve the above scenario, what are the options available in MDM to lock the material record  through MDM ABAP APIs?
    Also, we would like to know, if we u201CCheck Outu201D or u201CProtectu201D a material record, and the user gets disconnected or logs off abruptly, how would that record become u201Cfreeu201D / u201Cunlockedu201D again?
    Thanks in Advance,
    Neethu

    i am not sure on what u are exactly trying ... but to make it simple - if u are trying to access the MDM ABAP APIs from the SRM ABAP env. - its very much possible.
    thanks
    -Adrivit

  • How to pass the data from wa_itab to  fieldcatlog?

    how to pass the data from wa_itab to  fieldcatlog?

    Your question doesn't appear to be Web Dynpro ABAP related. Please only post questions in this forum if they are directly Web Dynpro ABAP related.  There are several other more general ABAP related forums.

  • 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.

  • MDM ABAP API - Language information not valid for repository

    Dear all,
    We're programming an interface in SAP R/3 to MDM catalog through 'MDM ABAP API's'. Automatically, it creates an RFC connection to MMD, but we're getting the following connection errorwhen executing the API:
    E MDM_ABAP_API         078 Language information ENG US USA not valid for MDM repository XXXYYYZZZ*.
    *where XXXYYYZZZ is the repository name. 
    W'e've established the connection in R/3 through transaction MDMAPIC and we've created the same user in R/3 and MDM Console.
    This is the code written on the program where we are defining the language (ENG), country (US) and region (USA).
    *maintain logon language information
    ls_repository_language-language = 'ENG'.
    ls_repository_language-country = 'US'.
    **no region information needed here
    ls_repository_language-region = 'USA'.
    How can I see the repository language definition?
    Which are the correct codes to be used for language 'English', Country 'United States' and Region 'USA'?  And for other countries, like spanish language, country Spain and Region ¿spain?
    In fact, we copied this code from website:
    http://help.sap.com/saphelp_nwmdm71/helpdata/en/44/93ad8931381053e10000000a422035/frameset.htm
    Maybe the problem is that any RFC configuration is missing, and it has to be done in transaction SM59?
    Thanks for your feecback,
    Carlos Santamaría.

    The problem is now solved.
    The correct languague information codes for Language Spanish, Country Spain and Region, are as follows:
    Language: 'spa'
    Country: 'ES'
    Region: '___'
    It is important to respect the CAPS, otherwise it doesn't work.
    Regards,
    Carlos Santamaría.

  • How to use MDM ABAP API?

    Hi Guys,
    I want to use ABAP API for manipulating MDM records(EX Adding two field values and assign into another field value).
    Can anybody guide me step by step process?
    Best Regards
    Devaraj PK

    Hi Devraj,
    Please go through this pdf:
    1. How To identify identical master data records using SAP MDM 5.5 ABAP API’s
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e060251e-b58d-2910-02a2-c9a1d60d9116
    2. MDM ABAP API
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/media/uuid/00c49ffb-e5e5-2910-73ba-c85af1da5b0a
    http://help.sap.com/saphelp_mdm550/helpdata/en/44/93aa6831381053e10000000a422035/content.htm
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/home/connectivity-ABAP+API&
    Pls rewrds if found helpful.
    BR,
    Alok Sharma

Maybe you are looking for

  • Acrobat Pro 9 not recognized by Safari

    When I could not view a PDF file in Safari, I trashed the Safari preferences, restarted Safari, and pointed it to a PDF file that would typically launch Acrobat to present the PDF file. Safari asks me to specify the Acrobat application that will be u

  • How to alter XY graph label according to property node?

    I have tried to alter the XY graph label (title) programmatically by making a property node of the XY graph and going to label/text. Then I created a constant to rename the graph, ran the VI but it refused to rename the graph. I have consulted the ma

  • Where is the java web start

    I was using jdk 1.5 which includes web start. Then I tried to install jwsdp 1.4 but failed. So I uninstalled jdk 1.5 and installed j2ee PE 8 which includes jdk 1.4.2. Does jdk 1.4.2 inside j2ee have web start included, if not, where can I download on

  • While playing a video in one window, an ad starts playing in another window and steps all over my video.

    I usually have multiple windows open and if I am watching a video in one window and an advertisement starts in another window it steps on my video.

  • ADF Security Authorization question

    For whatever reason, it seems to be not working for me. Well, I will try to test it a non_SRDemo environment. By the way, what is the connects what is set in dialog permisssions and the updateable value? Isn't there something in the code that I can c