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.

Similar Messages

  • 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

  • BAdI: or User Exit for Campaign Creation   IN CRM 5.0

    Hi all,
    we are working in CRM 5.0,
    we have a Requirement like :
    when we create the campaign it should check higher level project ID (marketing Plan ID)
    if it is there it should permit for create campaign else it ll show error...
    Any BAdI: or User Exit for Campaign Creation?
    I ll geive reward points....
    Rhanks & Regards,
    Ganesh

    IN WHICH TRANSACTION U R CREATING CAMPAIGN ??

  • BAdI: or User Exit  for Campaign Creation

    Hi all,
              we are working in CRM 5.0,
    we have a Requirement like :
          when we create the campaign it should check higher level project ID        (marketing Plan ID)
          if it is there it should permit for create campaign else it ll show error...
    Any BAdI: or User Exit  for Campaign Creation?
    I ll geive reward points....
    Rhanks & Regards,
    Ganesh

    Dear Ganesh,
    As campaign can be created and executed individually also, it will never check for higher level project ID.
    Let me check the system if we can block creation of campaign individually, without having a higher level marketing plan.

  • User Exit for Delivery Creation

    Hi,
    I am looking for an User Exit for Delivery Creation, which should provide a Sales Order Number. This is required before Batch determination. Can any one help.

    Hi,
    I think you can try with MV50AFZ1 user exit.
    In move fields to LIKP and LIPS routine you can get the sales order.
    LIPS-VGBEL gives the sales order.
    Thanks,
    Rohan

  • User Exits for Invoice creation ,cancellation and sales return

    Hi Gurus,
    Pl help me it's very urgent.
    I did not find any user exit invoice creation so i wrote the following code in include program
    MV60AF0B_BELEG_SICHERN.
    This code is to update the Z*table while saving invoice ,cancellation and sales return.
    The code modification is like below
          FORM BELEG_SICHERN                                            *
          Buchen Fakturabelege                                          *
    FORM BELEG_SICHERN.
      READ TABLE XVBRK INDEX 1.
      IF SY-SUBRC NE 0.
        CALL FUNCTION 'DEQUEUE_ALL'.
        MESSAGE S032.
        EXIT.
      ENDIF.
      IF SAMH_MOD = ON.
        EXPORT XKOMFK TO MEMORY ID 'SDBILLDL'.
      ENDIF.
      DATA: CALC_TYPE.
      IF REBATE_DETERMINED = 'Y'.
        CALC_TYPE = 'A'.
      ELSE.
        CALC_TYPE = 'I'.
      ENDIF.
    *{   INSERT         RD1K903017                                        1
    Work Area*********************
    data : wa_xvbrk type VBRKVB.
    data : wa_xvbrp type vbrpvb.
    data : wa_zmigo type zmigo.
    data : wa_vbrp type vbrp.
    Internal table Creation*******
    DATA:  BEGIN OF tab_XVBRP OCCURS 100.
             INCLUDE STRUCTURE VBRPVB.
    DATA:  END OF tab_XVBRP.
    data : begin of tab_vbeln occurs 10,
           vbeln type vbrk-vbeln,
           knumv type vbrk-knumv,
           end of tab_vbeln.
    data : tab_zmigo type table of zmigo.
    data : tab_vbrp type table of vbrp.
    *****Data declaration*************
    data : v_no_of_inv type i.
    data : v_vbeln_no(10) type n.
    data : v_last_inv_no(10) type n.
    data : v_first_inv_no(10) type c.
    data : v_tot_qty type i.
    data : v_frbnr type mkpf-frbnr.
    *******Ranges*********************
    ranges : r_vbeln for vbrk-vbeln.
    *****Populating IT****************
    tab_xvbrp[] = xvbrp[].
    describe table xvbrk lines v_no_of_inv.
    *}   INSERT
      CALL FUNCTION 'RV_INVOICE_DOCUMENT_ADD'
           EXPORTING
                VBSK_I           = VBSK
                WITH_POSTING     = 'A'
                PREISFINDUNGSART = CALC_TYPE
           IMPORTING
                VBSK_E           = VBSK
           TABLES
                XKOMFK           = XKOMFK
                XTHEAD           = XTHEAD
                XVBFS            = XVBFS
                XVBSS            = XVBSS
                XVBRK            = XVBRK
                XVBRP            = XVBRP
                XVBPA            = XVBPA
                XKOMV            = XKOMV.
    *{   INSERT         RD1K903017                                        2
    data : v_count type i,v_fkimg type i .
    data : v_no_of_records(10) type n.
    wa_xvbrk = xvbrk.
    ********Selecting the last rec no from ZMIGO
          select max( sr_no ) from zmigo into v_no_of_records.
    *****If Distribution channel is not ZB*********
    if  wa_xvbrk-vtweg ne 'ZB' and ( wa_xvbrk-fkart = 'ZRIN' or wa_xvbrk-fkart = 'ZRTE' ).
    if v_no_of_inv = 1.              " Process only when there is one invoice
    loop at tab_xvbrp into wa_xvbrp  where (           matnr ne 'CDGSTP0001'       and
                                                       matnr ne 'CD-RW'            and
                                                       matnr ne 'CD-RW65OHS'       and
                                                       matnr ne 'CABLE'            and
                                                       matnr ne 'CD-R'             and
                                                       matnr ne 'CDQ80N4'          and
                                                       matnr ne 'GENERAL'          and
                                                       matnr ne 'NERO'             and
                                                       matnr ne 'OTHERS'           and
                                                       matnr ne 'SPARE PARTS'      and
                                                       matnr ne 'PROMO ITEM'       and
                                                       matnr ne 'PROMO-1'          and
                                                       matnr ne 'PROMO-2'          and
                                                       matnr ne 'PROMO-3'          and
                                                       matnr ne 'PROMO-4'          and
                                                       matnr ne 'PROMO-5'          and
                                                       matnr ne 'PROMO-6'          and
                                                       matnr ne 'PROMO-7'          and
                                                       matnr ne 'PROMO-8'          and
                                                       matnr ne 'PROMO-9'          and
                                                       matnr ne 'PROMO-10' ).
    v_fkimg = wa_xvbrp-fkimg .
    v_fkimg = v_fkimg / 1000.
                do v_fkimg times.
                  v_no_of_records = v_no_of_records + 1.
                  wa_zmigo-sr_no = v_no_of_records.
                  wa_zmigo-po_no = wa_xvbrk-vbeln.
                  wa_zmigo-item_no  = wa_xvbrp-posnr.
                 wa_zmigo-mblnr  = wa_xmkpf-mblnr.
                  wa_zmigo-doc_type = wa_xvbrk-fkart.
                  wa_zmigo-posting_date = wa_xvbrk-fkdat.
                  wa_zmigo-created_on = sy-datum.
                  wa_zmigo-created_time = sy-uzeit.
                 wa_zmigo-bill_lno = v_frbnr.
                  wa_zmigo-material = wa_xvbrp-matnr.
                 wa_zmigo-inv_no = wa_xvbrk-vbeln.
                 wa_zmigo-inv_item_no = wa_xvbrp-posnr.
                  wa_zmigo-plant = wa_xvbrp-werks.
                  wa_zmigo-inv_date = wa_xvbrk-fkdat.
                  wa_zmigo-customer = wa_xvbrk-kunag.
                  wa_zmigo-unit = 1.
                  wa_zmigo-mtype = '601'.
                  insert into zmigo values wa_zmigo.
                enddo.
                clear : wa_zmigo.
    endloop.
    clear : v_count,v_fkimg,wa_zmigo.
    refresh tab_zmigo[].
    clear v_no_of_inv.
    else.                              "When there are Split Invoices
    v_last_inv_no = wa_xvbrk-vbeln.
    v_vbeln_no = v_last_inv_no - v_no_of_inv + 1.
    v_first_inv_no = v_vbeln_no.
    sort tab_xvbrp by vbeln.
    loop at tab_xvbrp into wa_xvbrp  where (           matnr ne 'CDGSTP0001'       and
                                                       matnr ne 'CD-RW'            and
                                                       matnr ne 'CD-RW65OHS'       and
                                                       matnr ne 'CABLE'            and
                                                       matnr ne 'CD-R'             and
                                                       matnr ne 'CDQ80N4'          and
                                                       matnr ne 'GENERAL'          and
                                                       matnr ne 'NERO'             and
                                                       matnr ne 'OTHERS'           and
                                                       matnr ne 'SPARE PARTS'      and
                                                       matnr ne 'PROMO ITEM'       and
                                                       matnr ne 'PROMO-1'          and
                                                       matnr ne 'PROMO-2'          and
                                                       matnr ne 'PROMO-3'          and
                                                       matnr ne 'PROMO-4'          and
                                                       matnr ne 'PROMO-5'          and
                                                       matnr ne 'PROMO-6'          and
                                                       matnr ne 'PROMO-7'          and
                                                       matnr ne 'PROMO-8'          and
                                                       matnr ne 'PROMO-9'          and
                                                       matnr ne 'PROMO-10' ).
    v_fkimg = wa_xvbrp-fkimg .
    v_fkimg = v_fkimg / 1000.
                do v_fkimg times.
                  v_no_of_records = v_no_of_records + 1.
                  wa_zmigo-sr_no = v_no_of_records.
                  wa_zmigo-po_no = v_vbeln_no.                      "wa_vbrp-vbeln.
                  wa_zmigo-item_no  = wa_xvbrp-posnr.
                 wa_zmigo-mblnr  = wa_xmkpf-mblnr.
                  wa_zmigo-doc_type = wa_xvbrk-fkart.
                  wa_zmigo-posting_date = wa_xvbrk-fkdat.
                  wa_zmigo-created_on = sy-datum.
                  wa_zmigo-created_time = sy-uzeit.
                 wa_zmigo-bill_lno = v_frbnr.
                  wa_zmigo-material = wa_xvbrp-matnr.
                 wa_zmigo-inv_no = v_vbeln_no.
                 wa_zmigo-inv_item_no = wa_xvbrp-posnr.
                  wa_zmigo-plant = wa_xvbrp-werks.
                  wa_zmigo-inv_date = wa_xvbrk-fkdat.
                  wa_zmigo-customer = wa_xvbrk-kunag.
                  wa_zmigo-unit = 1.
                  wa_zmigo-mtype = '601'.
                  insert into zmigo values wa_zmigo.
                enddo.
                clear : wa_zmigo.
    at end of vbeln.
    v_vbeln_no = v_vbeln_no + 1.
    endat.
    clear : v_count,v_fkimg,wa_zmigo.
    refresh tab_zmigo[].
    endloop.
    endif.                             "End of first 2nd IF.
    clear : v_no_of_inv, v_vbeln_no.
    endif.
    ****************Sales return************************************
    if  wa_xvbrk-fkart = 'ZRRE' and wa_xvbrk-vtweg ne 'ZB'.
    loop at tab_xvbrp into wa_xvbrp where (            matnr ne 'CDGSTP0001'       and
                                                       matnr ne 'CD-RW'            and
                                                       matnr ne 'CD-RW65OHS'       and
                                                       matnr ne 'CABLE'            and
                                                       matnr ne 'CD-R'             and
                                                       matnr ne 'CDQ80N4'          and
                                                       matnr ne 'GENERAL'          and
                                                       matnr ne 'NERO'             and
                                                       matnr ne 'OTHERS'           and
                                                       matnr ne 'SPARE PARTS'      and
                                                       matnr ne 'PROMO ITEM'       and
                                                       matnr ne 'PROMO-1'          and
                                                       matnr ne 'PROMO-2'          and
                                                       matnr ne 'PROMO-3'          and
                                                       matnr ne 'PROMO-4'          and
                                                       matnr ne 'PROMO-5'          and
                                                       matnr ne 'PROMO-6'          and
                                                       matnr ne 'PROMO-7'          and
                                                       matnr ne 'PROMO-8'          and
                                                       matnr ne 'PROMO-9'          and
                                                       matnr ne 'PROMO-10' ).
             v_fkimg = wa_xvbrp-fkimg.
             v_fkimg = v_fkimg / 1000.
             v_tot_qty = v_tot_qty + v_fkimg.
              do v_fkimg times.
                v_no_of_records = v_no_of_records + 1.
                wa_zmigo-sr_no = v_no_of_records.
                wa_zmigo-po_no = wa_xvbrk-vbeln.
                wa_zmigo-item_no  = wa_xvbrp-posnr.
                wa_zmigo-doc_type = wa_xvbrk-fkart.
                wa_zmigo-posting_date = wa_xvbrk-fkdat.
                wa_zmigo-created_on = sy-datum.
                wa_zmigo-created_time = sy-uzeit.
                wa_zmigo-material = wa_xvbrp-matnr.
               wa_zmigo-inv_no = wa_xvbrk-vbeln.
               wa_zmigo-inv_item_no = wa_xvbrp-posnr.
                wa_zmigo-plant = wa_xvbrp-werks.
                wa_zmigo-inv_date = wa_xvbrk-fkdat.
                wa_zmigo-customer = wa_xvbrk-kunag.
                wa_zmigo-unit = 1.
                wa_zmigo-mtype = '651'.
                condense wa_xvbrk-xblnr.
                wa_zmigo-reference = wa_xvbrk-xblnr.
    ********Bill of lading no**
               select single bill_lno from zmigo_final into v_frbnr where inv_no = wa_xvbrk-xblnr and material = wa_xvbrp-matnr.
               if sy-subrc eq 0.
               wa_zmigo-bill_lno = v_frbnr.
               endif.
                insert into zmigo values wa_zmigo.
              enddo.
              clear : wa_zmigo,wa_xvbrp , v_fkimg, v_frbnr.
    endloop.
    endif.
    *******Invoice Cancellation*****************************
    if  wa_xvbrk-fkart = 'ZRS1' and wa_xvbrk-vtweg ne 'ZB'.
    delete tab_xvbrp[] where shkzg eq 'X'.
    loop at tab_xvbrp into wa_xvbrp where (            matnr ne 'CDGSTP0001'       and
                                                       matnr ne 'CD-RW'            and
                                                       matnr ne 'CD-RW65OHS'       and
                                                       matnr ne 'CABLE'            and
                                                       matnr ne 'CD-R'             and
                                                       matnr ne 'CDQ80N4'          and
                                                       matnr ne 'GENERAL'          and
                                                       matnr ne 'NERO'             and
                                                       matnr ne 'OTHERS'           and
                                                       matnr ne 'SPARE PARTS'      and
                                                       matnr ne 'PROMO ITEM'       and
                                                       matnr ne 'PROMO-1'          and
                                                       matnr ne 'PROMO-2'          and
                                                       matnr ne 'PROMO-3'          and
                                                       matnr ne 'PROMO-4'          and
                                                       matnr ne 'PROMO-5'          and
                                                       matnr ne 'PROMO-6'          and
                                                       matnr ne 'PROMO-7'          and
                                                       matnr ne 'PROMO-8'          and
                                                       matnr ne 'PROMO-9'          and
                                                       matnr ne 'PROMO-10' ).
             v_fkimg = wa_xvbrp-fkimg.
             v_fkimg = v_fkimg / 1000.
             v_tot_qty = v_tot_qty + v_fkimg.
              do v_fkimg times.
                v_no_of_records = v_no_of_records + 1.
                wa_zmigo-sr_no = v_no_of_records.
                wa_zmigo-po_no = wa_xvbrk-vbeln.
                wa_zmigo-item_no  = wa_xvbrp-posnr.
                wa_zmigo-doc_type = wa_xvbrk-fkart.
                wa_zmigo-posting_date = wa_xvbrk-fkdat.
                wa_zmigo-created_on = sy-datum.
                wa_zmigo-created_time = sy-uzeit.
                wa_zmigo-material = wa_xvbrp-matnr.
               wa_zmigo-inv_no = wa_xvbrk-vbeln.
               wa_zmigo-inv_item_no = wa_xvbrp-posnr.
                wa_zmigo-plant = wa_xvbrp-werks.
                wa_zmigo-inv_date = wa_xvbrk-fkdat.
                wa_zmigo-customer = wa_xvbrk-kunag.
                wa_zmigo-unit = 1.
                condense wa_xvbrk-zuonr.
                wa_zmigo-reference = wa_xvbrk-zuonr.
                wa_zmigo-mtype = '602'.
    ********Bill of lading no**
               select single bill_lno from zmigo_final into v_frbnr where inv_no = wa_xvbrk-xblnr and material = wa_xvbrp-matnr.
               if sy-subrc eq 0.
               wa_zmigo-bill_lno = v_frbnr.
               endif.
                insert into zmigo values wa_zmigo.
              enddo.
              clear : wa_zmigo,wa_xvbrp , v_fkimg.
    endloop.
    endif.
    clear : v_no_of_records.
    *}   INSERT
      CALL FUNCTION 'STACK_RESET'.
      R185D-DATALOSS = SPACE.
      FOLGEAUFRUF102 = SPACE.
      PERFORM SETPAR_INIT.
    *{   INSERT         RD1K903017                                        3
    *}   INSERT
      LEAVE.
    ENDFORM.
    This program is working fine for single user but in production where no of people are creating the invoices from different places the data is not getting updated in table ZMIGO.
    sometime populating with wrong data , partial data and sometimes no updation at all.
    I have used the table locking system enqueue and dequeue FM's before n after updation but still the same
    thing is happening.
    What could be the reason.
    Looking for help very urgent any other alternate option.

    Hi,
    Go thru these..
    Enhancement
    SDVFX009 Billing doc. processing KIDONO (payment reference numbe
    SDVFX010 User exit item table for the customer lines
    SDVFX011 Userexit for the komkcv- and kompcv-structures
    V05I0001 User exits for billing index
    V05N0001 User Exits for Printing Billing Docs. using POR Procedu
    V60A0001 Customer functions in the billing document
    V60P0001 Data provision for additional fields for display in lis
    V61A0001 Customer enhancement: Pricing
    SDVFX001 User exit header line in delivery to accounting
    SDVFX002 User exit for A/R line (transfer to accounting)
    SDVFX003 User exit: Cash clearing (transfer to accounting)
    SDVFX004 User exit: G/L line (transfer to accounting)
    SDVFX008 User exit: Processing of transfer structures SD-FI
    SDVFX007 User exit: Billing plan during transfer to Accounting
    SDVFX006 User exit: Tax line (transfer to accounting)
    SDVFX005 User exit: Reserves (transfer to accounting)
    Business Add-in
    SD_CIN_LV60AU02 BADI for billing
    If it is helpful rewards points
    Regards
    Pratap.M

  • User exit for VT01n (Creation of shipment)

    Hii All
    We have a requirement where we have to automatically enter the planned shipment  scheduled time & end time and date for each stage while saving the shipment.
    Can anyone let me know user exit which can be used to do the same.
    Thanks & Regards
    Gaurav

    Hi,
    You can use V56FSTAT this user exit for your purpose..
    If you want more selection of user exits you goto transaction SMOD and input V56* and then press F4,so that you can see all the user exits can be used for shipment or transportation purpose...
    Regards,
    Chandra

  • User Exit for employee creation

    Hi,
    I want to know the user exit which is called whenever the employee is created and employee number is generated.
    I found one user exit as below:
    EXIT_SAPMP50A_001
    Is it correct?
    Please advise.
    Regards
    Manish Jaiswal

    Hi Manish,
    PFB the correct user exits for the same.
    EXIT_SAPFP50M_001 - Customer Default Values for Personnel Administration and Rec
    EXIT_SAPFP50M_002 - Customer Checks for Personnel Administration and Recruitment
    Regards
    Bala

  • User exit for PR creation

    Hi expert,
    Are there some user exit that i can used for PR creation? I need this exit to set default value for certain field at item level when create PR.
    Please advise.
    Thanks
    Message was edited by:
            ari harsyanto

    Hi,
    Have you checked the components of enhancement: MEREQ001?
    Please check. Hope this helps.
    Best Regards, Murugesh AS

  • User exit for delivery creation in VL10B/VL10G-

    Hi,
    Is there any exits available for restricting the document type while the deliveries are selected/processed using VL10B/VL10G - delivery creation in background.
    Scenario is when deliveries are created for STO's,the delivery is to be created for a selected document types(EKKO - BSART).Other types of document types have to be ignored when the delivery is created in background.
    Regards
    Deepak

    Hello Deepak
    You handle this through configuration while setting up Stock Transport Orders in MM.
    Path:  IMG/Materials Management/Purchasing/Purchase Order/Set up Stock Transport Order/Assign Delivery Type and Checking Rule
    Here you a Delivery type for a combination of Plant and PO type. So those PO types which you don't want to be included for delivery creation will not figure in this assignment. I don't think you should go down  the user exit route.
    If you still need to explore user exits, look at OSS note 198137 for a list and purpose of VL10X based exits.
    Hope this helps.

  • 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 Equipment Creation

    Hi all,
    During Equipment creation I want to check whether the equipment for the current licence number or chassis number is already available,if yes i want through an error message as 'Equipment already created for this license number',else i want to proceed for the equipment creation..is there any USER EXIT or BADI to do this...
    Regards
    Sugumar G

    Hi
    cut and paste the code in se38 and execute and give the transaction code for which u need the exit
    *& Report  ZVBUSEREXIT                                                 *
    REPORT  ZVBUSEREXIT .
    TABLES : TSTC, "SAP Transaction Codes
             TADIR, "Directory of Repository Objects
             MODSAPT, "SAP Enhancements - Short Texts
             MODACT, "Modifications
             TRDIR, "System table TRDIR
             TFDIR, "Function Module
             ENLFDIR, "Additional Attributes for Function Modules
             TSTCT. "Transaction Code Texts
    *& Variables
    DATA : JTAB LIKE TADIR OCCURS 0 WITH HEADER LINE.
    DATA : FIELD1(30).
    DATA : V_DEVCLASS LIKE TADIR-DEVCLASS.
    *& Selection Screen Parameters
    SELECTION-SCREEN BEGIN OF BLOCK A01 WITH FRAME TITLE TEXT-001.
    SELECTION-SCREEN SKIP.
    PARAMETERS : P_TCODE LIKE TSTC-TCODE OBLIGATORY.
    SELECTION-SCREEN SKIP.
    SELECTION-SCREEN END OF BLOCK A01.
    *& Start of main program
    START-OF-SELECTION.
    * Validate Transaction Code
      SELECT SINGLE * FROM TSTC WHERE TCODE EQ P_TCODE.
    * Find Repository Objects for transaction code
      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 = ENLFDIR-AREA.
            MOVE : TADIR-DEVCLASS TO V_DEVCLASS.
          ENDIF.
        ENDIF.
    * Find SAP Modifactions
        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.
    * Take the user to SMOD for the Exit that was selected.
    AT LINE-SELECTION.
      GET CURSOR FIELD FIELD1.
      CHECK FIELD1(4) EQ 'JTAB'.
      SET PARAMETER ID 'MON' FIELD SY-LISEL+1(10).
      CALL TRANSACTION 'SMOD' AND SKIP FIRST SCREEN.
    Regards,
    V.balaji
    Reward if usefull

  • 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

  • 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.

Maybe you are looking for

  • Purchase req. for STO -in Third Party Sales order .

    Hi gurus, Is it possible if i create a sales order a purchase requisition should be genarated. the normal third party PR we can not convert in to STO and   account assignment  catagory "M" is coming in PR but  in case  of STO Pur req. that is not req

  • 10.4.3 update destroys portrait lid closed mode with cinema display

    The 10.4.3 update destroys the ability to use an external cinema display in closed lid mode. In particular using the rotate by 90 degrees option. Once set the external display goes nuts and can not be set back to landscape -- even in open lid mode. Z

  • Help with Pivot

    Hi, I have a table tblQAStatusHistory with the following Data:- ItemID QAStatus Timestamp Username 1 ReviewSeries 01/16/2014 Carrie Oakey 1 LockedSeries 01/17/2014 Barry Cade 1 Review 01/17/2014 Russel Sprout 1 Locked 01/18/2014 Polly Ester 2 ReviewS

  • CS4 Fill and stroke option in primitive shapes not showing wtf!

    Hi, just moved up to cs4 and it's all ready starting to bring the pain. When drawing with the primitive shape or any shape, the fill and stroke propertoes along with say rectangle options are not showing in the properties tab!! anyone please! I thoug

  • Maintenance Mode Does not end

    We have an issue where MM never ends at the scheduled time. This just started happening about 2 days ago and we arent sure what caused it, but it looks like the stored procedures in SQL have stopped. So I'm looking for advice on how to start those ba