Creating Constraint for a Dependency

Hi all,
        I am basically an abaper, there is a requirement to create a constraint for a dependency. when i go to the transaction cu01 to create a dependency and try to add the code for constraint. The screen do not show me any means of adding the code. There are options for adding PRECONDITION, ACTION, SELECTION CONDITION and PROCEDURE. But when i go to the transaction CU03 i see additional option on the screen RULES & CONSTRAINTS. Could any help me out in creating the constraint for a dependency.
Thanks in Advance
Shiv

Hi Gurav,
             Thanks for your previous reply. The requirement is, i have to compare the weight assigned to the material while creating sales order with the Max and Min weight set for the material in variant configuration.
Example:
             Material     -     312.
             Min Weight  -   100 Gm
             Max Weight -   1000 Gm
Variant Configuration details:
Varient Tables - ZZDIS_FMT_MINWGT & ZZDIS_FMT_MAXWGT
Dependency Net - ZZDIS_CON_FMT_MINWGT & ZZDIS_CON_FMT_MAXWGT
Dependency (constraint) -   ZZDIS_CON_FMT_MIN01 &   ZZDIS_CON_FMT_MAX01.
Characteristics : ZZDIS_FMT_MINWGT & ZZDIS_FMT_MAXWGT
Class: ZZDIS_FMT_MINWGT & ZZDIS_FMT_MAXWGT.
        I need to write the code in the constraint with the above details. Could you please help me on that.
My official mail Id - [email protected]
Thanks in Advance
Shiv

