User exit for IDoc MBGMCR - BAPI_IDOC_INPUT1 - BAPI_GOODSMVT_CREATE

Hi Gurus,
I just want to ask if there is any user exit that I can use for this IDoc. My requirement is to check if thevalue from E1BP2017_GM_HEAD_01-REF_DOC_NO already exist in MKPF using XBLNR. If this reference document already exist, I need to raise and update the IDoc status into an error.
Thanks and best regards,
Andre

Hi,
Check the badi "LE_SHP_GOODSMOVEMENT", method "CHANGE_INPUT_HEADER_AND_ITEMS".   Pass the errors in the structure CT_LOG.
Regards
Vinod

Similar Messages

  • User exit for IDOC in INVOICE

    Hi all,
    I need to add a value in a custom IDOC segment for INVOICE. The IDOC basic type used is INVOIC02. Is there any user exit which I can use to populate the IDOC data? Any help will be greatly appreciated.
    Thanks,
    Lalyn

    Hi Lalyn,
    I do not have an exact code for this.
    But just go through the following code, where we are doing some validations in the segments.
    Code below this line was to exclude ZRTN materials for which Subtotal 2 (KZWI2) is zero. And,
    this is done for billing types:
                                   ZEXP,
                                   ZXAD,
                                   ZXDR,
                                   ZXL2,
                                   ZXG2,
                                   ZXPT.
    IF INT_EDIDD-SEGNAM = 'E1EDS01'.
      ZE1EDS01 = INT_EDIDD-SDATA.
      IF ZE1EDS01-SUMID = '001'.
    Start deleting when on 1st E1EDS01 segment
        DESCRIBE TABLE INT_EDIDD LINES POS.
        LOOP AT XTVBDPR.
          CLEAR MARA.
          SELECT SINGLE MTART MATKL FROM MARA INTO            "DV2K920646
          (MARA-MTART,MARA-MATKL)                             "DV2K920646
          WHERE MATNR = XTVBDPR-MATNR.     " Find material type MTART
          IF XVBDKR-FKART EQ 'ZEXP' OR XVBDKR-FKART EQ 'ZXL2' OR
             XVBDKR-FKART EQ 'ZXAD' OR XVBDKR-FKART EQ 'ZXG2' OR
             XVBDKR-FKART EQ 'ZXDR' OR XVBDKR-FKART EQ 'ZXPT'.
            IF MARA-MTART = 'ZRTN' AND XTVBDPR-KZWI2 EQ 0
             AND MARA-MATKL <> 'KEGS DM'.                  "DV2K920646
              MOVE XTVBDPR-POSNR TO POSNRS-POSNR.
              APPEND POSNRS.               " Store ZRTNs to be deleted
            ENDIF.
          ENDIF.
        ENDLOOP.
        DESCRIBE TABLE POSNRS LINES COUNT.
      Reduce the number of line items by the number of them to be deleted
        ZE1EDS01-SUMME = ZE1EDS01-SUMME - COUNT.
        SHIFT ZE1EDS01-SUMME LEFT DELETING LEADING SPACE.
        INT_EDIDD-SDATA = ZE1EDS01.
        MODIFY INT_EDIDD INDEX POS TRANSPORTING SDATA.
        LOOP AT INT_EDIDD INTO IEDIDD.     " Loop and delete if in POSNRS
          IF IEDIDD-SEGNAM = 'E1EDP01' OR IEDIDD-SEGNAM = 'E1EDS01'.
            CLEAR DELETE_FLAG.
          Reset delete_flag when on next line item or done with all
          ENDIF.
          IF IEDIDD-SEGNAM = 'E1EDP01'.
            ZE1EDP01 = IEDIDD-SDATA.
            READ TABLE POSNRS WITH KEY POSNR = ZE1EDP01-POSEX.
            IF SY-SUBRC EQ 0.
              DELETE_FLAG = 'X'.
            Set delete_flag if the line item is to be deleted
            ENDIF.
          ENDIF.
          IF DELETE_FLAG = 'X'.            " Delete the line item fully
            DELETE INT_EDIDD.
          ENDIF.
        ENDLOOP.
      ENDIF.
    ENDIF.
    At this function module, you have to create an include and write your code.
    But remember, before that you have to extend your basic type.
    Hope it will help you.
    sailesh

  • User Exit for IDOC

    Hi,
    For any outbound idoc, if the parameters of export/import contain EDIDC and EDIDD along with the table.
    It is possible to extend the idoc and populate values?
    As i don't have authroizations, i need to confirm whether an wmtcid03 idoc can be extended and values can be populated.
    I found the user exit also.

    Check the Function Group <b>XLID</b>,you could find few where you can track EDIDC and EDIDD  and do furter manipulation as needed.
    ~thomas.

  • User exit for IDOC creation

    When a credit memo is created an IDOC should be generated !
    IS there any user exit where i can associate the idoc generation code when the credit memo is created?
    if soo then what it is !
    Edited by: Alvaro Tejada Galindo on Feb 19, 2008 5:52 PM

    Just create an output type for billing and condition record to trigger the output.
    Regards,
    John.

  • User exit for IDOC inbound CREMAS

    Hi experts,
    I want to find a USER EXIT to change the value for vendor inbound idoc of message type CREMAS when create a new vendor or change a existing vendor. EXIT_SAPLKD02_001 is a function module can be enhanced but it cannot be called when I debug in WE19. The segment of IDOC is not extended by customazing field.
    Can anyone tell me what user exit is for IDOC I can use to change the data for vendor when inbound idoc receive?

    Hi panzhijun,
                  please check this link
    http://forums.sdn.sap.com/thread.jspa?threadID=1659323
    An Expert V.V.Reddy is exactly discussing about your issue on extending the FM  in a Include: LKD02F01,
    just have a look on this and go throw completely so u may get some solutions .
    This is how somewhat i can help you , If i get any further details will let u know .
    BR,
    Lakshmi Rajkumar.

  • User Exit for Idoc being posted through ACC_DOCUMENT

    Hi Experts!!
    We have an inbound interface to post FI document using message type ACC_DOCUMENT. Now, we need to influence the idoc before posting. In detail, we need to change a particular field in the header and then only post it. I tried with EXIT_SAPLF050_008. But that was not being updated. Is this user exit only for a few message types like FIDCMT, FIDCC1, FIDCC2?
    If yes, which user exits can be used to influence the idoc before posting?
    Kindly help me out.
    Thanks a lot in advance.

    Hi ,
    chk with these  exits:
    SIDOC001 -> fm EXIT_SAPLEDI1_001
    SIDOC002 -> fms
    EXIT_SAPLEDI6_001
    EXIT_SAPLEDI6_002
    EXIT_SAPLEDI6_003
    hope it helps..
    Regards,
    Deeba

  • User-Exit for IDoc status

    Hello all!
    I'm trying to send a message with the status of an IDoc that has been processed, but I can't find an exit right after the status of the IDoc has been set, do you have any idea on what can I do for this?
    Regards!

    This is the exit where we have the control of setting idoc status. If there no scope of this idoc status.
    Then try to find out an exit which will be triggered before this exit with idoc status ( with value ). Then export this to memory and get back the same from memory in Vijay's suggested exit.
    Also if you could able to find the exit after THIS exit you won't have option to set custom idoc status.
    Regds
    Manohar

  • USER EXIT FOR IDOC CREATION AND TRIGGER

    I needed a user exit in which I could call my function module .The requirement is that whenever a sales order is created or changed ,on saving of the sales order I need  to trigger an IDOC .Inside my function module I plan to use the MASTER_IDOC_DISTRIBUTE
    Can anyone tell me if the above logic can work and please tell me the name of the user exit which I can use?

    Hi
    Instead of User exit, you can think of using SAP Standard Output type functionality.
    Ask your functional consultant to create a Output type with Medium 6 and do the necessary outbound configuration in the Partner profile WE20 transaciton.
    Regards
    Madhan D
    Edited by: Madhan Doraikannan on Dec 10, 2008 10:49 AM

  • User exit for idoc extension for material master (matmas05)

    Hello all,
    I have 10 custom fields added to anl idoc of basic type matmas05.
    i created a new segment under parent segment E1MARA1
    Now i want to find out the user exit where in i can write a code to read the data of this segment and populate into the data base table.
    Can anybody provide me with the name of the user exit?
    Regards,
    Roshani

    Check enhancement MGV00001 in SMOD.
    Exit Fm is EXIT_SAPLMV01_002
    Regards,
    Naimesh Patel

  • User exit on IDOC

    Hi friends,
    I am working on P.O. to S.O scenario using ale idoc. While importing the P.O idoc i need to do some changes in the values coming from P.O. idoc so for that I need to use some user exit for idoc.
    Please let me know is it possible and if yes which is user exit suitable for this purpose.
    Thanks & Regards,
    Brijesh Soni

    the exit is EXIT_SAPLVEDA_001.
    thanks and regards,
    siri

  • How to find the appropriate user exit for invoic02 idoc in idoc_output_invo

    Hi all,
    I am new to this community p
    i have issue regarding  the How to find the appropriate user exit for invoic02 idoc in idoc_output_invoic function module.........
    thanks,

    Hi ,
    welcome to SDN.
    You can select the appropriate Customer exit accrding to the available parameters .
    The list of exits available are 
    EXIT_SAPLVEDF_001
    EXIT_SAPLVEDF_002
    EXIT_SAPLVEDF_003
    EXIT_SAPLVEDF_004
    For Example , if you want  to modify the Idoc data(EDIDD) you have to use the EXIT_SAPLVEDF_002. accodingly you can select the user exit according to the avaialable parametres.Use Table MODSAP fto get the Enhancement name.
    Hope this Helps
    Rgds
    Sree
    Edited by: Sree on Jul 23, 2010 12:11 PM

  • Help required regarding user exit for STPSHH01 IDOC

    Need help regarding user exit.
    I append the structure of VTTP and add one field with the name of ZDELCST i.e Delivery cost so i want to update that table once the idoc will post.
    I have to write the user exit for this but i have no idea how to do this so kindly requesting someone to please write the code for me and i will be very grateful to him/her.
    The functional module is IDOC_INPUT_SHIPPL
    and there is a CALL CUSTOMER-FUNCTION '012'
    this will take us to function module EXIT_SAPLV56I_012
    This includes ZXV56U08
    Within this include in need to map the delivery cost from the idoc to the new append filed VTTP-ZDELCST

    Hi,
    use this FM to update ur shipment
    variables
    DATA: lo_tp_g_tra       TYPE v56e_shipment_activities, "Data to modify
          lo_tp_g_shp       TYPE v56e_shipment,
          lo_tp_g_log       TYPE v56e_logfile, " Errors function
    call the function to modify shipments
    CALL FUNCTION 'SD_SHIPMENT_PROCESS'
      IMPORTING
        e_logfile    = lo_tp_g_log
      CHANGING
        c_activities = lo_tp_g_tra
        c_shipment   = lo_tp_g_shp
      EXCEPTIONS
        error        = 1
        OTHERS       = 2.
    Thanks,
    Sendil.

  • User Exit  for Inbound Process - Changing IDOC control record

    Hi,
    I want to utilize the identification field (under details tab) of the IDOC Control Record. What is the suitable user exit for inbound process that i can use to change the IDOC control record?

    It's been a long time since I have done any IDOC processing. 
    Go to SE37 and enter the function module IDOC_INPUT_ORDERS.  Display the source code.  Search for "CALL CUSTOMER".  You should see several "CALL CUSTOMER-FUNCTION" lines.  These are enhancements where you can manipulate the IDOC data.  If you locate the correct one (where the data is read from the IDOC but not yet validated), you should be able to map the partner function value.  Double-clicking on the number in quotes will bring you to an "EXIT_" function module.  A "ZX" INCLUDE program is referenced.  If you haven't used the exit yet, double-clicking on the ZX INCLUDE will create it.  The values passed into the function module are available in the INCLUDE.
    Ideally, you should create a project in transaction CMOD that references the chosen enhancement.  This way you can activate/deactivate without commenting/uncommenting the code in the INCLUDE.

  • What is the user exit for message type BENREP, IDoc BENEFIT3?

    Hello,
    We are looking for a user exit to use with IDoc BENEFIT3.  Our benefits provider requires information which is not stored in any infotype in SAP, but can be calculated based on 3 existing infotypes.  We need a user exit for this. 
    We thought we could use PBEN0018 w/function module EXIT_SAPLHRBEN00FEATURE_018, but our ABAP developer says this doesn't access any IDoc tables. HR_BEN_IDOC_SEND doesn't work for this purpose either.  We also found PBEN0033 for function module HR_BEN_GET_IDOC_EVENTS, but this is labeled as obsolete.
    Does anyone know if there is an exit for this?
    Thanks much!
    Anke

    For future reference in case anyone is trying to do this, we were not able to find a suitable user exit to enhance BENEFIT3 IDoc, so we put in an OSS note and received the following response:
    "...currently there is no user exit/Badi in SAP Benefits Administration
    to enhance IDoc BENEFIT3. Such functionality is indeed missing in the
    system, which means that you will need to submit a development
    request to enhance the system in this respect in a future release."
    Anke

  • User exit for inbound idoc

    could anyone please tell the user exit for inbound idoc : ACC_POSTING_GL01

    I thnk the inbound idoc name is ACC_GL_POSTING01. User Exit for this is EXIT_SAPLACC4_001.
    *****Reward points if useful
    Regards,
    Kiran Bobbala

Maybe you are looking for

  • Moving Itunes from 1 hard drive to another same computer.

    I am trying to move itunes from my "C" hard drive to a new "H" hard drive to clean up my "C" drive. I was wondering if any one could tell me how to do this? I have tried to copy and paste but with no luck. I know it must be simple bit I can seem to m

  • SSRS 2012 Excel Rendering Error

        Hi I need help Platform Sharepoint 2013 SSRS 2012 integrated in sharePoint 2013 I've no problem when I export my report  (25000 records) to EXCELOPENXML format, but each time I try to export it with 140 000 records i've always the error described

  • Putting sound files in

    I have a sound playing in an application, using the following code: File file = new File("cocacola.midi"); clip = Applet.newAudioClip(file.toURL()); clip.loop(); it works fine, except when I put all the classfiles into a jar format, the program insis

  • Trying to make a real music video

    ive use the old imovie on a imac g3 an it has a music video title effect an i was wanting to know how to make a music video on imovie 11 because i cant find the music video title effect

  • I keep getting a random grey box pop up in the centre of my screen.

    It's exactly as the 'headline' states. This has only started happening today, but it's like a pop-up. It takes up the majority of the screen, but has nothing in it apart from a black cross in the top right-hand corner. Is it an ad that won't appear b