Standard Copy of a contract/po webdynpro issue

Hello all gurus,
in SRM 7, my requirement is to check when a new document (contract or purchase order) satisfies certain conditions w.r.t. the user that is currently trying to access it; the user should belong to the same purchase unit of the document, otherwise an error message should prompt immediately saying that "the user cannot modify the document". (off course, in this case also related buttons for modifications are disabled). This message is a persistent one, so it remains on the message top even if the user navigate (in display mode) the document.
I tried to do that enhancing WDDOINIT and it works. I tried also a post-exit of WDDOMODIFYVIEW when FIRST_TIME = 'X': it worked too. The two alternatives seems to be equivalent. BUT... there's a problem when the user tries to copy the document.
When the document is copied, the copy has the purchase unit set by default to the value of the user.
So, a new check should be done and the message should not appear anymore.
But when a copy (which is standard) is done, how can I understand it in WDDOMODIFYVIEW or in WDDOINIT?
I hoped to get a FIRST_TIME = 'X' again, but that's not the case.... FIRST_TIME is blank after the copy's done.
Waiting for your help and suggestions,
best regards
Matteo

Solved with a workaround.

Similar Messages

  • Error message when copying a service contract

    Hi Experts,
    I'm copying the service contract using TRX CRMD_ORDER. When I save the new contract, a message is displayed "Administration header could not be found 47EABD1F5ADC5B38E1000000C8B91C2F" .
    We are using CRM 5.0 SP 09.
    Can you help me to understand why this message happens?
    Best regards,
    Caíque Escaler
    Edited by: Caíque Escaler on Mar 27, 2008 3:18 PM

    Hi Arun,
    I wouldn't recommend to deactivate the order_save badi - this may impact the replication process to ECC. This is not what I mentioned. I asked you to check your badi implementations, maybe you are trying to read some GUID that doesn't exist and this is probably a custom code issue.
    Please check the Z implementations.
    I would also check where the message error is being raised and check the stack. You may find a Z in the middle of stack.
    Let me know if you have any comments.
    Regards,
    Caíque

  • Copy control in contracts

    Good afternoon!
    I´m having problems regarding copy control between contracts and release orders.
    Here´s an example:
    Contract 40000019 has an item for 100 pcs.
    I input a order which is referenced by this contract, and the system proposes a quantity of 100 pieces. The quantity is changed to 50 pcs manually and is delivered afterwards.
    When I input a second order, the system proposes again 100 pieces.
    First question: Is there anyway to make the system propose only the un-delivered quantity? i.e. the remaining 50 pieces?
    Second question: how do I make the system not to copy rejected items?
    Thanks in advance,
    Adriano Cardoso

    Hi ,
    In standard system settings once we take the reference it will copy either whole quantity or nil quantity.We can make the quantity field as empty by making changes in copy controls.If you want to make the balance quantity for delivery ,then need to adda  piece of code for your copying requirement for field VBAP.KWMENG and check the quantity already delivered by going in to VBFA table then pick all the subsequent documents for the contract.
    It is also important to check the field update document flow tab in copying controls to restrict the quantity.
    Hope it helps.
    Regards,
    Pasapula.

  • Modification in copy control from Contract to Sales order

    Hello Gurus...
    We are using a standard copy control routine to copy header and item level data from Contract to Sales order.
    Now what happening is the price for some items is changing after creation of contract. But when the sales order is created it is copying old value from contract.
    I want to modify the routine in such a way that I can redetermine the price for the item.
    I can not change configuration as the same is used by multiple company codes and the change is required only for some company code.
    Any suggestions please?

    Hi there,
    You have do some customizing in the pricing type at the copy controls in item level.
    Define a copy control routine at the item level in VOFM. In the routine put a condition that the system should read the value in the pricing type. As per your requirement if the company code / sales org is 1000 / XXXX for eg, then the system should apply the pricing type that will carry out the new pricing at the order (I am not connected to SAP right now so not sure what that pricing type is). If the company code / sales org is apart from 1000 / XXXX, it should default the pricing type that is there in standard copy control VTAA.
    Check if that is possible with your ABAPer. What I feel is that you have to hard code the pricing type value (that will carry new pricing) in the new copy control routine.
    Regards,
    Sivanand

  • Error with standard Copy package

    Hello!!
    When I run the standard copy package selecting the option "Replace & clear data values" the execution finishes with status error and I receive the next error message in the log:
    Item has already been added. Key in dictionary: '[Invalid time Member] - EN_NONE|DSP_INPUT|2004_UPA_SEPT|'  Key being added: '[Invalid time Member] - EN_NONE|DSP_INPUT|2004_UPA_SEPT|'
    If I run the package with the option "Merge" it executes OK.
    Anybody help?
    Thank you in advance
    Pedro
    Edited by: Pedro de las Heras on Aug 7, 2009 3:16 PM

    Hello,
    You probalby get this error message beacuse you have not setup the Work Status for this application. Please defined the Work Status you want to use on the appset level and then define the dimensions you want to use to control the work status on the application level. That should solve your issue.
    Regards,
    Marcel

  • How to remove the the standard button APPEND/INSERT/DELETE in webdynpro alv

    Hello,
    how to remove the the standard button APPEND/INSERT/DELETE in webdynpro-abap  alv
    Thanks
    Rakshar

    Use  this.
        data lo_cmp_usage type ref to if_wd_component_usage.
        lo_cmp_usage =   wd_this->wd_cpuse_alv1( ).
        if lo_cmp_usage->has_active_component( ) is initial.
          lo_cmp_usage->create_component( ).
        endif.
        data lo_interfacecontroller type ref to iwci_salv_wd_table .
        lo_interfacecontroller =   wd_this->wd_cpifc_alv1( ).
        data lo_value type ref to cl_salv_wd_config_table.
        lo_value = lo_interfacecontroller->get_model(
        data: lr_std type ref to if_salv_wd_std_functions.
        lr_std ?= lo_value.
        lr_std->set_export_allowed( abap_false ).
    NOte: ALV1 is alv component name
    Regards
    Srinivas
    Edited by: sanasrinivas on Dec 1, 2011 6:11 AM

  • I need a copy of the contract I agreed to many years ago.

    How do I get a copy of the contract, in the version that existed when I first agreed to a data plan?

    CAN VERIZON WIRELESS CHANGE THIS AGREEMENT OR MY SERVICE?
    We may change prices or any other term of your Service or this agreement at any time,but we'll provide notice first, including written notice if you have Postpay Service. If you use your Service after the change takes effect, that means you're accepting the change. If you're a Postpay customer and a change to your Plan or this agreement has a material adverse effect on you, you can cancel the line of Service that has been affected within 60 days of receiving the notice with no early termination fee if we fail to negate the change after you notify us of your objection to it.
    Customer Agreement | Verizon Wireless
    The last of the contracted unlimited data plans have expired. Therefore, no unlimited data user is still in contract. They can change anything and everything because (a) they reserve that right and (b) they are no longer in a direct contract with you.
    You can change to a capped data plan at anytime, and Verizon is allowing you to make that change when you see fit. They could force it on you, but they are (a) allowing you to keep unlimited data, but be throttled or (b) use a capped data plan and never be throttled. The ball is still in your court.

  • Copy Quotation to contract

    Hi all,
    Copy Rate categories of the respective Quotation items to the Rate category field of the Contract. (Rate category field is configured on the contract).
    Thanks In Advance,
    Regards,
    Siva.

    Hi,
    Have you maintained the copy control for header as well as item category level? There are 3 types of copy control you need to make for this.
    Transaction Type -> Transaction Type, Item Category>Item category, Item Category + Target Doc Type> Item category.
    Here you can make setting for the fields you don't want to be copied from Qtn-->Contract.
    Hope this Helps.

  • BPC 5x - bad performance of standard copy function

    Hi,
    when applying the standard copy function in BPC 5x, it takes 1 min 30 seconds to just copy 2500 records ... we are still in the development phase of the project, but fear performance when copying real live production data ...
    in the formula log, we can see 95% of the time goes to running the SQL query:
    Total Time to build queries = 0,1 sec
    Total Time to run queries = 77,5 sec
    time to post records = 1,5 sec
    Is this normal behaviour?
    D
    I investigated further, and apperantly it is caused by the following simple script in the default logic:
    #PL100=(PL010_QTYPL100_UR)-1
    #PL200=(PL010_QTYPL200_UR)-1
    #PL210=(PL010_QTYPL210_UR)-1
    #PL220=(PL010_QTYPL220_UR)-1
    Why is this piece of coding causing so much performance problems ... If we put this in comment, the copy only takes a couple of seconds ...
    D
    Edited by: Dries Paesmans on Jan 24, 2009 11:26 PM

    Hi D
    These calculation statements get their data from the database. So it will create a query or some queries for that.
    #PL100=(PL010_QTYPL100_UR)-1
    #PL200=(PL010_QTYPL200_UR)-1
    #PL210=(PL010_QTYPL210_UR)-1
    #PL220=(PL010_QTYPL220_UR)-1
    Since you put them in Default Script, for every single data update/send, BPC is going to execute the the content of the Default Script.
    If you don't have the need, you can move the statements out from the Default Script, put them in other script logic and run it on demand.
    Otherwise, you need a powerful and optimum database server to serve the queries faster.
    Best regards,
    Halomoan

  • Sales Office is not being copied from Sales Contract

    Dear SD Gurus,
    In DP90(Resource-Related Billing Request), order type LV (Debit Memo Request for Contract) is generated. In the complection procedure, I have set sales office as a mandatory field. I'm expecting the sales office to be copied from sales contract when I generate ZLV(when I run DP90) but sales office is not being copied over. The strange thing is, it will only work for certain sales areas where the sales office will be copied from sales contract but not for some.
    In the service order, I can see the sales org data where the sales office appears but it doesn't get copied to LV.
    Any idea what has happened?
    Thanks,
    Soo

    Hi Kamesh,
    Problem found and fixed. It was because of customer master.
    Thanks,
    SKK

  • Sales Order Created with reference to Contract - Exchange rate Issue

    When Sales Order created with reference to contract VBKD fields KURSK and KURSK_DAT gets copied from contract and not redetrmined based on pricing date and Exchange rate type. I expected it to be determined based on pricing date is standard. What I am missing, should it be controlled by data transfers
    If Document currency and condition currency are different it cause problems with incorrect condition values are calculated, as KOMP-KURSK are copied from VBKD-KURSK
    Any help or directions would be greatly appreciated . We are on 4.7 ISOIL
    Sincerely Julietta

    Well,
    and if we have the same issue, but we don't have OIL Version, but simple 4.6C, which solution has to be applied then?
    Thank you
    Standa

  • Service product not copied automatically from contract

    hi
    i'm creating a notification referencing a contract item   and thereafter creating a service order from the notification.
    i'm finding that in some cases the material corresponding to the contract item is getting copied in the service product of service order, while in other cases it is not.
    i could not find any difference between the two materials.
    pl help is solving the issue

    A Project is automatically generated from a sales order, when material in line item have been allocated in CN08, This determines which WBS structure is to be used as the basis for project creation, which has also been linked to a STD network, Bcoz SD/PS assign is ON i the STD PRJECT DEFINATION control data.
    ON - A WBS leg is created for each sales order line item including similar Network.
    In OPSA only one root must not be ticked.
    Setting in Material Master.
    Delivery Plant in SALES ORG VIEW 1
    Item Category Group SALES ORG VIEW 2
    MRP type: NO MRP indicator ND
    Strategy group: 85
    Individual /coll reqmt: left blank /1 individual reqmt.
    MAETRIAL must be configurable.
    let me know if u need more help
    CHECK all this setting in your reqmt.
    ONE more thing, u will get the RESULT in CNS41.
    u will find Project from sales order like CNS41, DB profile- tick selection criteria as sales doc.
    value from sales doc will be planned revenue for corresponding WBS.
    Creation of project from sales order in SAP Project system is described as assembly processing.
    In the Project System only networks can be generated directly from a sales document during assembly processing. Indirectly the system can also generate work breakdown structures, when it creates the network.
    1.You start assembly processing by creating a sales document for a material. This sales
    document can be inquiry,quotation, sales order.
    2. The system then
    Configures the material, if necessary
    Creates a network using the standard network as a template
    Configures the network, if necessary
    Schedules the network backwards from the required delivery date
    Checks material availability
    Costs the network and transfers these costs to the sales document.
    3. When you save the sales document, the system saves the network together with the sales
    document. If applicable, it also generates a project definition and work breakdown structure.
    The project number is derived from the sales document number.
    Regards,
    ANSAR

  • Copy Control : Consignment fillup to consignment issue

    Hi all
    My client requirement is to create consignment issue with reference to consignment fillup. But when i checked the standards , i did not see any such copy control. Please advice as to how i should make the settings
    Thanks in advance
    Regards
    Hari

    Hi Harish,
    Once check the Cosignment Document types using VOV8.Here we can find the Tab:Reference Mandatory for KB (Consignment Fill up) as well as KE .(Consignment issue ).Both having the document category as C means it works the properties of a normal sales order.
    As per your client Requirement try this procee:
    1.Create one Quotation having different document type. And maintain the copy controls for the both( like quotation to Sales Order.)
    2.Mean while we can create the Consignment issue with reference to Consignment Fill-up.
    For further clarifications you can check the SAP help itself.
    Regards
    JYothi

  • Sub-Contract Order Stock Issues

    Dear All,
    In Sub-Contract Order, i will create an Order for Finished product for X quantity & i maintain BOM(Semi-Finished Components) of Y quantity for the Finished Product. After approving the same the order was send to Sub-Contractor.
    And Store In-charge issues these stocks to Vendor by 541 Mov-Typ in MB1B T-code.
    In the same ways these Order's are placed to multiple Sub-Contractors.
    Then how could i now, these stocks are issued to Vendor against these Sub-Contract Order's by Standard Reports.
    Regards
    JC

    Thanks for your reply.
    In MBLB report, i can see the stocks against Vendor Code. But if i place the same Materials for a single Vendor on Multiple Sub-Contract Order's. Then how come i verify the Stock report against Order's.
    Regards
    JC

  • Copying Qty from contract to order...facing problems...

    Hi,
    1. Im creating orders(O) wrt to Qty Contract(C).
    When I create C -> O1 & C-> O2. The cumulative qty of orders(O1, O2) exceeding that of C. But system is allowing it with just warning. I want to issue error so that users should not create orders(exceeding qty from same contract).
    I checked all settings of copy control from CQ ->OR, but nothing is working out!!! Pls help on how to do it?
    2. Same issue when creating contract from another contract (in another scenerio)
        C1 -> C2. Here also system is accepting when C2 qty exceeds C1 qty. Pls help.

    For this you have to take assistance of an ABAPer in your team.
    As per my knowledge, the message number for your case is V1 501.
    For changing the message status of the message.
    Message Status Change
    - Go to SE91, input V1 in Message Class and 501 in Number and execute
    - Block the said message and press CTRL + SHIFT + F3 form your keyboard
    - Select Programs and click on green tick
    - Place your mouse on white box of left side and again press CTRL + SHIFT + F3 form your keyboard
    - Do repeat the third and fourth points thrice
    - Double click on the Description
    - Finally, take the assistance of ABABer and check the code
    Or
    Kindly refer following SAP Notes:
    Note 122691 - Message when exceeding the release quantity
    Note 182782 - No messages when quantity changed
    Thanks & Regards
    JP

Maybe you are looking for