Exit and BTE for MIRO T.code

Hi Guru,
My requirment is like that when i am doing MIRO with reference to PO no. . In Detail Tab in MIRO default Inv. Party -  (100077)is comming  with reference to PO - Partner  - Invoicing party Number.
But Here in this MIRO - Detail Tab - Field Name - Inv. Party - I want only - Vendor Number with reference to PO - Partner - Vendor Number (100000).
Kindly any one  suggest regarding Any BADI, User-Exit, BTE regarding this issue.
Regards
Rama

Create the field exit on field BKLAS.
and write the below code in the field exit.
DATA: i_dynpread TYPE STANDARD TABLE OF dynpread WITH HEADER LINE.
DATA: V_MATKL TYPE ASMD-MATKL
V_BKLAS TYPE ASMD-BKLAS.
i_dynpread-FIELDNAME = 'ASMD-MATKL'.
append i_dynpread.
clear: i_dynpread.
CALL FUNCTION 'DYNP_VALUES_READ'
EXPORTING
DYNAME = 'SAPLBAS0'
DYNUMB = '0300'
TABLES
DYNPFIELDS = i_dynpread.
IF SY-SUBRC = 0.
loop at i_dynpread.
SELECT SINGLE BKLAS
FROM ASMD
INTO V_BKLAS
WHERE MATKL = i_dynpread-fieldvalue.
IF SY-SUBRC = 0.
output = v_hkont.
ELSE.
error message.
ENDIF.
endloop.
ENDIF.
Regards