Similar Messages

  • How to create the change document functionality for a dependent objects?

    May I please know how to create the change document functionality for a dependent objects?
    I have done it follow the same process as for business process objects. But when i try to test it in BOBT, there is no records under "FIELD_CHANGE_WITH_FILTER". It seems the change hasn't been recorded.
    If the way I did to create change document for dependent object is correct, please also kindly advise the possibilities for why there is no record during testing.
    thanks in advance.

    I also have some doubts about the business object.In this case,one abstract BO hase a subnode wihich is root extended.I added the change document for this node under the category "root_extended" and then tested the function in BOBT.I got some error message "can't find the root key".Shall i redefine the method /BOFU/IF_CDO_CREATION~IS_CDO_CREATION_ACTIVE so as to solve the problem?
    Thx.

  • Create structure for dependent objects

    Hi All,
    Can any one tell me why there is no create structure for dependent objects?

    Hi Rehman,
    Thanks for your reply. I am looking forward for your document. My Email ID  [email protected]
    Reema,
    I have checked the check box. The Thumbnail column is coming but if I upload a picture or any document the thumbnail column still remains blank.
    Looking forward for your help.
    Warm regards
    Purnendu

  • Enrollment of Benefits for a dependent and for date in the past

    Hello Experts-
    Can anyone let me know? What kind of changes need to be done on backend and portal for enrollment iview to enable a date in past for enrolling a dependent to the benefits..
    Thanks,
    Raj.
    Edited by: raj1234 on Feb 25, 2011 9:16 PM

    The way we have configured this as follows:
    -  We ask employees to first add all the dependents to the system before beginning their enrollment process.
    - Adjusted the Use cases for the Dependent infotype and subtypes accordingly.
    - Implemented the BADI (with custom logic for DEFAULT_DATE) HRXSS_PER_BEGDA to control the start date of the enrolled dependents.
    - We control the start date of the dependent records created in various ways (birth day of dependent, employee start date, adjustment reasons, ... )
    With this, we are able to provide employees with the ability to add dependents as of a past date and hence enroll dependents in Benefit plans as well.
    - Shanti

  • Field constraint for days of week using single letter representation.

    I know I can add a check constraint for m,t,w,r,f,s,u
    How can I add a constraint that will allow any combination of the above.
    For example it would allow m or mf, or mwf
    Someone said it could be done with trim but I can not figure it out.
    Thanks in advance.

    You can use regex functions, for example :
    create table t1 (v varchar2 (15) constraint c1 check (regexp_replace(
                                                          regexp_replace(
                                                          regexp_replace(
                                                          regexp_replace(
                                                          regexp_replace(
                                                          regexp_replace(
                                                          regexp_replace(v, 'm','',1,1),
                                                                            't','',1,1),
                                                                            'w','',1,1),
                                                                            'r','',1,1),
                                                                            'f','',1,1),
                                                                            's','',1,1),
                                                                            'u','',1,1) is null) );
    You can try to do this code more simple, using only one regexp function.

  • Script to create synonyms for the tables of Oracle Applications

    Team,
    For Oracle Applications 11i on W2K, where might I find a script to create synonyms for all of the application tables? I would think there would be a standard script somewhere in one of the directories created during the install or on the CDs.
    Thanks,
    Luther

    John, it is ssome sort of a bleed, but in this case it's not the part that 'might be cut off' that matters; it's the part that still needs to be on the page. Yes, I meant it to be (virtually) not-noticeable for the casual reader. Of course you can make it part of the page design, that ought to ease up matters.
    The amount pages shift horizontally because of binding is called "creep", and this depends on the type of binding and the thickness of the paper. You cannot adjust for creep unless you know exactly how much this is and how your book is going to be printed and bound.
    Airkite:
    But the book that you printed worked out alright? Was it done with a different method?
    This was a simple outlined text, not an image. Through the inaccuracies of printing and binding combined, there were no straight edges *anywhere* but fortunately the lines were thick enough to let you mentally connect them
    This was done (I'm sure) with the method you proposed.
    There is an alternative way, but it's way more expensive (on the other hand, the result is impressive): after the entire process of printing, binding, and cutting, books are put in a clamp one at a time and fed through a silk screen printer, fore edge on top, and printed with whatever you like.
    I know of the existance of this technique but I haven't seen a book done like this in years and have no clue at all of the costs involved (writing that down in one sentence makes me realize those two might be connected).

  • How to relax the constraints of the dependent package

    Updating Multiple Packages
    Packages might have cross-dependencies and, thus, require updating at the same time. The packaging software will enforce a consistent image on the system: If it cannot satisfy the dependencies, the packages will not be modified. If such a dependency exists, you need to relax the constraints of the affected packages.
    The message reported by the packaging software will be of the following form:
    # pkg update [email protected]
    Creating Plan \               
    pkg update: No matching version of package_name can be installed:
       Reject:  pkg://solaris/[email protected],5.11-0.175.0.2.0.3.0:...
       Reason:  All versions matching 'require' dependency
       pkg:/[email protected],5.11-0.175.0.2.0.3.0 are rejected
    how to relax the constraints of the dependent package

    You might also want to review the Solaris 11 documentation:
    Relaxing Version Constraints Specified by Incorporations - Adding and Updating Oracle Solaris 11.1 Software Packages
    -- Alan

  • How to create variables for offsets?

    Hi BW Experts.
    I have a tricky one that has been posted before, but I couldn't get my head around a feasible answer just yet.
    My customer wants to be able to display his ageing AR report with different buckets, depending on the month.
    For example, if it's January he wants to see buckets for 1-30 days, 31-60 days, 61-90 days and 91 to 120 days.
    If it's February, he wants to see buckets for 1-28 days, 29-58 days, 59-88 days and 89-118 days.
    If it's March, he wants to see buckets for 1-30 days, 31-58 days, 59-88 days and 89-118 days,
    and so on.
    We have create a structure in the query, filtering the key figure 0DEB_CRE_LC by 0NETDUEDATE. We have a variable for 0NETDUEDATE as a starting date and use different offsets to get the buckets. However, the offsets need to be hard coded, preventing us the flexibility of choosing the days in the buckets.
    Is it possible to create variables for the offsets, so the user can choose the days for the buckets at the report run time?
    Thanks in advance.
    Kind regards,
    Aline Passos.

    Hi Aline,
    as user is entering 0NETDUEDATE & he needs different buket for different months, which are more or less decided well in advance, I believe it cane be handled by User Exit varaibles which will draw value from the variable value you have entered & go backward.
    you will need to write the ABAP code with your logic to drive the correct user exit values.
    hope it helps
    regards
    VC

  • How can we create subtypes for om custom infotypes

    hi,
        I want the detailed procedure how to create Subtypes for Organzational management custom infotypes.
        Pls send me the detailed path how to create Subtypes for Org management.
    thanks & regards,
       Sekhar.

    Access transaction SM30/31 for table maintenance. Enter view name V_778U.
    Select maintain and enter the subtype for the custom infotype.
    Also remember to enter the time constraint for the subtypes mainatined in table T777Z.
    SPRO Path
    Personnel Management --> org management --> basic settings --> data model enhancement --> infotype maintenance --> maintain subtypes.
    Regards
    Ravikumar

  • Modify constraint for "on delete cascade"

    hello all,
    i have a table with a foriegn key to another table. this constraint define no action on delete on create time. but i want to modify this constraint for "on delete cascade" now. i entered following sql but get an error. how can help me?
    SQL> alter table TBL1 modify(constraint TBL1_FK foreign key(GET_NO)
    references TBL2 on delete cascade);
    alter table TBL1 modify(constraint TBL1_FK foreign key(GET_NO)
    references TBL2 on delete cascade);
    ERROR at line 1:
    ORA-02275: such a referential constraint already exists in the table

    You can only modify a state of constraint. To change the action you have to drop and recreate it.
    Best regards
    Maxim

  • Please Help - Avoid default name when creating constraints

    Here I am creating two very simple tables:
    create table supplier
         id number not null,
         constraint pk_supplier primary key (id)
    create table product
    id number not null,
    supplier_id number not null,
    constraint pk_product primary key (id),
    constraint fk_product_supplier_id
    foreign key (supplier_id) references supplier(id)
    After done while I choose to view table constraint information by using:
    select table_name, constraint_name
    from user_cons_columns
    where lower(table_name) = 'product';
    I get result:
    TABLE_NAME                     CONSTRAINT_NAME
    PRODUCT                        SYS_C005441
    PRODUCT                        SYS_C005442
    PRODUCT                        PK_PRODUCT
    PRODUCT                        FK_PRODUCT_SUPPLIER_ID
    What is the "SYS_C005441" and "SYS_C005442" for? Can I avoid creating them?
    Thanks

    Justin Cave wrote:
    Are you suggest not explicitly naming all your constraints? Or just the NOT NULL ones?No, not at all. Did not even thought that far when I responded. Bit of foot in mouth as I only thought of not null constraints. Blame it on a lack of coffee. :-)
    I usually name primary & foreign key and check constraints. But not null constraints - too much of an effort to name them IMO.
    But you do raise an interesting topic. Why bother naming some constraints (e.g. PK and FK) and not others (e.g. not null)? So playing devil's advocate, why should we be naming constraints at all?
    It sounds like you're suggesting that all constraints should get system default names. Well, one can argue that the same effort of naming other constraints is not worth it - why have null constraints as the exception to implicit naming? I would think that the issue I raised also applies to all constraints.
    You have multiple foreign key constraints for INVOICE_ID - how do you name these? I would like both the table and column names as this will provide the meaning needed when seeing the constraint being violated. But with 30 chars only, that is a problem. So invariable one needs to start to abbreviate table and column names in order to make it meaningful constraint name. Been there many times - disliked the constraint name I came up with every time, as it was a compromise and not the actual naming format I would have preferred.
    If that's what you're suggesting, doesn't that create problems for you when different environments have different constraint names? I know personally that I'd much rather have named constraints so that when there are constraint violation errors in production, I can start troubleshooting the problem in my local environment without first determining how to map the production constraint name to my local database's constraint name. Understand your point - and yes, it can be an issue. But by the same token, why should an application user ever see a default Oracle exception? With the exception of system-type exceptions (e.g. no more tablespace space, eof on communcation channel), all other exceptions should be custom application exceptions.
    Showing for example a "+ORA-00001: unique constraint (xxx.xxxxx) violated+" is wrong IMO. The app code should trap that exception and raise a meaningful and unique application exception for that. The user seeing anything other than a custom app exception, should itself be an exception.
    And I'd much rather be able to put the constraint name in a script that is to be promoted through the environments rather than coming up with a process that uses dynamic SQL to figure out the name of the constraint I want to do something to. Well, I would not rely on a constraint name itself to determine what it is. Just because it says fk_invoiceid_invoices does not mean that is is a foreign key on column invoice_id and references the invoices table. The safe/proper thing to do would be to query the data dictionary and confirm just what that constraint is.
    I suppose if you know that all the lower environments are very recent clones of production rather than running all the scripts in source control that these problems may not be particularly large. But I'm curious if you have some better approach to handling them (or if I'm completely misinterpreting what you're suggesting).Not sure if you recall some feature discussion with Tom and others (was on asktom?) when someone came up with this core issue and suggested it be addressed by allowing one to define an exception message with the definition of the constraint. Cannot recall the exact syntax proposed, but I do remember thinking that it was not a shabby idea - as this solves the problem of having to invent a meaningful name using 30 chars only. And it also removes the need for trapping that constraint violation in all app code that may cause the exception and raising a custom and meaningful app exception instead. Not too mention that plain and direct SQL access will show the same exception message.
    Perhaps in Oracle 12c? I assume the c as it seems that The Next Big Thing is cloud computing and surely Oracle 12 will somehow try to exploit that buzzword - as it has with i (Internet) and g (Grid) versions. ;-)

  • How to create index for particular table in R3

    Hi
    My load is taking too much time and it leads to process over due error. Does creating indexes on table in r3 side will solve this issue? If so how can we find out on which table does this particular data source depend. I went to maintain extract structure and findout only one table is supplying data for this data source.
    Is there any other factors depend to solve this.
    Thanks
    kk

    Hi,
    it will depend on the table.... Having an index created will speed up the loading but slow down the insert therefore slowing some process perhaps...
    May I ask which table it is? And which fields would you need to index?
    Are you sure that bottleneck is located in R/3? Analyze your loading time in the monitor and see if this is really the case.
    Otherwise you can create index for a table in Tx SE11; first check if an index is not already created...
    hope this helps,
    Olivier.

  • Create user for CPS in _ UPPER CASE LETTERS _ if using JSM on SolMan

    only create users for CPS in UPPER CASE LETTERS if using JSM on SolMan
    Dear CPS Admins,
    If you plan to use Job Scheduling Management (JSM) on SAP Solution Manager together with CPS by Redwood please always create any users in CPS only with upper case letters to avoid issues in the communication between SolMan and CPS.
    The user creation for CPS is done in the UME (Java user administration, alias /useradmin).
    Actually the CPS user itself is only created in CPS during the first logon.
    Both CPS and the Java UME are case sensitive. So you can create users in uppercase, lowercase or mixed letters. But of course the system does still not allow duplicate names. So you can either create MUELLERP, MuellerP or muellerp - but not multiple of them.
    Now, if the SolMan communicates with CPS for Job Scheduling, the actual user name is taken in some kind of a "trusted RFC like" way and checked on the CPS system connected to the SolMan. If the current SAP user does not exist on CPS no activities are possible, neither in read mode (read existing CPS jobs) nor in write mode (change existing jobs or create new ones).
    Unfortunately the Solution Manager transmits the current user name to CPS only in upper case letter. So if the CPS user was not created in UPPERCASE letters in CPS the communication will fail. Therefore, think about creating CPS users in UME only in UPPERCASE letters. Changing this later is difficult to impossible.
    Best regards,
    Peter

    hi,
    I tried to reproduce your issue but I was not able to create a UME user with lower case letters.
    UME automatically converted the user name into upper case after saving. So even if I enter "cps" as user name UME stored the user name as "CPS".
    (maybe that happend because of the existing SU01-UME integration in our SolMan system)
    If UME would be case sensitive I would expect that it is possible to create the user "CPS", "cPs" and "cps".
    Regarding the SolMan-CPS connectivity:
    Transaction SU01 allows only upper case letters (in user name and alias). Since you're starting from an ABAP system only user names with upper case letters are supported. It's a technical constraint of the ABAP user management that user names consist of upper case letters only.
    Kind regards,
    Martin

  • Problem while creating index for temporary table...

    Hi,
    i have created index for a temporary table and this script should used by multiusers.So when second user connecting to it is giving index i mean object already exists.
    So what i need is when the second user connected the script should create one more index on temporary table.Will sql server provide any random way of creating indexes if the index exists already with that name??
    Thank You,

    Nope..
    SQL Server is cleaver enough to handel this situation.
    When you create a index or constraint on the Temp Table, eventhough the index name is duplicate it will allow.
    But it only possible on temp tables (prefixed with single #).
    To Test this,
    Open Two window,
    Execute the below window on the opened 2 window..
    create table #test
                id int
    Insert Into #test values(1);
    Insert Into #test values(2);
    Create clustered index testindex on #test(id)
    Now you wont get any error on any of the window. Rite?
    To fetch the created index details, execute the below code on any one of the window..
    select * from sysindexes where name like '%test%'
    Now you can see the 2 rows with same indexname but refereing with different table. Yes. all the temp tables (#) will be suffixed with unique number to avoid the object already found error while multiple users connects.
     

  • Constraints for presentation variable in obiee 10g

    Hello Guys,
    What are the constraints for presentation variable in obiee 10g?
    requirement: I am unable to find the variable option, when i selects CONTAINS operatior, during creating the prompt.

    Hi,
    In 10g, a dashboard prompt can only set presentation variables when you use the "is equal to/is in" operator. Also, it is not available in case of MultiSelect prompt.
    Refer to the below thread for some alternate solutions:
    visualize prompt values into report Answer?
    Thanks

Maybe you are looking for

  • Scanning from HP 3030 to Mac OS 10.9.5

    I am able to print from the mac 10.9.5/HP 3030 But when I open the mac system preferences to check the printer config, the scan option does not show. How do I scan?

  • Ipod video as vault

    I am trying to setup my 60g ipod video as one of my vaults using usb 2 . I can create the ipod as my vault but aperture keeps closing unexpectedly when i hit the update button. My ipod has been set to enable disk use. anyone using an ipod as a vault

  • Problem deploying VB6 project after upgrade from version 8 to version XI

    Hi, I'm upgrading a VB6 application from crystal report 8 to crystal report 11. When running on development machine it works fine, but when i deploy the application on the client pc instead of the activex control i get a white background with no erro

  • OIM 9.1 on RHEL 5.X

    Has anyone got any experience of running OIM 9.1 on RHEL 5.X? I know it is not certified yet but perhaps someone has tested this anyway? Has anyone got any information from Oracle about when OIM 9.1 will be certified on RHEL 5.X? Best regards /M

  • 10.2.0.3 database is compatible with 12.1.2 ?

    Hi all, im upgrading my application from 12.0.6 to 12.1.2 database version is 10.2.0.3 so its compatible fro 12.1.2 application or i have to upgrade database also pleas update any idea thank u