on 08-22-2018 12:51 PM
Hi,
i'm using the bapi "bapi_acc_document_post" with the .Net Connector and it works really great except for one point: The bapi always skips one documentnumber and returns a wrong number.
For example:
Last Documentnumber: 10005
Bapi returns: 10006
Inserted: 10007
I'm using RfcTransaction.commit()
How is that possible?
Found the solution here: LINK
public void Commit(IRfcFunction bapi)
{
RfcSessionManager.BeginContext(dest);
var commitBapi = repo.CreateFunction("BAPI_TRANSACTION_COMMIT");
bapi.Invoke(dest);
commitBapi.Invoke(dest);
RfcSessionManager.EndContext(dest);
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
What are the buffer settings for RF_BELEG number range? Also, are you working by any chance with two (or more) app servers on your site?
Regards,
Eli
P.S. Additionally, please check this OSS note: 1372327 - Document number gaps for BAPI_ACC_DOCUMENT_POST
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.