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

Similar Messages

  • Change employee group via user exit ?

    Hello,
    I would like to know if it is possible to change the field
    PSPAR-PERSG in infotype "action" -0000
    via user exit ZXPADU01/2 ?
    When I get p0000-MASSN = 10 ,i need to move 0 to
    PSPAR-PERSG but via the user exits it is not possible.
    Only when I debug and put in PSPAR-PERSG  the value 0 it works.
    Please let me know if there is away ...
    Thank you,
    Boaz

    Hi,
    Customizing 0184 could not met our requirements.
    We need to keep the original settings (ELN...), and we'd like to change the inbounde delivery item category according to specific purchase order informaiton, so MV50AFZ1 is required.
    Kindly please advise again.
    With regards.

  • 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

  • Error in number range while testing inbound idoc via we19

    hi all,
    i have done all configurations but while testing the inbound idoc via we19 i am getting an error 'error in assigning number to idoc'..i checked and found that the number range object for idoc is edidoc in it number interval is defined from 1 to 99
    i dont think that anything is wrong with the number object..
    Can u tell me how dow i eliminate this error?

    Increase Higher limit the reason is when you look at current idoc number ( This idoc number already exists ) ,it will not create new idoc number.
    System will get the number from SNRO Based on IDOC Object.
    Just look at EDIDC and see the current idoc number.
    Simple example :
    I have one number - 100 ,it is already exists in database,if i insert same record to the database ,did system will accept ?
    Thanks
    Seshu

  • Shipment cost - change customization of item categories via user exit

    hey ,
    is it possible to manpiulate the item categories customization to open manually/ automaticly via  user exit
    even if i customized them to open manually ?
    for example :
    if the shipment type is X - open manually , else automaticly .
    Regards
    ASA  .
    Edited by: ASA MOKED on Dec 23, 2009 11:38 AM

  • Testing Inbound IDoc via WE19...

    Hi,
    I am trying to learn IDOCs via WE19.
    I just took a sample IDOC from WE02 and tried to test in WE19.
    I am trying to understand what do we mean by following:
    1) Process Inbound IDOC via file ?
    2) Process Inbound IDOC via function module ?
    Regards,
    Rajesh,

    Rajesh,
    Go thru this link
    http://www.sapgenie.com/sapgenie/docs/ale_scenario_development_procedure.doc

  • 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

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

  • Best practice on integration message augmentation via user exit or rfc call

    I am looking for documentation that would provide best practices on whether to use user exits to augment the data on an IDOC or to forward the standard SAP produced IDOC to PI where rfc calls are made to augment the data as required for the specific target system.
    I am sure there are pros and cons for both solutions, but I am hesitant to use user exits since we now have moved the knowledge of what a target system wants from the integration layer to the source layer.  If a second target system comes along in the future, the user exit becomes more complicated with additional target specific requirements. 
    Any links to best practice documentation on this subject is greatly appreciated.
    Edited by: Sean Sweeney on Oct 15, 2009 6:59 PM

    Hi Steve,
    Might be trying for solution for a long time, If i understood your question clear let me clarify you few points.
    You are trying to access the bex query which is designed with the exit's in the background based on the logic and trying to call the entire dimensions and key-figures in a single connection. Then you are trying to map those data in the charts.
    Steve, try to make more connections based upon the logic and split them. use the same query but split them by sales per customer group, sales per day, sales per week by making three different connections and try. You can merge the prompts from all connections.
    Hope this Helps!!!
    Sorry if i misunderstood your question.
    --SumanT

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

  • 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

  • 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

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

  • Need to change SD Pricing Procedure or Doc Pricing Procedure via User Exit

    I have a need to override the SD Pricing Procedure that is determined via standard Pricing Determination Config.....what user exit
    can I use to accomplish this...
    OR
    is there a user exit prior to the Pricing Determ code that I can use to override the Doc or Customer Pricing Procedure that would
    have been retrieved from the Order Type and Customer Master
    Thank you for any prompt replies.
    I'm on SAP ECC 6.00

    Dear John
    Try with any of these User Exits
    -  USEREXIT_PRICING_CHECK (module pool SAPMV61, program MV61AFZA)
    -  USEREXIT_CHANGE_PRICING_RULE (module pool SAPMV61A, program MV61AFZA)
    thanks
    G. Lakshmipathi

  • Update Delivery qty via user exits

    Hello all,
    I need to replace the delivery qty that is copied from sales order with another qty during delivery creation (or) at the time of saving the delivery. I have tried replacing the field LIPS-LFIMG in various user exits. But none had updated the delivery qty(somehow SAP again replaces the new value with the original value). If you know how to update a delivery qty thru an user exit, please give me details.
    Thanks a lot

    Hi Bala;
       Have you tried this through the routines in transaction VOFM?  An example routine is in the VOFM menu path "Data Transfer -> Deliveries".  Check the code under routine 101, that may help you.
    Best Regards,
    John

Maybe you are looking for