Include MV45AFZB

Hi!
We have to add some code in include MV45AFZB (form USEREXIT_MOVE_FIELD_TO_TVCOM_H).
Do we use SE38 to do it and get the access key? Or there is another way to do this?
Thanks!
Cristian

Hi there,
There are some standard user exists which even the ABAPer cannot change.
Customized user exists will be in the customized includes. For eg in MV45AFZB, there will be cystomized include ZMV45AFZB for eg which will have the customized user exists. To change / modify that user exists we donot need an access key. Pls note that we cannot change any standard user exists. It is given by SAP which we can just call in our prog.
We need access keys only to define / change condition tables or to change the requirement routines in VOFM.
Regards,
Sivanand

Similar Messages

  • Runtime error in USEREXIT_CHECK_XVBAP_FOR_DELET in include MV45AFZB

    Dear,
    I have programmed USEREXIT_CHECK_XVBAP_FOR_DELET in include MV45AFZB, but run into a runtime error.
    See enclosure for more details as to what I have programmed.
    Does anyone know how I can change my code in order to prevent the runtime error from happening?
    Thanks so much in advance for your replies.
    Kind regards,
    Bart Jongen

    Hello all,
    Thanks for your hints.
    In the meantime I have found the solution to my problem:
    By changing the e(rror) in my code to an i(nformation) message, the runtime error no longer appears.
    Kind regards,
    Bart

  • What are the user-exits which will trigger on saving Sales Order

    Hello Experts!!!
    I am working on Sales Order VA01. The requirement is I need to pre populate Sold-to-Party field. I find out user-exit (V45A0002  Predefine sold-to party in sales document  ). So it is working fine.
    Now second requirement is I need to capture all the date once user saves Sales Order. Also the time or Sales Order creation I have to make u2018GRAYu2019 some of the fields so user cannot change the value. Can anybody tell me which user-exits should I use to retrieve the entire information user entered and lock fields in Sales Order screen?
    Thanks a lot on advance.

    Hi
    U can't find it there,because it's a include, not enanchement.
    So u need to use the trx SE38, not CMOD.
    For sales ored there aren't the enanchements, but only some FORMs defined in particular includes.
    U need to get the access key by OSS in order to change them.
    These are the rest of the includes where u can find other exits:
           INCLUDE MV45ATZZ.            " Data definitions in MV45ATOP
             INCLUDE MV45AOZZ.             " User-modules PBO
             INCLUDE MV45AIZZ.             " User-modules PAI
             INCLUDE MV45AFZA.             " User-forms < 3.0
             INCLUDE MV45AFZB.             " User-forms
             INCLUDE MV45AFZC.             " User-forms < 3.0D
             INCLUDE MV45AFZD.             " User-forms   3.0E
             INCLUDE MV45AFZF.             " User-forms   3.0F
           include mv45afzg.             " User-forms   3.1G
             INCLUDE MV45AFZH.             " User-forms   4.6B
             INCLUDE MV45AFZZ.             " User-forms
             INCLUDE MV45AFZ4.             " User-forms   4.0
    Anyway u can find some information about these exit in customizing (trx SPRO):
    Sales and Distributions->System modifications->User exits
    Max

  • Free item contained saleorder showing  openorder after released to accounts

    Dear Consultants,
                           Created a sale order with normal item with free offer.Free Item category is TANN.After the sale order is created
      and saw the overall status in va02 it is open.It is OK.
          If i do delivery for the sale order there is no problem in saving.Delivery number is generated.
    Now if check the open sale order in VA05N it is showing this order in open.(Now in VA02 if i check the overall status of the items normal item is showing status complete but free item is showing Overall status as being processed.
    When this problem  is raised open orders ratio is increasing in VA05N.
    Pl show me a solution at the earliest.Useful answer is awarded without fail.
    This is an immediate requirement.
    Edited by: akdevavarapu on Jun 25, 2010 6:27 AM

    Hi,
    Check if you have userexits running that handle the data of status, for instance, USEREXIT_MOVE_FIELD_TO_VBEPKOM
    in the include MV45AFZB or FORM USEREXIT_MOVE_FIELD_TO_VBEP in include MV45AFZZ.
    I hope this helps you
    Regards
    Eduardo

  • Changing the atributes of a field in VA01

    hi,
    In transaction VA01, i need to make the field 'WBS Element', in the tab 'Account Assignment' for the items, editable. In order to achieve this, i´ve used the exit USEREXIT_FIELD_MODIFICATION in MV45AFZZ, with the following code:
    CASE SCREEN-NAME.
       WHEN 'COBL-PS_POSID'.
         SCREEN-INPUT = 1.
    ENDCASE.
    but without any sucess! Does anyone know if there is anything missing in my aproach or an alternative way to achieve this?

    Hi Bruno
    There's the following user-exit where you can try to change the attribute for that screen:
    USEREXIT_COBL_SEND_ITEM in the include MV45AFZB
    Here can try to work this code:
    READ TABLE INT_COBLF WITH KEY FDNAM = 'PS_PSP_PNR'.
    INT_COBLF-INPUT = 1.
    INT_COBLF-OUTPUT = 1.
    MODIFY INT_COBLF.
    In the fm cobl_ex_send_pbo the input/output attributes of PS_PSP_PNR are transfered to PS_POSID.
    Max
    Message was edited by: max bianchi

  • Display error message in SD user exit

    Hi,
    I want to display an error message in FORM USEREXIT_CHECK_VBAP. (Include MV45AFZB)
    Afterwards, the user should be able to correct the wrong values, but the fields are locked because of the error message. How can I keep the relevant fields open?
    Thanks in advance
    Roland

    Hi,
    Instead of giving an error message...Probably give warning message..
    If you give error message..It will lock the entries..
    Thanks,
    Naren

  • Pricing Redetermination while releasing credit block of a 3rd party order

    Hello,
    The issue as is follows:-
    I have a sales order, that is a third party order (PR created, the PO ..etc). The pricing is automatic, but can be edited in the condition screen of the sales order. Some times we maintian the price directly in the order (rarely the condition reocrds may not be existing), there are some manual conditios also, like insurance, transit charges ..etc. The issue happens when the sales order goes for a credit block.
    We releases the credit block using VKM3, that moment the system crested the PR and re-determines the price. As I can see, the min condition, which I entered the price manually , change sback to ZERO (since the condtition reocrd is not maintained), but the manual conditions remains as it is.
    Is there any way we can disable the price redetermination while releasing the credit block? Please let me know if you need  more details.
    Regards,
    SAM

    It looks you can use USEREXIT_NEW_PRICING_VBAP in include MV45AFZB to control this behavior. The logic could be, during VKM*, don't carry out new pricing. You can discuss with you ABAP'er on exact coding.
    Regards,
    OK I take one step back now..The system does the repricing, because the when the credit release happens, the ATP check is carried out again and the quantities are reconfirmed. I assume in your case, when the sales order goes into credit hold, the confirmed quantity is set to zero. You can make the system keep it confirmed for third party sales orders and not pass the requirements to purchasing. Check the routine assigned in t.code OVB8, I assume now in your system, it could be assigned with 101. Change that to 1 and test. If you want the system behaves differently as per business requirement, then copy this routine 1 and create a new one in t.code VOFM for example 901 add additional coding, then reassign in OVB8. Check the results and update the forum. By this way I believe, you need not use any user exit.
    Edited by: Shiva Ram on Feb 7, 2012 11:50 AM

  • How to make the line items of sales order cannot be deleted.

    Hi All,
    Is there any Enhancement spots or user-exits which make the line items of sales order cannot be deleted if item category is 'TAN'.
    Thanks in Advance,
    Sudhakar Reddy .A

    Hi All,
    If you doesn't want to delete sales order line items then we have write in the Include Program which has mentioned below and in the form .....endform.
    Program Name :  Include MV45AFZB
    _Example:_
    form userexit_check_xvbap_for_delet using us_error
                                              us_exit.
    IF .......
      US_EXIT = CHARX.
    ENDIF.
    endform.

  • Copy down Ship-to Partner from main item to sub-items on Sales Order

    This is my first post on the forums here.  I'd appreciate any help you can give on my issue below.
    I have a requirement to copy down the ship-to partner from the main item to sub-items during sales order create or change.  Currently I have code in include MV45AFZB within user exit USEREXIT_FILL_VBAP_FROM_HVBAP as follows:
    <i>* Need to be able to copy the ship-to of a BoM parent down to the
    respective BoM children if the parent has a different ship-to
    from the header.
    data:  wa_xvbpa like vbpa.
    Clear: wa_xvbpa.
    read table xvbpa into wa_xvbpa with key posnr = hvbap-posnr
                                            parvw = 'WE'.
    A BoM parent line has a different ship-to from the header.
        if sy-subrc = 0.
          read table xvbap with key uepos = hvbap-posnr.
    See if current line is the child of that BoM parent
            If xvbap-uepos = hvbap-posnr.
              move wa_xvbpa-kunnr to xvbpa-kunnr.
              move xvbap-vbeln to wa_xvbpa-vbeln.
              move xvbap-posnr to wa_xvbpa-posnr.
              move 'WE' to wa_xvbpa-parvw.
              modify vbpa from wa_xvbpa.
            endif.
          Endif.</i>
    This isn't working for me.  At one point, I was able to copy the ship-to down to the first sub-item but not any subsequent ones.  I'm sure I need to add some code to another sales order user exit to get this to work, but I'm at a loss at this point.   Has anyone had to do this or something similar before? 
    Thanks very much in advance for your help.
    Angela

    Hi,
    Can you check few more things and tell me?
    - In this exit, does XVBPA and XVBAP contains all the line items. ( main and sub items ).
    - In Sales order creation time, do these table have VBELN populated when this exit triggers.
    - If you modify XVBPA or XVBAP in this exit, do they get overwritten after that.
    Try this code. See if it works.  Let me know if you still have a problem.
    DATA: wa_hvbpa LIKE vbpa,
          wa_xvbpa like vbpa.
    CLEAR: wa_hvbpa, wa_xvbpa.
    * check if HVBAP and VBAP line items are not same
    IF vbap-posnr <> hvbap-posnr.
    * read the ****-to partner from main-item
      READ TABLE xvbpa INTO wa_hvbpa WITH KEY posnr = hvbap-posnr
                                              parvw = 'WE'.
      IF sy-subrc = 0.
    *   read the line item data for sub-item based on main item
        READ TABLE xvbap WITH KEY posnr = vbap-posnr
                                  uepos = hvbap-posnr.
    * See if current line is the child of that BoM parent
        IF sy-subrc = 0.
          MOVE wa_xvbpa-kunnr TO xvbpa-kunnr.
          MOVE xvbap-vbeln TO wa_xvbpa-vbeln.
          MOVE xvbap-posnr TO wa_xvbpa-posnr.
          MOVE 'WE' TO wa_xvbpa-parvw.
          MODIFY vbpa FROM wa_xvbpa.
        ENDIF.
      ENDIF.
    ENDIF.
    Regards,
    RS

  • Net price changes when releasing the credit block at VKM3

    Hello All,
    There is an issues in my sales order
    when I am releasing the credit block at VKM3 for my sales order,the net price of the item is increased after the release.
    example the ZP00 price is 5000 USD,ZD00 discount is 1000 USD and net total  is 4000 now after the credit release the net total is increased to 4200 dont know why?
    Please help me in fixing this issues
    Thanks

    Hi
    Check if USEREXIT_NEW_PRICING_VBAP in include MV45AFZB is working. You can know it if you have the coding:
    new_pricing = 'B'
    I hope this helps you
    Regards
    Eduardo

  • Defaulting the Sotrage location for all the line items in my sales order

    Hi,
    I have a scenario to default the storage location automatically in my sales order for all the line items. It is not going to change for a particular sales org. Dist. channel & Division combination. Can you pls. suggest me a solution for this.
    Thanks
    Ghanesh.

    Hi,
       You can default the storage location by using the below user exit
    Storage location
    Auto determination of storage location as u2018XXXXu2019 for sales order
    Include - MV45AFZB
    Form - USEREXIT_SOURCE_DETERMINATION
    IF (VBAK-AUART = 'XXXX' and VBAK-VKORG = 'XXXX' and VBAK-VTWEG = 'XX').
    VBAP-LGORT   = 'ABCD'.
    Regards,
    Gopal.
    Edited by: Gopalakrishnan S on Feb 25, 2010 7:35 AM

  • Automatic Re-calculation of pricing on re-entering item category

    Hi experts,
    I have a requirement where during sale order creation (VA01), if I enter the necessary details on the screen and do not enter an item category, and I press enter, the pricing gets calculated. Now if I add an item category and press enter again, the pricing should get re-calculated again.
    Currently, pricing gets calculated only if i press enter he first time. It does not get re-calculated if i change it. What do i do for this?
    If I go to the conditions tab and click on update, and then select 'B' "Carry out new pricing", the pricing does get re-calculated. But I want it to get re-calculated automatically.
    Thanks

    For an Abap solution (*) try form USEREXIT_NEW_PRICING_VBAP in include MV45AFZB
    if vbap-PSTYV ne *vbap-PSTYV.
       new_pricing = 'B'.
    endif.
    ([User Exits In Sales Document Processing|http://help.sap.com/saphelp_46c/helpdata/en/1c/f62c7dd435d1118b3f0060b03ca329/content.htm])
    Regards,
    Raymond
    (*) If no other solution works of course.

  • ALE message VG203

    Hi to all,
    My scenario is the automatic creation of Sales order to my SAP system by tranlating a PO from another SAP system through ALE.
    I have used message type ORDERS and I have the following problem.
    The Idoc passed correctly to the receiver system but with status 51 (the doc. has not been posted). Double clicking on the status I have the message "The material number for item 000010 could not be identified".
    I have already created a customer info record to the receiver system and the weird thing is that whenever i use tcode WE19 and  manually run (foregroung) the relevant inbound function module (IDOC_INPUT_ORDERS) the document is posted without any problem.
    Could someone give me an explanation?
    Thanks in advance.
    GA

    My solution is to switch SH (resp. WE in german)  to SP (resp. AG in german) and vice-versa and looks as follows.
    In include LVEDAF23 / FORM determine_material I added the following enhancements:
    FORM determine_material.
    """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""$"$\SE:(1 ) Form DETERMINE_MATERIAL, Anfang                                                                                                              D
    *$*$-Start: (1 )--------------------------------------------------------------------------------$*$*
    ENHANCEMENT 21  Z_DETERMINE_MATERIAL_01.    "active version
      DATA: ls_xvbadr like xvbadr,
            le_kunnr_ag TYPE kunnr,
            le_kunnr_we TYPE kunnr.
      LOOP AT xvbadr INTO ls_xvbadr.
        CASE ls_xvbadr-parvw.
          WHEN 'AG'.
            le_kunnr_ag = ls_xvbadr-kunnr.
          WHEN 'WE'.
            le_kunnr_we = ls_xvbadr-kunnr.
          WHEN OTHERS.
        ENDCASE.
      ENDLOOP.
      xvbak-kunnr = le_kunnr_we.
    ENDENHANCEMENT.
    *$*$-End:   (1 )--------------------------------------------------------------------------------$*$*
    * ... original SAP code
    """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""$"$\SE:(2 ) Form DETERMINE_MATERIAL, Ende                                                                                                                D
    *$*$-Start: (2 )--------------------------------------------------------------------------------$*$*
    ENHANCEMENT 22  Z_DETERMINE_MATERIAL_01.    "active version
      xvbak-kunnr = le_kunnr_ag.
    ENDENHANCEMENT.
    *$*$-End:   (2 )--------------------------------------------------------------------------------$*$*
    ENDFORM.                               " DETERMINE_MATERIAL
    In include MV45AFZB / FORM userexit_cust_material_read I implemented the according User-Exit (using enhancement technology)
    FORM userexit_cust_material_read USING us_kunnr.
    """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""$"$\SE:(1 ) Form USEREXIT_CUST_MATERIAL_READ, Anfang                                                                                                     D
    *$*$-Start: (1 )--------------------------------------------------------------------------------$*$*
    ENHANCEMENT 348  Z_CUST_MATERIAL_READ.    "active version
      DATA: ls_xvbpa LIKE LINE OF xvbpa,
            le_kunnr_ag TYPE kunnr,
            le_kunnr_we TYPE kunnr.
      LOOP AT xvbpa INTO ls_xvbpa.
        CASE ls_xvbpa-parvw.
          WHEN 'AG'.
            le_kunnr_ag = ls_xvbpa-kunnr.
          WHEN 'WE'.
            le_kunnr_we = ls_xvbpa-kunnr.
          WHEN OTHERS.
        ENDCASE.
      ENDLOOP.
      us_kunnr = le_kunnr_we.
    ENDENHANCEMENT.
    *$*$-End:   (1 )--------------------------------------------------------------------------------$*$*
    * US_KUNNR = xxxx-zzfield1.
    ENDFORM.                    "USEREXIT_CUST_MATERIAL_READ
    Hope this helps
    Regards
    Markus

  • User exit to change purchase order quantity

    Hi all,
    when we create production order based on that service purchase requisition is created. based on that in me21n service purchase order is created and now if we do any change  will be changing the production order qty after creating the order that is reflecting in service purchase requisiton but not reflectiing in me21n purchase order number so can u suggest me which enhancement  to use and which user exit should be used to acheive this functionality i have tried using ppco0012 enhancement by keeping break point but when running the scenario it is not going to debug mode.
    Regards,
    Naveen
    Moderator Message: Previous warnings from Moderator ignored. Account sent for deletion.
    Edited by: kishan P on Dec 1, 2010 9:47 AM

    Hi,
    You may use USEREXIT_MOVE_FIELD_TO_ME_REQ.
    You can find this in include MV45AFZB.
    <REMOVED BY MODERATOR>
    Regards,
    Sharad
    Edited by: Alvaro Tejada Galindo on Jul 21, 2008 12:37 PM

  • Data Transfer from Sales Order to Purchase Requisition

    We are trying to transfer data from Sales Order to purchase requisition in an individual purchase scenario.
    We want to copy value in KUWEV-KUNNR in Sales Order and paste in CMMDA-KUNNR on purchase requisiton.
    So in user-exit "USEREXIT_MOVE_FIELD_TO_ME_REQ" on include "MV45AFZB" we added the following code:
    FORM USEREXIT_MOVE_FIELD_TO_ME_REQ.
    DATA:   BEGIN OF IT_VBEP OCCURS 0,
            VBELN LIKE VBEP-VBELN,
            BANFN LIKE VBEP-BANFN,
            KUNWE LIKE VEPVG-KUNWE,
            END OF IT_VBEP.
    DATA: BEGIN OF TI_VBAK OCCURS 0.
            INCLUDE STRUCTURE IT_VBEP.
    DATA: END OF TI_VBAK.
        SELECT A~VBELN   B~KUNWE
          INTO CORRESPONDING FIELDS OF TABLE IT_VBEP
        FROM  VBAK AS A INNER JOIN VEPVG AS B
                              ON B~VBELN = A~VBELN
        WHERE A~AUART EQ 'PDIR'.
       LOOP AT EBKN.
           LOOP AT IT_VBEP.
                IF IT_VBEP-VBELN = EBKN-VBELN.
                  IT_VBEP-BANFN = EBKN-BANFN.
                ENDIF.
                MODIFY IT_VBEP.
           ENDLOOP.
       ENDLOOP.
    *Break-point.
    SORT IT_VBEP BY vbeln.
    LOOP AT IT_VBEP.
      IF EBAN-BANFN = IT_VBEP-BANFN.
        EBAN-KUNNR = IT_VBEP-kunwe.
        MODIFY EBAN.
      ENDIF.
    ENDLOOP.
    * Example
    * EBAN-LIFNR = zzfield1.
    * EBKN-KOSTL = zzfield2.
    ENDFORM.
    *eject
    Right now it turns random values on the purchase requisition field.
    Edited by: Carlos Salazar on Sep 15, 2010 5:19 PM
    Moderator message: please use more descriptive subject lines from now on.
    Edited by: Thomas Zloch on Sep 15, 2010 5:26 PM
    Edited by: Carlos Salazar on Sep 15, 2010 5:30 PM

    Hi,
    Why are you using only the following line to read the VBEP table?
    WHERE A~AUART EQ 'PDIR'.
    Shouldn't you be using a sales document number or something more specific than document type?
    Regards,    Andy

Maybe you are looking for

  • Is there a way to create a plan guide for this query?

    How can i create a plan guide for this query,suppose i can't change the query text: USE AdventureWorks2008R2; GO SET NOCOUNT ON; GO -- query plan statement starts DECLARE @Group nvarchar(50), @Sales money; SET @Group = N'North America'; SET @Sales =

  • Can we have a multiselect box in OIM forms?

    Hi guys, How can we have a multiselect in the object form.As I can see default form doest support this. Is there any way we can include one. phil

  • Backup in folder doesn't appear in iTunes

    I'm trying to recover some old data from my phone and I thought it might be on one of my old backups. I put my phone into recovery mode and then I searched in the "~library/application support/mobilesync/backup" folder and I was able to find some of

  • Hunt Group phones ring but caller gets silence

    Hi, Have a problem where a call ends up hitting a Hunt group pilot number and the phones in the hunt group ring as expected but the caller only gets silence until the call is answered ? If I call the pilot number direct it works fine.. Weird. CCM 4.1

  • Dreamweaver latest version crashes / freezes

    I opened a number of tickets on this issue (see below) Updated 10/21/14 Case #0186016113: Withdrawn 10/21/14 Case #0186021097: Dreamweaver freezing Withdrawn 10/21/14 Case #0186021823: Dreamweaver Freezes During Save Withdrawn 10/21/14 Case #01860219