Extend Idoc INVOICE02 - User exit ZXEDFU02

Hi All,
I am trying to extend a standard Idoc – <b>INVOICE02</b> with custom segment. I am trying to implement enhancement “LVEDF001” and FM “EXIT_SAPLVEDF_002”. But when I try to insert a program logic into program “ZXEDFU02” it complains “Statement not accessible” I am not sure what I am doing wrong here. Have anyone used this enhancement and any ideas?
Sample code will be very helpful, since this is the first time I am working on Idoc enhancement. Thank in advance.
Regards,
Tim

Saple Code:
  INCLUDE ZXEDFU02                                                   *
       data: ls_ka1 like e1edka1,
           ls_edidd like edidd,
           l_lines type i.
     describe table int_edidd lines l_lines.
     check l_lines ne 0.
     read table int_edidd into ls_edidd index l_lines.
     check ls_edidd-segnam eq 'E1EDKA1'  and
           ls_edidd-sdata(2) eq 'RS'.
     ls_ka1-parvw = 'ZC'.
     case xvbdkr-bukrs.
       when '1000'.
         ls_ka1-lifnr = '41010005823845840'.
       when others.
         exit.
     endcase.
     ls_edidd-sdata = ls_ka1.
     append ls_edidd to int_edidd.

Similar Messages

  • Extend Idoc IINVOIC - User exit ZXEDFU02

    Hi All,
    I am trying to extend a standard IDocs – IINVOIC with custom segment. I am using User Exit ZXEDFU02 populating segment data for FI Document posting  .
    Every thing is ok but I am facing problem when I am trying to multiple delivery assignments in FI Documents.
    Right now FI Document is generating through IDocs and assignment is only one delivery but I want multiple assignment in FI Documents if invoice have multiple Delivery.
    Could anybody help me.
    Thanx in advance.
    Regards,
    Vijay Maurya

    solved by changing user exit.

  • Adding lines to segment of Idoc in User Exit ZXEDFU02

    Hi!
    do I need to maintain Idoc in WE30 if I need to add some lines to one segment in User Exit ZXEDFU02?
    Here is my sample code placed in ZXEDFU02 for adding a line, but it is not making an effect:
    WHEN 'E1EDP01'.
        CLEAR E1EDP26.
        E1EDP26-QUALF = '003'.
        E1EDP26-BETRG = 777.
    or maybe it depends on Idoc that I use in We19?
    For example, if Idoc that I use in WE19 for testing my User Exit does not has qualifier 003 in segment E1EDP26... could it be a reason?
    Will reward,
    Mindaugas.

    Hi,
           Saple Code:
    INCLUDE ZXEDFU02 *
    data: ls_ka1 like e1edka1,
    ls_edidd like edidd,
    l_lines type i.
    describe table int_edidd lines l_lines.
    check l_lines ne 0.
    read table int_edidd into ls_edidd index l_lines.
    check ls_edidd-segnam eq 'E1EDKA1' and
    ls_edidd-sdata(2) eq 'RS'.
    ls_ka1-parvw = 'ZC'.
    case xvbdkr-bukrs.
    when '1000'.
    ls_ka1-lifnr = '41010005823845840'.
    when others.
    exit.
    endcase.
    ls_edidd-sdata = ls_ka1.
    append ls_edidd to int_edidd.
    Regards

  • User Exit ZXEDFU02 skipped in Inbound function module (WE19)

    Hi!
    when I choose Inbound function module in WE19, User Exit ZXEDFU02 is beeing skipped... or al least it seems so (not stopping at breakpoint in Exit).
    But I need to add some lines to a segment, so need this Exit.
    PS: I try to add some lines to Invoice List Idoc segment, Idoc type INVOICE02.
    Any ideas?
    Will reward,
    Mindaugas.

    If is outbound try following
    For outbound you have to use following way.
    1) Cllick header-->output
    2) Repeat output type
    3) Select output type and click Further data and select dispatch time to 1(Send with periodic schedule job).
    4) Save.
    5) Go to Transaction WE15 or execute RSNAST00 program
    6) Select your output type..input object key-->nothing but document number(eg..sales order number).
    select output type and transmission medium.
    7) Now breakpoint stop at your user exit.
    Let me know still if you have problem.
    Thanks,
    Narayan

  • Populating custom idoc thro user exit.

    Hi friends,
              How can i populate an custom idoc thro user exit?.I haven't done user exit earlier.So Pls let me know in detail.
    Thanks and regards.
    tharun

    Which standard Idoc did you extend? Is it outbound or inbound? Find out what the processing function module is. WEDI is the area menu transaction for all the IDoc related activities.
    Once you know the function module, you can then find out what the user exit that is there in it. Then you can go to CMOD and in the menu, click on SAP Enhancements and then click on more options in the selection screen. Enter your function module name in the component there and execute the report. See which enhancement it is included in. You can then create a project in CMOD, assign this enhacement and select the user exit and activate the project.
    Next within the function module, in the user exit function module, there will be an include. Double click on it and create upon prompt. After that, it is just your code to fill in the new segment and add it to EDIDD internal table of your function module.
    Srinivas

  • Testing User Exit ZXEDFU02

    Hi!
    I have made some modifications in User Exit ZXEDFU02, if to be more precise I have populated some more lines in segments of Idoc of Invoice List.
    And now I want to test it.
    The thing is that I do not know SAP SD, because I'm ABAP programmer and do not know how to check if my Invoice List changed after changing User Exit ZXEDFU02... any ideas?
    Help will be rewarded,
    Mindaugas

    Hi,
    Please go to transaction WE02/WE05 and search an IDoc number with the following criteria search and execute.
    Created on     --> 01.01.2007 to 11.06.2007
    Direction      --> 1 (Outbound)
    Current Status --> 03
    Basic Type     --> INVOIC02
    The system will show list of IDoc(s). Then you select one IDoc and go to transaction WE19 and enter existing IDoc with the above selected IDoc and click on execute button. Next enter '/h' in command field, press enter and click on standard outbound processing. System will take you to ABAP debug mode. Then go to menu: Breakpoints -> Breakpoint at -> Function Module -> EXIT_SAPLVEDF_002. Then click on Run button (F8) ... and system will stop at the above user exits. From here you can debug through your codes.
    Regards,
    Ferry Lianto

  • IDoc from User Exit

    Hi,
    Can you please give some idea or some useful links for information on generating IDocs from User Exits.
    For example, while creating a Sales Order I need to trigger an IDoc with the document number, plant, partner functions, and netvalue to the PI system. Please give some inputs for the same.
    Regards,
    Renjith

    Make the settings for IDoc processing (partner profiles, ports, destination, etc) fill the IDoc structure and call function module master_idoc_distribute  
    Also have a look at documentation:
    http://help.sap.com/erp2005_ehp_04/helpdata/EN/78/21783151ce11d189570000e829fbbd/frameset.htm

  • Restricting user exit ZXEDFU02 to one customer in WE20

    I'm new to SAP. I've just written a code in user exit 002 (include zxedfu02) for the bill-to party invoice IDOC generation (FUNCTION IDOC_OUTPUT_INVOIC). My code is working perfectly. The only problem is I would like to restrict the use of this user exit to only one of my customers. From my understanding once I've programmed the user exit, every IDOC that is generated using IDOC_OUTPUT_INVOIC will perform my user exit, however I would like to be only executed for one partner. How do I do this?
    If possible, please post a step by step solution to my problem, I would really appreciate your help.
    Thanks in advance.
    Edited by: mrisad on Jul 29, 2010 4:21 PM

    Hello Mrisad,
    As per your input, your exit function module EXIT_SAPLVEDF_002 contains CONTROL_RECORD_OUT as the import parameter.
    Within your include please check the value of the following(which are the reciver related values) in the debugging mode.On top of your current code you can add this check, and include ur current code within this check.
    RCVPOR
    RCVPRT
    RCVPRN
    RCVSAD
    RCVSMN
    RCVSNA
    RCVSCA
    RCVSDF
    RCVSLF
    RCVLAD
    Hope this will help you..
    Regards,
    Antony Thomas

  • PO outbound message control - Condition record / PO IDOC outbound user exit

    Guys,
    I have a system with PO outbound message control sending PO idocs to a unique plant that is set up as a customer in the partner profile. I am using a custom message type and RSEOUT00 to send my idocs with custom message type to this plant. This interface works fine. Now my requirement has changed. I need to send PO's to varying plants (depending on the plant in PO item- all items on my POs belong to same plant).
    I noticed that i cannot create condition tables with PO type and Plant combination. (SAP Note 457497 .Q-34).
    So I have decided to populate all my PO idocs with a generic receiving partner number '9999' and planning to change this somewhere in a user exit. I found an user exit which looks helpful.
    EXIT_SAPLEINM_001 .  FM
    MM06E001 - Enhancement.
    But somehow this exit is not triggered in during PO creation ME21N or change Me22N/Me22.
    Is this because I am using a custom message type instead of standard message type ? (I still use the process codes Me10/Me11). Would this matter ? When should this user exit trigger (during creation of idocs in status 30 or when i run RSEOUT00 to sweep these idocs in status 30 to status 03) ? Any tips will be useful.
    THanks.
    Edited by: Shareen Hegde on Jul 21, 2008 10:13 PM

    I found a OSS note -Note 457497 (Q&A # 34), which talks about the same . This was my assumption too. I was just confused because I saw plant(WERKS) in the field catalag of the access sequence.
    I don't know what header field I can use to map the plant (I agree its a good idea to do this). But I have decided to do it another way. I will change the receiving partner on the control record depending on the plant in an user exit
    -  EXIT_SAPLEINM_001.
    Thanks for your answer , Mahesh.

  • How can I test the IDOC ORDERS05 user exit EXIT_SAPLEINM_002?

    We used user exit EXIT_SAPLEINM_002 for changing the PO IDOC values.
    When I repeated the PO message to create new PO IDOC, I can not stop the process at the user exit EXIT_SAPLEINM_002. Is there any way to debug the PO IDOC creation at the point of user exit EXIT_SAPLEINM_002, so I can see how the user exit EXIT_SAPLEINM_002 works at run time?
    Thank you in advance!
    Fisher Li

    Hi
    Put a debug point at include ZXM06U02 in user exit EXIT_SAPLEINM_002.
    In your PO go to header tab -> output and set ur output type to periodically scheduled job because if that output type is send immediately it will not stop at break point. So select your output type press button Further data and set it to peridically scheduled job.
    Then go to we15 give ur application as EF, your Po number and your output type then execute. It will stop at that user exit.

  • Sample code  ale/idoc n user exits

    Hi
    could any one post me two objects each for ALE/IDOCs and Enhancements with explanation about business scenarios ,complete code plz....

    I do not see any FM idoc_input_deladv1   ,but i see FM IDOC_INPUT_DELVRY
    There are user exits related to FM IDOC_INPUT_DELVRY
    Check the enhancement : V55K0001
    FM : EXIT_SAPLV55K_001
    Check the enhancement : V55K0002
    EXIT_SAPLV55K_002
    Check the enhancement : V55K0003
    EXIT_SAPLV55K_003
    Thanks
    Seshu

  • PORDCR - Inbound IDOC via User-Exit

    Hi All,
    I would like to create a Purchase Order via an inbound Idoc with a message type PORDCR.
    I would like to make use of the enhancement MM06E001 and the function module EXIT_SAPLEINM_002 to populate data segments.
    Please advise if this is the correct user-exit to process an inbound idoc.
    Any input appreciated.
    Meghna

    Hi Meghanarrao,
    IDOC_INPUT_ORDRSP-->PERFORM fill_data_ordrsp-->and find the below user exits for each segment...
    List of user exits available for --
    EXIT_SAPLEINM_001   
    EXIT_SAPLEINM_002   
    EXIT_SAPLEINM_003   
    EXIT_SAPLEINM_004   
    EXIT_SAPLEINM_005   
    EXIT_SAPLEINM_006   
    EXIT_SAPLEINM_007   
    EXIT_SAPLEINM_008   
    EXIT_SAPLEINM_009   
    EXIT_SAPLEINM_011   
    EXIT_SAPLEINM_012   
    EXIT_SAPLEINM_013   
    EXIT_SAPLEINM_014   
    EXIT_SAPLEINM_015   
    EXIT_SAPLEINM_016   
    EXIT_SAPLEINM_017   
    EXIT_SAPLEINM_018   
    EXIT_SAPLEINM_019   
    EXIT_SAPLEINM_020   
    IDOC----- Dir -Enhancemnt --Description
    ORDCHG -O -MM06E001   -- Purch. Ord. Change
    ORDCHG- I -VEDB0001     --Sales Ord. Change
    ORDERS- O -MM06E001   --Purchase Orders
    ORDERS -I- VEDA0001     --Sales Orders
    ORDRSP -O- SDEDI001    --Order Confirmation
    ORDRSP -I- MM06E001    --Order Response for Purchase Order   "This is the Right one for Purchase order create
    IDOC           Msg        ANSI EDIFACT I O
    ORDERS01 ORDCHG 860 ORDCHG X X
    ORDERS01 ORDERS 850 ORDERS X X
    ORDERS01 ORDRSP 855 ORDRSP X X
    IDOC_INPUT_ORDRSP--Function module-BUS2012-Inbound-Purchase order / order confirmation
    regards,
    Prabhudas

  • Extended Idoc - User exit for delivery VL01 and Invoice VF01

    Hi Experts,
    We are developing Extended Idoc for order - cash cycle.The extended Idoc contains 4 extra fields.
    I want to know the User exits where i can populate the extended segment field values for VL01 and VF01 transactions.

    HI
    exits available for  VL01.
    VMDE0004                                Shipping Interface: Message SDPACK (Packing, Inbound)
    VMDE0003                                Shipping Interface: Message SDPICK (Picking, Inbound)
    VMDE0002                                Shipping Interface: Message PICKSD (Picking, Outbound)
    VMDE0001                                Shipping Interface: Error Handling - Inbound IDoc
    V53W0001                                User exits for creating picking waves
    V53C0002                                W&S: RWE enhancement - shipping material type/time slot
    V53C0001                                Rough workload calculation in time per item
    V50S0001                                User Exits for Delivery Processing
    V50R0004                                Calculation of Stock for POs for Shipping Due Date List
    V50R0002                                Collective processing for delivery creation
    V50R0001                                Collective processing for delivery creation
    V50Q0001                                Delivery Monitor: User Exits for Filling Display Fields
    V50PSTAT                                Delivery: Item Status Calculation
    V02V0004                                User Exit for Staging Area Determination (Item)
    V02V0003                                User exit for gate + matl staging area determination (headr)
    V02V0002                                User exit for storage location determination
    V02V0001                                Sales area determination for stock transport order
    For VF01..
    Enhancement
    V61A0001                                Customer enhancement: Pricing
    V60P0001                                Data provision for additional fields for display in lists
    V60A0001                                Customer functions in the billing document
    V05N0001                                User Exits for Printing Billing Docs. using POR Procedure
    V05I0001                                User exits for billing index
    SDVFX011                                Userexit for the komkcv- and kompcv-structures
    SDVFX010                                User exit item table for the customer lines
    SDVFX009                                Billing doc. processing KIDONO (payment reference number)
    SDVFX008                                User exit: Processing of transfer structures SD-FI
    SDVFX007                                User exit: Billing plan during transfer to Accounting
    SDVFX006                                User exit tax line in transfer to accounting
    SDVFX005                                User exit reserves in transfer to accounting
    SDVFX004                                User exit G/L line in transfer to accounting
    SDVFX003                                User exit cash clearing in transfer to accounting
    SDVFX002                                User exit for A/R line in transfer to accounting
    SDVFX001                                User exit header line in delivery to accounting
    J_3RSINV

  • Create Idoc in a User Exit

    Hello everyone,
    we have a requirement where we want to create and send an idoc out through a user exit.has anyone done anything like this before?i think it is possible.if anybody has any headup on how to do it please let me know.ok yea i know the function module which is to be used.its idoc_output_inotif.there is a tcode INOT which sends the idoc out but OSS says we cant use it 4.6c onwards and thats the reason this need of creating an idoc in user exit arises.
    i have tried executing the FM independantly and punching in a few values and i saw that it created an idoc in the system.so my guess is, if i can call this FM in one of the user exits for the transaction IW51/52, and pass all the needed values i should get an idoc.
    if anyone has manually created an idoc in a user exit please suggest me some options.
    thanks a lot.

    Hi Sanket ,
    Distribution Model is required when you use message control to send IDOCS . Since you are triggering your IDOC in a uaer exit , a distribution model is not required . Simple create a partner profile in WE20 and assign your message type in outbound parameter. You need not fill the message control parameters in WE20.
    ( If you use message control , the process code links the respective FM like  idoc_output_inotif in your case ).
    But in your case you will have to trigger your IDOC in user exit . You have two options here -
    First Try -  idoc_output_inotif in the user exit to fill the segments , then use  FM MASTER_IDOC_DISTRIBUTE to trigger the send process.
    If this  does not work then use
    L_IDOC_HEADER_CREATE -Once
    L_IDOC_SEGMENT_CREATE ( Once for each segment ).
    ( This will create IDOC on data base )
    L_IDOC_SEND - Once to trigger the IDOC created above.
    Hope this helps .
    Cheers

  • User exit while saving Service Purchase Order

    i want to update one z table from the Service PO, after saving. Hence i require , an user exit, which will give the details of the service tab , of the PO. I am not able to get any exit, where the details of the Service tab, of the transaction me22n.
    Below is the screen of the Service tab of the purchase Order Screen :
                                                                                    <b>Line      DeService numbShort text                   Quantity          Uni    Gross priceCr
        10          3000001     Sub-Con Recruitment Commissio91                DAY1,249.00       IN
        20          3000001     Sub-Con Recruitment Commissio91                DAY1,249.00       IN</b>

    hi,
    check this out .
    Transaction Code - ME21 Create Purchase Order
    Exit Name Description
    AMPL0001 User subscreen for additional data on AMPL
    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
    LMEKO001 Extend communications structure KOMK for pricing
    LMEKO002 Extend communications structure KOMP for pricing
    MM06E011 Activation of PReq Lock
    No of Exits: 38
    Kishi.

Maybe you are looking for

  • Support for n-channel icc-profiles

    I have recently attended a symposium where some speakers touched on Photoshop's (or the whole CS') lack of support for n-channel ICC-profiles. And (while I have to admit that the ramifications may be beyond my comprehension) the point seems very much

  • How to set up an automatic upper case at the begining of a sentence

    Can someone help me if or how to set up an automatic upper case at the beggining of each sentence. I am doing huge amount of writing and just got fed up with it.

  • I have lost Mail on my IMac following restoration from backup

    I have lost Mail from my Imac and cannot seem to be able to get it back any suggestions.  I am operating on MAC OS X 10.6.8

  • Convert placed vector to jpg in INdd file?

    I am trying to shrink the file size of an InDesign file. I havecut & pasted very detailed and complicated vector graphics into the file from illustrator. I think this is making the file bigger than it needs to be. Is there a way to convert those past

  • Mise à jour OS MacPro ?

    Bonjour, Je souhaiterai mettre à jour mon OS sur mon MacBook Pro. Actuellement je suis sous la version 10.5.8 Je voudrais connaître les modalités pour avoir la dernière version de sortie. Merci par avance de votre aide et de vos réponses. Cordialemen