Where Can I settle an enhancement to delete a sales order item according to the data in BDOC from CRM?

Hi expert,
I have an urgent requirement from the client.
Delete the sales order item totally in ECC.
I planned to implement this enhancement in ECC. Check the data in BDOC from CRM middleware, according to the user status in the order item,decide whether the item can be deleted.
My question is,where can I settle this enhancement? The BADI name,user exit?
Thanks in advance.
Jerry.

Hi Jerry,
It may be delayed. you may found the solution.
Use BADI CRM_DATAEXCHG_BADI and try the code in MBDOC_FILL or BAPI_FILL method.
Regards,
Bala

Similar Messages

  • Utility Report to delete incomplete sales order items

    Does anyone know the name of the SAP report that is used to delete incomplete sales order items.
    When you save an order with multiple order items and later delete one of more of the items, SAP sometimes  leaves an entry in one of the internal tables and flags the sales order as "incomplete"; while referencing order items that no longer belong to the sales order.
    Prior to ECC6.0, SAP provided a utility report that could be used to delete these items .
    Does anyone have the name of this report  ?
    Points for help

    HI,
    try
    V_UC                 Incomplete SD Documents
    V_UC_7               Incomplete SD Documents
    Thanks,
    Pramod

  • Deletion of Sales Order Items

    (Have also posted this on Security forum but hope someone on here can help)
    We need to be able to block users from deleting sales order items. The objects V_VBAK_VKO and V_VBAK_AAT can be used at the 'order header' level but these do not prevent a user deleting an individual item in an order. Does anyone know of a way of achieving this through authorisations?

    Dear Peter
    Following are some of the sale order user exits which you can make use of  to achieve your requirement.
    -  User exits in the program MV45AFZZ - USEREXIT_READ_DOCUMENT
    -  User exits in the program MV45AFZZ - USEREXIT_SAVE_DOCUMENT
    -  User exits in the program MV45AFZB - USEREXIT_CHECK_VBAP
    Tell the logic to your ABAPer and ask him / her to write a code in any of the above user exits which can definitely be achieved.
    thanks
    G. Lakshmipathi

  • I have deleted a sales order,how to retreve the same document number

    Hai,
        I have deleted the sales order,so that document number is out.When i craete the next order will i get the same number which i have already deleted.
    I want the same number again,for that what should i do...
    I dont want that number be missed,the reason is there should be a flow in number,with out missing some numbers in between.
    Thx
    Venu
    Edited by: venugopal on Aug 6, 2008 9:12 AM

    Dear Venu
    Yes this is possible but should not hand over the responsibility to end users.
    B4 implementing this in production, please test a document and proceed.
    Go to VOV8, select your order type and execute.  There see what numeric value is maintained against the field "No.range int.assgt".  Now go to VN01, [click on Status]  tab and go to that number.  On your right, you can see the last generated sale order number with editable option.  You can change it.
    For example, if your last created sale order reference is 805, you will see this 805 in the above area.  Change it to 804 and save.  Now if you create a new order, the reference of that particular sale order will again be 805.
    But as I already mentioned, each and every time, you need to go and change this area which is not recommended. 
    thanks
    G. Lakshmipathi

  • Sales Order item Delete

    Hi gyes,
        in va02 when i delete the sales order item,is any user exit is fiaring.please help me
    Thanks Jinna

    Hi,
    The following are the User_Exits in Va01/Va02:-
    SDTRM001 Reschedule schedule lines without a new ATP check
    V45A0001 Determine alternative materials for product selection
    V45A0002 Predefine sold-to party in sales document
    V45A0003 Collector for customer function modulpool MV45A
    V45A0004 Copy packing proposal
    V45E0001 Update the purchase order from the sales order
    V45E0002 Data transfer in procurement elements (PRreq., assembly)
    V45L0001 SD component supplier processing (customer enhancements)
    V45P0001 SD customer function for cross-company code sales
    V45S0001 Update sales document from configuration
    V45S0003 MRP-relevance for incomplete configuration
    V45S0004 Effectivity type in sales order
    V45W0001 SD Service Management: Forward Contract Data to Item
    V46H0001 SD Customer functions for resource-related billing
    V60F0001 SD Billing plan (customer enhancement) diff. to billing plan
    SDTRM001 Reschedule schedule lines without a new ATP check
    V45A0001 Determine alternative materials for product selection
    V45A0002 Predefine sold-to party in sales document
    V45A0003 Collector for customer function modulpool MV45A
    V45A0004 Copy packing proposal
    V45E0001 Update the purchase order from the sales order
    V45E0002 Data transfer in procurement elements (PRreq., assembly)
    V45L0001 SD component supplier processing (customer enhancements)
    V45P0001 SD customer function for cross-company code sales
    V45S0001 Update sales document from configuration
    V45S0003 MRP-relevance for incomplete configuration
    V45S0004 Effectivity type in sales order
    V45W0001 SD Service Management: Forward Contract Data to Item
    V46H0001 SD Customer functions for resource-related billing
    V60F0001 SD Billing plan (customer enhancement) diff. to billing plan
    <u>Place a breakpoint in these user exit.
    Delete a sales order item and see which exits are called and in which order.</u>
    Regards,
    Sameena

  • Where write long text referred at sales order item ?

    Hello,
    Where is possible to write long text referred at sales order item ?
    Tks.

    Hi,
    It is understood that you want to add a long text in the sales order at item level; say the long text is having around 10 pages of text. This text is to be added to the item level whenever you want.
    Follow the steps given below.
    1.     Keep the 10 pages of text in a text file.
    2.     Store the 10 pages of the text in the system; Menu Path >> SAP Easy access >> Tools >> Form Print out >> SAPscript >> Standard text; transaction code is SO10. Double click on that and give a text name u2018TEST001u2019, text id u2018STu2019; click on u2018Createu2019. Copy the text file and paste in the work file opened.
    3.     Select the item details in VA02. Select the text tab. Select the material sales text (or whichever you want). Click on details. u2018Change item noteu2019 will open; Click on u2018Standardu2026.u2019 (Ctrl +Shift + F5).
    4.     You will get u2018Insert Textu2019 box.
    5.     Enter the text name u2018TEST001u2019
    6.     Select u2018Expand immediatelyu2019.
    7.     Click on u2018Continueu2019.
    8.     Text will be pasted in the window opened.
    9.     Save the text.
    10.     The text can be viewed by clicking on details u2018buttonu2019. Menu path: VA02 >> item details >> text >>  material sales text >> Details button.
    11.     You can check all the texts stored in SAPscript by (Ctrl +Shift +F5) at step level 3. Click on u2018Findu2019. All the text will be displayed.
    Hope this information will be useful to you.
    Regards,
    K Bharathi

  • Where can i download FOTOS if i deleted it after upgrade yosemite?

    where can i download FOTOS if i deleted it after upgrade yosemite?

    As it came as part of the 10.10.3 update you will need  to download it again
    here is link to the combo update.
    OS X Yosemite 10.10.3 Combo Update

  • Where can I download CRX developer edition ? Im geting error message on clicking the Download link

    Where can I download CRX developer edition ? Im geting error message on clicking the Download link.
    Someone pls help me to download CRX.
    Thanks in Advance.

    Hi Jayanth,
    Are you able to down load the develoer version finally?

  • So where can I get an iPhone 4/4S for sale to use without the contract? Anyone?

    So where can I get an iPhone 4/4S for sale to use without the contract? Anyone?

    Thank you for letting me know!  That is a GREAT deal!  I would buy that if I hadn't already spent my $335 I did earlier at the end of November.  I found a good deal for a new white iTouch 4 64GB which is an iPhone 4 without the contract only it was in the color I wanted and the biggest capacity of the new line of iPhones. But thank you anyways! Like i said if I hadn't already bought mine I would probably do that one.

  • HT6533 Where can I find the third party app? I'm really in trouble that I can't record and check my blood  glucose. Of cause I exported the data from app, but It's not readable for me. Please reply ASAP and give me other solution.

    Where can I find the third party app?
    I'm really in trouble that I can't record and check my blood  glucose.
    Of cause I exported the data from app, but It's not readable for me.
    Please reply ASAP and give me other solution.

    You find third-party apps in the App Store. What app are you looking for? Due to problems, Apple removed the ability to record that information in Health. You can always go back to whatever you used before three weeks Health was released. Why can you not check and record your blood glucose? I would assume you check it using blood samples and a glucose meter which has nothing to do with your phone. You should be able to record it in any number of apps, from Notes to purpose made third-party apps.

  • Where can I find a retail copy of MAC OSX Snowleopard, that has all the drivers, for both desktop and Laptops?

    Where can I find a retail copy of MAC OSX Snowleopard, that has all the drivers, for both desktop and Laptops?

    No. 10.6.3 was the last retail release of Snow Leopard. Download the 10.6.8 Combo updater and put it on a flash drive to make it easier to install the largest part of the update.
    Also, don't push the same disk image of SL to your Macs unless they are exactly the same model as it was originally installed on. The wrong hardware drivers will otherwise be in use.

  • WHILE DELETING A SALE ORDER GETTING A RUNTIME ERROR " Screen: Illegal message"

    Hi Experts,
    While deleting a sales order giving run time error.  PFB runtime error details.
    If you know any OSS message, please let m know. I tried, but there is no luck.
    Short text
        Screen: Illegal message
    What happened?
        The current screen processing action was terminated since a situation
        occurred where the application could not continue.
        This is probably due to an error in the ABAP program or in the current
        screen.
    What can you do?
        Note which actions and input led to the error.
        For further help in handling the problem, contact your SAP administrator.
        You can use the ABAP dump analysis transaction ST22 to view and manage
        termination messages, in particular for long term reference.
    Error analysis
        The program attempted to issue a " " message during "Exit Command" processing.
        This is an illegal operation.
        The program was terminated.
        Screen name.............. "SAPMV45A"
        Screen number............ 4001
    How to correct the error
        The program must be modified to correct the error.
        The modification must be made in "Exit Command" processing.
        If you cannot solve the problem yourself and want to send an error
        notification to SAP, include the following information:
        1. The description of the current problem (short dump)
           To save the description, choose "System->List->Save->Local File
        (Unconverted)".
        2. Corresponding system log
           Display the system log by calling transaction SM21.
           Restrict the time interval to 10 minutes before and five minutes
        after the short dump. Then choose "System->List->Save->Local File
        (Unconverted)".
    Source Code Extract
    Line  SourceCde
        1 *---------------------------------------------------------------------*
        2 *       FORM YVBEP_LESEN                                              *
        3 *---------------------------------------------------------------------*
        4 *       Lesen der Tabelle YVBEP (nicht sortiert)                      *
        5 *---------------------------------------------------------------------*
        6 FORM YVBEP_LESEN USING US_POSNR
        7                        US_ETENR
        8               CHANGING CH_TABIX.
        9
       10   YVBEP = SPACE.
       11   YVBEP-MANDT = VBAK-MANDT.
       12   YVBEP-VBELN = VBAK-VBELN.
       13   YVBEP-POSNR = US_POSNR.
       14   YVBEP-ETENR = US_ETENR.
       15   READ TABLE YVBEP.
       16   IF SY-SUBRC > 0.
       17     MESSAGE E506 WITH US_POSNR US_ETENR.
       18   ENDIF.
    >>>>>   CH_TABIX = SY-TABIX.
       20
       21 ENDFORM.
    Could you please help on this issue.
    Thanks
    Srinu

    Hi Srinu,
    it looks like you got the error message Schedule line &1 &2 is missing in table YVBEP while deleting the sales order.
    It seems, that there are no SAP notes regarding this issue. Do you have this issue with all orders or with a single order?
    If only a single order causes this issue, maybe something was wrong during an update.
    If you get this error for many orders, then custom code (modification, enhancement, user exit in MV45AFZZ, ...) may be the reason for it.
    If you have no custom code in module pool SAPMV45A, then contact SAP for this issue.
    Regards,
    Klaus

  • Where does the data get saved from (notepad) or Notes on Windows Mobile 5?

    Where does the data get saved from (notepad) or Notes on Windows Mobile 5?
    (ON the Phone)  Sticky note like program WM5
    I ask because I synced my Blackjack 1 to my pc after about a year and MANY notes later, All the notes from the PC remained but ALL new notes on phone (a years worth) were deleted from the phone.
    I would like to attempt a data recovery on my mobile device- that was an insane endeavor but i got it to work now i just need to know what to look for (what type of files to recover) and or where to recover from?
    I did make the phone a drive already and have data recovery software that can pull deleted files from the phone in fat or raw data format.
    Thanks.

    Hi,
    I think this is not the best forum for your question. This forum is for Microsoft Exchange Server's mobile connectivity issues.
    Regards,
    Zoltán
    http://www.clamagent.org - Free Antivirus for Exchange
    http://www.it-pro.hu
    http://emaildetektiv.hu

  • Interesting scenario- user facing error while deleting a sales order

    Hello All,
    I have one interesting scenario and want feedback from your side as soon as possible
    Scenario-
    One of my clients is facing a problem while deleting a sales order.
    the sales order he is trying to delete is the old order created in 2007.
    when i see the document flow the user has created the export order, then delivered it, invoiced and sent it to accounting, accounting document is also cleared. then he cancelled the invoice, reverse PGI and deleted the delivery. the status of the sales order system is showing is being processed. but please note in this case after reversing PGI and deleting a delivery the delivery document disappears from the document flow.
    document flow looks like this
    Order - 200004715                     Being processed
    invoice- 700005310                    completed
    accounting 700005311                 cleared
    Cancel Invoice 700005315            completed
    Accounting 700005316                 cleared
    Now, in 2008 user is trying to delete the sales order but he is unable to do the same. system is giving him message "unable to delete sales order because of subsequent document 70005310 (which is invoice number)"
    Can somebody please throw some light on this problem.
    Thanks in advance.

    Hi,
    As fas as I know, this is standard system behaviour. The reason - you have done PGI (which has created a material document as well as accounting doc) and invoiced & reversed (which again has created accounting documents & rversal documents). All these documents are referencing the sales order.
    If you delete sales order, sales order number gets deleted from VBAK /VBAP tables.
    Hence, in relational data base scenario (meanin SAP in this context), deletion of sales order after creation of subsequent documents is not feasible.
    Hope it clarifies the issue.
    Regards
    Murali

  • How to add a partner in sales order item by enhancement?

    Hi expert,
    Sales order item's bill-to and payer will be same with header if you do not change it manually. now I want to modify some item's bill-to and payer which different from the header automatically. Is there any enhancement for this function?
    Thanks and best regards
    Lance

    Hi Lance,
    You can populate the XVBPA structure with function module "VIEW_XVBPA_FILL".
    You have to pass the following values to the FM:
    COMWA-KUNNR <- the changed partner code
    COMWA-PARVW <- parter role
    COMWA-VBELN, COMWA-POSNR <- Salesorder and item: just fill it with VBAK-VBELN,VBAP-POSNR
    You'll get the result in parameter XVBPA, which can be used for append the internal
    table XVBPA in the userexit.
    BR,
    Barna

Maybe you are looking for