How to use BAPI_OBJCL* to set classification data for Techn. Objects - PM ?

Good afternoon !
        I´m working in a project to integrate some legacy system with the ECC 6.0, and I need to do some activities like, create functional locations and equipments in SAP PM, I have done this creating Z RFC modules that call bapis like BAPI_FUNCLOC_CREATE and BAPI_EQUI_CREATE, but these BAPIs doesn´t fill classification data, so, in a first moment, I solved this using BDC, but I would like to solve these needs using standard BAPIs if possible.
        To solve the classification, I tried to do it using the BAPI_OBJCL* BAPIs(BAPI_OBJCL_GET_KEY_OF_OBJECT, BAPI_OBJCL_CREATE_KEY), but I didn´t find any example of using these bapis with technical objects, so I tried to test the BAPI_OBJCL_GET_KEY_OF_OBJECT in a first moment and, when I call it passing '003' as classtype(003 is the classtype for the functional locations), this bapi returns me "Class type 003 requires additional objects"(the same occurs if I try it with 002, for equipment). What means this message ? Need I to do some customization in img/spro, or cannot these bapis be used with PM technical objects ?
        Thank you for your attention,
        Wilson

Hi all !
        I have found the solution for this problem, I found that I was trying to use the wrong functions for my case, so, to solve my needs here, I will use BAPI_OBJCL_CREATE to set the classification data for Functional Locations and Equipments, and I can use BAPI_OBJCL_GETCLASSES to list all classes assigned for a Technical Object, and BAPI_OBJCL_GETDETAIL to get all characteristics assigned to a Technical Object for a specific class.
        Thank you all for your attention !
        Wilson

