on 10-02-2014 8:35 PM
Hi,
I am having a strange issue.
when posting with BAPI_PROCORDCONF_CREATE_TT and setting the commit flag on the configuration screen, or by setting the commit as part of the configuration link, "Boolean true", everything executes getting back a message confirmation saved, but it is not committing the posting.
Running MII 14 sp2, ECC 6, not sure what level but the MII is a new install and ECC has been existing for a while.
Any idea what is going on?
I think I got the problem solved.
BAD DATA!!!
The Proc.Orders we had will not post, I got a new number to test with and in posted!.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey Andy , Try to call BAPI_TRANSACTION_COMMIT through Jco after TT bapi call and see if that works.
Hope that helps.
Thanks
Hari
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Andy,
Are you trying to post data to SAP in a repeated fashion using any kind of loop?
Because there were instances when the posting was being done repeatedly and BAPI in such cases returns a success flag, but in actual the confirmation does not get saved, as the SAP system takes some time to process each request from MII. This issue was resolved by giving some 4-5 seconds pause in between different calls of the BAPI.
Thanks,
Anuj
I know there are some SAP notes related to issues with JCo in the earlier 14.0 releases.
I know when we first migrated from 12 to 14 we had similar issues ( bapi call failing no error but in our case no success in the bapi return either ) and had to go in and manually fix/redo the JCo actions in our transactions in each system. After patching this was no longer an issue.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Andy,
The ERP system receives the Confirmation and queues it up to be processed. It is the nature of the confirmation process there. Unfortunately we normally expect BAPIs to execute synchronously, but in this case, the BAPI itself does not complete the confirmation. It only determines a confirmation number which then takes anywhere from a few seconds to as much as 30 minutes to complete on the ERP side.
A simple test is to open ERP to the Confirmation screen and keep checking the confirmation number returned to see how long it normally takes (or use MII to do the same). I do not remember any times where the confirmation failed on the ERP side as there is a fairly good input screen in place to reject a bad confirmation. Not saying it never happens, but I have not seen it happen that way previously. So it is probably pretty rare.
Regards, Mike
SAP Customer Experience Group - CEG
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Let me try to explain it again.
BAPI_PROCORDCONF_CREATE_TT only transfers the confirmation information to ERP. The confirmation then gets queued up in ERP to be processed according to priority within ERP. This is why you get the message "Confirmation Saved" and not a Success message.
This was explained to me years ago (like 7?) as the actual processing of a confirmation involves many different functions within ERP and that having the BAPI wait until it fully completes ties up ERP and locks a bunch of different tables. So it is only saved for background processing. Depending on the priorities set and other processing going on, it can take a few seconds to much more to finally complete.
Might want to bounce it off an ABAP programmer instead of MII savvy folks. They can tell more about how the BAPI actually executes.
Regards, Mike
Message was edited by: Michael Appleby
User | Count |
---|---|
11 | |
6 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.