Similar Messages

  • User Exit / Badi / BTE for Asset creation A ?

    Hi Experts,
    I need User Exit  / BADI / BTE for asset Creation.
    After saving newly created Asset from As01 we need to send a mail to the person for whom the Asset is assigned.
    i have tried all this.But no one is triggering after saving the As01 transaction.
    Exit Name           Description                                                                               
    AAPM0001            Integration of asset accounting and plant maintenance                    
    AFAR0003            External changeover method                                               
    AFAR0004            Determination of proportional values for retirement                      
    AINT0004            Change amount posted for certain areas                                   
    AINT0005            Dummy for extended syntax check. Do not use.                             
    AISA0001            Assign Inventory Number                                                  
    AIST0001            Exchange number range in master data maintenance                         
    AIST0002            Customer fields in asset master                                          
    AMSP0002            Determine relationship type for two company codes                        
    TRAN0001            User exit for asset transfer           
    Please suggest if anybody worked on this.
    regards,
    Imran

    Hi,
    Check out the following posts pertaining to similar topic.
    Change Asset Workflow
    Asset Management WORKFLOW
    Regards
    Sreekanth

  • User Exit or BADI for Updating Tax code (MWSKZ) using ME21N

    Hi all,
    I am trying to fin out an exit or badi for Updating Tax code (MWSKZ) and Unit of Measure in transaction ME21n.
    The scenario is like this...
    For Purchase Orders Tax code will be defaulted from Purchasing info record or contract or parameter id for that item-vendor-plant.
    If the Tax Code is not defaulted and account assignment is blank then tax code on the PO is updated according to the below mentioned table
    Table
    Supplying Plant/              Receiving Plant                      Tax code
    Vendor/Country
    Any plant/vendor/
    country                           5050(NA)                               20
    2300                              6700                                     E0
    If the tax code on PO cannot be updated by the above table, then buyer needs to put tax code on the purchase order manually.
    Thanks,
    Shiva, Bangalore

    Hi Siva.,.,.,
    These r the exits.,..,which will be called while calling ME21N/ME22N/ME23N
    EXIT_SAPMM06E_006
    EXIT_SAPMM06E_007
    EXIT_SAPMM06E_008
    EXIT_SAPMM06E_009
    EXIT_SAPMM06E_012
    EXIT_SAPMM06E_013
    EXIT_SAPMM06E_014
    EXIT_SAPMM06E_016
    EXIT_SAPMM06E_017
    EXIT_SAPMM06E_018
    U want to default some values while the Initial screen will come right,
    while u Enter ME21N in command Prompt.,.,two exits will get triggerd,
    EXIT_SAPMM06E_014
    EXIT_SAPMM06E_016
    If u want to Default some values u can use these two exits.,.
    Try using EXIT_SAPMM06E_016.,.this will solve ur purpose.
    and if the user changes some values on screen.,,and you want them to get reflected .,.,.that means if user changes and saves data .,.
    While saving.,.,EXIT_SAPMM06E_012 and EXIT_SAPMM06E_013 will get triggerd
    Try using EXIT_SAPMM06E_013.,,.it was somehow the same requirement as mine.,.,IN my case it worked fine.,.,
    Regards
    Debasish
    Message was edited by:
            Debasish Das

  • User Exit or BTE for FB50

    Hi,
    Please help to find the User Exit or BTE for FB50 after saving and posting to FB03 to capture the accouting document created.
    I need to know the acconting document created in FB03.
    Thanks,
    S Patel

    Hi,
    I think you can use the User-exit SAPLF040.
    Regards,
    Raj

  • User-Exit / Badi / BTE for STWB_WORK for integrating 3rd party tool

    Hi,
                 I need a user-exit / badi / BTE for the transaction STWB_WORK user test worklist. I'm trying to integrate a 3rd party tool to this transaction. When a worklist from this transaction is selected, i'll run the 3rd party tool executable from abap coding in the user-exit/badi/bte. Can anybody help me find one?
    thanks,
    Venky

    Hello Venky,
    I saw your question in sdn and I am wondering, if you got a solution for your question.
    I will be very happy, if you can help me you. I have the same problem as you.
    cu Manfred

  • User Exit and BADI for Sales Order

    Dear Experts,
                        please give me available user exits and BADI for sales order .i want to take the data from sales order at the time of sales order posting .

    Hi,
    In debugging you can find some Enhancement Spots where you can implement your code. This lets you ignore the need for access key, but its a time consuming process spotting out the exact enhancement point.
    Regards
    Karthik D

  • BADI/User Exit/BTE for updating Bar code in FI Invoice posting

    Hi,
    We have a requirement to update the bar code value in the table BDS_BAR_IN, once the FI invoice is generated. This is an inbound. I tried, but didn't find any user exit/BADI/BTE to do the same.
    Basically, I need to get any of these enhancement points where I can update bar code with the generated FI document number.
    Would appreciate your help.
    Thanks
    Itishree.

    Hi,
    Pls check if any of the following is good for ur scenario;
    BBPIV001  User Exits EBP Invoice Verification
    EBIA0019  IS-U: Customer-Specific Invoice Comparison
    IDCP0001  Customer Data for Printing Prenumbered Invoices
    J_1ASD06  User-exit invoice reference in billing document (SD)
    LMEXF001  Conditions in Purchasing Documents Without Invoice Receipt
    LMR1M001  User exits in Logistics Invoice Verification
    LMR1M003  Number assignment in Logistics Invoice Verification
    LMR1M004  Logistics Invoice Verification: item text for follow-on docs
    LMR1M006  Logistics Invoice Verification: Process XML Invoice
    MCBR0001  INVCO: Statistics update from invoice verification, valuatn
    MCP20009  Extrapolation of Invoiced Sales for OTB
    MCS60001  SIS: Statistics update, invoices
    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
    NBILL003  IS-H: Case-Related Invoice Processing
    NEBILL00  IS-H: Function Exits for Estimated Invoice
    NPRI0001  IS-H: User exits for invoice printout
    NPRISG01  IS-H: Function Exits for Invoice Print SG
    OICM0001  Exit for IS-Oil Repricing at Invoice Verification
    PCA00004  Check valuation for invoice verification with transfer price
    PCA00005  Check valuation for invoice verification with transfer price
    V54C0004  Shipment Costs Processing: Determine Loc. for Tax Invoice
    BADIs
    /CWM/DEFAULT_VAL_IV             BAdI for Default Logic in Invoice Verification
    /DSD/SL_FSR_INV_PROC            DSD Final Settlement Run: Processing Invoice Data
    /SAPDII/SPP_INV_XML             XML file download for invoice details
    /SPE/CRM_SUPPL_IV               Supplier Invoice
    BADI_INV_PRTDATA                Customer Exit for Data Procurement for Invoice Printing
    FI_GET_INV_PYMT_AMT             BAdI for determining the payment amount for an invoice
    FMFG_IMPROPER_PANEL             Additional Processing of Improper Invoice Panel
    ICL_INVOICE                     BAdI: Changes to Invoices or Collective Invoices
    INVOIC_FI_INBOUND               BADIs for Inbound IDoc INVOIC FI (Vendor Invoice)
    INVOICE_UPDATE                  Business Add-In: Logistics Invoice Verification
    ISH_DOP_DEDUCTION               IS-H: Deduct Down Payment From Invoice
    ISH_FILL_RNF49                  IS-H: Fill Form Structure RNF49 (Cllct. Invoice Cnc. Doc.)
    ISH_FILL_RNFP2S                 IS-H: Fill Form Structure RNFP2SE (Collective Invoice Items)
    ISH_INV_CANCEL_CHK_1            IS-H: Check Whether Invoice Can Be Canceled
    ISH_INVOICE_CHECK               IS-H: Check Invoice Creation
    ISH_PRINT_INVOICE               IS-H: Invoice Print
    ISJP_ITEM                       Invoice Summary Items
    MB_CIN_MM07MFB7_QTY             Proposal of quantity from Excise invoice in GR
    ME_CIN_LEINRF2V                 BADI for LEINRF03 excise_invoice_details
    MR_CIN_MM08RFS0                 BAdI for carrying excise duty to carry invoice verfication
    MRM_RELEASE_CHECK               BAdI for Additional Checks Before Invoices are Released
    OIA_ERS_ENHANCEMENT             Invoice split possibility
    SS01_BADI                       Payment Statistical Sampling BAdI - Invoice Batching
    VLC_INIV_EXECUTE                Execute Action INIV (Create Incoming Invoice)
    VLC_OUIV_EXECUTE                Execute Action OUIV (Create Outgoing Invoice)
    WB2_ALV_IV                      Change ALV Data from Invoice Verification Documents
    WB2_SALES_INV_INPUT             BADI to modify input data for sales invoice
    WB2_SALES_INV_OUTPUT            BADI to get data from created sales invoice
    WOSCR_EXI                       SAP Retail Store: Vendor Invoice
    Regards,
    Renjith Michael.

  • BTE for MIRO

    Hi all,
              Is there any Business Transaction Event for MIRO. Actual requirement is, when creating an invoice relating to a purchase order for company code, the plant field of the first PO and it’s first item line quoted on the invoice needs to be copied from the PO field into the assignment field of the FI document.
         Please suggest me, if there is any other method than BTE.
    Thanks in advance.
    with regards,
    Rajeev.

    I could not find any thing in the program.
    Actually I need to link an URL to the Invoice document, once it gets posted.Thats the reason why I am looking for a BTE in MIRO.

  • User Exit or Badi for MIRO

    Hi
    I need add some validations to data entry in MIRO for send their respective error messages and stop data saving.
    Does somebody knows some User Exit or Badi for make validations in MIRO ?
    Regards
    Frank

    Hi,
    you can use badi MRM_HEADER_CHECK. In order to put error message you can use function module
    PROT_FILL.
    * If there is any error do not allow posting
        DATA: gt_errtab    TYPE TABLE OF mrm_errprot,
              gs_errtab    TYPE mrm_errprot.
        CONSTANTS:     c_errprot(23)   TYPE c VALUE '(SAPLMRMF)TAB_ERRPROT[]'.
        FIELD-SYMBOLS: <fs_errprotj_dt> TYPE table.
        ASSIGN (c_errprot) TO <fs_errprotj_dt>.
        REFRESH gt_errtab[].
        gt_errtab[] = <fs_errprotj_dt>[].
        IF NOT gt_errtab[] IS INITIAL.
          READ TABLE gt_errtab INTO gs_errtab WITH KEY msgty = 'E'.
          IF sy-subrc = 0.
            DATA: c_okqx(17)   TYPE c VALUE '(SAPLMR1M)OK-CODE'.
            FIELD-SYMBOLS: <fs_okqx> TYPE ANY.
            ASSIGN (c_okqx) TO <fs_okqx>.
            CASE <fs_okqx>.
              WHEN 'BU'. "POST
    * This is optional: you can either search for a particular message or
    * do not allow any error message
    * Here search for the message triggered in badi INVOICE UPDATE
                READ TABLE gt_errtab INTO gs_errtab WITH KEY msgty = 'E'
                msgid = 'ZXX' msgno = '030'.
                IF sy-subrc = 0.
                  CLEAR <fs_okqx>.
                  MESSAGE s030(zxx). "While errors exist document will not be posted
                ENDIF.
            ENDCASE.
          ENDIF.
        ENDIF.
    This is used to give error message in case before posting the document.
    KR Jaideep,

  • User Exit and BDC for ME22N

    Hello All,
    A code has been written in the User exit for Tcode ME22N, Which sets the indicator on PO line item. This has been done by modifying the standard itab POT by using field symbols, because the fields to be modified are shown in display mode in the tcode ME22N and cannot be done in BDC. See the below code in user exit ZXM06U43.
    DATA char(50) VALUE '(SAPLMEPO)POT[]'.
    CLEAR wa_ind.
        FIELD-SYMBOLS <f1> TYPE ANY.
    Move memory of internal table POT to field symbol f1.
        ASSIGN (char) TO <f1>.
    Move content of f1 to internal table i_ind
        i_ind[] = <f1> .
        LOOP AT i_ind INTO wa_ind.
          IF wa_ind-pstyp = '9'.            " Service PO - item category
    IF PO Line item has History per Purchasing Document as 'D'
    Set indicators on, for the line item.
            CLEAR v_cnt.
            SELECT COUNT( * ) INTO v_cnt FROM ent5100
                                         WHERE ebeln = wa_ind-ebeln
                                           AND ebelp = wa_ind-ebelp
                                           AND bewtp = 'D'.
            IF sy-subrc = 0.
              wa_ind-wepos = 'X'.            " Set Goods Receipt Indicator
              wa_ind-webre = 'X'.            " Set GR-based IV Indicator
              wa_ind-lebre = 'X'.            " Set Srv-based IV Indicator
            ELSE.
    *End of addition SAP-20070910104025 - SL36 - D01K963369
              wa_ind-wepos = ' '.            " Clear Goods Receipt Indicator
              wa_ind-webre = ' '.            " Clear GR-based IV Indicator
              wa_ind-lebre = ' '.            " Clear Srv-based IV Indicator
              wa_ind-xersy = ' '.            " Clear ERS Indicator
            ENDIF.                                           
            MODIFY i_ind FROM wa_ind INDEX sy-tabix.
          ENDIF.
        ENDLOOP.
        <f1> = i_ind[].
      ENDIF.          
    ENDIF.
    This code is in production and has been working fine.
    The requirnment is now to make this indicator work for all the Purchase order before this code has been written in the Exit. For this my functional suggests that to write a separate program using BDC for PO change and jus add a period/dot  in the short text and save it. The code has been written, the user exit and the above code is getting triggrred values are updated in internal table correctly.
    However the flags was not set or cleared when seen in the tcode ME22N . This works fine if the tcode me22n is run directly and not working in BDC.
    I have tried with ME22 without enjoy transaction in BDC changing the POT Program to SAPMM06E. It does not work.
    Please help me as why it is not uodating in the table when using BDC.
    Thanks in Advance.
    Senthil Kumar

    Hi All,
    Any luck on this??
    Thanks

  • User exits or BTEs for vendor invoices

    Hi,
    Can any body tell me the common user exit or the BTE which will applicable for the transaction codes
    'FB01', 'F-90', 'FB01','FB60','FB65','FV60','FV65'.
    I need only the common user exits across the above transaction codes.Because i know the user exits individuvally for each transactions. But i need to some validations which will be common across all the above transactions.
    Thanks.

    Hi,
    For doing enhancement using BTE,
    Go to Tcode FIBF ---> Environment > Infosystem(Processess)->Execute it.
    You will find the list of all BTEs.
    hope it helps you.

  • PO's Which are MIGO done and Pending for MIRO

    Hi friends,
    Can anyone help out , hw to check the documents which are already done MIGO but pending for MIRO...
    I tried in ME2N and ME2M...but am little confusing in the field selections their....
    Pls let me know the parameters selection for above Requirement
    Regards
    Girish
    Edited by: girishkumar.r on Jul 20, 2010 5:29 AM

    Hi,
    T-Code MB5S - GR.IR balance report. will helpful to find the MIRO pending for PO.
    SAM

  • Differnce between BAPI and FM for MIRO

    Hi All,
    What is the difference between using the BAPI_INCOMINGINVOICE_CREATE or MRM_INVOICE_CREATE.
    I have a situation where i need to use the CALL transaction of MIRO as i cannot use the BAPI_INCOMINGINVOICE_CREATE.
    THough i have done a recording and was able to do simulation.. but i doubt whether that will work because i have not found a supporting answer for using CALL transaction approach for MIRO and even the SAP does not recommend it. Pl. advice.

    Hi Avinash,
    1. If u want to use,
       use  BAPI_INCOMINGINVOICE_CREATE
      (Do not use MRM_INVOICE_CREATE)
    2. REASON
       The FM MRM_INVOICE_CREATE
       is used by the MIRO program in its code.
       BUT
       It calls this FM ONLY AFTER ALL
       SCREEN VALIDATIONS / LOGIC / BUSINESS VALIDATIONS
       have been done for the data entered by the user.
    3. The FM MRM_INVOICE_CREATE
       will BLINDLY create the document
       without any validation!
    4. BUT for your purpose,
       u don't want such blind thing to happend.
       U want the full functionality of  MIRO
       with all validations and business logic.
    5. BAPIs have been created by SAP
       for the same REASON.
    6. If we use BAPI BLINDLY,
       then also,
       The system/BAPI will check
       ALL VALIDATIONS JUST LIKE MIRO TRANSACTION,
       and only after this strong checks,
       it will post the document.
    7. If there are any errors/warnigns,
       the BAPI will give errors and not post the document,
      where as the simple FM MRM_INVOICE_CREATE
      won't give any warning or alert to the user
       and may post incorrect data(provided by our z program)
    Hence, Go for BAPI_INCOMINGINVOICE_CREATE
    Regards,
    Amit M.

  • FBL3N/FBL5N/FAGLL03 user exits and badis for authorization

    Hi Gurus,
    I have tried userexit and badis for FBL3N , FBL5N and FAGLL03 for the purpose of  user want to display documents created by him and other users documents should not display . Please suggest me any user exit or badi and logic for the same.
    Moderator message: last warning, if you continue to disregard moderator messages and post the same question nevertheless, I will initiate deletion of your user ID.
    Edited by: Thomas Zloch on May 10, 2011 9:57 AM

    Hi,
    1. Execute report FBL3n and in the output goto menu SETTINGS -> SPECIAL FIELDS and add the entry BKPF-USNAM and save. Now the user who have created the entry will be available in your FBL*N report.
    2. Goto BTE event 00001650 - SAMPLE_INTERFACE_00001650, and copy the FM SAMPLE_INTERFACE_00001650 to custom FM. Inside this custom FM, first pass the value of I_POSTAB to E_POSTAB. i.e
    E_POSTAB[] = I_POSTAB[].
    Now loop E_POSTAB and check whether E_POSTAB-USNAM NE SY-UNAME, then delete that entry from the internal table E_POSTAB.
    3. Now create a custom product in FIBF transaction and check the activate checkbox. Attach the event 00001650 and custom FM to the P/S module customer part.
    Hope this will meet your requirement.
    Regards,
    Harish
    Moderator message: please be more selective when replying to questions (especially the "do my work" kind), better check the posters history before investing effort.
    Edited by: Thomas Zloch on May 10, 2011 9:59 AM

  • Function modules and BAPIs for a transactio code

    Hi friends,
    How i can find  the List of function modules and BAPIs being used for a particular transaction code?
    for example: I would like to find List function modules and BAPIs being used for the Transaction code
    "FBRA"(Reset cleared items)?
    Any sort of help on this will be helpful.
    Thanks,
    Punjaala

    hi Anjaneyulu,
    open the t-code --> and go to menu system->status-->select the program and open the program-->
    selct the tree structure----in the left side the includes screen and function module everthing will show..
    or
    open the t-code --> and go to menu system->status-->select the program and open the program-->
    go to attributes and select the Package..
    next----
    go to se80--> enter the package --> and dispalay it shows the list of Program , include transaction function modules and bapi's under the pakage
    Regards,
    Prabhudas

Maybe you are looking for

  • Adobe Acrobat Pro X - Serial No. no longer valid

    Have been using the Adobe Acrobat X Pro that came bundled with Creative Suite 6 for some time. The Acrobat couldn't start and did a re-install.  Now would accept the serial no. and report as invalid serial no. Now, only option is to use as Trial Vers

  • Help with Album Covers...

    I have Albums of artists who's albums are explicit but when I download the album cover, it always selects the clean album cover. Is there a way for me to select which album cover I want?

  • Multi line details row

    Morning all, I am trying to build a master detail form and spread each detail line over a couple of rows (to save lots of horizontal scrolling). I have read many discussions on this topic but I have been unable to get it working under Apex 4.2. I hav

  • Hi I have   a question in SALV_WD_TABLE

    How to add RADIO BUTTONS through the code to SALV_WD_TABLE and i defined as this as ALV. Guys, do u have any idea on this. Thank you, Srinivas.

  • Activation of RJ45 on ONT

    I just moved in with roomates that already had FiOS Internet installed, and when it was done the tech set it up using the Coax and the crappy Actiontec router.  There is no tv or phone service here (not even wired for either on the ONT).  At my previ