?
Solved

IDOC_INBOUND_SYNCHRONOUS

Posted on 2006-04-19
7
Medium Priority
?
1,519 Views
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 ?


0
Comment
Question by:amar21nath
  • 3
  • 2
6 Comments
 
LVL 10

Expert Comment

by:jonvaughan
ID: 16494841

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 ?



0
 

Author Comment

by:amar21nath
ID: 16504812
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
    CALL FUNCTION 'IDOC_INBOUND_SYNCHRONOUS'
      EXPORTING
        int_edidc                     = s_dc
        online                        = 'O'
      IMPORTING
        docnum                        = v_docnum
        error_before_call_application = v_checkx
      TABLES
        int_edidd                     = i_dd
      EXCEPTIONS
        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 ?
0
 
LVL 10

Expert Comment

by:jonvaughan
ID: 16522361
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.
0
New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

 

Author Comment

by:amar21nath
ID: 16539138
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.
Amar
0
 

Author Comment

by:amar21nath
ID: 16612316
Apparantly there was nothing wrong with the FM. It was a userexit that was hampering the order save. A valuable lesson learnt.
0
 

Accepted Solution

by:
CetusMOD earned 0 total points
ID: 16814180
PAQed with points refunded (500)

CetusMOD
Community Support Moderator
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In our personal lives, we have well-designed consumer apps to delight us and make even the most complex transactions simple. Many enterprise applications, however, are a bit behind the times. For an enterprise app to be successful in today's tech wo…
Messaging apps are amazing tools with the power to do a lot of good, but the truth is the process of collaborating with coworkers requires relationships established through meaningful communication - the kind of communication that only happens face-…
Integration Management Part 2
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…
Suggested Courses
Course of the Month15 days, 4 hours left to enroll

839 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