How to delete a Item line in a Sales Order during Copy Control

I want to delete a Line item (VBAP ) record for a certain condition during Copying from reference  . I am writing the code in the Data Transfer Routine 151 which is called through VOFM Transaction  . I  cannot delete it as it . it is a work area VBAP . When i Clear it in debugging i am only able to clear the Line items . I want to completely remove the line . Is there a user exit for the same .

Hi,
You should create a new copy requirement routine at item level in order to exclude the unwanted item.
Assign the requirement routine to each item category type in the copy control .
Regards,
Andrea

Similar Messages

  • How to include both items and service on Sales Orders

    Hello experts,
    I have a client who wants to include extra handling charges such as gift wrapping charges on their sales order in addition to regular items that is on the sales order.
    If I create the sales order as a Item/Service Type ='Service'. I can select the correct G/L account for this Sales Order. But if I create the sales order as a Item/Service Type ='Item', then I can only select items and not the sales order.
    The client wants to include both the items and service in the sales order. Is there a way to do this in SAP B1?
    Michael

    Hello Michael,
    I think you may create Service type items to include both by Item Type documents.
    Thanks,
    Gordon

  • How to delete the subsiquent document for a sales order

    Hi,
    Please tell me the tcode to delete the subsequent document of a sales order and a sales quotation.I want to reject or delete the sales quotation.
    Please tell me the procedure.
    Currently i am trying to cancel the billing document for sales order by VF02 and try to cancel through menu bar.
    After canceling the document its still giving the message that subsequent document exists.
    Please help.
    Thanks and Regards

    in the document flow : i am finding documents which are given below :
    Doc.                                           Date     Overall Processing Stat
    Serv. notif. 00015773
    Qt For NewConnection 20022016    23.04.08   -   Completed
    Order New Connection 22460 23.04.08           -    Open
    Z New Connection 90022430 23.04.08      FI doc. not Required
    Cancel. Invoice (S1) 90023731 19.07.08    FI doc. not required
    And no accounting document created.
    Thanks and Regards
    Edited by: Birendra Choudhary on Jul 19, 2008 2:08 PM

  • Appending new quotation items into an existing sales order using copy cntrl

    Hi,
    Following is the requirement:-
    1) Customer negotiates a quotation.
    2) The quotation is converted to a sales order. The order replicates to ecc for fulfillment.
    3) The customer negotiates another quotation and decides to place additional order.
    4) However, the implementing organization wants to append / update the original sales order with the additional items on the new negotiated quotation using copy control.
    Can this functionality be achieved through copy control enhancement or can this be handled some other way?
    Regards
    Ashish

    Hi Alexander ,
    Yes ofcourse you can use consignmentment Process
    and you can use the concept of special stock partner in the partner profile
    Spoecial stock partner (SB) can assign to your ship to party
    1stly you can do consignment fill up(  with your customer name (ex-2316)
    then at the time of creating the consignment issue parter function use 2361 customer
    Regards    
    Ramesh

  • Delete header condition line in a sales order!

    Hi guys,
    I tried deleting condition line (under condition tab) for a line item using BAPI_SALES_ORDER_CHANGE. It works fine.
    I also need to delete condition line at header of sales order. If any one has a idea ...can you please share??
    Thanks & Regards
    HImayat.

    Hi Madhu,
    I have passed this way.
    ls_ordcond_inx-updateflag = 'D'.
    ls_switch-cond_handl = 'X'.
    ls_ordcond_in-itm_number  = '000000'."for header
    ls_ordcond_inx-itm_number = '000000'.
    ls_ordcond_in-cond_type   = ls_xref-value1.(I have passed condition type) here
    ls_ordcond_inx-cond_type  = ls_xref-value1.
    APPEND ls_ordcond_in  TO lt_ordcond_in.
    APPEND ls_ordcond_inx TO lt_ordcond_inx
    lv_bape_vbak-vbeln        = iv_vbeln.
      lv_bape_vbak-zzmdisc      = ls_vbak-zzmdisc
      lv_extensionin-structure  = lc_bape_vbak.
      lv_extensionin-valuepart1 = lv_bape_vbak+0(240).
      lv_extensionin-valuepart2 = lv_bape_vbak+240(170).
      APPEND lv_extensionin TO lt_extensionin.
      CLEAR lv_extensionin.
    *   BAPE_VBAKX
      lv_bape_vbakx-vbeln       = iv_vbeln.
      lv_bape_vbakx-zzmdisc     = 'X'.
      lv_extensionin-structure  = lc_bape_vbakx.
      lv_extensionin-valuepart1 = lc_bape_vbakx. 
      APPEND lv_extensionin TO lt_extensionin.
      CLEAR lv_extensionin
    Then call to BAPI..
    Still doesnt seem to be working...anything am missing??

  • How 2 read all the line of a sales order text ID plz

    Dear all
    I have the following to read sales order text of single line of limited char(40)
      TIDNO = '0003'.
        CONCATENATE SSORD
                    LIPS-POSNR
        INTO        TNAME.
        TOBJT = 'VBBP'.
        PERFORM FINDTEXT.
        LOOP AT MSLINES.
          WA_ITEM-PACKTYP = mslines-tdline(40).
          EXIT.
        ENDLOOP.
      How do i read mutiple lines plz tell me ?
    Thnx
    Moni
    Message was edited by: md monirujjaman

    Hi Md,
    sorry I don't understand your question, can you explain more ?
    Regards
    Frédéric

  • How update amount of charge line for a sales order  line id

    I have a modifier which are qualified for a order line id, i want to update the amount of charges if the Shipping date is > 1 day than resquest date, as I do not have the advances pricing module so i have to do a customization for this condicion.
    I want to now how to update these, Does exist a API in order to do that ? or Can i go directly to oe_price_adjustments table and modify the data ??
    Thanks
    Fernando

    Hi Fernando,
    I'd probably do this in Adv. Pricing using a dynamic formula + factor list (two diff charge levels dependent on schedule ship date minus request date) against a booking event modifier. Obviously, you don't have dynamic formulas in Basic Pricing but could you handle this via creating a new pricing attribute? The charge levels could be maintained on a lookup rather than hardcoded and used in the calculation by your new pricing attribute.
    Whatever approach you go for would also need to cope with the scenarios that you either rescheduled the order or manually amended the request date because obviously the gap between request date and SSD would change.
    Your first suggestion is feasible, the second not a good move - I'm not sure how much it costs to licence Adv. Pricing but you could always offset the cost against the cost of developing and maintaining a custom update routine.
    Regards,
    Jon

  • How to create the service lines in a sales order using Process_order API

    Hi ,
    I have to create the service lines in a Config to order using process Order API. When i am trying to create a sercvice line , it is comming as new line all together. but i need that one to happen in the configuration itself after the option item but not like standalone line.
    what are the manditory fields for service lines to create using Process_order API.
    Apprciate your help on this.
    Thanks
    Rags

    Moderator message - Please do some analysis before posting here - thread locked
    Rob

  • How to delete string or line from unix file(dataset) of application server

    Hi  All,
    After transfer workarea information or all records into dataset(unix file). When I see the file in application server automatically the last line is shown a blank line. I am not passing any blank line.
    I have tried for single record than also the file generates the last line(2nd line) also a blank line.
    When I m reading the dataset, it is not reading the last blank line but why it is showing the last blank line?
    How to delete string or line from unix file(dataset) of application server?
    Please give your comments to resolve this.
    Thanks
    Tirumula Rao Chinni

    Hi Rio,
    I faced similar kind of issue working with files on UNIX platform.
    The line is a line feed to remove it use
    DATA : lv_carr_linefd TYPE abap_cr_lf VALUE cl_abap_char_utilities=>cr_lf. 
      DATA : lv_carr_return TYPE char1,                                   
             lv_line_feed   TYPE char1.                                          
      lv_line_feed   = lv_carr_linefd(1).
      lv_carr_return = lv_carr_linefd+1(1).
    Note: IMP: The character in ' ' is not space but is a special
    character set by pressing ALT and +255 simultaneosly
      REPLACE ALL OCCURRENCES OF lv_line_feed IN l_string WITH ' '.
      REPLACE ALL OCCURRENCES OF lv_carr_return IN l_string WITH ' '.

  • How to delete the items in the recycle bin permanently from the windows using Diruse command

    How to delete the items in the recycle bin permanently from the windows  using Diruse command.
    Because most of the time we get out of disk space issues.
    Can somebody help me in giving with an example

    You can right-click Recycle Bin|Properties and choose radio button for
    Don't move files ....
     This one may also help.
    http://technet.microsoft.com/en-us/library/cc784980(v=ws.10).aspx
    Regards, Dave Patrick ....
    Microsoft Certified Professional
    Microsoft MVP [Windows]
    Disclaimer: This posting is provided "AS IS" with no warranties or guarantees , and confers no rights.

  • How to delete all items in the HUB ?

    How to delete all items on shot in the HUB ?

    Hi all,pay attention to the words I've marked in bold in the first answer from the technical support member:  "From the BlackBerry Hub, hold your finger on the date at the top of the list. A side menu will appear. Click on the Garbage Can to delete all messages prior to that date" At first, I also didn't understand how to make it works, but you have to slide until the date is at the top of displayed messages, then you can tap and hold to select all messages preceding that date. 

  • How to delete an item in the table

    hi all ,
    Is anyone there to give me an idea , how to delete the item in the table , by selecting the row. , for the what i have to do , is there any documentation to follow , guide me itys really urgent.

    Hai Madhu,
    It is pretty simple.
    First u define a button. and in onAction  Event of the button write the following code.
    process is as follows:
    1)get the node
    2)get the element
    3)using the method remove_element() ,remove the element.
    <u><b>The Sample Code is as follows</b></u>
    DATA:
          node_flighttab                      TYPE REF TO if_wd_context_node,
          elem_flighttab                      TYPE REF TO if_wd_context_element.
        node_flighttab = wd_context->get_child_node( 'FLIGHTTAB' ).
      get element via lead selection
        elem_flighttab = node_flighttab->get_element(  ).
        node_flighttab->remove_element( element = elem_flighttab ).
    Follow the above code ,it will definately help you.

  • How to delete the specified line in file?

    How to delete the specified line in file? In case of deleting a specified line in a file, how to do?
    Line 1
    Line 2
    Line 3
    Line 4
    Line 5
    The case is a file including the above content. Now I wanna to delete the "Line 3" and how to realize the action in Java?

    An alternative solution can be :
    import java.io.LineNumberReader;
    import java.io.IOException;
    import java.io.File;
    import java.io.FileReader;
    import java.io.BufferedWriter;
    import java.io.FileWriter;
    import java.io.PrintWriter;
    public class LineDeleter {
    public static void main(String args[]){
    try {
    //suppose you want to delete line 3
         int lineToBeDeleted = 3;
         File f = new File("line.txt");
         long fileSize = f.length();
    //Wrap the FileReader with a LineNumberReader. It will help you
    //identify the lines.
    LineNumberReader lnr = new LineNumberReader( new FileReader(f));
    //Wrap the FileWriter object with BufferedWriter object. Create it with the buffersize
    //equal to the file size.
         BufferedWriter bw = new BufferedWriter(new FileWriter(new File("line1.txt")),(int)fileSize);
    //Wrap BufferedWriter object with PrintWriter so that it allows you
    //to print line by line
    PrintWriter pw = new PrintWriter(bw);
         String s=null;
         while ( (s=lnr.readLine())!=null ){
              System.out.println(s);
              int lineNumber = lnr.getLineNumber();
    //match the line number
              if(! (lineNumber==lineToBeDeleted)){
                   pw.println(s);
              pw.flush();
              lnr.close();
              pw.close();
         catch(Exception e){System.out.println(e);}
    If you want you can rename the line1.txt to the original file name.
    I hope this helps.Good luck!!!!!!

  • HT1349 how to delete multiple items in itunes

    how to delete multiple items in itunes

    I inported my music files and see that I have multiple copies on my files so now I have multiple copies in iTunes.
    Some are multiples, some are duplicates, some are from different dates and some do not work and have the symbol for this.
    Thus, I must be picky about which ones I delete.
    Looks like I will have to continue deleting manually.

  • How to delete a whole line in cmd prompt in Linux

    Hi all,
    How to delete a whole line in cmd prompt in Linux using short key?
    ex: [oracle@host1 ~]$ cd /u01/app/oracle/product/11.2.0/dbhome_1/
    Thanks

    yes ctrl+ak or ctrl+eu both are better. if you look from that perspective, go end and delete will be the same job too. (ctrl+eu) (but for me in such a command line, for example cding in to the directories ,the cursor will be at the end of the line %99 of the time :) )
    about ctrl-t,
    Drag the character before the cursor forward over the character at the cursor, moving the cursor forward as well. If the insertion point is at the end of the line, then this transposes the last two characters of the line.
    for ex:
    misspelled command date -> daet -> ctrl+t -> date
    or
    misspelled command $APPPL_TO -> place the cursor on third P press ctrl+t repeateadly till the P will come to the end -> APPL_TOP

Maybe you are looking for