How can i create a SP transaction to make Dimension1 Mandatory

Hi All
How can i create a SP transaction to make Dimension1 Mandatory
Best regards
Rashid

Dear Rashid,
set ANSI_NULLS ON
set QUOTED_IDENTIFIER ON
go
ALTER proc [dbo].[SBO_SP_TransactionNotification]
@object_type nvarchar(25),                     -- SBO Object Type
@transaction_type nchar(1),     -- [A]dd, <u>pdate, [D]elete, [C]ancel, C[L]ose
@num_of_cols_in_key int,
@list_of_key_cols_tab_del nvarchar(255),
@list_of_cols_val_tab_del nvarchar(255)
AS
begin
-- Return values
declare @error  int                    -- Result (0 for no error)
declare @error_message nvarchar (200) -- Error string to be displayed
select @error = 0
select @error_message = N'Ok'
IF (@object_type = '30' AND @transaction_type= 'A')
BEGIN
IF EXISTS (SELECT DocEntry FROM [dbo].[JDT1] WHERE (ProfitCode IS NULL OR ProfitCode = '') AND DocEntry = @list_of_cols_val_tab_del)
BEGIN
SELECT @error =1, @error_message = 'Profit Center cannot be blank -Enter Plant Code'
END
END
select @error, @error_message
END
Jeyakanthan

