How to make a sales order item deleted in ECC while in CRM just status changed?

Hi expert,
I have a requirment, that is:
1. the user will change the USER STATUS in a line item of sales order to "CANCEL".
2. When the order was replicated to ECC,the item should be deleted totally and the ITEM in CRM should not be affected.
How can I implement this? Is there any resolution by just make some configuration?
Thanks in advance.
Jerry

Hi Jerry,
As per standard SAP, the line item is not deleted (in ECC) based on the status changes at the line item (in CRM)
You need to do the development to achieve this.  Following points to be considered if you are doing any custom enhancement.
1. What triggers the sales order replication ? Is it status change at header level ?  If yes, then you need to define a program which will first check the line item status in CRM Sales Order.
2. Wherever a line item status is CANCEL, it may store in some internal table and then it will call an RFC to delete these line items in the replicated ECC Sales Order.  (without deleting the line items in CRM Sales Order)
3. Mind you that, this will be a complex enhancement and may give lot of challenges in the sales order replication to ECC.
Drawback of this requirement -
1. If your client prefer to have this scenario, then it is fine, but I could see the data inconsistency in all such sales orders.  There will be a mismatch between the sales order in ECC and CRM
Hope this will be useful
Thanks and Regards
DJ

Similar Messages

  • How can i capture sales order items in C# and pass them to a BAPI?

    Hi everybody,
    here is another novice question for you.
    What control should i use in Visual Studio to allow the user to enter sales order items (material and qty) as a table on the screen and then put these items on a table and call the BAPI to create an order?.
    I've tried using a Datagrid and set the "edititemindex" as "1" but doesn't work.
    Any help will be greatly appretiated.
    thank you
    Javier ...

    Dear Todd,
    thanks for your reply. I'm using ASP. I tried a grid but i cannot seem to make it work, it doesn't appear at first because it's empty, i tried creating some blank rows but the same happens.
    The other thing i tried just to test is to create a row on the table "partners" to pass the needed "AG" (sold to party) and its number and the BAPI keeps returning an error "Please enter Sold ot or Ship to party". Like if the table was empty. Is there any special way to send a table to a BAPI ?. I'm sending it by ref, and i'm creating the record by first creating a structure, filling it an then calling the ADD method of the table and passing the structure. I'm i missing something here?
    Please Help, it's been days with this problem,
    I'll appreatiate it very much
    Best regards and have a great day.
    Javier ..

  • 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

  • Urgent: How to copy multiple sales order items into a return sales order?

    Dear developers,
    I have a requirement to copy multiple sales order items into a single return sales order. For example, generated return sales order have 2 items, item 10 is created with reference to sales item 2610/10 and item 20 is created with reference to sales item 2611/20. What's more, when it happens, copy control should be taken care of. I know it is possible to create this kind of order by transaction. But how to do it in coding?
    In current SAP release, there is only BAPI for creating with reference on 1:1 relationship which means copy one document to another but what I need is N:1 copy.
    Any suggestion is high appreciated!!
    BR,
    Tony.

    Hi ,
    If you are creating sales order by using bapi then after calling bapi you can check import parameter <i><b>SALESDOCUMENT</b></i> in the bapi function module .If this parameter is not initial then sales order is created in this case you can create return order. If this import parameter is initial then sales order is not created and you cannot use return bapi function module.
    Bapi is simple method than BDC.
    In above case it is required to call BAPI_TRANSACTION_COMMIT after every successful sales order creation.
    One more important point is you have to clear import parameter <i><b>SALESDOCUMENT</b></i>  before calling sales order creation function module.
    Thanks,
    shyla

  • Sales Order Items Deletion

    We had a LO Extraction problem and the LO queues got deleted from R/3.
    So, we lost some Sales Order Items. We recovered from that by doing a manual setup of those documents and we loaded all the missing documents.
    However, there was another problem which was overlooked. Those Sales Order Items that were deleted at time when queues were deleted, are no longer existing in R/3 but are present in BW.
    We identified those documents and items to be deleted as 14 in number, which isn't that bad, but which is the best way to delete them in BW?
    1) Selective Deletion - doesn't work as we dont have Document number at Cube level.
    All helpful inputs will be rewarded.

    > dear Venky,
    > i think ...
    > try 'export' these 14 docs to text file (csv)
    > and add 0recordmode or 0storno with value 'X',
    > then assign the infosource with new source system
    > 'flat file' and create transfer structure with
    > fields/infoobjects sequence as downloaded file,
    > if you are using ods, i think you may try just the
    > keyfieds.
    > try simulate this in development, first without
    > 0recordmode/0storno = X to add the records to
    > ods/infocube, then give 0recordmode/0storno = x, and
    > see if they are deleted smoothly.
    > hope this helps.
    AHP:
    I was working on last week doing the same, What ended up happening was that The record still existed with all key figures ended up becoming zeroes.
    My flat file had this:
    X;0106662496;X;40
    X;0106662547;X;10
    I tried, X, R & D for the reversal Indicator and the result was same, record still existed and key figures became zeroes in ODS.
    Updating to cube(which doesn't have Doc number) is still another long way to go for me.

  • How to read the Sales Order( Item ) System status?

    Hi All,
    My requirement is to display the  System status of the sales order item*. When we go to the sales order display, if i double click on the line item , ii will lead to the next screen.Click on status tab,here we can see the Sytem staus. I would like to know the logic to read this sytem status ?
    Thanks,
    Suresh.

    read tables VBUK, VBUP for SD document status indicators

  • CIF: how to "push" a Sales Order item from ERP to SCM via FunctionModule ?

    Hello experts,
    we are implementing a process in ERP (ECC6.0) where we change a sales order item (VBAP- VPZUO) in order to stop SNP (LiveCache) performing the "fcst consumption" for this specific sales order since it is a spezial promotion / trade fair order which does not justify to change the fcst consumption for the entire product.
    We are searching for a function module or any ABAP "handle" of telling the CIF in ERP to "push" a specific sales order item thru to SCM again. We started with an artificial batch input in VA02 / VA32 and changed a non-used text field field in the sales order position and the document save was doing it. I wonder if someone run over same topic and found a better way to get this done with a specific function module or setting a specific trigger in some other ways.
    I was not sure if this is the correct forum - in case someone knows a better match on SDN I'm happy to move it over to the right place.
    Regards
    Thomas

    Hello Thomas,
    You can't really push a Sales Order seperately, and not advisable also as you should not tamper with CIF interface. I can give you another approach.
    You have to identify during CIF that the Sales Order is a special Sales Order. Better have a separate Sales order type for such special Sales Orders. That being the case, I think you can handle your issue by changing the ATP category of the Sales Order during CIF. The standard Order category is BM. You could create a custom category in APO, and during the transfer, you could change the Sales order category to this custom category. APOCF010  EXIT_/SAPAPO/SAPLCIF_SLS_001 exit (Inbound Sales Order in APO) should be helpful for this. You would need to change the ATP category field in IT_SL_REQ table.
    You could then display this "additional" Sales Order in a separate KF in SNP (if you need it) by assigning it a custom category group in SNP planning area which would have only this custom category. For normal SNP planning, normal SNP sales order of category BM would be relevant.
    Please be aware that when you try out things like this, you might need to tweak a lot of SAP standard behaviour at many other places. Things like CCR also need to be tweaked, and also whatever further planning you have to do for this particular Sales Order might also need to be tweaked.
    Thanks - Pawan

  • Sales order item report based on results analysis key and status

    Hi,
    I am trying to find a a report to generate list of sales order items with following selection
            -invoicing status -invoiced/not invoices (other status)
            -result analysis key assigned to this item (VBAP-ABGRS)
            -system status /released/teco
    Basically i am CO consultant and not so familiar with the SD statuses. I tried VA05 and V.26 but all required selections are not available in these reports.
    If no standard report is available in ERP, i would like to have it in BI. Can some help me with table fields for statuses.
    Thanks in advance.
    Regards
    Raghu

    Hi Raghu
    Go to SE16 and give VBUK table and execute it there you can select the following feilds and then check wheather they are meeting your requirements or not.If they are meeting your requirements then create a new Z report by copying standard VA05 key feilds. and include the other feilds which you need.So you take your ABAP team help
    Billing status     FKSTK
    Posting Status  BUCHK
    Overall status  GBSTK
    Document category VBTYP
    Regards
    Srinath

  • Contract and sales order  item deletion

    Dear Experts
    I am facing a problem in a praticular scenario.In our process we are making quotation(thru VA21)>Sales order>delivery>PGI>Billing
    Now if we have a material code Z with qty as 10 in quotation the same gets copied to the sales order.But if i wish to delete the same line item in sales order , system prompts that this item refers to the quotation so it cannot be deleted.
    Now if i go to quotation and try to delete the same line item , then also the system prompts that the sales order XXXX refers to this line item , you cannot delete it.
    I wish to delete the same from sales order as well as the Quotation also.Kindly advise
    Regards
    Naveen
    Edited by: Naveen Sharma on Apr 16, 2010 11:11 AM

    Hi Raga
    But my problem is for ex. i have prepared quotation for Material codes
    X-->5 QTY
    Y-->6QTY
    Z-->7 QTY
    Now the sales order is also having the same 3 material codes.After this we had done the delivery for lets say only X & Y.We dont wish to do the delivery for Z material so even i am going back to VA02 and trying to delete it the system prompts the earlier messages which i had explained
    My requirement is to delete only Z from SO & Quotation

  • How to make open sales order consider allocated & unallocated stocks in MRP

    Dear Experts,
    MAT BOM, MAT TYPE, STRATEGY GROUP, PLANNING STRATEGY, Req-DM Req-CU
    3. TC180TK   fert                     20                                    KE                        make-to-order
    2. TB300TK   halb                    20                                    KE                        make-to-order
    1. TA300TK   roh                     10                                   LSF KSL                make-to-stock
    As listed above, material in line number 1 is required to produce 2,  and
    2 is required to produce 3.
    I have open open sales order for material TF180TK(fert).
    When I carry out MRP run, stocks of material  TB300TK (halb), that is allocated to this sales order is considered, but unallocated stocks are not considered.
    I want the system to consider both stocks, allocated & unallocated stocks.
    What settings do I need to effect, to make the System consider available stocks of  material  TB300TK , that is not allocated to this sales order during MRP run using MD01?
    Regards

    Dear
    For MTO scinario , any depedent will be either having Account assingement PR or it will pick up the speciall stock (E) based on the Individaul and Cllective Indicator as 1  in MRP4 view .It will never getting reservaed from un-allocated stock ( i beieve u r talking abou Un-restrited stcok ) .This is a standrad behaviour of the MTO cycle in SAP system .
    As you have mentioned , that you are using planning startegy 20 -MTO and also you want depdents (SFG and Compoenets in SFG) to be from un-allocated stock .In that case you should not use Planning strategy 20 and also assing Indviaul and Collective Indicator as 2 or blank .It will be purely MTS and you can have sales order with item categoery TAN .
    So please  keep Ind/Collective indicator as 2 in MRP4 and try
    Hope this helps
    Regards
    JH

  • How to make Open Sales Orders consider unallocated stocks in MRP run

    Dear Experts,
          Maerial BOM   MATERIAL TYPE    STRATEGY GROUP        PLANNING STRATEGY      DESCRIPTION
                                                                                    Req-DM      Req-CU
    3.    TF180TK               fert                           20                                                       KE             make-to-order
    2.    TH300TK               halb                          20                                                       KE             make-to-order
    1.    TA300TK               roh                           10                                  LSF              KSL           make-to-stock  
    As listed above material in line no.1  is required to produce 2 and
                                                           2 is required to produce 3.
    I have open open sales orders for material TF180TK(fert).
    What settings do I need to effect,  to make the System consider Stocks & Open Purchase Orders for material  TA300TK (roh) which are not allocated to these Sales Orders , when  MRP run is carried out at plant level using MD01? 
    Regards

    Dear Bisolaaina,
    I Think by mistake this duplicate thread might have been created so pls close it
    Regards
    Madhu

  • 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

  • How to add three fields in Sales order item level and supress/hide many

    Hi Gurus,
    My client requirement is :
    1. Three fields to be added at Sales order Item level and they should flow till billing.
    2. Supress/hide most of the fields in Sales order, so that end user will be happy( thru SHDO how to do)
    Please share your experiences and help me.
    BEST REGARDS
    Srikanth

    Hi Subba Rao
    in VA01 screen - Material /qty/ after entering this client wants to enter three more details say X/Y/Z
    and after that he dont want to see maximum fields displayed in VA01 Screen.
    I think it makes sense.
    Regards
    Srikanth

  • How to do INIT for Sales order Itema Data (DS 2LIS_11_VAITM)

    Hi all
    I have a report on sales order item data, I have to reload it. DS 2LIS_11_VAITM
    Can any of you pls explain me the steps to do the INIT? Refill set up tables etc
    Many Thanks in advance
    Ishi

    Hi Hari
    Many Thanks for the explanation and steps. I deleted set up tables and executed to fill it.
    It says in R/3 Start of Processing, I ticked to continue and its still running.
    In the mean time I checked RSA3 and it says 1007 records selected. I am refreshing it and the no. of records are still the same.
    Can you tell me how long it takes to fill the table?
    And the R/3 system is still running (Start of Processing)
    Thanks again
    Ishi

  • Deleting all linked documents per sales order/item

    We have documents linked to our sales orders/items (which can be seen via CV03N).  I would like to run a batch program to selectively delete all of these linked documents.  There is a function module CV140_LINKS_DELETE that looks will do the trick if you supply DOKAR, DOKNR, DOKVR, DOKTL, DOKOB and OBJKY.  In our case DOKAR is 'ZQN', DOKVR is '00', DOKTL is '0000' DOKOB is 'VBAP' and OBJKY is a combination of sales order/line.  How would DOKNR be filled in if I want to delete all documents?
    Thank you.

    In my case, I'm trying to delete the following:
    DOKAR = 'ZQN'
    DOKNR = (can have 34 different values ranging from Q01-Q34)
    DOKVR = 00
    DOKTL = 0000
    DOKOB = VBAP
    OBJKY = sales order/line - I have this in an internal table I loop thru
    My issue is with the DOKNR value.  Is there a way to delete all document links for a sales order/line when you don't have a DOKNR value?

Maybe you are looking for

  • Libsyn feed not updating on iTunes

    Hi, I'm a noob with rss so I'm sorry if this causes a yawn or two but it's alien to me. Last week I published an ep and didn't update on iTunes. I use libsyn and feedburner. That's the feed http://thenoteshow.libsyn.com/rss it says 'The URL does not

  • Upgrading Windows Azure Pack Websites from Update 4 to Update 6 SQL Schema Update Issues

    I'm running into this nasty bug with Windows Azure Pack Websites v2 Update 6 when I monitor the Microsoft\Windows\WebSitesUpdate Event Log: The upgrade action 'UpgradeDatabase' has failed. Error: Microsoft.Web.Hosting.WebHostingException: An error oc

  • Reading an image from input stream

    Hello all, I'm familiar with setting up an input stream but I have never actually done it. I'm making a connection to a URL (a JPG image). I would like to read the JPG from the URL using an input stream. With the URL class I was able to open a stream

  • Report Model Project in SQL SSRS 2012

    Hello, I am trying to create a report model in SSRS 2012. Unfortunately the option create new report model project is not avaialble any more. How can i create a report model in this version? Thanks in advance, Andreas

  • Downloading Master Collection CS6, file is corrupt.

    MasterCollection_CS6_LS16.7z is corrupt and I can't extract it. I tried just running the .exe file as well, but I get an error that it couldn't read. Is there a different way I can get the download? I'm on a Windows machine.