User exit to post GI for scrap via MF42N

Hello experts,
I have a requirements that need to implement an user exit within transaction <b>MF42N</b> which would enable the transaction to post GI document to scrap (movement type 551) after posting the GR for backflashing (movement type 131). For some reason, the standard transaction MF42N only posts the GR document for the backflashing but not the subsequence GI document to scrap.
I am hoping by only changing some indicators or I_MODE in user exit <b>EXIT_SAPLBARM_002</b> can do the posting. So far, tried all the combination but no luck. If this is impossible, I would need to code the whole process of calling transaction MB1A to post the MM document or call BAPI_GOODSMVT_CREATE to force the posting.
Does anyone know the trick of how to make the transaction does the posting to scrap via MF42N?
Any advice is appreciated. Thank you,
Minami

Thanks Martin,
I guess that's the same path that I took earlier when using SPRO and looking at the Purchasing->Messages. In my case it's ZMEDRUCK, but that does not help me in regards to controlling the vendors e-mail address being used. When sending the PO as an e-mail it uses (by default) the first e-mail address of the Vendor, whereas the vendor could have multiple ones. In my test case my vendor has two addresses but it always defaults to using the first. I know that I need to modify this behaviour somehow, but how I have no idea as I can find no Exit routine.
Jas

Similar Messages

  • User exit in VLPOD transaction for populating difference quantity

    Hi All,
    I have to update populate and validate the different quantity in sales unit (TVPODVB-LFIMG_DIFF) and the corresponding reason while creating Proof of Delivery using transaction VLPOD.
    Please suggest a suitable user exit and program name for the same.
    Thanks,
    Abhishek

    Check the Badi "MRM_HEADER_DEFAULT".  Badi documentation reads
    In what business and technical context is the BADI?
    You can use the Business Add-In MRM_HEADER_DEFAULT when you enter an incoming invoice,
    to define certain default values for the header fields (for example, document type, header text,
    invoice date, posting date). In this way you can specify the document type independently of the
    company code or transaction.
    Regards
    Vinod

  • User Exit after posting document (FB01)

    Dear all,
    I want to change the BSEG entries based on a mapping table.
    Is there any User Exit after posting document. I debuged long time and couldnt find any User Exit where u can change the BSEG.
    Thank u very much!
    best regards

    thank u for ur answer. I know it but not really! I know there is also an option. But my question here:
    -> Is here no User Exit where I can change the BSEG?
    -> It is possible to write a normal ABAP code in the substitution?
    Thank u very much

  • User exit at item level for billing block field default for VA41 or VA42

    Hi All,
    I want user exit at item level for contract (VA41or VA42) for the field Billing Block in the Billing document tab
    which has to populate with some default value.
    Which user exit i need to check.
    Regards
    Jai

    Hi,
    Use subroutine USEREXIT_FIELD_MODIFICATION in Include MV45AFZZ.
    Make sure this is for only tcodes VA41 and VA42 because this wil trigger for sales order also.
    Regards,
    Ashok.

  • User-Exit/Badi/Funtion Module for update Batch in transaction CORK

    Hi Gurus,
      when an IDoc 'Z' is executed to do a confirmation using the FM CO_RU_ORDER_CONFIRMATION, the values of transaction CORK are modified.
      I'd like to update the field batch number so when you enter a process order in transaction CORK and then you click on Components, you'll see the list of component and the batch number updated throught the custom IDoc.
      Does anyone knows any user-exit or Badi or maybe a FM to implement so when the first confirmation is done, the batch numbers are updated?
    Thanks in advance.

    Hi,
    You can copy and paste the Report code below. This will give the list of User Exits and BADIs available for the Transcation code. Very usefull program.
    Below code will give a list of BADIs for particular transaction.
    =============START
    *& Report ZNEGI16 *
    REPORT ZNEGI16 .
    TABLES : TSTC,
    TADIR,
    MODSAPT,
    MODACT,
    TRDIR,
    TFDIR,
    ENLFDIR,
    SXS_ATTRT ,
    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,
    P_PGMNA LIKE TSTC-PGMNA .
    DATA wa_tadir type tadir.
    START-OF-SELECTION.
    IF NOT P_TCODE IS INITIAL.
    SELECT SINGLE * FROM TSTC WHERE TCODE EQ P_TCODE.
    ELSEIF NOT P_PGMNA IS INITIAL.
    TSTC-PGMNA = P_PGMNA.
    ENDIF.
    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 in ('SMOD', 'SXSD')
    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:/(105) SY-ULINE.
    FORMAT COLOR COL_HEADING INTENSIFIED ON.
    Sorting the internal Table
    sort jtab by OBJECT.
    data : wf_txt(60) type c,
    wf_smod type i ,
    wf_badi type i ,
    wf_object2(30) type C.
    clear : wf_smod, wf_badi , wf_object2.
    Get the total SMOD.
    LOOP AT JTAB into wa_tadir.
    at first.
    FORMAT COLOR COL_HEADING INTENSIFIED ON.
    WRITE:/1 SY-VLINE,
    2 'Enhancement/ Business Add-in',
    41 SY-VLINE ,
    42 'Description',
    105 SY-VLINE.
    WRITE:/(105) SY-ULINE.
    endat.
    clear wf_txt.
    at new object.
    if wa_tadir-object = 'SMOD'.
    wf_object2 = 'Enhancement' .
    elseif wa_tadir-object = 'SXSD'.
    wf_object2 = ' Business Add-in'.
    endif.
    FORMAT COLOR COL_GROUP INTENSIFIED ON.
    WRITE:/1 SY-VLINE,
    2 wf_object2,
    105 SY-VLINE.
    endat.
    case wa_tadir-object.
    when 'SMOD'.
    wf_smod = wf_smod + 1.
    SELECT SINGLE MODTEXT into wf_txt
    FROM MODSAPT
    WHERE SPRSL = SY-LANGU
    AND NAME = wa_tadir-OBJ_NAME.
    FORMAT COLOR COL_NORMAL INTENSIFIED OFF.
    when 'SXSD'.
    For BADis
    wf_badi = wf_badi + 1 .
    select single TEXT into wf_txt
    from SXS_ATTRT
    where sprsl = sy-langu
    and EXIT_NAME = wa_tadir-OBJ_NAME.
    FORMAT COLOR COL_NORMAL INTENSIFIED ON.
    endcase.
    WRITE:/1 SY-VLINE,
    2 wa_tadir-OBJ_NAME hotspot on,
    41 SY-VLINE ,
    42 wf_txt,
    105 SY-VLINE.
    AT END OF object.
    write : /(105) sy-ULINE.
    ENDAT.
    ENDLOOP.
    WRITE:/(105) SY-ULINE.
    SKIP.
    FORMAT COLOR COL_TOTAL INTENSIFIED ON.
    WRITE:/ 'No.of Exits:' , wf_smod.
    WRITE:/ 'No.of BADis:' , wf_badi.
    ELSE.
    FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
    WRITE:/(105) 'No userexits or BADis exist'.
    ENDIF.
    ELSE.
    FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
    WRITE:/(105) 'Transaction does not exist'.
    ENDIF.
    AT LINE-SELECTION.
    data : wf_object type tadir-object.
    clear wf_object.
    GET CURSOR FIELD FIELD1.
    CHECK FIELD1(8) EQ 'WA_TADIR'.
    read table jtab with key obj_name = sy-lisel+1(20).
    move jtab-object to wf_object.
    case wf_object.
    when 'SMOD'.
    SET PARAMETER ID 'MON' FIELD SY-LISEL+1(10).
    CALL TRANSACTION 'SMOD' AND SKIP FIRST SCREEN.
    when 'SXSD'.
    SET PARAMETER ID 'EXN' FIELD SY-LISEL+1(20).
    CALL TRANSACTION 'SE18' AND SKIP FIRST SCREEN.
    endcase.
    ================END
    <b>Reward POints if this helps.
    Manish</b>

  • User exit or a badi for checking the vendor email id in me22n on me29n

    hi all,
    can anybody suggest me a user exit or a badi  for checking the email id of the vendor in me21n or me22n or me29n.
    i.e. a user exit or a BADI which gets hit either at the time of creation or release of a purchase order.
    plz suggest me a solution its urgent.
    regards,
    santosh

    Hi Santosh,
    Have you looked BADI <b>ME_PROCESS_PO_CUST</b> or user exits <b>EXIT_SAPMM06E_016</b> / <b>EXIT_SAPMM06E_017</b>?
    Hope this will help.
    Regards,
    Ferry Lianto
    Please reward points if helpful.

  • User-exit on APO side for the deliveries that are coming from R/3

    Hi,
    When a delivery is created in ECC for a VMI customer, it creates an EI order in APO. We need to record some details of these orders on the APO side.   Can you please let me know the user exit/BADI that gets triggered when a delivery comes to APO through CIF which we can use for our requirement?
    Thanks in advance.

    Hi,
        You can use APOCF006(EXIT_/SAPAPO/SAPLCIF_PU_001) CIF User exit on APO side for CF_OBJECTTYPE = B(Delivery).
    I hope this will help you.
    Regards,
    Saurabh

  • USER-EXIT on SAVE event for IE01

    Hi,
    I need USER-EXIT on SAVE event for t-code IE01.
    EXIT IEQM0003 work only first time after pressing "SAVE".
    IF i press "SAVE"  second time equipment will be created.
    Edited by: andriy.hulyk on Jan 26, 2012 12:45 PM

    Here is my code:
    IF DATA_ILOA-TPLNR IS INITIAL.
      AUTHORITY-CHECK OBJECT 'ZZ_MC_FLC'
      ID 'ZZFLC' FIELD '*'.
      CASE SY-SUBRC.
        WHEN 0."SAP-ALL User
          EXIT."OK
        WHEN 12."User without restriction
          EXIT."OK
        WHEN OTHERS.
          AUTHORITY-CHECK OBJECT 'ZZ_MC_FLC'
          ID 'ZZFLC' FIELD '01'.
            CASE SY-SUBRC.
              WHEN 0."Create eq. only with FL for some work centers
                MESSAGE E250(ZPM) WITH 'test' RAISING POSTING_NOT_ALLOWED_EXT.
            ENDCASE.
        ENDCASE.
    ENDIF.
    If i press "SAVE" firs time it work great. But next pressing just create new equipment. My restriction does not work(

  • User-Exit OR a BAdi for the Purchase order create.

    Hi,
    I am looking for a User-Exit or a BAdi which is fired when the Purchase order is being created in the SRM server via Web template. The requirement is as follows:
    There is a flag(Check box) at the the item level, Basic Data tab. This flag is called as Unlimited Overdelivery Allowed. It is with the tolerances field. Now I want this flag to be always set for a PO of a material of certain type.
    Can anyone tell me which User-Exit OR Badi I should use to always set this flag?
    The Technical field name is UNLIMITED.
    I tried a lot but could not get any.
    Regards,
    Deepak.

    Hi Deepak,
      Did you try doc_change badi? THis badi is available in all the bus objects.
    thanks,
    Ashwin

  • Need User exit/BADI or BTE for FF_5

    Hi,
    My requirement is to enhance the automatic clearing rules for tcode ff_5.
    Program RFEBKA00 will upload bank statement items based on the external transaction codes provided by the banks .
    The standard posting rules will clear a GL bank account using a set of algorithms for further interpretation
    set of standard algorithms do not meet the clearing criteria .hence i need user exit / badi/bte to enhance the automatic clearing rules.
    EXIT ZXF01U01& or FEB_BADI are triggering before posting the document.hence i think we can not use these.
    Please suggest me the alternate solution.

    Hi,
    We are facing a similar requirement. We are trying to enhance the interpretation logarithm using search string. The requirement is to update the text field with a Constant Prefix + a number from the Notes to Payee field. For e.g.:
    The BAI file transaction data is like:
    16,169,94906,V,120108,0000,6008ABS43400024460,783517/
    88,TBS EUROPE LTD   203647 10293164
    88,/ENTRY-06 FEB
    88,TRF/REF  6008ABS43400024475
    88,783517 BANK GIRO CREDIT
    We defined a search string to find the text 'TBS EUROPE LTD' and if it is found, the search string fetches the number '783517' from the Notes to Payee field and thereafter, at the time of posting, the text field has to be updated with '120108 TBS EUROPE LTD 783517', where 120108 is the validity date of the incoming money through this transaction and which does not form part of the Notes to Payee field.
    Also, if just the number '783517' has to be updated in the text field.
    Please suggest how to achieve this functionality.
    Thanks in advance.
    Regards
    Sourabh

  • User Exit or FI Validation for FB60

    Hi All,
    When vendor invoices are created through FB60, i need to check if the header text is blank or not. I am not able to find any user exit for the same. Is there any FI validation, which i can use and what is the procedure for the same.
    Regards,
    Jayant

    Hi,
    Header Text value has been entered as a Bill of Lading (MKPF-FRBNR) in a Material document for a Good Receipt for same company code/plant. If the Value has not been entered a warning message is displayed to the user. This can be implemented via  FI validation. FI team will configure it to check the company code and vendor. But it is required to develop a piece of code which will check in the MFKP table field FRBNR for the value entered in the header text BKPF-BKTXT. If the value was not found, return u201CFALSEu201D to the validation so the message can be displayed.
    Here how do i return FALSE value to the FI Validation. Which user exit/badi can be used to achieve this.
    Regards,
    Jayant

  • User Exit : transfer posting 541

    Dear All ,
    pl guide for the User Exit name for :
    I want to check , Only after the PO release Material Transfer Posting should Be allowed to VEndor .
    Without PO release , 541 movement should not Be allowed in MB1b or Migo 541against the Sub con PO .
    regards

    hi,
    check these user exits:
    MMFAB001 - User exit for generation of releases
    MRFLB001 - Control items during release creation
    Regards
    Priyanka.P

  • User Exit needed at PBO for transaction code CAT2

    Hi all,
    I'm enhancing CAT2 screen for the client. I've created a new field for CAT2 -> Data Entry Section and have made that field visible via config. I would like to implement a search help for my new field and would like to manipulate the search help via abap code. I understand that there's a whole list of CAT2's user exit that can be used. However, i need an user exit that is triggered before the Data Entry Section screen appear which is the PBO. I'm not allowed to modify the SAP Standard program and therefore i'm using the user exit.
    I've tried SAP Enhancement CATS0005 but it is not triggering my ABAP Code before it enters the Data Entry Section screen. Kindly assist to advice is there's any particular User Exit that i can use for my purposes or another workaround.
    Regards,
    Loo

    I don't think there is one, but you may either implement an implicit enhancement option (routine GET_NEXT_NUMBER in program SAPLSTRD), or make a custom program which creates transport requests (it is then easier to get the number).

  • User exits when posting purchase document and goods movement (GR)

    I want to update some custom tables when posting PO and goods movement (GR) .
    Please suggest user exits for both posting.

    Check the below exists
    FOR PO
    LMEDR001            Enhancements to print program
    LMELA002            Adopt batch no. from shipping notification when posting a GR
    LMELA010            Inbound shipping notification: Transfer item data from IDOC
    LMEQR001            User exit for source determination
    LMEXF001            Conditions in Purchasing Documents Without Invoice Receipt
    LWSUS001            Customer-Specific Source Determination in Retail
    M06B0001            Role determination for purchase requisition release
    M06B0002            Changes to comm. structure for purchase requisition release
    M06B0003            Number range and document number
    M06B0004            Number range and document number
    M06B0005            Changes to comm. structure for overall release of requisn.
    M06E0004            Changes to communication structure for release purch. doc.
    M06E0005            Role determination for release of purchasing documents
    ME590001            Grouping of requsitions for PO split in ME59
    MEETA001            Define schedule line type (backlog, immed. req., preview)
    MEFLD004            Determine earliest delivery date f. check w. GR (only PO)
    MELAB001            Gen. forecast delivery schedules: Transfer schedule implem.
    MEQUERY1            Enhancement to Document Overview ME21N/ME51N
    MEVME001            WE default quantity calc. and over/ underdelivery tolerance
    MM06E001            User exits for EDI inbound and outbound purchasing documents
    MM06E003            Number range and document number
    MM06E004            Control import data screens in purchase order
    MM06E005            Customer fields in purchasing document
    MM06E007            Change document for requisitions upon conversion into PO
    MM06E008            Monitoring of contr. target value in case of release orders
    MM06E009            Relevant texts for "Texts exist" indicator
    MM06E010            Field selection for vendor address
    MMAL0001            ALE source list distribution: Outbound processing
    MMAL0002            ALE source list distribution: Inbound processing
    MMAL0003            ALE purcasing info record distribution: Outbound processing
    MMAL0004            ALE purchasing info record distribution: Inbound processing
    MMDA0001            Default delivery addresses
    MMFAB001            User exit for generation of release order
    MRFLB001            Control Items for Contract Release Order
    AMPL0001            User subscreen for additional data on AMPL
    For Goods Movement
    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

  • User exit after posting run

    Hello,
    I am searching for a user-exit that follows a payroll posting run, where I could insert some code to call a custom program that must run after the payroll run.
    I found enhancement PCPO0001 in SMOD, but these exits are not really suitable for what I need.  I just need to make sure that a certain program will always be executed after creating the posting run.
    Any help would be greatly appreciated.
    Thanks.

    Hi,
    perhaps you coudl try one of the following BAdIs:
    HRPAY00_EXP_COPL                      
    HRPAY00_PCP0                          
    SMOD_PCPO0001                         
    You could call them with se18/se19.
    Regards
    Bernd

Maybe you are looking for

  • A rmi problem about exporting a remote object

    here is the code: public interface Hello extends Remote { String sayHello() throws RemoteException; public class HelloImpl extends UnicastRemoteObject implements Hello { public HelloImpl() throws RemoteException { super(); public String sayHello() {

  • Executing SQL command in Java on Linux OS

    when i am running a java class file from cmd line, in that java file i am using a SQL statement, like select * from emp where empname='uday' here its not accepting the single quote('), its ignoring single quotes can any one help me

  • Are there any video joiners for Mac?

    More and more downloadable movies are split and need to be joined back together to be viewed. I've searched the web over and can't find a Mac program to do this. I'm speaking of files that end in consecutive numbers like .001, .002, etc. Is there som

  • Popin for ALV

    Hi All, I need some clarification regarding the Popins for ALV. I have already searched SCN on the same. As we have Popins for Table UI element. Does ALV WD component provides any of this POPIN functionality either at Table or Row or Column or Cell l

  • OS X Yosemite + iPhoto - edits not exported

    Despite trying numerous suggestions on forums to repair, rebuild or recreate databases and libraries with iPhoto, my iPhoto 9.6 together with OS X Yosemite 10.10.1 will not export or share edited versions of any images I have in iPhoto libraries or a