Similar Messages

  • How can I change an objectclass definition to make a mandatory attributeoptional ?

    I am using my own objectclasses. I want to change the definition of
    one of them so that an attribute that is mandatory becomes optional.
    I have tried modifying cn=schema with an LDAP client. Certain
    modifications are accepted (adding new attributes, for example)
    but my mandatory attribute remains mandatory. I get no error
    message.
    My directory is Novell eDirectory 8.7.3
    Thanks for any help
    Franois Beretti

    This may work:
    Atomic Operation
    On these operations it is necessary that the operation be performed
    within the same transaction. Modification of this type must be atomic or
    they will fail with an error of constraint violation.
    Further as schema entries are typically done on attributetypes or
    objectClasses which are essentially muti-valued attributes, it the
    "delete" operation must reference the value being modified EXACTLY what
    exist in the schema.
    As an example:
    Add Attribute to a ObjectClass
    Here is an example of a modification to a class that adds an attribute
    to the class:
    dn: cn=schema
    changetype: modify
    delete: objectclasses
    objectclasses: ( 2.16.840.1.113719.1.131.6.1.23 NAME 'myNewClass'
    SUP top MUST ( myNewAttrOne $ myNewAttrTwo ) MAY
    (myANewAttrThree $ myNewAttrFour $ myNewAttrFive ) )
    add: objectclasses
    objectclasses: ( 2.16.840.1.113719.1.131.6.1.23 NAME 'myNewClass'
    SUP top MUST ( myNewAttrOne $ myNewAttrTwo ) MAY (
    myNewAttrThree $ myNewAttrFour $ myNewAttrFive $
    myNewAttrSix ) )
    Limitations
    There are some limitations with making modifications to existing schema
    entries. These are based on referential integrity and follow common sense.
    Any schema modification that could possibly invalidate any data is not
    allowed. For example, in the first example above, the upper bound was
    changed from 8 to 40, thus increasing the range of possible values. The
    bound could not be modified to a value below 8, or it could invalidate
    data values.
    Similarly, an attribute could be changed from a single-valued attribute
    to a multivalued attribute, but not the reverse as there may be data
    with multiple values. You could change a class and make an object a
    container, but you cannot change a container object into a leaf object
    as the container may contain other objects.
    -jim
    Franois Beretti wrote:
    > I am using my own objectclasses. I want to change the definition of
    > one of them so that an attribute that is mandatory becomes optional.
    >
    > I have tried modifying cn=schema with an LDAP client. Certain
    > modifications are accepted (adding new attributes, for example)
    > but my mandatory attribute remains mandatory. I get no error
    > message.
    >
    > My directory is Novell eDirectory 8.7.3
    >
    > Thanks for any help
    >
    > Franois Beretti

  • How can I create a Z version of transaction

    How can I  create a Z version of the transaction MKVZ so it would be ZMKVZ and would be an exact replicate of the standard report but with some additional fields as below.
    Name2
    Street 2
    Telephone
    Fax
    Email
    Vat reg number
    All additional field should be from LFA1
    Can eveyone advice me , Many thanks

    Hi,
    If you have to create a Z transaction of standard tcode, all you have to do is copy the entire program into a Zprogram and then assign a Tcode.
    And for adding additional fields....because you are copying the program check where the field catalog is being build and add the additional fields into it and add the corresponding logic to display those fields with data.
    regards,

  • How can I create an aging summary that shows unreconciled transactions only.

    Please help experts!!

    Duplicate Thread...
    How can I create this aging summery in System Currency. Currently it shows Local Currency.
    SELECT distinct T0.[DocNum], T0.[DocDate], T0.[CardCode]"Customer Code",  T0.[CardName], t0.doctotal"Total Payment", T0.[PayNoDoc]"payment on account", isnull(t0.openbal, '0')"Not reconciled", t0.nodocsum"Total before partial reconcile", t0.nodocsum-t0.openbal as 'Reconcile Amount'
    DocTotalSy TotalpaymentSC,OpenBalSc as NotReconciledSC ,NoDocSumSy as "Total before partial reconcile SC"
    FROM [dbo].[ORCT]  T0 left JOIN RCT2 T1 ON T0.Docnum = T1.DocNum WHERE T0.[PayNoDoc] = 'y'  and isnull(t0.openbal,'0') <> '0' and t0.doctype = 'c'
    Regards,
    Kennedy

  • How can I create a new E-mail address for the Marketing Manager

    Hullo,
    how can I create a new E-mail address for the Marketing Manager (i.e. marketing professional role in SAP CRM) please.
    That when you go and create a new E-mail campaign you need to choose an E-mail form in addition to the E-mail address of the Marketing Manager.
    Kind Regards.

    Hi Alhussien
    Add it to his Position in the Organisational Model. Transaction PPOMA_CRM.
    Under there address section is an option to populate the email address.
    Regards
    Arden

  • How can I create a single order from multiple quotations?

    How can I create a single order from multiple quotations that I have created by the transaction VA21 ?
    Thanks in advance for the answers.

    hi
    Go to transaction: /nva01
    Enter order type : ZOR
    Sale org :xxxx
    Dist.channel:xx
    Division :xx
    Press enter
    Click on “Sale document” and select Create with reference
    Then enter 1st quotation number & click on “COPY” or “Selection list”. Then click on “Copy “.Then all line items which belong to quoation1 copy to order.
    Then,
    Click on “Sale document” and select Create with reference
    Then enter 2nd quotation number & click on “COPY” or “Selection list”. Then click on “Copy “.Then all line items which belong to quoation2 copy to order.
    Then,
    Click on “Sale document” and select Create with reference
    Then enter 3rd quotation number & click on “COPY” or “Selection list”. Then click on “Copy “.Then all line items which belong to quoation3 copy to order.
    Now save the sale document.
    Kindly give reward points
    Edited by: WISH on Mar 19, 2008 2:25 PM

  • How can i create table which in use

    Dear all,
    How can i create a index on table which have much dml any time?

    In 10g :
    The CREATE ONLINE waits for existing transactions to commit before it can proceed. Once it starts, it uses a log table (MV Log) to track subsequent changes (i.e. it allows concurrent DML once it has started). At the end of the operation, it encounters another wait if there are existing transactions as it has to sync changes from the MV Log to the index.
    Here's an explanation by Jonathan Lewis : Re: Alter Index Rebuild Online
    In 11g :
    There's an improvement in that only the transactions that were active at the instant when the CREATE .. ONLINE was issued are the ones it waits for. It does not have to wait on subsequent transactions.
    Here's an explanation by Richard Foote : http://richardfoote.wordpress.com/2008/02/11/index-create-and-rebuild-locking-improvements-in-11g-ch-ch-ch-changes/
    Hemant K Chitale

  • How can I create a solution ?

    How can I create a solution ? I have created a project, servers, DB, etc. When in
    SMSY -> System Groups & LOGICAL Components --> solution Landscape Operation
    I can't right click and configure. Looks like I am missing the solution? How would I create the solution?

    Hi,
    1) You have to define the systems in the SMSY transaction there are three ways:
            a) Manually, so you have to create Server, Database, System Component and System.
            b) Get the data through TMS but the systems must be defined in the satellite domain controller     further more Solman's Domain Controller must be linked to Satellite's Domain Controller.
            c) Get the data from Solman's SLD but the systems must report their data to the SLD via RZ70.
    2) You have to create a Logical Component based on the defined systems this is done in transaction SMSY
    3) Go to Transation DSWP, Create button to this Solution you have to associate the Logical Component created in 2.

  • How can we create forms in hr abap?

    like in abap scripts,
    how can we create the forms in Hr abap..?
    what is the Tcode for that..?
    regards
    satish.v

    Hi,
    We have different types of forms...
    one type form can be designed using transaction PE51 .....ABAP code cannot be written.
    HRFORMS is the tcode for another set of forms. Mostly Smartforms are associated with these forms. Standard forms can be copied into customized forms and can proceed with customization. This is because standard forms get the data into internal tables which can be used in smartforms to display.
    Apart from these, similar to ABAP, Smartforms and SAPScripts can be used to develop any custom forms.
    Hope this helps.
    Thanks,
    Haritha

  • MRRL : How can we create Credit Memo for these Invoices

    Hi Gurus,
    How can we create Crerdit memo in case when the Invoice has been posted thru MRRL?
    Is there any way the we can do Subsequent Credit / debit for the ERS vendor (posted by MRRL) as well?
    Thanks in advance
    Shashidhar

    Hello
    How can we reverse fi document created through MRRL transaction.
    FI document cannot be reversed reason being -Error-Invoice doc. 5105692828/2009 was created via evaluated receipt settlement.
    GR material document cannot reversed reason being-Error-Deficit of PU IR quantity 1,456.000 CS
    Not possible even to return the delivery to Vendor , Movement type 122
    Thanks
    Dinabandhu

  • How can i create PR and if there is some change in the PR due to wrong calc

    Dear all,
    I wanted to know how can i create PR, and is that simple? Ok, while creating PR, when i will come to know that stock entered here is less that the actual stock that was mentioned, but due to some error, how can i change it, how is that possible?

    1981,
    You have posted this question in the wrong forum.  Such topics are covered in the MM forum
    SAP ERP - Logistics Materials Management (SAP MM)
    You can easily create a new PR in ECC using transaction ME51N
    You can easily change an existing PR in ECC using transaction ME52N.
    Best Regards,
    DB49

  • How can we create the following DOC?

    how can we create the following Documents?
    Two Enquiry one quotation.
    Two Quotation one Sales Order.
    Two Sales Order one Delivery.
    Two Delivery one Billing.

    Hi,
    You need to execute the below transaction:
    1) T.Code - VL11 : To create 2 different enquiry. To make a single Quotation for 2 enqury, use T.Code - VL21. Here once you enter the main screen, select drop down on Sales Document Type, the first option on topmest line & you will get an option --> Create with reference. Select the first enquiry & enter & repreat the sceond enquiry & enter. Now Both Enquiry will be a part of same Quotation.
    2) T.Code - VL21: To create 2 different Quotation. To make a single Quotation for 2 enqury, use T.Code - VL01. Here once you enter the main screen, select drop down on Sales Document Type, the first option on topmest line & you will get an option --> Create with reference. Select the first enquiry & enter & repreat the sceond enquiry & enter. Now Both Quotation will be a part of same Order.
    3) T.Code - VA01: To create 2 different Order. To make a single delivery, go to T.Code VL10A & select the 2 Order & create collective processing of Delivery to create a single Delivery.
    4) T.Code - VL01N: To create 2 different Delivery (other T.codes can also be used to create delivery such as VL04, VL10A, VL10C, etc).  To create single Billing for 2 Delivery, go to T.Code: VF01 & enter 2 Delivery numbers & press ENTER. This will merge 2 Delivery together.
    Note: It is assumed that the parameter are common & meet the requirement for combining various documents.
    Regards,
    Rajesh Banka
    Reward suitable points.

  • How can I create JScrollPane in my swing application with scroll bars movin

    Hi,
    How can we create scrollpanes moving with scrollbars.I tried many times with custom layout.but it does not work if i set custom layout.I hope that I will get my problem solved.
    Thanks and Regards,
    Rameh RK

    This means it is not possible to create a pure unicode file without the byte order mark?
    You wouldn't happen to know how a file with byte order mark should read on a Linux system?
    Or if this possible or not?
    Regards
    Christian

  • TS2756 How can i create a new usb connection (service)  on my iMac for sharing internet from my iPhone5 ( i seem have to deleted it )

    How can i create a new usb connection (service)  on my iMac for sharing internet from my iPhone5 ( i seem have to deleted it )
    i know its not a problem whit my carrier o data plan or sharing preferences on the ipone because when i use it un my laptop it works perfectly through
    the usb and even works on the Imac through wifi and bluethood tethering but NOT through usb!!.
    the problem is that trying to make it work i deleted the "profile" usb iphone on the network prefereces panel. Now i only have 3 options: ethernet / wifi / bluetooth
    but not the usb iPhone i used to have.
    And when i try to add a new one i dont get a USB option.
    can some one help me please??
    this is how it looks (after the bluetooth PAN i used to have USB iPhone option)

    The question would be more appropriate in the Mac forums as it is not really related to the iPhone.

  • How can I create a new ring tone for my iPhone 4?

    How can I create a new ring tone for my iPhone 4? I followed the Garage Band process and ended up with the ring tone I want as a AAC audio file. It got stored in my iTunes a a song rather than a ring tone. How do I make it a ring tone vs. a song? I tried dragging it t the Ring Tone category at the bottom of the ITunes list, but it won't alloow me to move it?

    There's also an easy to use Applescript over at Doug's Applescripts for iTunes. It automates the whole thing. All you do is set the start and stop time on a file in iTuens and run the script. It will do everything else.
    Make Ringable v1.1
    http://dougscripts.com/475

