User exit to modify EKKO-IHREZ ( Your reference field )

Hi All,
We are using Badi ME_PROCESS_PO_CUST to modify You reference ( EKKO-IHREZ ) field during purchase order creation . This badi is called when purchase order is created  through ME21N and when PO is created through BAPI . This badi is not called when PO is created through ME21 .
Can you please let me know if there is any other user exit/ badi ( or any other way ) where we can modify EKKO-IHREZ when PO is created through ME21 . I checked few user exits but all are having EKKO as the Importing parameter so changes  made to IHREZ  will not be reflected .
Thanks and Regards,
Kiran.

Hi,
Have you tried with BTE function modules, try using "01000730     APO Plug-In: Purchase Order" Event, only you have to enter BERE transaction, execute with F8, locate 01000730 event, select it and then press "Sample Function Module" button, copy the function module sample "SAMPLE_INTERFACE_01000730" by your own ZFUNCTION where you will have the posibility to make changes to EKKO-IHREZ field see the parameters you can acces and make all the programming you need like:
FUNCTION ZSAMPLE_INTERFACE_01000730.
""Local Interface:
*"  IMPORTING
*"     VALUE(I_EKKO) LIKE  EKKO STRUCTURE  EKKO OPTIONAL
*"     VALUE(I_CALL_MRP) DEFAULT ' '
*"  TABLES
*"      T_XEKPO STRUCTURE  EKPO OPTIONAL
*"      T_XEKET STRUCTURE  EKET OPTIONAL
*"      T_XEKKN STRUCTURE  EKKN OPTIONAL
*"      T_YEKPO STRUCTURE  EKPO OPTIONAL
*"      T_YEKET STRUCTURE  EKET OPTIONAL
*"      T_YEKKN STRUCTURE  EKKN OPTIONAL
ToDo
I_EKKO-IHREZ = 'MY_IHREZ_VALUE'.
ENDFUNCTION.
Activate it.
Then go to transaction FIBF, then go to menu "Settings->Process Modules->...Of an SAP Application", once there create a new entry and set 01000730 for the process and your ZFUNCTION name in the Function Module Field, save changes and make a test to see if it works fine.
I hope it helps.
Regards,
Moises Grappin.

