Delete a SO line before saving the SO

Hi SD experts,
   I have a requirement where: If user tries to enter a new line in an SO, with a material/plant combination which already exists for that SO in a different line, then this new line should be deleted and the quantity should be added to that already existing line. Can this be acheived?
  We are already using the exit: userexit_move_field_to_vbap to change the POSNR, so tried to add it in this, but the problem is we do not have XVBAP filled in this exit.
Regards...

Hi,
Try with using the one of the below User Exits:
User exits in the SD orders. These are program names (SE38):
MV45ATZZ
For entering metadata for sales document processing. User-specific
metadata must start with "ZZ".
MV45AOZZ
For entering additional installation-specific modules for sales
document processing which are called up by the screen and run under
PBO (Process Before Output) prior to output of the screen. The
modules must start with "ZZ".
MV45AIZZ
For entering additional installation-specific modules for sales
document processing. These are called up by the screen and run under
PAI (Process after Input) after data input (for example, data
validation). The User exits in the SD orders. These are program names (SE38):
MV45ATZZ
For entering metadata for sales document processing. User-specific
metadata must start with "ZZ".
MV45AOZZ
For entering additional installation-specific modules for sales
document processing which are called up by the screen and run under
PBO (Process before Output) prior to output of the screen. The
modules must start with "ZZ".
MV45AIZZ
For entering additional installation-specific modules for sales
document processing. These are called up by the screen and run under
PAI (Process after Input) after data input (for example, data
validation). The modules must start with "ZZ".
MV45AFZZ and MV45EFZ1
for entering installation-specific FORM routines and for using user
exits, which may be required and can be used if necessary. These
program components are called up by the modules in MV45AOZZ or
MV45AIZZ. e modules must start with "ZZ".
MV45AFZZ and MV45EFZ1
for entering installation-specific FORM routines and for using user
exits, which may be required and can be used if necessary. These
program components are called up by the modules in MV45AOZZ or
MV45AIZZ.
Please take your ABAPERs help in this regard.
Please Reward If Really Helpful,
Thanks and Regards,
Sateesh.Kandula

