Idoc - Idoc Scenario - Call User-Exit

Hi,
I have an Idoc - Idoc scenario and after receiving the Idoc in the receiver system, I have to call an user-exit, what is the best way to do this?
Or is it possible to do this?
-naveen.

Hi Naveen,
   Nice to see here,I think you can do the above scenario by using BPM,i guess we can achieve by using the BPM.
  Please proceed with BPM,If you have got stuck in the middle please update the issue so that I can help you out my level best.
Thanks in Advance.
Chandu

Similar Messages

  • 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

  • Using HR_INFOTYPE_OPERATION dont call user exit

    Hi ,
    I need to write BAPI that create entry in infotype .
    I am using FM "HR_INFOTYPE_OPERATION" ...
    This FM don't call the user exit EXIT_SAPFP50M_002 ....
    Am i using the FM correctly ?
    How can i use the FM with the user-exit .
    Thanks .

    Hi,
    Why do you want to call user-exit. What it your requirement?
    Regards,
    Atish

  • Inbound Delivery IDOC-DELVRY03; Right User Exit? WMTC1D01 IDOC for STOs??

    Hi Experts,
    The scenario is:
    As soon as the user saves the DELIVERY in external_system, flat file is sent to Gentran, where its transfrred to IDOC and then, this IDOC is directed to SAP.
    So, this Inbound_Delivery_IDOC- - DELVRY03 will be received by SAP system and updates the delivery related stuff in SAP system.
    So, here, AT THIS POINT,
    1)I need to capture this IDOC of Inbound_Delivery_IDOC - DELVRY03,
    2) Need to check its(Inbound_Delivery_IDOC) MESSAGE CODE for TOA
    3) If its TOA, I need to UPDATE the associated Stock Transfer Order/STO(record in LTAK, LTAP tables) stuff through IDOC of WMTCID01
    so, let me know that,
    1) Wht is the User Exit, I need to look, Which User Exit is correct? I mean, At Wht point I need to add my code in this whole process?
    2) How to execute the UPDATED WMTC1D01 IDOC of Stock Transfer Order-STO?
    thanq

    no reply

  • Can I create new IDOC segmemnt in user exit( edidd structure ) forcefully ?

    RFFOEDI1 is the standard driver program  which call the below user exit zxf08u06...
    Am programing user exit ZXF08U06...
    In user exit zxf08u06, actually edidd structue contains all the segments...
    In user exit zxf08u06, I am reading each segment which are in edidd structure, pulling required data from database and passing this data into this segment, so that this data appears in the IDOC's segments (we02).
    Now I need to create one new segment which is not there in edidd structure.
    Still I inserted this new segment and updated data. This new is coming in IDOC out put But IDOC was crested with error . Am I not supposed to create new segment whcih was not there in edidd structure forcefully ?
    MUCH THANKS IN ADVENCE.

    Hi
    Go thru the bellow links
    http://www.netweaverguru.com/EDI/HTML/IDocBook.htm
    http://www.netweaverguru.com/EDI/HTML/IDocBook.htm#_Toc8400365
    http://www.thespot4sap.com/Articles/SAP_ALE_IDOCS.asp
    Thanks
    Sunil

  • Excluding idoc processing from user exit code

    Hi all,
    In a user exit (for VA01 Create Sales Order) we are currently excluding certain order types by hardcoding the document type in the code. This is because some orders are created by IDoc and in this case the IDocs fail if they use the eser exit code (because the code creates pop-up messages intended for online users only). Not the best solution.
    Does anybody know if we can use different code so that this part of the user exit does not get triggered by IDocs?
    Thanks,
    Mike

    I've figured out another solution - you can do a test on the field IDOC_NUMBER. If it is filled, then the sales order is created/changed via an Idoc.

  • Add ordered quantity to delivery note idoc desadv01 with user exit

    Hi,
    I am using the IDOC DESADV01 to output electronic delivery info when a user PGIs on a delivery note.
    The problem is I need some extra data like the original order qty, this exists in field VBAP-KWMENG
    So I think I would need to extend the idoc and do some kind of user exit to populate the value into the new idoc field.
    Unfortunately I have no experience with this, can anybody advise if its the correct way and how to get started?
    With thanks
    Rob.

    I apologies our system is totally different based on that I suggested.
    But current I guess you have to extend idoc.
    Below link is helpful for extending idoc.
    Let me know if still if you face any problem.
    http://www.intelligententerprise.com/channels/applications/feature/archive/kasturi.jhtml
    Thanks,
    Narayan

  • Cash Sales other other scenario with user exits

    Hello Experts,
    I am trying to learn more examples of Cash Sales , Returns order processing scenarios especially where user exit is used to enhance the functionality.
    Kindly provide a simple example to illustrate why and how which user exit is used and what kind of functionality is added in the exit .
    I wish you all a good day!
    regards
    John

    Hi,
    Any sales order processing is same and userexits will use when standard SAP is not supported the client requirment.
    Cash sales do not have credit management & delivery will create once order is saved.
    We did some changes in userexit for return orders where storage location need to determine when order type is RE and mainatin the storegae loctaion on some Z tables.
    Hope this will help you

  • Dynamic Call --- User Exit/Function Module

    Hi All,
    We have a User Exit/Function Module which is called dynamically. This is configured and we are missing its configuration path. Could any of you guys let me know more details where this configuration could reside ?
    Thanks much
    Raghu

    Hi,
    When this function module CALL FUNCTION LT_TRWPR-FUNCTION is called, it automatically goes into a Z_XXXXXXXXX function module.
    This function module is called in all transactions where financial postings could happen, however to be precise i would say at the time of Vendor invoice postings.
    Eg: Tcodes MIRO, FB60.
    Thanks
    Raghu Kolla

  • User Exit IDOC creation - When purchase order gets created

    Hi All,
    The requirement is whenever user creates a Purchase Order in the current SAP system an IDOC needs to get created and be sent to another SAP system where a Sales Order will be created.
    Can anybody suggest the correct User exit/enhancement at the time of Purchase order creation which could be used ?
    Also the function modules for creating the IDOCs within the user-exit.
    Thanks for your help.

    Hi Meghna,
    Your requirement is SAP standard function which means you don't have to use any user exit.
    What you need to do is configure output control, then when a PO saved, a idoc will send to vendor automaticly.
    Here is a step brief
    1. configure output type in NACE
    2. Add condition record in NACE
    3. Setup partner profile in WE20
    if you need detailed doc, give me your email, I can send you.
    Regards,
    Brown

  • Inbound idoc values when updated from user exit not saved

    I'm trying to process some user exits of an inbound idoc from WE19.
    The values get correctly populated to IDOC_DATA internal tables of IDOC_INPUT_ORDRSP function module in debug kode
    but when the new idoc is generated from WE19 , those segment values (populated by exit) are not shown/saved.
    The user exit is EXIT_SAPLEINM_007.
    Is it not possible to populate segment values of inbound idocs from using user exits. If yes , then during testing using WE19 , every time a new idoc is created it should display those values into the concerned segments. Please help.

    Hello,
    yes is possible it ...
    I think the problem is:
    or
    you have something wrong when to append the new line on internal table
    or
    the exit used is not correct: read the documentation on EXIT_SAPLEINM_0**

  • Can the user exit  EXIT_SAPMM07M_004 be called from an FM exit in my code?

    Hi ,
    When I create a Goods Receipt by tx MB1C , an MM adapter(FM user exit) is kicked off in my workspace creating documents wrt to that goods receipt.However if a batch does not exist during MB1C , it says that a batch would be created.But when i do a save , the user exit is kicked off before it returns to the SAP code to create a batch.As a result no MM documents are created in my workspace.Now I want that the batch be created while in my user exit and I want to implement the customer user exit EXIT_SAPMM07M_004(for copying the batch characteristics) .Is it possible to call this exit from my code?Kindly suggest.

    > When I create a Goods Receipt by tx MB1C , an MM adapter(FM user exit) is kicked off in my workspace creating documents wrt to that goods receipt.However if a batch does not exist during MB1C , it says that a batch would be created.But when i do a save , the user exit is kicked off before it returns to the SAP code to create a batch.As a result no MM documents are created in my workspace.Now I want that the batch be created while in my user exit and I want to implement the customer user exit EXIT_SAPMM07M_004(for copying the batch characteristics) .Is it possible to call this exit from my code?Kindly suggest.
    Can you call the user exit? - Yes ofcourse.... but why dont you just add the same code that is in your exit instead of calling the user exit?
    User exits are developed and called from appropriate places where sap can take the changes and apply to the transaction. there is no restriction on calling the user exit (atleast programmatically) but you need to think 100 times before you call the user exit.
    For example, you want to call user exit 'A' in your program because you want to use the code in this user exit in your program '1'. Why dont you just write the code in program '1' with what is in user exit 'A' ?
    Calling user exit in your program does not really helps. Better find out different ways. once again, user exits are embedded in sap business applications and remember they are not independent FM's as you think
    Good luck

  • Call a user exit

    Hi,
    I have a need to call user exit USEREXIT_SOURCE_DETERMINATION in MF45AFZB everytime the requested delivery date are changed on an order item. I only pass the UE once, when I press ENTER.
    How do I do that?
    best regards,
    Glenn Karlsson

    No need for this anymore

  • User exit Scenario

    Hi All,
    I have a scenario for user exit, I have to add custom search help to the standard VA02 screen field incoterms 2. Incoterms lies in the header as well as item level.....Please help me out....
    Thanks in advance........

    Hi,
    Goto SE11 and create Search help exit if search helpexit is already there for incoterms.
    If it was not there create your own search help and assign this in CMOD by user exit

  • User exit not getting triggered while creating the vendor

    Hi all,
    I wanted to extend the idoc(crermas01) according to my reqiurement.
    But when I am trying to create a vendor using the IDOC cremas01 the user exit EXIT_SAPLKD01_001 is not getting triggered.
    Can anybody tell me the reason why it is happening so...........
    Thanks and regards,
    Vinil.

    Is your Idoc generated after the execution?
    Where is you break-point, it is inside EXIT_SAPLKD01_001. Please note FM EXIT_SAPLKD01_001 will not be called unless it is implemented using project (CMOD) and project is active.

Maybe you are looking for