Posted on 2006-04-19
Last Modified: 2013-12-08
I am using this FM to create IDOCs to post immediately to application. I have the 'Trigger immediately' option set on the partner profiles for customers.
But while creating the order, the IDOC fails to commit and ends up with status 51. The message is the last message the application throws while creating the order. Does anyone have any clue ?
I have set the parameter 'ONLINE' to 1, basically anything other than 'O'. Is that right ?

Question by:amar21nath
    LVL 10

    Expert Comment


    It is more usual in IDOC processing to use the FM IDOC_INBOUND_ASYNCHRONOUS for posting idocs.

    However that said - what you describe is normal.
    You are posting an IDOC and it is failing with an application error.

    A status 51 means that the application has not created the IDOC - usually because you have incorrect data.

    What document are you trying to create and what is the error you are getting ?


    Author Comment

    Sales order IDocs in stat 51. The messages are :-
    ---No goods accepted on the specified delivery date
    ---Check if A/R summary has exceeded time limit:exceeded by days/hours 22 11

    These are messages that we get while creating a sales order in the system. They are either info or warning messages. Thru' the GUI, when we get these messages, we would normally hit the enter key and proceed to save the order. I would imagine the same should happen when I create orders thru' process code 'ORDE'. But they error out with the above messages.
    To set the whole thing up, I did the following :-
    1. Setup partner profile : type KU, message type ORDERS, process code ORDE for inbound. Trigger Immediately and 'Error while synatx check'.
    2. Setup a file port
    3. Made the ISO code for EA as the primary unit. SPRO->Enterprise structure-> Maintain UOM - > UOM.

    Using FM IDOC_INBOUND_SYNCHRONOUS as follows :-

     Submit IDOC for online immediate processing
            int_edidc                     = s_dc
            online                        = 'O'
            docnum                        = v_docnum
            error_before_call_application = v_checkx
            int_edidd                     = i_dd
            idoc_not_saved                = 1
            OTHERS                        = 2.

    Am I missing out on some config that says to ignore application messages ( all types W / S / I )  for inbound Idocs and proceed to commit  and save the document ?
    LVL 10

    Expert Comment

    If you look at the 51 status record you can see the messages - is it returning an Error or a Warning.

    I am not sure but i believe you are getting these because you are using the IDOC_INBOUND_SYNCHRONOUS if you are doing a synchronous call you would be expected to handle the failure and message in your application.

    If you process asynchronously the info and warnign messages are ignored.

    As for the online flag. I think you need it set on ' O' as it triggers the commit at the end of the transations.

    Author Comment

    These are messages while creating an order.  The messages can be of any type, W and I, I would understand if it were an E, that would be a genuine error. But the Ws, Is and Ss, should not stop be from saving the order. The worst part is I have it working just fine in our sandbox system (different client on the same box) but it doesn't work in other clients. I am now scanning the config to search for anything that is client specific. I also have SAP looking into the matter. Will update their reply.

    Thank you.

    Author Comment

    Apparantly there was nothing wrong with the FM. It was a userexit that was hampering the order save. A valuable lesson learnt.

    Accepted Solution

    PAQed with points refunded (500)

    Community Support Moderator

    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    Join & Write a Comment

    Oracle Apps Profiles option: A user profile is a set of shifting options that alter the way one runs an application. A value is set for each option under the user's profile when the Oracle application user logs on to any responsibility or changes…’s Console is a great tool to view activities, leads, contacts, accounts and opportunities all in one screen. It is particularly effective during call blocks and working numerous activities at a time in a quick, repetitive fashion (suc…
    It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
    To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…

    755 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    25 Experts available now in Live!

    Get 1:1 Help Now