SAPMV45A: User-Exit to handle sub item quantity

Hello,
In SD sales order (VA01) I create line item 10 with sub item 11 such as:
10     89464988     1 M
11     99912001     1 PC     10
If I change the quantity of main item from 1 to e.g. 2 so the quantity of sub item will also be changed to 2.
Now, Iu2019m looking for a possibility to hold the quantity of sub item to 1.
In SAPMV45A I cannot find an appropriated user-exit for that.
How can I set the quantity to 1 in sub item? What exit can be used for that?
Thank your for your hints in advance.
Regards,
Kurt.

Hello Kurt,
in that case you could also try the USEREXIT_CHECK_VBEP. In XVEBP you get the number of the position, that you can read in table xvbap.
Just but an breakpoint inside the exits and try, which is the best for your case.
In general, in these old SAPMV45A-Exits you have access to all internal areas and tables that are defined in the program (XBAP, XBEP and so on). That makes it so easy to change - but also so dangerous.
Regards Wolfgang

Similar Messages

  • User Exit for adjusting Transfer Order Quantity

    Hi All,
    We have a requirement to create a Transfer Order as soon as the production order is released. We have done the configuration for the same but we also need to adjust the Transfer Order quantity based on certain rounding value maintained in material master.
    We have tried to use the exit MWMPP001 to adjust this quantity on the Transfer Order based on a field in material master. The user exit is triggered. But the target quantity is not changed as required.
    We also tried using the exit MWMTO006 (Over delivery and if Necessary Under delivery Via User Exit) to adjust the TO quantity. But the exit is not being invoked.
    Kindly let us know if there is any user exit or BADI to adjust the quantity in Transfer Order.
    Regards,
    S.Subasree

    Hi Subasree,
    We are facing the similar problem of user exit(EXIT_SAPLL03A_009) in the enhancement MWMTo006 is not getting invoked.
    We want to use this enhancement to split the TO quantity basing on certain parameters maintained in master data. We are using Lean WM.
    But, I understand from my development team, that program is checking the available stock at quant level. It will invoke the exit only if the stock available at quant is greater than the TO quantity. I didn't understand why this check is there in ECC6.0.
    Currently we are using the same exit in 4.6b, where this check is not there in the code.
    If you have found any solution for this(Invoking the exit) please let us know. Thankyou.
    Regards
    Guru

  • User exit or badi to change quantity of delivery item

    Hi SD Experts,
    I need to change delivery item quantity when i am recording post goods issue.
    Regards,
    Aktolga

    You can find SD expert in Space: SAP ERP Sales and Distribution (SAP SD) | SCN
    Please read the document Find Topic Spaces on SCN (Forums) | SCN

  • User exit or badi for item text in mir7 transaction

    Hi Gurus,
    Please provide me suitable user exit or enhancement or badi for this requirement.
    client enter TEXT fied data in MIGO transaction for material document and purchase order in where tab.
    in MIR7 i entered reference number as material document number and purchase order number after triggering enter button it gives the list of items but IT IS NOT GIVE THE ITEM TEXT DATA which we entered in MIGO transaction.
    Please provide me suitable user exit or enhancement or BADI for this.
    Thanks A lot in Advance.
    With Regards,
    Radhakrishna.

    Hi RadhaKrishna,
    You can find the BADI by yourself just follow the below any methods you will get the appropriate BADI name..
    Method 1:
    Go to Tranaction: SE24.
    open class CL_EXITHANDLER
    Open the method " GetInstance"
    Put Break point in the statement
    call method cl_exithandler=>get_class_name_by_interface
    Now execute the Transaction which you need teh BDC it will automatically stops at the the method. In debugging mode double click on the variable: " exit_name" It will return the BADI Name.
    Method 2:
    find the Package name and go to the tranaction SE84.
    Enter the package name
    inside the left navaigaiton panel there is one option " Enhancements" click on this enhancement and then enter the package name and execute it. you will get hte number of enhancement.
    for your reference I am sending you the list of BADI present in MIRO transaction.
    ARC_MM_MATBEL_CHECK --------Check AddOn-Specific Criteria for MM_MATBEL
    ARC_MM_MATBEL_WRITE ---------- Archive AddOn-Specific Data for MM_MATBEL
    MB_CHECK_LINE_BADI  -------------- BAdI: Check Line Before Copying to the Blocking Tables
    MB_CIN_LMBMBU04     --------------- posting of gr
    MB_CIN_MM07MFB7     ---------------- BAdI for India Version exit in include MM07MFB7
    MB_CIN_MM07MFB7_QTY  ------------Proposal of quantity from Excise invoice in GR
    MB_DOCUMENT_BADI     --------------BAdIs when Creating a Material Document
    MB_DOCUMENT_UPDATE   -----------BADI when updating material document: MSEG and MKPF
    MB_MIGO_BADI        --------------------- BAdI in MIGO for External Detail Subscreens
    MB_MIGO_ITEM_BADI    ----------------BAdI in MIGO for Changing Item Data
    MB_RESERVATION_BADI  --------------MB21/MB22: Check and Complete Dialog Data
    Thanks,
    Chidanand

  • Rule based ATP Check - User Exit to modify the item

    Hi all,
    We are working with standard rule based ATP check to change the plant in the Sales Order item.
    That creates a new subitem with the new plant determination, and changes the Item Category of the original item.
    My doubt is: Is there any User Exit in this process to do the system change something else in the Sales Order items?
    << Moderator message - Please do not offer points >>
    Thanks!!
    Edited by: Rob Burbank on Oct 8, 2010 2:20 PM

    Hi Roger,
    Please clarify more what do want to change exactly example any Z field to be copied from main item to sub item.
    You can use exit USEREXIT_MOVE_FIELD_TO_VBAP ,  USEREXIT_MOVE_FIELD_TO_VBAK 
    Thanks,
    Pavan Verma

  • BADI or User Exit to Change the Item Details in AFAB Transaction(Depreciation)

    Hi Experts,
    I have a requirement of changing the Item details in AFAB Transaction (Internal Order Number). Is there any BADI or User exit available for that.
    Thanks in advance.

    Hi Sivag,
    You can find BADI for transaction in different ways. Try with below methods
    1. To find New BADI(Karnel), Run the transaction with debug mode(/h), keep break point at statement
        CALL BADI
    2. To find old BADI (Classic), Keep break point at exit handler CL_EXITHANDLER=>GET_INSTANCE and         run the transaction
    3.  Check in SPRO transaction  - Check with functional consultant in which business process this transaction    comes and any customization  details available
    4. Get pakage name of transaction and go to to tcode se84 enhancement browser . Try to find with package name,  any enhancement available
    Thanks & Regards,
    aRun

  • Using a Velocity Template in Java User Exit Custom Handler

    I would have thought it would be possible to use a Velocity template in combination with a custom handler in a Java user exit, but I can't seem to figure out how  to do it, and I'm not finding an example of doing this anywhere in the GoldenGate docs.
    For example, I can create a Velocity template and use it to output transactions in the desired format to a file by using a propeties file that looks something like this:
    gg.handlerlist=myhandler
    gg.handler.myhandler.mode=tx
    gg.handler.myhandler.format=./dirprm/my_template.vm
    gg.handler.myhandler.type=file
    gg.handler.myhandler.file=my_output.txt
    What I'm hoping to do is to have a custom handler, and some how  be able to get to the Velocity formatted transaction data in the "transactionCommit(DsEvent, DsTransaction)" method of my custom extension of AbstractHandler by having a properties file that looks like this (same as the above, except for the type, and no file property ... eg:
    gg.handlerlist=myhandler
    gg.handler.myhandler.mode=tx
    gg.handler.myhandler.format=./dirprm/my_template.vm
    gg.handler.myhandler.type=my.custom.GGHandler
    I've verified that I have a valid DsEvent and a DsTransaction with the desired information in by custom handler's transactionCommit method ... and I can even pull out the required data and re-format it there to the desired format so that it looks just like the format that my Velocity template outputs when I'm outputting to a file (as shown in the first properties file).  But shouldn't I somehow  be able to access the Velocity transformation for my DsTransaction in my custom handler?
    Thanks for any assistance / info provided.

    I would have thought it would be possible to use a Velocity template in combination with a custom handler in a Java user exit, but I can't seem to figure out how  to do it, and I'm not finding an example of doing this anywhere in the GoldenGate docs.
    For example, I can create a Velocity template and use it to output transactions in the desired format to a file by using a propeties file that looks something like this:
    gg.handlerlist=myhandler
    gg.handler.myhandler.mode=tx
    gg.handler.myhandler.format=./dirprm/my_template.vm
    gg.handler.myhandler.type=file
    gg.handler.myhandler.file=my_output.txt
    What I'm hoping to do is to have a custom handler, and some how  be able to get to the Velocity formatted transaction data in the "transactionCommit(DsEvent, DsTransaction)" method of my custom extension of AbstractHandler by having a properties file that looks like this (same as the above, except for the type, and no file property ... eg:
    gg.handlerlist=myhandler
    gg.handler.myhandler.mode=tx
    gg.handler.myhandler.format=./dirprm/my_template.vm
    gg.handler.myhandler.type=my.custom.GGHandler
    I've verified that I have a valid DsEvent and a DsTransaction with the desired information in by custom handler's transactionCommit method ... and I can even pull out the required data and re-format it there to the desired format so that it looks just like the format that my Velocity template outputs when I'm outputting to a file (as shown in the first properties file).  But shouldn't I somehow  be able to access the Velocity transformation for my DsTransaction in my custom handler?
    Thanks for any assistance / info provided.

  • User-exit that split at item level according to bill of entry(BOE)

    HI,
    need to write the logic for splitting invoices at item level according to BOE.
    Customized new table:
    Info for the customized table:
    Table Name:     ZIN_BONDINV
    Field Name          Data Element          Type          Length     Short Text
    MANDT          MANDT          CLNT          03          Client
    VBELN          VBELN_VF          CHAR          10          Billing Document
    EXNUM          J_1IEXCNUM     CHAR          10          BOE or Excise Invoice #
    EXYEAR          J_1IEXYEAR          NUMC     04          Excise Year
    ZEILE               J_1IZEILE1          NUMC     04          Item no - GR at depot
    ZVBELN          VBELN_VL          CHAR          10          Delivery Number
    Z POSNR          POSNR_VL          CHAR          06          Delivery item
    ZWERKS          WERKS_D          CHAR          04          Plant
    This table to be used for storing the invoice created using delivery document along with other information extracted during billing document creation.
    Logic for populating the table:
    User Exit: RV60AFZC
    Form: USEREXIT_FILL_VBRK_VBRP
    This user exit should be used to update records in the customized table for the data with which billing document is created.  The data should be populated as follows:
         VBELN     =     VBRK-VBELN
         EXNUM     =     J_1IRG23D-EXNUM*
         EXYEAR     =     J_1IRG23D-EXYEAR*
         ZEILE          =     J_1IRG23D-ZEILE*
         ZVBELN     =     VBRP-VGBEL
         ZPOSNR     =     VBRP-VGPOS
         ZWERKS     =     VBRP-WERKS
    *The above data is read during splitting the billing document based on BOE (copy control routine 602) and should be used from there.

    USER-EXIT NAME IS RV60AFZZ

  • F-32 ( User Exit / BTE ) Remove line items depending on condition

    Hi Gurus,
    When i run F-32 transaction, before the line items are displayed  I need to remove certain line items depending on some condition.
    Is there any user exit or BTE to do that ?
    Avi

    Hi,
    Try any of the below,
    Customer-exit
    SAPLF051
    RFKORIEX
    RFEPOS00
    RFAVIS01
    FEDI0001
    FARC0002
    F180A001
    F050S001
    F050S002
    F050S003
    F050S004
    F050S005
    F050S006
    F050S007
    Business Add-in
    FI_RES_ITEM_CURRENCY
    FI_TRANS_DATE_DERIVE
    BADI_ENJ_ALT_ADR
    BADI_F040_SCREEN_600
    BADI_FDCB_SUBBAS01
    BADI_FDCB_SUBBAS02
    BADI_FDCB_SUBBAS03
    BADI_FDCB_SUBBAS04
    BADI_FDCB_SUBBAS05
    RFESR000_BADI_001
    BADI_MIRO_SPLT_ADD
    BADI_PRKNG_NO_UPDATE
    FVFZ
    INVOIC_FI_INBOUND
    AC_QUANTITY_GET
    F050S008
    ADJUST_NET_DAYS
    FBAS_CIN_LTAX1F02
    FBAS_CIN_MF05AFA0
    FISPLIT
    FI_AUTHORITY_ITEM
    FI_DOC_DISP_LI
    FI_FB08_SUBST_BUDAT
    FI_GET_INV_PYMT_AMT
    FI_HEADER_SUB_1300
    FI_PAYREF_BADI_010
    Regards,
    Umang mehta

  • MIRO - User Exit during SAVE: Read items & Update header

    Hi there!
    During MIRO after pressing save...
    I search for an user-exit or BAdI, to READ ITEM DATA and UPDATE HEADER DATA (XBLNR) after SAVE but before UPDATE.
    I have searched this forum, but with no luck. Many more then me seem to have the same problem. The most common answer have been to try BAdI INVOICE_UPDATE, but that BAdI only give READ access and NO UPDATE, so no luck there..
    To summarize all my searching here and findings... I list all exits I have tested...
    User-Exits
    LMR1M001 User exits in Logistics Invoice Verification
    LMR1M002 Account grouping for GR/IR account maintenance
    LMR1M003 Number assignment in Logistics Invoice Verification
    LMR1M004 Logistics Invoice Verification: item text for follow-on docs
    LMR1M005 Logistics Inv. Verification: Release Parked Doc. for Posting
    LMR1M006 Logistics Invoice Verification: Process XML Invoice
    MRMH0001 Logistics Invoice Verification: ERS procedure
    MRMH0002 Logistics Invoice Verification: EDI inbound
    MRMH0003 Logistics Invoice Verification: Revaluation/RAP
    MRMN0001 Message output and creation: Logistics Invoice Verification
    BADI - When saving in MIRO the following BAdI were passed...
    PPA_CUST_BADI
    /CCIS/FICLRDC_ENH
    INVOICE_UPDATE  << only read no update
    ME_DP_CLEARING
    AC_DOCUMENT
    FI_LIMIT_PROCESS
    AC_QUANTITY_GET
    FMRE_BUS_PROCESS
    EXIT_XFMPRI_001
    CO_DOCUMENT_INFO
    INVOICE_UPDATE (method change_before_update ) << only read no update
    MRM_RANSACT_DEFAULT
    MRM_HEADER_DEFAULT
    Other BAdI's
    MRM_HEADER_CHECK - Bara ingående värden för kontroll
    MRM_HEADER_DEFAULT - Tyvärr sätter bara XBLNR precis när man går in i MIRO...dvs för tidigt.
    MRM_ERS_HDAT_MODIFY  - EJ anropad...
    Would be greatful for any ideas on this matter...
    Best regards
    Henrik

    Hello Henrik,
    In BADI INVOICE_UPDATE there are 3 methods CHANGE_AT_SAVE, CHANGE_BEFORE_UPDATE and CHANGE_IN_UPDATE.
    Of these CHANGE_AT_SAVE is called before INSERT / UPDATE statements are executed. We can use this to update RBKP-XBLNR.
    We can't use CHANGE_BEFORE_UPDATE and CHANGE_IN_UPDATE methods as they are called after INSERT / UPDATE statements are executed and before COMMIT.
    You can update RBKP-XBLNR through INVOICE_UPDATE~CHANGE_AT_SAVE method using call stack technique like below. You can replace 'VALUE' in the below code with the value based on your calculation using other variables like s_rbkp_new, ti_rseg_new etc.
    method IF_EX_INVOICE_UPDATE~CHANGE_AT_SAVE.
      DATA: lv_name_xblnr(30) TYPE c VALUE '(SAPLMRMP)RBKPV'.
      FIELD-SYMBOLS: <fs_rbkpv> TYPE mrm_rbkpv.
      ASSIGN (lv_name_xblnr) TO <fs_rbkpv>.
      IF <fs_rbkpv> IS ASSIGNED.
        <fs_rbkpv>-xblnr = 'VALUE'.
      ENDIF.
    endmethod.
    Best regards,
    Vishnu Tallapragada

  • User Exit to add line item in Purchase Order

    Hi SAP Gurus,
    Can any body tell me which user exit is used to add the line items in Purchase Order. I want to link the Packaging material (material type - VERP) to the header material (Material type - FERT) in PO for order type NB or UB. Because our requirement is what, when we enter the finished material in PO then packaging material linked with that finished material should automatically comes into PO as a line item.
    Please help me for the same.
    Thanks in Advance.
    Regards,
    Sujay

    Hi,
    You can use Function Module for this requirement.
    BAPI_PO_GETDETAIL1
    Bye,
    Muralidhara

  • User Exit : Auto Release Sub orders

    Hello Gurus,
    I want to automatically Release the sub orders when superior order is Release.
    After I wrote to SCN, I came to know that In Standard, There is no provision to auto release or auto TECO or auto Business completion of Sub Orders based on Superior Order business transaction.
    Can some one please correct the exit & condition I selected
    On exit IWO10009 when saving the superior order
    IF sy-tcode = 'IW32'.
    SELECT AUFNR
    FROM AFKO
    WHERE MAUFNR = caufvd_imp-AUFNR
    release_order = 'X'.
    ENDIF.
    If above exit is incorrect,Can I use Exit IWO10002
    If above exit is correct,Can I same to auto Business complete the Sub Orders when Superior Order CLSD
    Thanks in Advance
    Ashok  M

    Ashok,
    I feel it is not IWO10002  but we need to try with User Exit for IWO10009 for your task. I'm unable to test the solution for you at present.
    Clues are:
    You need to use Function Module STATUS_CHANGE_INTERN in the Exit coding. The logic would be, when you release the Main Order and Save, system checks the System Status of Main Order, i.e., field CAUFVD_IMP-IPHAS.   '2' is the value for REL status.
    So the code will be like:
    If CAUFVD_IMP-IPHAS = '2' .
    CALL FUNCTION 'STATUS_CHANGE_INTERN'
    ENDIF.
    COMMIT WORK.
    In this FM, you will be passing the OBJNR value of SubOrder no. (get from AUFK table) and target status (perhaps I0002). (verify in TJ02 table).
    Best of Luck
    KJogeswaraRao

  • User Exit to Modify SD Item Category

    Dear Experts:
    I would like to make use of a SD user exit to modify the default item category determined in a sales document. What is the best user exit to use? Would that be form USEREXIT_MOVE_FIELD_TO_VBAPKOM in include MV45AFZB?
    Thanks,
    Dan

    Hi Brad:
    Thanks for the response. Looking at the comment from SAP, I would even think this is the official one to use.
    Cheers,
    Dan

  • USER EXIT: Update Sales Order Item User Stauts

    Can you tell me the user exit that performs the would alter the system status from open to complete if the PO can't be cancelled and therefore the sales item can't be rejected ?
    If the item has been shipped, item system status to be changed to Complete (not allow further processing). If the item is rejected, the status can be complete.
    Thanks!!

    The status management is performed by the standard operations.
    So you cannot update it directly. If some malfunction occurred, run program SDVBUK00 to restore the right statuses.
    pls. reward if helpful
    Roberto

  • How to create user exit for MIGO check  "item OK" Field select/unselect?

    Hi All,
       I want to know User Exit for MIGO Screen. when I click check button it will be show "Item OK " Field select or not.
    MIGO Screen post if Item ok field select both parent id and line id . otherwise it will be show error message?.
    Can Please  every one tell me how to do user exit for MIGO?
    mail id: [email protected]
    thanks,
    S.Muthu,

    Hi,
    check the BADI <b>MB_MIGO_BADI</b> ( method: POST_DOCUMENT).
    COMD enhancment <b>MBCF0005</b>
    Regards

Maybe you are looking for

  • Cloud subscription re-install on new computer. old computer is dead

    Cloud subscription re-install on new computer. old computer is dead

  • Error when trying to create a JCO Destination

    Hi I receives the following error when trying to creat a JCO Destination, clicking on the button in the host:port/webdynpro/dispatcher/sap.com/tcwdtools/Explorer I get the following error: Error stacktrace: java.lang.NullPointerException      at com.

  • Using xsl:import in Weblogic

    All, I have a requirement to import an XSL template into another XSL template and use one of the methods defined in the imported file into this importing file. The problem is that it works perfectly fine if I do this in XMLSPY .. but if I do this thr

  • Outgoing messages delayed in smarthostconnectordelivery queue

    I have an Exchange server that uses a 3rd party SPAM appliance as a smarthost. It's been working great for a few years but suddenly I'm getting messages sitting the smarthostconnectordelivery queue with a status of Ready for approximately 5 minutes b

  • Simple Question (Probably) About Buttons

    I am delving into Web programming for the first time. I am used to event driven programming. How and where do I code for a button's OnClick event? I want the button to perform an action OTHER THAN simply a submit. Just to keep my example simple, let'