Similar Messages

  • Routine or exit in modifying return order in reference to an invoice...

    Hello Experts,
    Is there a routine(inside VOFM) or user-exit to modify the values being passed
    from the original invoice document to the return order being created. Presently,
    we are having a problem when the original invoice has a rebate condition and when we
    create multiple line items with the same material in the return order, the succeeding
    line items references its rebate discount in the wrong material in the invoice document.
    Example:
    Original Sales Invoice 3010002390
    Line Item No.     SKU          Quantity     Total Rebate Discount          Per Unit Rebate Discount
    10          100315          10               128.07                    12.81
    20          106666          10               128.07                    12.81
    30          100338          10               243.86                    24.39
    Return Order 1120000402  (repeatedly created with reference to the same sales invoice number)
    20          106666          1               12.81                    12.81
    30          106666          1               24.39                    24.39
    For Return Order line 30, it should have picked the price 12.81 instead it picked 24.39,
    which is the same line item with the original sales invoice

    How do you create the return orders?
    From your example it looks like there is an error somewhere in the custom code. Either a variable is not cleaned up or an internal table is read, then manipulated and the previous record is not restored in the memory, etc. Also the program might be looking at the line number (POSNR) without considering the material number. Or, if you use a custom program to create the returns, the problem might be there.
    Take a look at the configuration of Copy Control. In SPRO, go to Sales & Distribution -> Sales -> Sales Documents -> Maintain Copy Control for Sales Documents -> Copying Control: Billing Document to Sales Document. Then find you document type combination (could be target = RE, source = F2) and double-click on it. There you will see the routines (VOFM) that are assigned to the copy control. Also check the config for Items and Schedule Lines (see the lefthand window there). There could be something different attached to each item type.
    Also check if there is anything in the pricing user exits, you'll find a list here:
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/erplo/copyofSDUserexits
    Good luck!

  • Is there a user exit to modify PO line item level..

    Dear Friends,
    Is there a user exit to modify PO line item level..
    Ravi

    Hi...I'm not sure on any available customer exits for this purpose. However you can use the check function exit 'EXIT_SAPMM06E_012' of customer exit MM06E005 and using memory pointers you can change the item level data.
    The other option is to use BADI ME_PROCESS_PO_CUST's method PROCESS_ITEM to change the item level value. I would prefer the BADI rather than the customer exit.. Hope it works..
    Thanks,
    Jude

  • VA01 user-exit to modify net price of line item...

    Hello Experts,
    Is there a user-exit to modify the net price value of a line item upon 'ENTERING' in
    VA01 transaction?
    Hope you can help me guys. Thank you and take care!

    Hi,
    The user exits and badis for va01 tcode:
    Enhancement/ Business Add-in Description
    Enhancement
    V45L0001
    SD component supplier processing (customer enhancements)
    V45E0002
    Data transfer in procurement elements (PRreq., assembly)
    V45E0001
    Update the purchase order from the sales order
    V45A0004
    Copy packing proposal
    V45A0003
    Collector for customer function modulpool MV45A
    V45A0002
    Predefine sold-to party in sales document
    V45A0001
    Determine alternative articles for product selection
    SDTRM001
    Reschedule schedule lines without a new ATP check
    V60F0001
    SD Billing plan (customer enhancement) diff. to billing plan
    V46H0001
    SD Customer functions for resource-related billing
    V45W0001
    SD Service Management: Forward Contract Data to Item
    V45S0004
    Effectivity type in sales order
    V45S0003
    RP-relevance for incomplete configuration
    V45S0001
    Update sales document from configuration
    V45P0001
    SD customer function for cross-company code sales
    Business Add-in
    BADI_SD_SCH_GETWAGFZ
    Scheduling Agreement: Read WAGFZ from S073
    BADI_SD_V46H0001
    SD Customer functions for resource-related billing
    Pls. reward if useful...

  • 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 to modify a service order (IW32)

    Hi
    I require a user exit to modify a service order (IW32) that is generated via the repair procedure functionality linked to a Sales order.  
    I need to change at the operation level:
    1-      Add an operation with the service material from the sales order.  Get the purchasing group data from the material master.
    2-      Change the first operation -  replace the default purchasing group
    THanks

    Sid,
    [PM/CS User-Exits etc|http://pjatkin.users.btopenworld.com/documents/PMCSUserExits.pdf]
    Might be possible by using IWO10009 (at save user-exit) with function modules:
    CO_BP_AFVG_BT_FETCH
    CO_BT_AFVG_UPDATE
    PeteA
    [www.pjas.com]

  • User-exit wich modify batch number in vl31n

    Hi,
    I have another question.
    What is user-exit wich modify batch number in vl31n transaction ?
    Regards,
    Greg.

    Hi
    Find the available exits with the following program:::
    *& Report  ZFINDUSEREXIT
    report  zfinduserexit.
    tables : tstc, tadir, modsapt, modact, trdir, tfdir, enlfdir.
    tables : tstct.
    data : jtab like tadir occurs 0 with header line.
    data : field1(30).
    data : v_devclass like tadir-devclass.
    parameters : p_tcode like tstc-tcode obligatory.
    select single * from tstc where tcode eq p_tcode.
    if sy-subrc eq 0.
    select single * from tadir where pgmid = 'R3TR'
    and object = 'PROG'
    and obj_name = tstc-pgmna.
    move : tadir-devclass to v_devclass.
    if sy-subrc ne 0.
    select single * from trdir where name = tstc-pgmna.
    if trdir-subc eq 'F'.
    select single * from tfdir where pname = tstc-pgmna.
    select single * from enlfdir where funcname =
    tfdir-funcname.
    select single * from tadir where pgmid = 'R3TR'
    and object = 'FUGR'
    and obj_name eq enlfdir-area.
    move : tadir-devclass to v_devclass.
    endif.
    endif.
    select * from tadir into table jtab
    where pgmid = 'R3TR'
    and object = 'SMOD'
    and devclass = v_devclass.
    select single * from tstct where sprsl eq sy-langu and
    tcode eq p_tcode.
    format color col_positive intensified off.
    write:/(19) 'Transaction Code - ',
    20(20) p_tcode,
    45(50) tstct-ttext.
    skip.
    if not jtab[] is initial.
    write:/(95) sy-uline.
    format color col_heading intensified on.
    write:/1 sy-vline,
    2 'Exit Name',
    21 sy-vline ,
    22 'Description',
    95 sy-vline.
    write:/(95) sy-uline.
    loop at jtab.
    select single * from modsapt
    where sprsl = sy-langu and
    name = jtab-obj_name.
    format color col_normal intensified off.
    write:/1 sy-vline,
    2 jtab-obj_name hotspot on,
    21 sy-vline ,
    22 modsapt-modtext,
    95 sy-vline.
    endloop.
    write:/(95) sy-uline.
    describe table jtab.
    skip.
    format color col_total intensified on.
    write:/ 'No of Exits:' , sy-tfill.
    else.
    format color col_negative intensified on.
    write:/(95) 'No User Exit exists'.
    endif.
    else.
    format color col_negative intensified on.
    write:/(95) 'Transaction Code Does Not Exist'.
    endif.
    at line-selection.
    get cursor field field1.
    check field1(4) eq 'JTAB'.
    set parameter id 'MON' field sy-lisel+1(10).
    execute this code.
    <b>type the transaction. u will get the user exits</b>
    If there are no available user exits you could go for badi's.
    To search for a badi, go to se 24 display class cl_exithandler. double click on method get_instance, get a break point on case statement. execute and start the required transaction in new session. look for variable exit_name. It would show the available badi's.
    regards
    ravish
    <b>plz dont forget to reward points if helpful</b>

  • ISA order.jsp; message and validation for "Your reference" field

    Hi Everyone,
    I am new to ISA and working on java program to add message to "Your Reference" field in order.jsp page if this field is empty and clicked on "Check Out" button and user need to remain in the same page until user enters information in this field.
    Message is available in .xlf file.
    Please suggest me where to write this code for both message and validation for this field.
    Thanks in advance
    Prasad

    I fixed the requirement
    thanks
    Prasad

  • User exit before TO creation to chage MAKTX field or FM to change it after

    Hi all,
         I need some WM Expertise help.
         When I create a Sales Order from program (with bapicreatefromdata2) , the system automatically create a delivery, and then, a transfer order with no immediate confirmation. The TO is manual confirmed. In bapicreatefromdata2 I completed on each item line the field ARKTX with a description (Example: red - material description ). This field is automatically completed in delivery( same field ARKTX). But I need this description also in transfer order for each line (field MAKTX). The TO is created automatically and  the field MAKTX is completed with the description from the material master.
         So, I need an user exit before TO creation to change the field MAKTX. I have tried user exit: MWMTO001 and is not working I think because the TO is created with no immediate confirmation. Also I putted break-point everywhere in program SAPML03T (standard program for TO creation)  and  I changed the settings in debugger mode. I checked System Debugging and Update Debugging. Nothing happened. I cannot find the place before TO is created.
         An alternative to this is to update LTAP (item table for TO) after TO immediate creation in include MV45AF0B_BELEG_SICHERN but I can't find a function module to update the table before TO manual confirmation. I tried L_TO_UPDATE_PREPARE but this I think is for confirmed TO.
         Any one who worked on this kind of things, Please help.
         Thanks in advice,
         Bogdan

    check these exits....                  
    EXIT_SAPMM06E_012 
    <b>EXIT_SAPMM06E_013</b>
    EXIT_SAPMM06E_014 
    EXIT_SAPMM06E_006 
    EXIT_SAPMM06E_007 
    EXIT_SAPMM06E_018 
    EXIT_SAPMM06E_016 
    EXIT_SAPMM06E_017 
    vijay

  • BADI-User exit required for updating Purchase order header field -IHREZ

    Hello All,
    We have requirement in our business to update the purchase order header field "our reference" EKKO-IHREZ with some text field. We need a BADI/user exit that can be used for updating this field . We have checked the BADI ME_PROCESS_PO_CUST and unfortunately we are not able to use this BADI as it getting triggered in enjoy SAP transactions ME21N , ME22N etc. We are not creating the purchase order manually and we are using ME59N for creating Purchase order . Hence we are looking for some user exit/BADI that can be used in ME59N for updating the purchase order header field IHREZ.
    Thanks in advance for your immediate response .
    With regards,
    Joseph Anand B

    TRY using the exist u2022     EXIT_SAPLME59_001
    You can also later on add this field by BAPI_PO_CHANGE

  • User exit to modify the segment E1IDB02 data

    Hi SAP Experts,
    I have a requirement to change the data in the segment E1IDB02  field FIIKONTO before generating the IDOC.
    I'm using the transaction code F110 for payment and the program in payment run transaction is RFF0EDI1,  message type PAYEXT and the Basic Idoc type PEXR2002.
    I have tried the user exit 'EXIT_SAPLIEDP_002' to modify the data, but it is not triggering that user exit I guess, even tried by putting 'BREAK-POINT' as well but still it is not stopping the control at that particular point.
    This is for outbound idoc creation.
    note : I have activated everything like project, function module etc.
    Please kindly let me know whether I am using the correct user exit or not and if not please kindly provide me the correct user exit.
    Thanks in advance.
    kalikonda.

    Hi Pawan,
    Thanks for your prompt reply.
    I tried all ways as you told but still it is not stopping.
    Also implemented the sap note 937966 (RFFOEDI1: User exits EXIT_SAPLIEDP_002 and PEXR2002)
    but still no result.
    Is there any other way where I can modify the data in the segment  E1IDB02?
    Thanks,
    kalikonda.

  • Badi or User exit to modify MSEG data during Goods issue

    Hello,
    I have a requirement to modify the field plant MSEG-WERKS while doing goods issue of outbound delivery via transactiona VL02N.
    Can anybody suggest me which BADI or user exit should i use.I have searched the SDN and all the previous threads on this haven't yeild any solution for this.
    I have tried with below listed Badis and enhancements which wont work.
    Badi
    ===================
    MB_DOCUMENT_BADI
    MB_MIGO_BADI
    LE_SHP_GOODSMOVEMENT
    DELIVERY_PUBLISH
    Enhancements
    ===============
    MB_CF001
    MBCF0005
    Thanks and Regards,
    Koustubh

    Hi,
    I am facing a similar issue of updating the MSEG-DMBTR field when Post Goods reciept is done in VL02n.
    I hav tried to update the value in LE_SHP_GOODSMOVEMENT BADI and tried to modify the structure .
    eg in this way
    method IF_EX_LE_SHP_GOODSMOVEMENT~CHANGE_INPUT_HEADER_AND_ITEMS.
    data: wa1 type LINE OF shp_imsegvb_t. "IMSEGVB.
    DATA: flag TYPE c.
    LOOP at CT_XIMSEG INTO wa1.
      wa1-dmbtr = '12345'.
    MODIFY CT_XIMSEG FROM wa1.
    " TRANSPORTING dmbtr.
    flag = 'x'.
    ENDLOOP.
    endif.
    endmethod.
    The value gets updated in the structure but when the material document gets created then the table MSEG has the amount DMBTR field not changed.
    Also, I tried doing the updation in the Function eXit : EXIT_SAPMM07M_001 by the method mentioned in different threads:
    betweeb statemnet if  sy-tcode = 'VL02n'
    FIELD-SYMBOLS: <DMBTR> TYPE any,
    <DMBTR1> TYPE any.
    ASSIGN '(SAPMM07M)MSEG-DMBTR' TO <DMBTR>.
    assign (<DMBTR>) to <DMBTR1>.
    But still on save of the material document in MSEG I cannot find the new DMBTR field value.
    Kindly help me on this, urgently required. I have already gone through the number of threads in the forum, but no solution.

  • User exit to modify FI Tcode FD02 Application toolbar

    HI GURU,
    currently i am working on a migration project. we are migrate to ERP 6.0 from R3
    after migration, one of the button that customize by previous consultant is disappaeared.
    i want to know is there any way to modify FI Tcode FD02(change customer: ) Application toolbar, what i need to do is add a button that next to standard button(General Data / Company code Data)
    many thx
    HOWARD

    Hello Howard,
    I seem to have found a user exit in the transaction FD02, its : SAPMF02D. Hope this works for you.
    Regards,
    Manish.

  • User exit to modify sales order pricing condition

    Hi Experts,
    I need ot modify Sales Order Header Condition (ZFRH), Condition Value (KWERT) for Transaction VA01 & VA02
    I agree there are many user exits which will modify XKOMV-KWERT structure and can populate what ever value we insert.
    But the value we insert is inserting into line item condition and the total of all line items is populating in Header .
    I need to modify only Header condition without populating Line items
    Thanks ,
    Basheer .

    Hi:
    Program : MV45AFZZ
    search for USEREXIT_NUMBER_RANGE.
    BR,
    Manthana

  • Need a user exit to modify the quantity schedules in a sales contract

    Hi,
      I am using ECC 6.0 with IS OIL. Need a user-exit to update the quantity schedule(table OIA05) in the sales contract VA42.
    I have a new field called timestamp in the table OIA05 which needs to be updated with the timestamp value.
    I tried the user exit MV45AFZZ in USEREXIT_SAVE_DOCUMENT_PREPARE and USEREXIT_SAVE_DOCUMENT to update the values. But the new values are not being reflected. Can you please help me in this regard.
    Thanks,
    Best regards,
    Ajith

    that will allow me to append an initial line with <accit> pointing to the line. Therefore I just have to modify <accit> and the new line will then have my changes?
    Yep, that is exactly it.    So after the APPEND statement, simply fill the fields of the <accit>.
    append initial line to im_document-item ASSIGNING <accit>.
    <accit>-field1 = 'Blah'.
    <accit>-field2 = 'Blah'.
    Regards,
    Rich Heilman

Maybe you are looking for

  • JavaFX 2.0 : How to make a stage fit into browser view area?

    Invoking a JavaFX 2.0 applet from browser results in white spaces on the right and bottom area of the browser. This happens when the JavaFX stage resolutions is lesser than that of browsing desktop resolution. In a client/server model, usually server

  • Azure service administrator

    Hi Azure team, Will service administrator know when a new co-administrator has been added by another co-administrator? Will service admin will receive any mail alert? Thanks,

  • Transformation & DTP deactivated in source system

    Hi, I am trying to load the data from one BI System to another BI system. I am generating Export Data Source for that . But the Issue is that when i am doing this, in  the source system transformation & DTP got Deactivated. Can any body tell why this

  • Share Specific Volumes for Windows Users to Access!

    Dear Mac Gurus: What is the easiest way to use command/GUI to share specific volumes on OSX v.10.4 client machine, so as to let Windows Client to access? Windows user account has been create on OSX. Help, Please! Thanks! Max NYC G4, G5   Mac OS X (10

  • Service Request - Load balancing weight & TM labour schedule

    What is Load balancing weight? How does it work, (I think it must be w.r.t the selecting resources for assigning the task, But how does it work, I am not getting the help menu in this) How does the T&M labour schedule is managed Regards