Similar Messages

  • How to use "By Experssion" setting Expiration Date "

    I'm trying to use the "By Expression" choice under the Expiration and Escalation Policy of BPEL Human Task Editor to set the expiration time stored in a global variable, as shown below:
    <globalConfiguration>
    <expirationDuration duration="bpws:getVariableData('Review_1_globalVariable', 'payload', '/task:task/task:systemAttributes/task:expirationDuration')" type="XPATH"/>
    </globalConfiguration>
    But this is not working for me.
    Additional info related to this follows:
    The 'Review_1_globalVariable' holds an expiration duration time of 'PT1H' (one hour from current time), which I provide as input from the console when I run the instance, and I copy it to this globalVariable as part of the AssignTaskAttributes phase of the Human Task.
    The big picture of what I'm trying to set up in the expiration policy is that after the expirationDuration for the "Group Vote" expires, the task gets assigned back to the initiator. I have this policy working when I use the "Fixed Duration" of say, 5 minutes at the global routing policy and 2 minutes for the assignees of the "Group Vote" (under advanced). But the problem I'm having is to use a XPATH expression to set the duration times given by the front end application.
    Can anyone help me with the use of an expression to set this policy?
    Thanks,
    Message was edited by:
    call

    Use a JFormattedTextField with a SimpleDateFormat in parameter.
    Denis

  • How to use the program "Generate test data for BAI bank statement" ?

    Hi all,
    I use the program RFEBKAT5 to create an Electronic Bank Statement file in BAI format ,but it doesn't generate the file .
    I don't know how to generate the file.
    Please help me !
    Thanks all !

    You need to suitably adjust your GL accounts for "Posting Offset Account" (Whisch is defaulted as ++++++++19" and Checkout/Funds Out/Funds IN GL accounts to your configuration.
    Once you do this try generating the file again.

  • How to use AppleScript to set "character fill color" in Pages 5.2?

    For Pages 5.2 on OSX 10.9.3, what is the correct applescript for changing the "character fill" of text in pages. 
    If you highlight text, you do this via your mouse in the inspector by clicking "style," "advanced option (the gear wheel to the right of bold, italics, and underline), "character fill color (clicking on the multi-color circle, not the dropdown menu), and then choosing a color that comes up in the "colors" dialogue box.
    I've looked all over and cannot find how to use applescript to set the character fill color in pages. 
    In some examples (not directly related) I see "character fill" used. 
    In others, I see "colorfill." 
    Basically, I want to use applescript, embedded in a keyboard maestro macro, to change the background color of the text (not the text color itself) to particular colors. 
    Given the changes and updates to Pages this year, and to applescript, what's the easy way to do this?
    Thanks!
    Chuck

    Pages v5.2 still does not include selection-object, or character background color entries in its AppleScript dictionary, as does Pages ’09. Indirectly, using System Events, you can get the text selection in Pages v5.2, but then you can do nothing to change the selection. No assurances as to if or when Apple will mature the AppleScript dictionary support for Pages v5 series.

  • How to use a query in matrix data retrive

    hai  everybody
    how to use a query in matrix data retrive...
    pls ..

    If u have created a UDT to store the data then U can retrive the data through recordset.
    oRecordset.doquery("SQL Statement")
    If u have taken the DB Data source to Manipulate then
    then type
    oMatrix.flushtoDataSource
    then
    U can retrive the data through DB Data source.
    -Manmath

  • How to use "Reference Structure" setting in analysis grid item

    Hello expert,
            in Bex analyzer, how to use "Reference Structure" setting in analysis grid item by example?
    Many thanks,

    The variable needs assigned a value, that's why you're getting prompted. When you execute the statement, it's not executing the variable and exec lines.
    Having script output available in a grid would be an enhancement request.

  • Can you please help to understand how the firefox decides on the Expires date for a cached javascript file ( my server did not set any Expire header, but firebox set it down).

    # Question
    Can you please help to understand how the firefox decides on the Expires date for a cached javascript file ( my server did not set any Expire header, but firebox set it down). I tried to understand but different javascript file gets different Expires date value when it is being cached. Please help me as I tried lot and could not get proper answer for this. Thanks in Advance.

    Try posting at the Web Development / Standards Evangelism forum at MozillaZine. The helpers over there are more knowledgeable about web page development issues with Firefox. <br />
    http://forums.mozillazine.org/viewforum.php?f=25 <br />
    You'll need to register and login to be able to post in that forum.

  • How to use Bind Variables in Essbase data control

    Hi,
    I am trying to use Bind Variables in MDX query while creating the Essbase Data Control. I have used the below query with the Bind Variable.. this query is working in Essbase admin console..but it is throwing error (*Invalid MDX Query)* while creating Essbase Datacontrol in JDeveloper.
    MDX Query : SELECT {[Measures].Msr_2} ON COLUMNS, [Time].Children ON ROWS FROM cube
    where ($name)
    Could any body suggest me on how to use bind variables with Essbase Data control.
    Thanks,
    Swathi

    Hello Swathi, can you please help me how you created Essbase DataControl? Also were you able to figure out this?
    Thanks, Praveen.

  • How to use Special value set with Column clause to display addtional column

    hi
    can anyone tell me
    How to use Special value set with Column clause to display addtional column
    how can i use FND POPID and with COLUMN clause ?

    Dear Yaseen,
                To get the value in formula cumulative,after you have created the formula for that particular key figure,go to edit and click on tab "calculations".
    In that select overall result as 'count all values not equal to zero' and single result as 'count all values not equal to zero' .
    And mark the cumulative check box underneath.
    I hope you get the desired result and please do me favour .
    Sumit goomber

  • How to use Director 11.5 ByteArray data in to Flash ByteArray ?

    How to use Director 11.5 ByteArray data in to Flash ByteArray ?

    Did you configure it in Window / Preferences / Flash Builder / Installed SDKs?

  • Classification data for sold to party BP with BAPI_BUPA_CLASS_ADD

    I need to add classification data for sold to party business partner that I created.
    Business partner-->General Data->Classification-->
    Classification -
    > I need to check the check box for customer and also
    Business partner--->General Data-> Classification----->R/3 integration---->Account Group I need to put 0001.
    How should I do this? I am making use of the BAPI BAPI_BUPA_CLASS_ADD.
    Here I need to pass values to CLASSIFICATION.
    I donu2019t know what values I need to pass to this import parameter CLASSIFICATION.
    When I go and see the structure of it, I find that the following fields are there.
    CLASSCAT, CRIT1, CRIT2, CRIT3, CRIT4, CRIT5, ATTRID, VALUE.
    What values should I pass so that I can add classification data to my sold to party business partner such that the Customer check box is checked and in R/3 integration- Account Group I put 0001.
    I tried hard but unable to get information on how to put classification data in sold to party---> General Business Tab.
    If some one encountered this earlier, please help me with some info on the same.
    Regards,
    Jessica Sam
    Edited by: jessica sam on Nov 15, 2008 2:31 PM

    Jessica,
    Try looking at the following: BAPI_BUPA_FRG0040_CREATE
    Note that if you already have maintained Sales Classifications then you'll have to use the _CHANGE version.
    It has the importing structure of type BAPIBUS1006040_SALESCLASS and so you could for example populate it's fields as shown below and using the structure when calling the above BAPI:
    DATA
           IS_COMPETITOR
           IS_PROSPECT
           IS_CONSUMER
           IS_CUSTOMER                    X
           CUSTOMER_SINCE
           IS_COD_CUSTOMER
           INDUSTRY
           IS_RENTED
           ACCOUNT_GROUP                  0001
           NIELSEN_ID
           CLASSIFIC
           ATTRIBUTE
           ATTRIB_2
           ATTRIB_3
           ATTRIB_4
           ATTRIB_5
           ATTRIB_6
           ATTRIB_7
           ATTRIB_8
           ATTRIB_9
           ATTRIB_10
    Regards,
    Brad

  • How to generate a list of  pick dates for all scheduled deliveries?

    Hi!
      How to generate a list of  pick dates for all scheduled deliveries?
      What all the tables involved?
    Thanks
    Imran.

    Thanks for the suggestion concerning the file path.  And certainly it would have been nice to have done this before beginning.  However this is a project that has been around for quite a while, and the files have been moved into different bins.  And now the project sequence is being revised.
    So the problem is, worded slightly differently, how can I search all of the bins for the files that are used just by this sequence, ignoring the files which are used by other sequences?  Or, how can I get a list of the file paths of the files that are used in the sequence?

  • Modify Classification data for IL02

    Hi,
      I want to modify the classification data for Functional location.
    Is there any function modules available to change. I know the functional module for Material classification, but Functional location its not working.
    SO pls tell me the function modules or any other method is available.
    I was unable to do to in BDC.
    regards
    Rajesh V

    Hi,
    CALL FUNCTION 'BAPI_OBJCL_CHANGE'
      EXPORTING
        objectkeynew    = lv_funcloc
        objecttablenew  = 'IFLOT'
        classnumnew     = lv_class
        classtypenew    = '010'
      TABLES
        allocvaluesnum  = li_numc
        allocvalueschar = li_char
        allocvaluescurr = li_curr
        return              = li_return.
    if not li_return[] is initial.
    read table li_return into lwa_return with key TYPE = 'E'.
    if sy-subrc ne 0.
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
    endif.
    endif.
    Fill the new characteristic values into table parameters li_numc, li_char, li_curr depending on the data type (field ATFOR) of the characteristic value.
    Inside the FM it uses BAPI_OBJCL_GETDETAIL to get the old characteristic values and make comparision with table parameters li_numc, li_char, li_curr and updates the characteristic data for the functional location and class.
    Regards,
    Dwaraka.S
    Edited by: Dwarakanath Sankarayogi on Jan 29, 2009 10:49 AM

  • Function Module for Creation of classification data for a Routing

    Hi
    Can you please let me know if there are any function modules/Bapi's to create Classification data for a Routing?
    THanks
    Shekar

    For creating classification data, have a look at the function group CTMS and function module CTMS_DDB_SET_VALUE_INTERNAL.
    Not sure what you mean by "Routing".
    For BAPIs also look into the function group CLBPA, that sits in the same development package CLCL as the function group CTMS.
    Hope this helps.

  • The Ipad2 Application Data folder is taking up huge space in C: Drive. How can I shift the User Application data for iPad2 to another Drive?

    The Ipad2 Application Data folder is taking up huge space in C: Drive. How can I shift the User Application data for iPad2 to another Drive?

    Thanks a lot for the response. Yes, I am checking my C: drive data thoroughly now, including the hidden folders, to ascertain if something else can be moved, as per your suggestion.

Maybe you are looking for

  • Address book oddities with iPhone 4S, Lion & MacBook?

    Maybe this is an iPhone issue, but: Have any of you been having problems with losing addresses out of Address book both on the latest versions of Lion, MacBooks and iPhones? I've been very successfully using an iPhone 3 and earlier versions of the OS

  • IMac suddenly too slow to open vital apps, web pages

    This started sometime in the last week or two. My iMac, which until now has always run smoothly, will now get the rotating beach balls when trying to open my Pro Tools sessions and other apps I need for work. I've tried many of the generally suggeste

  • Function Module For Item Level Details of a Sales Order

    Hi Guys, I have to get the item level details for a particular sales document no ..I want to know if there is any function module existing for the same. Also I need any function module for getting the contact information such as contact form (KNVK-AN

  • Image size on new files

    I've recently purchased a new machine with windows vista and loaded on CS3 photoshop (which is new to me). My problem is when I open a new file it's huge. I set the size to a simple A4 and resolution 150 pixels/inch but the image size is 3.24M before

  • Download Oracle Clusterware Release 2 (10.2.0.1.0)

    Hi I tried to download Oracle Clusterware Release 2 (10.2.0.1.0) from this site http://www.oracle.com/technology/software/products/database/oracle10g/htdocs/10201winsoft.html when the download completed I tied to extract file with WinRar I found it c