How to use MTO stock in MTS order.

Hi
My client wants the MTO stock also to be be used in MTS order. Is it possible?.
If possible, kindly let me know the configurational changes to be made so that MTO stock can used in MTS order.
regards
Ram
Edited by: Ram-SAPSD on Sep 24, 2010 11:34 PM

Hi
Thanks for the reply.
An Item is created in material master with strategy group say 20- make to order production.Hence the material can be used only in make to order.
My question is MTO order has not yet created. However I want this material to be used in MTS order.
What configuration needs to be maintained.
regards
ram

Similar Messages

  • How to use coupon discount in sales order?

    Hi,Experts,
    I want to add coupon discount in order, do I need some config in order transaction type?
    Right now, I can't5 find some field to fill in coupon code, even I fill in the product and customer in former coupon.
    Could someone help me on how to use coupon discount in transaction level?
    Any config or maintainance instruction will be highly appreciated.
    Best regards,

    Coupons are generally related to the campaigns.
    If you are creating an order through the transaction crmd_order, you can mention the campaign document id, under the tab "Header Overview" in the field "Camp./TP".

  • How to use WCM for a maintenance order ?

    HI friends,
         Can u please tell the steps how i should use WCM in a maintenance order?
    Regards,
    M.Alagesan

    Hi Alagesan,
    To use WCM in Maintenance Orders, you should have activated either a Standard or Enhanceed Model Architecture for the Planning Plant in SPRO. (SPRO>PMCS>WCM--> Master Data --> Architecture)
    Also you should Activate WCM for Maintenance Orders (SPRO>PMCS>WCM--> Approvals)
    Then the Reference Object you are using for Order creation should have the Permit(Approval) used above assigned to it & Auto Proposal should be checked.
    When you create a Order on such Equipment, WCM will get activated Automatically. Also you can activate using Operational Control key of WCM.
    If Standard Model the Flow is Order --> Work Clearance Application --> Work Clearence Document. Release Permits in Order and proceed to Tag in WCD. Then Release the Order for Execution.... and so on.
    If Enhanced Model the Flow is Order --> Valuation --> Work Approval --> Work Clearance Application --> Work Clearence Document. Release Permits in Order and proceed to Tag in WCD. Then Release the Order for Execution.... and so on.
    Regards,
    MLN Prasad

  • How to use external workcentre in pm order operations?

    Dear experts,
    i would like to use external workcenter in pm order operations using PM01 control key. Can any body explain about how to create external work centres for using in PM orders. similarly can anybody explain about how would we settle the amounts for external work centre activities? how it differs from normal in-house work centres?
    regards,
    Varsha

    Hi ,
    You can check the below link related to
    (http://help.sap.com/saphelp_47x200/helpdata/en/b0/df293581dc1f79e10000009b38f889/frameset.htm)
    The link is related to Maintenance Order processing with an External Company as Work Center ..
    regards
    pushpa

  • How to use KAUF_AUFNR_CHANGE  to change Process order and Update a field

    Hello ,
    I am working on 4.6C system and I hve a requirement to change Process order and Update a field value passed from a ABAP Program. I am looking for suitable Function modules or Bapi ( available in 4.6c) .
    I have come across FM KAUF_AUFNR_CHANGE . Would appreciate any guidance on how to use the FM in my program and Update a field in the Process order.
    Many Thanks!

    All the importing parameters of this function module have a striaght structure of the transperent tables...
    i have checked the code and it has a modify statement based on the importing parameter..
    pick one record in databas and pass it to the importing parameters, with some values changed...
    i think that should work
    what values  to pass the import values of FM -KAUF_AUFNR_CHANGE.
    Edited by: ssm on Aug 4, 2011 7:19 PM

  • How to use oracle nlssort function in order by clause?

    If I need to use linguistic sort feature in Oracle, I can write a SQL like that:
    Select product_name from product
    order by NLSSORT(product_name, 'NLS_SORT=GENERIC_M');
    How can I generate a SQL like this by Toplink?

    Hi,
    To answer your query:-
    http://abhishek-soablog.blogspot.com/2008/08/orclquery-database.html
    Cheers,
    Abhi...

  • How to use L_TO_CONFIRM to confirm transport order

    Hello friends,
    I am using function L_TO_CONFIRM to confirm transport order in my program.
    But it is not working. I have copied the main fields from table ltak and ltap. However it is still not working. May be some other parameters need to be filled.
    Can anybody of you tell me as how can I use this function module to confirm transport order.
    Regards,
    Navin

    Hi,
        loop at gc_vbfa.
    clear il_ltap_conf.
    refresh il_ltap_conf.
    il_ltap_conf-tanum = gc_vbfa-vbeln.
    il_ltap_conf-tapos = gc_vbfa-posnn.
    il_ltap_conf-nista = 0.
    il_ltap_conf-ndifa = gc_vbfa-rfmng.
    il_ltap_conf-altme = gc_vbfa-meins.
    append il_ltap_conf.
    Confirm TO
    if s_fct_vars-peak_user = space.
    l_ename = sy-uname.
    else.
    l_ename = s_fct_vars-peak_user+0(12).
    endif.
    l_tanum2 = gc_vbfa-vbeln.
    CALL FUNCTION 'L_TO_CONFIRM'
    EXPORTING
    I_LGNUM = l_lgnum
    I_TANUM = l_tanum2
    I_SQUIT = ' '
    I_QUKNZ = ' '
    I_SUBST = ' '
    I_QNAME = SY-UNAME
    I_ENAME = L_ENAME
    I_SOLEX = 0
    I_PERNR = 0
    I_STDAT = INIT_DATUM
    I_STUZT = 0
    I_ENDAT = INIT_DATUM
    I_ENUZT = 0
    I_ISTWM = 0
    I_KOMIM = ' '
    I_EINLM = ' '
    I_TBELI = ' '
    I_UPDATE_TASK = ' '
    I_COMMIT_WORK = 'X'
    I_AUSFB = ' '
    TABLES
    T_LTAP_CONF = il_ltap_conf
    T_LTAP_CONF_HU =
    T_LTAP_CONF_HU_SERIAL = il_ltap_serial
    EXCEPTIONS
    TO_CONFIRMED = 1
    TO_DOESNT_EXIST = 2
    ITEM_CONFIRMED = 3
    ITEM_SUBSYSTEM = 4
    ITEM_DOESNT_EXIST = 5
    ITEM_WITHOUT_ZERO_STOCK_CHECK = 6
    ITEM_WITH_ZERO_STOCK_CHECK = 7
    ONE_ITEM_WITH_ZERO_STOCK_CHECK = 8
    ITEM_SU_BULK_STORAGE = 9
    ITEM_NO_SU_BULK_STORAGE = 10
    ONE_ITEM_SU_BULK_STORAGE = 11
    FOREIGN_LOCK = 12
    SQUIT_OR_QUANTITIES = 13
    VQUIT_OR_QUANTITIES = 14
    BQUIT_OR_QUANTITIES = 15
    QUANTITY_WRONG = 16
    DOUBLE_LINES = 17
    KZDIF_WRONG = 18
    NO_DIFFERENCE = 19
    NO_NEGATIVE_QUANTITIES = 20
    WRONG_ZERO_STOCK_CHECK = 21
    SU_NOT_FOUND = 22
    NO_STOCK_ON_SU = 23
    SU_WRONG = 24
    TOO_MANY_SU = 25
    NOTHING_TO_DO = 26
    NO_UNIT_OF_MEASURE = 27
    XFELD_WRONG = 28
    UPDATE_WITHOUT_COMMIT = 29
    NO_AUTHORITY = 30
    LQNUM_MISSING = 31
    CHARG_MISSING = 32
    NO_SOBKZ = 33
    NO_CHARG = 34
    NLPLA_WRONG = 35
    TWO_STEP_CONFIRMATION_REQUIRED = 36
    TWO_STEP_CONF_NOT_ALLOWED = 37
    PICK_CONFIRMATION_MISSING = 38
    QUKNZ_WRONG = 39
    HU_DATA_WRONG = 40
    NO_HU_DATA_REQUIRED = 41
    HU_DATA_MISSING = 42
    HU_NOT_FOUND = 43
    PICKING_OF_HU_NOT_POSSIBLE = 44
    NOT_ENOUGH_STOCK_IN_HU = 45
    SERIAL_NUMBER_DATA_WRONG = 46
    SERIAL_NUMBERS_NOT_REQUIRED = 47
    NO_DIFFERENCES_ALLOWED = 48
    SERIAL_NUMBER_NOT_AVAILABLE = 49
    SERIAL_NUMBER_DATA_MISSING = 50
    TO_ITEM_SPLIT_NOT_ALLOWED = 51
    OTHERS = 52
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    S_FCT_VARS-FCT_MSG_AREA = sy-msgid.
    S_FCT_VARS-FCT_MSG_ID = sy-msgno.
    S_FCT_VARS-FCT_RTN_CODE = 8.
    S_FCT_VARS-FCT_MSG_VAR1 = SY-MSGV1.
    S_FCT_VARS-FCT_MSG_VAR2 = SY-MSGV2.
    S_FCT_VARS-FCT_MSG_VAR3 = SY-MSGV3.
    S_FCT_VARS-FCT_MSG_VAR4 = SY-MSGV4.
    S_FCT_VARS-FCT_MSG_LEVEL = 'E'.
    else.
    IF L_POST_MSG_SUCCESS = 'MSG_ON'.
    S_FCT_VARS-FCT_MSG_AREA = 'ZPKUK01STD'.
    S_FCT_VARS-FCT_MSG_ID = '209'.
    S_FCT_VARS-FCT_RTN_CODE = 0.
    S_FCT_VARS-FCT_MSG_LEVEL = 'S'.
    S_FCT_VARS-FCT_MSG_VAR1 = gc_vbfa-vbeln.
    S_FCT_VARS-FCT_MSG_VAR2 = gc_vbfa-posnn.
    ENDIF.
    Document logging
    IF L_DOCUMENT_LOGGING = 'Y'.
    concatenate gc_vbfa-vbeln
    gc_vbfa-posnn
    into L_TARGET_DOCUMENT separated by '-'.
    L_SOURCE_DOCUMENT = gc_vbfa-vbeln.
    PERFORM PST1700_DOCUMENT_LOGGING
    USING 'PICKING'
    L_SOURCE_DOCUMENT
    L_TARGET_DOCUMENT
    'TOIT'
    'L_TO_CONFIRM'
    L_TXN_DESC
    L_EVNT_ERROR.
    ENDIF.
    endif.
    endloop. " gc_vbfa
    commit work AND WAIT.
    loop at gc_vbfa.
    gd_vbfa-vbelv = gc_vbfa-vbelv.
    gd_vbfa-posnv = gc_vbfa-posnv.
    append gd_vbfa.
    endloop. " gc_vbfa
    sort gd_vbfa by vbelv posnv.
    delete adjacent duplicates from gd_vbfa comparing vbelv posnv.
    loop at gd_vbfa.
    if s_fct_vars-fct_rtn_code = 0.
    L_VBKOK-VBELN_VL = gd_vbfa-vbelv.
    clear l_vbpok.
    refresh l_vbpok.
    l_vbpok-vbeln_vl = gd_vbfa-vbelv.
    l_vbpok-posnr_vl = gd_vbfa-posnv.
    l_vbpok-lips_del = c_x.
    append l_vbpok.
    set update task local.
    call function 'WS_DELIVERY_UPDATE'
    exporting
    vbkok_wa = l_vbkok
    commit = ' '
    delivery = gd_vbfa-vbelv
    tables
    vbpok_tab = l_vbpok
    exceptions
    others = 0.
    commit work and wait.
    Refer below link:
    https://forums.sdn.sap.com/click.jspa?searchID=4082151&messageID=3039845
    <b>Reward points</b>
    Regards

  • How to use BAPI_GOODSMVT_CREATE against the Production Order

    Hi Friends,
    I need ur help very urgently,
    I am using the BAPI_GOODSMVT_CREATE (movement code '03') for goods return against the production order (movement type '262').
    everything working fine, ie it gets updated in IM/WM.
    but when we check in the CO03 transaction for the production order, the qty withdrwan not gets updated in the component overview. still showing the old value. But when we used regular SAP transaction MB1A, it gets updated in CO03 (qty withdrwan in the component overview).
    How to solve this issue using this BAPI.
    I have attached the code, plese help me is there any other parameter to set for this BAPI.
    Thanks in advance.
    Shankar
    Code:
    *Header Structure
    st_gm_code-gm_code = '03'. "
    st_gm_header-pstng_date = st_gm_header-doc_date = sy-datum.
    SORT itab BY aufnr matnr j_3asized.
    LOOP AT itab.
    itab_afs_gm_itemx-material = itab-matnr.
    itab_afs_gm_itemx-plant = itab-werks.
    itab_afs_gm_itemx-stge_loc = itab-lgort.
    itab_afs_gm_itemx-batch = itab-new_charg .
    itab_afs_gm_itemx-stock_cat = itab-j_4kscat.
    itab_afs_gm_itemx-stck_type = 'F'.
    itab_afs_gm_itemx-move_type = '262'.
    itab_afs_gm_itemx-entry_qnt = itab-j_3aerfmg .
    itab_afs_gm_itemx-grid_value = itab-j_3asized.
    itab_afs_gm_itemx-orderid = itab-aufnr.
    itab_afs_gm_itemx-move_reas = itab-move_reas.
    APPEND itab_afs_gm_itemx .
    SELECT SINGLE etenr
    INTO etenr
    FROM j_3abdsi WHERE aufnr = itab-aufnr
    AND matnr = itab-matnr.
    gr_afs-matdoc_itm = '0100'.
    gr_afs-sched_line_sku = etenr.
    gr_afs-stock_cat = itab-j_4kscat.
    gr_afs-grid_value = itab-j_3asized.
    APPEND gr_afs.
    ENDLOOP.
    CALL FUNCTION 'BAPI_GOODSMVT_CREATE'
    EXPORTING
    goodsmvt_header = st_gm_header
    goodsmvt_code = st_gm_code
    IMPORTING
    goodsmvt_headret = st_gm_headret
    materialdocument = mat_doc
    matdocumentyear = doc_year
    TABLES
    goodsmvt_item = itab_afs_gm_itemx
    return = bapi_return
    afs_goodsmvt_sku = gr_afs.
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'

    Hi Friends,
    I need ur help very urgently,
    I am using the BAPI_GOODSMVT_CREATE (movement code '03') for goods return against the production order (movement type '262').
    everything working fine, ie it gets updated in IM/WM.
    but when we check in the CO03 transaction for the production order, the qty withdrwan not gets updated in the component overview. still showing the old value. But when we used regular SAP transaction MB1A, it gets updated in CO03 (qty withdrwan in the component overview).
    How to solve this issue using this BAPI.
    I have attached the code, plese help me is there any other parameter to set for this BAPI.
    Thanks in advance.
    Shankar
    Code:
    *Header Structure
    st_gm_code-gm_code = '03'. "
    st_gm_header-pstng_date = st_gm_header-doc_date = sy-datum.
    SORT itab BY aufnr matnr j_3asized.
    LOOP AT itab.
    itab_afs_gm_itemx-material = itab-matnr.
    itab_afs_gm_itemx-plant = itab-werks.
    itab_afs_gm_itemx-stge_loc = itab-lgort.
    itab_afs_gm_itemx-batch = itab-new_charg .
    itab_afs_gm_itemx-stock_cat = itab-j_4kscat.
    itab_afs_gm_itemx-stck_type = 'F'.
    itab_afs_gm_itemx-move_type = '262'.
    itab_afs_gm_itemx-entry_qnt = itab-j_3aerfmg .
    itab_afs_gm_itemx-grid_value = itab-j_3asized.
    itab_afs_gm_itemx-orderid = itab-aufnr.
    itab_afs_gm_itemx-move_reas = itab-move_reas.
    APPEND itab_afs_gm_itemx .
    SELECT SINGLE etenr
    INTO etenr
    FROM j_3abdsi WHERE aufnr = itab-aufnr
    AND matnr = itab-matnr.
    gr_afs-matdoc_itm = '0100'.
    gr_afs-sched_line_sku = etenr.
    gr_afs-stock_cat = itab-j_4kscat.
    gr_afs-grid_value = itab-j_3asized.
    APPEND gr_afs.
    ENDLOOP.
    CALL FUNCTION 'BAPI_GOODSMVT_CREATE'
    EXPORTING
    goodsmvt_header = st_gm_header
    goodsmvt_code = st_gm_code
    IMPORTING
    goodsmvt_headret = st_gm_headret
    materialdocument = mat_doc
    matdocumentyear = doc_year
    TABLES
    goodsmvt_item = itab_afs_gm_itemx
    return = bapi_return
    afs_goodsmvt_sku = gr_afs.
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'

  • How to use Bapi for creating sales order

    Dear All,
    I am facing problem in creating Sales orders using BAPI.
    Actually I am getting one file as an input and after validating the contents in the file i am preparing an internal table which has 6 fields - Customer number,PO Number,Material Number,Quantity,Price,Unit of measure.
    Now  my doubt is that while using BAPI_SALESORDER_CREATEFROMDAT2 , I am not getting how to pass PO Number and Customer number.
    Please Help.
    Regards,
    Shweta

    Hi shweta upadhyay
    I have gone through you are post i have done some coding for creating sales order using bapi , I think it is helpful for you.
    *& Report  YOBJ_BAPI_SALESORDER
    *& REPORT : CREATING SALES ORDER USING STANDARD BAPI
    *& AUTHOR : S.PAVAN KUMAR INUMARTHY
    REPORT  YOBJ_BAPI_SALESORDER.
    DATA : ORDER_HEADER_IN LIKE STANDARD TABLE OF BAPISDHD1 WITH HEADER LINE.
    DATA : ORDER_ITEMS_IN LIKE STANDARD TABLE OF BAPISDITM WITH HEADER LINE.
    DATA : ORDER_PARTNERS LIKE STANDARD TABLE OF BAPIPARNR WITH HEADER LINE.
    DATA : RETURN TYPE STANDARD TABLE OF BAPIRET2 WITH HEADER LINE.
    DATA : SALESDOCUMENT LIKE BAPIVBELN-VBELN.
    *APPENDING VALUES FOR HEADER.
    ORDER_HEADER_IN-DOC_TYPE = 'TA'.
    ORDER_HEADER_IN-SALES_ORG = '1000'.
    ORDER_HEADER_IN-DISTR_CHAN = '10'.
    ORDER_HEADER_IN-DIVISION = '00'.
    ORDER_HEADER_IN-SALES_GRP = '130'.
    ORDER_HEADER_IN-SALES_OFF = '1030'.
    APPEND ORDER_HEADER_IN.
    *APPENDING VALUES FOR ITEM
    ORDER_ITEMS_IN-MATERIAL = 'M-13'.
    ORDER_ITEMS_IN-PLANT = '1000'.
    ORDER_ITEMS_IN-SALES_UNIT = 'ST'.
    ORDER_ITEMS_IN-DIVISION = '07'.
    ORDER_ITEMS_IN-GROSS_WGHT = '28000'.
    ORDER_ITEMS_IN-NET_WEIGHT = '28000'.
    ORDER_ITEMS_IN-UNTOF_WGHT = 'KG'.
    ORDER_ITEMS_IN-VOLUME = '0.780'.
    ORDER_ITEMS_IN-VOLUNIT = 'M3'.
    APPEND ORDER_ITEMS_IN.
    *APPENDING VALUES FOR PARTNER
    ORDER_PARTNERS-PARTN_ROLE = 'AG'.
    ORDER_PARTNERS-PARTN_NUMB = '0000001000'.
    ORDER_PARTNERS-COUNTRY = 'DE'.
    ORDER_PARTNERS-TRANSPZONE = 'D000080000'.
    APPEND ORDER_PARTNERS.
    CALL FUNCTION 'BAPI_SALESORDER_CREATEFROMDAT2'
      EXPORTING
    *   SALESDOCUMENTIN               =
        ORDER_HEADER_IN               = ORDER_HEADER_IN
    *   ORDER_HEADER_INX              =
    *   SENDER                        =
    *   BINARY_RELATIONSHIPTYPE       =
    *   INT_NUMBER_ASSIGNMENT         =
    *   BEHAVE_WHEN_ERROR             =
    *   LOGIC_SWITCH                  =
    *   TESTRUN                       =
    *   CONVERT                       = ' '
    IMPORTING
       SALESDOCUMENT                  = SALESDOCUMENT
      TABLES
       RETURN                         = RETURN
       ORDER_ITEMS_IN                 = ORDER_ITEMS_IN
    *   ORDER_ITEMS_INX               =
        ORDER_PARTNERS                = ORDER_PARTNERS
    *   ORDER_SCHEDULES_IN            =
    *   ORDER_SCHEDULES_INX           =
    *   ORDER_CONDITIONS_IN           =
    *   ORDER_CONDITIONS_INX          =
    *   ORDER_CFGS_REF                =
    *   ORDER_CFGS_INST               =
    *   ORDER_CFGS_PART_OF            =
    *   ORDER_CFGS_VALUE              =
    *   ORDER_CFGS_BLOB               =
    *   ORDER_CFGS_VK                 =
    *   ORDER_CFGS_REFINST            =
    *   ORDER_CCARD                   =
    *   ORDER_TEXT                    =
    *   ORDER_KEYS                    =
    *   EXTENSIONIN                   =
    *   PARTNERADDRESSES              =
              IF SY-SUBRC = 0.
              CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
    *           EXPORTING
    *             WAIT          =
    *           IMPORTING
    *             RETURN        =
               ENDIF.
    WRITE : 'SALES ORDER IS :', SALESDOCUMENT.
    This will be very helpful for you .
    this one is the correct answer I have tried it and I am posting it for you.
    Message was edited by: pavan inumarthy

  • How to use smart form for production orders

    Hello Experts,
    I have a couple of questions about printing out production orders from SAP, from OPK8.
    My ABAPer has developed a smart form and I am trying to use the same for the list LG01, i.e. the object list.
    Since, there was no place to assign a smart form directly, so the ABAPer has copied the existing print program , defined for my ref. order type and LG01 and assigned the new smart form inside the program. This new program has now been assigned against my ref. ord type, LG01 and all the plants, as seen in screenshot below.
    Now, what is happening is that when I give print for my order, a pop-up screen asks for the printer. I give LOCL , check 'print now' and then click on the print preview.
    I can see the new form that has been developed and it is alright.
    Then, when I click on the back arrow, once again the print pop-up screen appears. Now, when I enter LOCL, print now and click  the print preview, then I see another form open up before me. I am assuming that this is some form which was pre-configured in the system, under the section 'Forms', for the same object list LG01.
    Do I have to assign the new smart form under the section "Forms' also, for the ref order type and LG01? or the change in the section 'print programs' is enough for the new form to kick in? Please guide me. I tried to but it gave the error that the form is not created in English. Also , my form is a smart form, not a SAPScript or PDF form, so I wonder if that will help at all.
    Requirement :-      I need to suppress this second form somehow but do not know how to do it. I want that only one form, i.e. my smart form should be printed out when someone gives print from the order.
    Let me know if something is not clear.
    Regards
    P.R

    Hi P,
    Go a few steps down and remove flags on the documents you don't want to print:
    this are just suggestions, they can be changed in your production order, in CO02, menu Order->Settings->List Control.
    regards,
    Edgar

  • How to use the stock locators for more than one subinventory

    Hi,
    We are working in Oracle Applications 11i.
    We have 4 different inventory organizations. Each with one main subinventory. One of those inventory organizations MWN has a subinventory defined with stock locators. The other three have their subinventories not defined with stock locators.
    Now, correct me if I'm wrong please, I cannot define a stock locator for an existing subinventory while there are onhand items in that subinventory.
    So, We will define new subinventory(for each inv org) with stock locators and then do a subinventory transfer to the new relevant new subinventory organization.
    The next point is: the user requests to use the same stock locators for the 4 inventory organizations. is this possible?
    thank you...

    We had the same issue recently.
    Users wanted same locator in the same org under different subinventories.
    We suggested 2 solutions
    1) Make the 1st locator segment=subinventory name (e.g. East.A.3.10, West.A.3.10)
    2) Add a character to the first locator (e.g. EA.3.10, WA.3.10)
    They picked up the 2nd option.
    Hope this helps
    Sandeep Gandhi
    Omkar Technologies Inc.
    Independent Techno-functional Consultant
    513-325-9026

  • How to use the UME api in order to search the LDAP?

    Hello,
    I have an application which connects to the LDAP the portal is connecting to and search users according to a certain search criteria.
    Here is the relevant piece of code:
    Hashtable env = new Hashtable();
    DirContext ctx = new InitialDirContext(env);
    SearchControls controls = new SearchControls();
    String filter = "firstName=..."
    NamingEnumeration results = ctx.search("OU=OUs", filter, controls);
    I would like to do this same search using the UME API.
    Can someone please show me the equivalent code to it using the UME API?

    Hi Roy,
    you find the Configuration File you are using in your portal via System Administration -> System Configuration -> UM Configuration -> Data Sources
    or in sapume.properties where you can find
    ##xml file that configures the persistence except roles
    ume.persistence.data_source_configuration=YOUR_DATASOURCE_CONFIG_FILE.xml
    In this xml file, there is the entry
    <principal type="user">:
    <principal type="user">
         <nameSpaces>
         <nameSpace name="com.sap.security.core.usermanagement">     
    <attributes>                               
    <attribute name="firstname" populateInitially="true"/><attribute name="displayname" populateInitially="true"/>               <attribute name="lastname" populateInitially="true"/>                    <attribute name="fax"/>                         <attribute name="email"/>                    <attribute name="title"/>               <attribute name="department"/>                    <attribute name="extensionAttribute2"/>               <attribute name="mobile"/>          <attribute name="telephone"/>                    <attribute name="streetaddress"/>               <attribute name="pobox"/>                    <attribute name="location"/>               <attribute name="telephoneShort"/>               </attributes>
         </nameSpace>
         <nameSpace name="com.sap.security.core.usermanagement.relation">
         <attributes>
         <attribute name="PRINCIPAL_RELATION_PARENT_ATTRIBUTE"/>
         </attributes>
         </nameSpace>
        </nameSpaces>
    </principal>
    According to your company LDAP attributes, you will have to extend the above attributes, telephoneShort for example is an attribute within our company.
    The UME API does the rest.
    All you have to do, is request the right attribute (in my above example it was the last name).
    (Sorry for the format, but it is quite cumbersome to format it properly with the available editor   )
    Kind regards,
    Rebecca

  • How to use forecast and safety stock

    Hi
    We have below business case for MRP case  and scenarios , please guide me how to use safety stock in this case.
    Requirement : System should always raise PR for quantity of forecast only , if forecast in not available then for the safety stock 
    Planning cycle
    100 (Monday)
    Deliver cycle
    500(Friday)
    Forecast model
    S
    Lead time
    4
    Safety stock
    10

    Hi
    Did anyone have idea how to use safety stock with forecast in such a way that System should always raise PR for quantity of forecast only , if forecast in not available or less then the safety stock quantity PR will be raise with safety stock quantity

  • How to use saved data?

    Hello. I have a big problem and your sony experts are my last chace. Accidentally I have deleted some of my applications from my ps4. In my ps4 storage I have all the saved data from my games and aplications. I do not know how to use the saved data in order NOT TO START each game from the beginning.  It should be a way to use the saved data, but I do not know how.  It is totally my mistake, BUT PLEASE HELP ME. I need your help. Could you tell me Each step I have to follow in order to continue the games from my last save? It should be perfect.  I wait however uyou say, but please help me.

    Reinstall your applications.
    If they are from the psstore, download them through your library. There is no charge for this, as purchases are linked to the psn account, not the console.
    If they are disk games, put the disk in. The game will install, and download any updates.
    Start the game, choose continue as normal.

  • How to use my saved data?

    Hello. I have a big problem and your sony experts are my last chace. Accidentally I have deleted some of my applications from my ps4. In my ps4 storage I have all the saved data from my games and aplications. I do not know how to use the saved data in order NOT TO START each game from the beginning.  It should be a way to use the saved data, but I do not know how.  It is totally my mistake, BUT PLEASE HELP ME. I need your help. Could you tell me Each step I have to follow in order to continue the games from my last save? It should be perfect.  I wait however uyou say, but please help me.

    I have answered this in your other post.

Maybe you are looking for