Maybe you are looking for

  • Yamaha MIDI Problem. I have tried EVERYTHING, please help!

    I have a Yamaha YPG 635 that I have hooked up to a Yamaha Audiogram 3 which is, in turn, connected to my Imac. Now, I can get my Audiogram to register on the Mac. When I go to the Preferences>Audio/Midi, I can choose it on the Input and Output option

  • Importing VHS into iMovie

    I just bought and hooked up a Canopus ADVC-110 between a TV/VCR combo and my computer. Several questions: 1. When I first hooked up the canopus, the iMovie project I had been working on began displaying this message when I would open the project: " T

  • Solaris 10 Zones Networking

    This may be spelled out somewhere but I haven't found it yet, so does someone have answer for this? I'd like to run a global zone and serval non-global zones each with it's own IP. Is there anyway to bind all zones to 1 nic or do I need a seperate ni

  • Merge two text overlay layers without losing effect?

    I'm using PS CS4 and I have two text layers on top of each other (they same the same thing) and the layer style for both is set for "overlay". I want to merge (and rasterize) the two layers but keep the look of the doubled up overlay effect. Can this

  • Flash player 11 on os x 10.6.8 dosen't work

    I have updated to flash player 11. I running an IMac with intel I5 Safari 5.1 os x 10.6.8 after updating to flash player 11 i can't get any videos to play on any site.  All i get is a you need to update to the most recent flash player request.  Can a