Similar Messages

  • User Exits for transaction VF01 before saving the billing document

    Can any one say is there any user exit which exits before saving the billing document since i want to check the net value of the billing with the net value of sales order so that it should not go beyond the total amount specified in sales order.

    J_3RSINV
    SDVFX001  User exit header line in delivery to accounting
    SDVFX002  User exit for A/R line in transfer to accounting
    SDVFX003  User exit cash clearing in transfer to accounting
    SDVFX004  User exit G/L line in transfer to accounting
    SDVFX005  User exit reserves in transfer to accounting
    SDVFX006  User exit tax line in transfer to accounting
    SDVFX007  User exit: Billing plan during transfer to Accounting
    SDVFX008  User exit: Processing of transfer structures SD-FI
    SDVFX009  Billing doc. processing KIDONO (payment reference numbe
    SDVFX010  User exit item table for the customer lines
    SDVFX011  Userexit for the komkcv- and kompcv-structures
    V05I0001  User exits for billing index
    V05N0001  User Exits for Printing Billing Docs. using POR Procedu
    V60A0001  Customer functions in the billing document
    V60P0001  Data provision for additional fields for display in lis
    V61A0001  Customer enhancement: Pricing
    These are the Exits Available in the Package
    Jus try finding which will suffice ur Requirement.
    Regards,
    Mithun

  • Validation of Item Values before saving the form

    Hi,
    I have requirement in Oracle Forms, we give header information as per the requirement and the lines info of the specific header. In lines whe have two feild as type and amount. If the type is 'E' then we need to sum up the amount value as credit and if type is 'F' we need to sum up of those feild values as Debit and before saving the form we need to check the sum of Credit and Debit is equal or not if equal then we should allow to save the form else it should not. We can have multiple lines under single header..Can any body help on this..Its very emergency..
    Thanks,
    Maggi.

    Hi,
    In Customer-exit ILOM0001 read table IMPT_BUF[] from sap stack. It contains all enteries of measuring points.
    Use below mentioned code in above exits for your reference.
    FIELD-SYMBOLS : <fs_impt> type ANY TABLE.
    data : tab_impt type TABLE OF impt.
    ASSIGN ('(SAPLIMR0)IMPT_BUF[]') to <fs_impt>.
    if sy-subrc is INITIAL.
      tab_impt = <fs_impt>.
    endif.
    table TAB_IMPT is filled wilth all entries of measuring point while creating and changing functional location.
    Thanks,
    Vijay

  • I scanned an image and want to use the image trace tool, but it doesn't pick up all the lines.  Is there a way to darken the lines before using the image trace tool?

    I scanned an image and want to use the image trace tool, but it doesn't pick up all the lines.  Is there a way to darken the lines before using the image trace tool?  Help!

    If the scan is in B&W, then play with the Threshold setting here
    If it's in Color, then you will have to open the scan in a Raster editing software (like Photoshop) and play with the Brightness/Contrast settings to make the lines bolder.

  • Ho to Generate the Numeric Values Automatically before saving the records

    Hello to everybody,
    I have a data block naming “BILL” consisting of the following 3 field.
    1. Sr_No
    2. Bill_Amount
    3. Description
    This Data Block consist 10 records at a time.
    I want that whenever I insert records in the above data block.
    Serial No should automatically be generated.
    For this I have applied the following code in “WHEN-NEW-ITEM-INSTANCE” trigger.
    <CODE>
    SELECT NVL(MAX(Sr_No),0)+1 INTO :BILL.Sr_No FROM BILL;
    </CODE>
    Whenever I insert records in the BILL data block, the first row automatically generates the “Sr_No”, but when I move to the next record, (remember currently I have not saved the record), the same value which appeared in the previous record appears in the Sr_No field.
    For example, when I insert records for the first time in the BILL, the Sr_No field automatically generates value “1”, but when I move to the next record while not saving the first record the next row still generating value “1”, while it should be value “2” and so on.
    Note that I want that before saving the previous record when I move to the next row, the Sr_No should generate the next continuous value like in example.
    Please help me to solve out this problem.

    You have practically scratched you left ear with your right foot while jumping on the left foot :-)
    Seriously, you guys don't need to go to all this trouble.
    If you want a serial number incrementation, all you need to do is to either select the max value + 1 from the table or select the next value from a sequence in an PRE-INSERT trigger on block level, and that's it!!!!
    Tony

  • Restrict Duplicate entry of record before saving the form

    Hi!!
    I need to validate duplicate entry of ITEM CODE before saving the FORM. Which means, if I have entered an ITEM CODE in a row, the same ITEM CODE should not be allowed to be entered in any other rows. It should throw an error message and should ask to enter another ITEM CODE instead. I did not get the correct logic from the threads.
    Regards
    Mitto

    hey i have a requirement that to restrict duplicate entry in both block(both multi record).the blocks are DEPT(MATER)
    EMP(DETAIL)
    the associated fieds in master block DEPT.DEPT_NO,in detail EMP.EMP_ID .
    I have done' Kevin D Clarke’s calculated item ' both in master and detail block
    its working fine for master block but in case of detail block its only respond to the current session(i.e. if the new value is inserted or save it will restrict another record to be inserted of that last record's value),it does not restrict duplicate value enter ,checking with other existing records(which are saved in earlier session,though after query it is shown on the form)
    can anyone guide me why its not working

  • In VF01, before saving the billing document, can we use "issue output to"

    In VF01 transaction before saving the billing document, can we use "issue output to" under Billing Document in Menu.
    i.e., can we enable the option "Billing Document -> Issue output to -> Issue output to"

    Hi,
    No as a standard, unless the billing document is created and released to accounting, you can't use issue output to.
    Regards,

  • System assigning Contact Number before saving the contact

    Hi ,
    In CRM Dev client and CRM QA system is assigning Number for the
    contact (Business Partner) before saving the contact in webui.
    Because of this, system is updating the Contact created time in BUT000
    as the Number assignement time and not the actual contact saved
    time.
    (Whereas in CRM PROD client its not behaving as indicated above and
    its assigning Number after saving and its fine).
    Pl suggest the possibilities to avoid early number assignment and surprised its happening in only Dev and QA.
    Regards
    Babu

    Hi,
    Please take a look at this thread.
    CRM 7.0 Stop Early Number Assignment for  BP create
    Regards,
    Parul

  • How to validate plan data before saving the data

    I have a total row in my planning layout which is a summation of plan data in 2 other rows. While saving the data, I should check whether the total is 200 and if not the data should not be saved. How can I achieve this! Any help would be appreciated.
    Regards,
    Tipo.

    Hi,
    I'm also facing the same problem in my development...I tried above all the ways,but we cannot stop saving the wrong data.In this case you have to write the java script for save button, before saving the data if it is correct then go for the next step to save other wise throw an error message or without save the data .
    You need to write the JAVA script for save button,in this code you need to read the data form the layout and check the total value, i am not sure if layout is dynamic how we can achieve this???.
    My development also stopped for this issue,In my case i  have two layouts ,one is for actual and another one is for Planing layout(Function - Distribution equally),using the fox code i succeed to read and throw an error message for incorrect data but i can not stop to saving for incorrect total data.
    Once you solved this problem please post the message in SDN.This type of requirements is very tough and we need to share to our friends.
    Thanks.

  • InCopy workflow in InDesign: Is there a way to find the document in which an ICML file has NOT been checked IN again before saving the doc?

    The situation:
    We are working with the InCopy feature (checking in and checking out ICML files).
    The problem:
    I might have saved a document with an ICML file still checked out.
    The question:
    Is there a way to find out which document was saved with the ICML file still checked out?
    or in other words:
    Is there a way to find the document in which an ICML file has NOT been checked IN again before saving the doc?
    Thanks for any help!

    Hello Sumit Singh,
    thank you for your answer and your reasonable recommendation. Unfortunately, this only works when the ICML content is used in one INDD file. In our case, we use ICML content in multiple docs (various manuals with the same safety instructions, warranties, adresses etc.).
    So, is there a way to trace back where an ICML has been used?
    Is it possible to find out in which document the ICML is still checked out?

  • Could you pls help on  use exits   before  saving  the contract .

    i want to check the limitatin  before  saving the contract  in sap banking.
    for  contract creation  tcode is  FN1V or FNV1.
    Could you pls tell me the   use exits  if knows  anybody
    advance thanks.

    Hi Diva,
    use this exit.
    EXIT_SAPLFVDA_002
    if this is not suitable for u r req then go to SMOD press f4 then click on Information systems give FVVD in package then press enter.there u will get no of enhancement. search for u r rlant.
    Thanks

  • How to delete confirmed schedule lines, without executing the ATP check?

    Sales and Distribution: Concerning ATP (product allocation)
    Situation:
    Step 1: An order is created with priority low. Quantities are confirmed for line items.
    Step 2: A second order is created with a higher priority. No confirmed quantities.
    Rescheduling program (SDV03V02) is then executed. This selects and sorts the orders in the correct order.
    The confirmed quantities for the first (low priority) order should now be freed up, to be able to allocate those quantities to the second (high priority) order.
    The problem I am facing is that the confirmed quantities are NOT released.
    We cannot use BAPI_SALESORDER_CHANGE or SD_SALESDOCUMENT_CHANGE to delete or modify the schedule lines, because these function modules execute the ATP check again. And when that happens, quantities are again confirmed and assigned.
    How can we get rid of the confirmed schedule lines, without executing the ATP check?
    Thanks,
    Edwin.

    Found a solution to the problem:
    In the Rescheduling program we export a parameter to the memory, to make it possible to delete schedule lines without executing the ATP check.
    Deleting of the schedule lines is done with a BAPI, which will call the ATP check automatically for ATP relevant materials. This we want to stop from happening (only when calling the BAPI).
    After the BAPI has been called we FREE the MEMORY ID.
    The parameter is imported again in Customer-Exit EXIT_SAPLATPC_001.
    Transaction.. SMOD
    Enhancement.. ATP00001
    Component.... EXIT_SAPLATPC_001,
    Include...... ZXATPU01.
    The customer exit is used in function AVAILABILITY_CHECK_CONTROLLER, just before calling function 'AVAILABILITY_CHECK'.
    Simply refreshing the ATP tables in the customer-exit, will prevent the ATP check from being executed (because we removed the list containing the materials for which the ATP check needs to be done). As a result, the function 'AVAILABILITY_CHECK' will not be processed.

  • Sending New Requirement date to APO before saving the sales order in ECC

    Hi Experts,
    i have a requirement where while creation of sales order, when user enters the requirement date,i have to calculate the new requirement date ( adding transit time and other time ) and send it to APO , to bring the ATP result based on this new calculated date.
    This new calculated date is getting saved in Z field in VBAP table and also this new requirement date which has to be pass to APO is getting calculated while saving the doucment i.e. at user exit - USEREXIT_SAVE_DOCUMENT_PREPARE.
    Now, i am not sure, how i should pass this new date to APO , which FM , Badi or BAPI would be used ?
    Please help and let me know if i am supposed to detailed it a little more.
    Thanks.

    Hi Bharat,
    Normally the new calculated requirement/delivery date will be updated in APO through the CIF.
    However you can influence the transfer with enhancement CIFSLS03 (influence sales-order-specific data directly before it is sent to SAP APO available on ECC side).
    Please see the below description.
    Thanks.
    Regards, Marius
    In this enhancement, you can transfer customer-order-specific data to SAP
    APO.
    The associated component EXIT_SAPLCSLS_002 provides you with tables that are
    required for the transfer. In particular, these are:
    Requirements table ET_SL_REQ
    Item table ET_SL_DOC
    Field catalog ET_ATPFIELD
    You can use this exit to create or change documents in the ERP system as well
    as for the initial data transfer.
    The data is transferred to SAP APO after this exit is called.
    Notes
    If you use program /SAPAPO/CIF_DELTAREPORT3, you have to add the
    corresponding logic to function module EXIT_SAPLCID3_001. For more information,
    see the documentation for
    enhancement CIFCID3.
    Programs /SAPAPO/CIF_DELTAREPORT and /SAPAPO/CIF_DELTAREPORT2 also run this
    exit.

  • Set deletion flag for Order before releasing the order

    Hi all,
    can we set the Deletion Flag for an order before release of that order.
    Regards,
    Bhanu.

    Hi,
    You can lock and unlock order without releasing.
    In case of Un execute we can not release order further.
    Path:
    ORDER-FUNCTION-LOCK
    order-function-unlock
    Regards,
    Sudhakar

  • Using hotmail-unable to delete address of person before forwarding the email

    when i receive an email and want to forward it on i try to do the proper thing and delete the address of the person who sent it to me before forwarding.Previously if i highlighted the things i wanted to delete and then hit delete it would disappear.Now it won't.

    Hello!
    I have the exact same issue, did you manage to overcome this?
    Thanks,
    Bruno

Maybe you are looking for

  • Grey Screen Of Death appears daily! What's wrong with my computer?!?

    I'm really worried! This happens maybe 30 minutes to 2 hours after waking my computer from sleep. I usually don't run too many applications at one time, maybe four (internet, itunes, ichat, and maybe mail). Does anyone know whats going on? I'm really

  • F4 help in BSP

    Hi ,      How do we create F4 help in BSP? Can we create F4 help in BSP just by giving data element/domain refrence like ABAP and it will populate all the values. Say , I have a Plant field on my screen. So i want to display all the plants from T001w

  • BI Report is showing two rows for a single record

    Dear Experts This is Raja I am Facing one issue in BI Report, I have created report based on a Infocube which is getting data from two DSO. one is Standard [ Billing Condition Data]and another one is ZDSO[Targets}. these two requests go in the Infocu

  • Why does my encoded DVD adds a zoom-in and a delay wherever the imported asset has a cross-dissolve?

    Greetings! Still a rank amateur, and a frustrated one because the Encoder when it burns a DVD for me (with no bells or whistles) adds a zoom-in to the cross dissolves that perform very happily in my cs5 sequence and in my H264. When I burn a DVD from

  • Starting a JVM on remote machine

    Hi all, I would like to be able to start a JVM from machine A on machine B. Machine B could be running at another location so I'm not able to start the VM using the command line. I know you could start a telnet session from A to B and start the proce