PDS Creation with Object Dependency

Hello Gurus,
I´ve written a function to run BAPI_PDSSRVAPS_SAVEMULTI in order to create PDS with object dependency (Super BOM). The PDS created by my function looks good in CURTO_SIMU, but it is not respecting the characteristic dependency during PPDS Heuristic. If I take a PDS generated in ECC with the exact same attributes, the heuristics explodes the components correctly. When I run the getlist bapi, it shows both ECC created and function created with all tables (pds_header, pds_component,) filled with the same content. Though, one PDS works and the other doesnt. I am clueless.
thank you a lot.
Cheers
Rafael

Mainly due locking issues. Added some logic to wait.

Similar Messages

  • Operations with object dependency not showing in CTM PDS

    Hi all,
    When PDS is created in APO, the operations with object dependency are excluded in CTM PDS but in PPDS PDS all the operations are fetched.
    When I remove OD from operations and then CIF (curto_create), the operations are visible in CTM PDS too.
    Please let me know the  possible reasons for operations with OD getting excluded from CTM PDS
    Regards,
    RS

    Hello RS,
    If you are using SCM 7.0 please implement the following instructions in BADI /SAPAPO/CURTO_CREATE, for the method CREATE_CTM_PDS insert the code ev_true = 'x' and Activate it.
    then execute the curto_create transaction, while executing curto_create don't select change transfer. Object dependencies should be visible.
    PS: I assume there is no error in the object dependencies defined and the status of the object dependency is set to released.
    Hope this helps you.
    Thanks and Regards,
    Roopesh

  • Creation of Object Dependency (OD)

    Hi Gurus,
    Currently we have customized a program to create/update object dependencies. However we have a problem that sometimes the object dependency is deleted and not updated back. As we cannot simulate this all the time (especially during debugging) and we don't know why is it having this issue, we are looking at options to enhance the following codes.
    We are using 2 function modules CAMA_CLASS_CHAR_DEL_DEP (to delete) and CAMA_CLASS_CHAR_MAINTAIN_DEP (to create)
            CALL FUNCTION 'CAMA_CLASS_CHAR_DEL_DEP'
              EXPORTING
                CLASS                  = <FS_DEP_CHR_A>-CLASS
                CLASS_TYPE             = '300'
                CHARACTERISTIC         = <FS_DEP_CHR_A>-CHARACT
                DELETE_LOCAL_DEP       = 'X'
              IMPORTING
                RETURN                 = WA_RETURN2
              TABLES
                DEP_ASSIGN_DEL         = IT_DEP_ASSIGN_DEL.
            READ TABLE IT_RETURN INTO WA_RETURN WITH
                      KEY TYPE = 'E'.
            IF SY-SUBRC NE 0.
              CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
                EXPORTING
                  WAIT = 'X'.
            CALL FUNCTION 'CAMA_CLASS_CHAR_MAINTAIN_DEP'
              EXPORTING
                CLASS                 = <FS_DEP_CHR_A>-CLASS
                CLASS_TYPE            = '300'
                CHARACT               = <FS_DEP_CHR_A>-CHARACT
                DEPENDENCY_DATA       = WA_SEL_DEPDAT
                KEY_DATE              = SY-DATUM
              TABLES
                DESCRIPTION           = IT_SEL_DEPDESCR
                SOURCE                = IT_SEL_SOURCE
                DOCUMENTATION         = IT_SEL_DOC
              EXCEPTIONS
                ERROR                 = 1
                WARNING               = 2
                OTHERS                = 3.
            IF SY-SUBRC EQ 0.
              CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
                EXPORTING
                  WAIT = 'X'.
    Points will be rewarded for useful answers. Many thanks in advance.
    Rgds

    Mainly due locking issues. Added some logic to wait.

  • Error during cration of object dependency

    Dear Experts,
    During creation of Object dependency by T code-CU01 the system gives an error
    E28151 Table ZPPSFCTWEFT does not exist
    E28024 Syntax error in simple action/procedure
    The table ZPPSFCTWEFT is checked by se16, but it shows the table.
    The class characteristic configurable profile is maintained
    Kindly suggest me  some concerned solution for this.
    regards

    Dear Jayant,
    Try with rebuilding index with the particular table.
    Regards
    Nizam

  • BAPI_OBJCL_CHANGE_KEY AND OBJECT DEPENDENCY

    We use BAPI_OBJCL_CHANGE_KEY  in a class type 023 with object dependency.
    When we try to modify the characteristic which produces a new valuation in an other characteristic from the same object (material and batch) problems occurs. The system displays message C1821 or C1842 in certain circumstances.
    Thank you in advance.
    Soledad Olcina.

    Hey Chris,
    You cannot use the BAPI for class type 001, This BAPI can only be used with class types which have multiple objects enabled.
    For changing the characteristics of material try using  BAPI_OBJCL_CHANGE.
    Here the key of the object will be your material number

  • How To Upload Object Dependency with Long Source Code

    Hi Everyone,
    I use LSMW (IDoc:KNOMAS)  to upload the Object Dependency with T-Code CU01. However I can not upload  the formula/source code within more than 72 characters due to the maximum size of the source code field in dependency editor is 72 characters.
    Is there anyone that have the same problem and know the solution? Or is there any advice / tips how to upload the Object Dependency that have long source code?
    Any comments is appreciated. Thank you before hand.

    Hi Mika Permana,
    Same Problem am also getting when i was trying to upload more than one object dependency syntax's on CU01,
    After that i came to know we can restrict that all those things before 72 character's and we can add all those things to the next line in notepad,
    For Example,
    Header 1
    $SELF.Z_PRICE_HDC= 'HDC30' IF TURNAROUND = 'TAT5' AND NDF_COLOR1 = '4/4'
    AND NDF_COLOR1 = '4/4'
    Here We cant upload the object dependencies through to excel file,because KCD_EXCEL_OLE_TO_INT_CONVERT and ALSMEX_TABLINE function module having 'Value' field ,its length is 50 only,
    so it cant allow after 50th word. so i preferred to use notepad!!!
    the following code is for your reference.
    LOOP AT i_index WHERE knnam_001 = it_mmtab-knnam_001.
           l_count = l_count + 1.
           CONCATENATE 'RSTXP-TDLINE(' l_count ')' INTO var1.
           PERFORM bdc_field       USING var1                               " 'RSTXP-TDLINE(01)'           " syntax
                                    i_index-tdline_01_006.
           IF l_count > 15.
             MESSAGE 'LINE ITEM EXCEEDED > 15 ' TYPE 'E'.
           ENDIF.
         ENDLOOP.
    Thanks & Regards,BASTIN VINOTH NGSAP Technical Consultant, Unisoft Infotech Pvt. Ltd.,

  • Equipment master creation with classification

    Hi,
    In plant maintenance how can create the equipement master creation with classification.
    Ram Rathode

    HI Ram,
    In SAP system,you only have to input the Equipment details like Mnaufacturer,Warranty,WBS element etc.
    Now which fields are mandatory depends on business.
    In classification,you have to choose Equipment Classification Type as 002 and then Choose the Class,for example BLOWER.
    Once you choose the Object you will have many dependent fields to enter value into,just do that and save.
    Please revert in case of any query.
    Thanks,
    Ravi

  • How can I trace creation of objects?

    I am wondering how I can trace creation of objects with new. For example:
    interface CreationListener {
        void objectCreated(Object o);
    class CreationNotifier {
        static void registerCreationListener(Class cls, CreationListener listener) {
            // registers `listener' to be notified after creating any object of class `cls'
    class Test {
        public static void main(String[] args) {
            CreationNotifier.registerCreationListener(Integer.class, new CreationListener() {
                public void objectCreated(Object o) {
                    System.out.println("Created Integer " + ((Integer)o).intValue());
            new Integer(2);  // Now I would expect to see `Created Integer 2' on my console...
    }In other ways I want to get informed about every object of the specified class that gets created
    throughout the application.
    Does anyone have an idea about it? I was trying to find something appropriate in SecurityManager
    but I failed :(
    Please help!

    I think you did not understand exactly what I meant. Your solution is only good for classes written by
    me and I wanted to catch all object constructions in any class, e.g. one that I have only in a binary form.
    Maybe Hashtable is
    not the right data structure but I got to go back to
    work :-) Let me know if you come up with a better
    implementation.
    -- Niladri.I created a WeakHashSet class on top of WeakHashMap which uses one static object as a value and really cares only about the keys. In the registrating class I have a HashMap with keys of type Class and values of WeakHashSet. The register method is simple:
    public void register(Object o) {
        if (o == null) return;
        if (!map.containsKey(o.getClass()))    // this is the first object of this class being registered
            map.put(o.getClass(), new WeakHashSet());
        ((WeakHashSet)map.get(o.getClass())).add(o);    // WeakHashSet implements Set interface
    }This design ensures (because of using WeakHashMap) that I only have live objects in my structure after running GC (in fact, I call System.gc() in methods to find the live objects of a specific class).
    As you can see, my only problem is to have the object registration automate for classes that I have not written (and do not have sources).
    And using the profiler is not portable (as I guess) - in examples for JProbe they used DLL's and UNIX shared objects. And that requires unusual switches when starting JVM. I would like to have an all-Java language solution as the code fragments which I have described come from a library which I am writing now and I should not make the users of it depend on switches or dynamic libraries...
    Anyway, thanks for your good will. :-)

  • Object dependency for batch characteristic

    I have 1 class with multiple characteristics and 1 of the characteristics should be entered (mandatory) in case of a certain split valuation type (which is covered in the batch info). This should be done via object dependencies within the charateristic. Anyone knows how to do this?

    Dear Sairam
    As explaind to you in the earlier thread for product or proportion unit. you need not maintain object dependency for the characterestics. You have to maintain product unit which will appera as alternatvie UOM. While making GR the Alternate or product UOM will be seen as per the plan value(conversion factor) maintained in material master. You can change both Basic UOM and Alter UOM as per the actual caonversion recieved. This conversion factors will be saved in the batch classification.
    Regards
    MSR

  • How to get the Purchase order Qty in the object dependency

    Hi,
    We are using variant pricing in the purchase order. I have condition type say u201CZVBPu201D for Pallet cost. I defined Pallet cost as 5 USD per each (pallet). I have to calculate Number of pallets = Purchase order Qty/ 5. The number of pallets should be rounded to nearest integer.
    My question is how to get the Purchase order Qty in the object dependency?
    Is there any reference table and field can be used to get Purchase order Qty just like we use MMCOM-VKOND for variant pricing.
    Appreciate your help
    Thanks,
    Srini

    Hi,
    1. I do not have system now so I can not conclusively tell about table field .
    2. Since I did it long back so I also do not exactly remember it, there are more than one place where PO qty appears for example Item overview and Item details - one of the PO qty when used in the characteristic do pull the PO qty which can be used for variant pricing (so request to please update the forum with the correct table and field once you find it - in the meantime if I get opportunity to get to system I will also try and find out ).

  • BAPI_OBJCL_CHANGE error: valuated with object dependencies

    Hi expert,
    having programmed an extension for a customer for automatic maintenance of characteristic values of technical object, we have come across an error.
    When using BAPI_OBJCL_CHANGE to change a characteristic followed by BAPI_TRANSACTION_COMMIT (without wait) we have two scenarios:
    1. if the technical object has no value in the characteristic before calling  BAPI_OBJCL_CHANGE  the characteristic will be set.
    2. if there is already a value set there is an error stating
    Characteristic 'XYZ' valuated with object dependencies (old value '00')
    However, I can't find a dependency definition in CT04. do you know what's wrong here,or what is a usual cause of that?
    thanks
    Stefan

    Hi,
    Please see the given link, It may help you.
    Re: BAPI_OBJCL_CHANGE and BAPI_TRANSACTION_COMMIT
    Regards,
    Shamma

  • Variant configuration-- syntax error in creation of object dependencies

    In variant configuration when i try to create object dependency (tcode=cu01), after entering the dependency and also description when i enter the syntax in the source code it is giving error: error in syntax check for simple condition
    I have entered syntax as  : engine_cap in ('1000','1400','2000'), pls guide me with the solution to create object dependency

    Dear, Shakeer
    Please follow along with my very own config guide of variant config.
    1)     Create a configurable Material Using KMAT u2013Material Type. Item Category 0002 and Item Category Group 0002. Go to classification tab-here you maintain the class type 300 and assign the class, we will create this shortly. (So after creating class come back into MM02 and input the class that you create in step 2.)
    2)     Create a class in T-Code CL01. Use class type 300 for Variants. In this we assign the characteristics we will create shortly.
    3)     Create characteristics in T-Code CT04. Create your characteristic like for example, Z_Type, Z_Model, and Z_Color.
    4)     We must create a characteristic for the pricing. Example, Z_CarPrice inside this characteristic we must maintain. Table Name SDCOM, Field Name VKOND in the additional data tab. Also, go to restrictions tab and enter the class type 300 Variants. Now in order to make this pricing work for you, you must maintain (enter) all the values from the characteristics. For example, Red, Blue, Black, Honda, Toyota, GLI, XLI, and 2.0D.
    5)     Now going back to the characteristics in CT04 change mode. Make sure Basic Data has *Multiple Selections circled. * Character Format has 26 and a check in case sensitive. Make sure in restrictions tab class type 300 Variants is present. Go back to Values and highlight the first one. Example, Red then go to Extras->Object Dependencies->Assignments You must maintain this code $self.Z_CarPrice=u2019Redu2019 in basic data make sure itu2019s released & procedure is filled in. Go back to dependency editor and paste the same code there after 000010 $self.Z_CarPrice=u2019Redu2019 and do this for each and every value. Very Important * Maintain configuration profile in T-Code CU41 for the material -> Priority 01, Variant Configuration, Class 300, status, Released 1, then click save. Note: If 2 conditions are inactive use class group A instead of B in SPRO for Condition type VA00.
    6)     Go to T-Code VK11 and enter VA00 condition type. Enter all the values maintained in the characteristics for example, Red, Blue, Black, Toyota, Etc and enter the price then click on save. Now it should work fine in VA01. Make sure you have assigned the VA00 condition type in the pricing procedure.
    Good Luck,
    Muhammad Ali Lozada

  • BOM changes(Not creation) with EC Number

    Hi
    I want to make the ECN as mandatory while changing the BOM,not for creation.
    I tried by setting OS27,OS25 settings for BOM. I tried BOM creation with status 3(With history requirement). System gives only warning message,not the error message.(Message no. 29045)
    I tried to make the Change number field as mandatory,but it applies it to CS01 & CS02. I want only in CS02.
    Plse help me out if any knows the soultion.

    Dear Sudhar,
    1.Please check in OS27 - Tick mark is included for EC Management Active &
    BOM validity manitained and History Requirement.
    2.In OS25 - For History Requirement.
    3.Get the help from ABAP consultant,to make use of field exit for the particular
    screen CS02 ,which has got a screen number.The system will not allow the user
    to enter into the next screen unless that field is not filled.
    4.Check for the Auth.Object C_STUE_NOH
    With this Logic only we are using in my present project.
    Check & reply.
    Regards
    Mangal

  • Routings: mass change of object dependency

    Hi Friends,
    Do you know if there is way to apply a mass change on object dependency in Routings?
    My scenario is: add one new obj dependency at one operation on several (hundreds) routings.
    Thanks a lot for any help or suggestion.
    Bye,
    Flavio Ciotola

    Dear,
    BDC is good option you can record the BDC for CA02 through SHDB.
    Or else in mass you can do this wth CEWB - Engineering Workbench  first define the  Working Area in OP77 lets say Working Area    SAP_OPERATION select focus on operation also select the required field like Object dependency.
    and then go ahead with CEWB.
    Hope it will help you.
    Regards,
    R.Brahmankar

  • Mass Upload of object dependency for characteristics value

    Hi ,
      I need to upload the object dependency for characteristics values through transaction CT04. My input data consists of characteristcs name , characteristics value and the object dependency (KNNAM) . Need to populate the KNNAM field alone .
    Have tried with the FM 'CTMV_CHARACT_CHANGE_KNOWL_VAL' which suits my requirement but teh dependencies are not getting uploaded . Am I missing anything ? Since I do not have class details i.e class num and class type I am not able to use  the BAPI like 'BAPI_CLASS_CHARVALUE_LOCAL_DEP ' . Please suggest any othe r suitable method .
    Thanks in advance.
    Sanjeev

    Hi,
    Please check the below link..
    BAPI for Characteristic Dependency
    Thanks.

Maybe you are looking for