on 05-19-2022 10:26 AM
Hi,
I've got some problems create purchase with BAPI_PR_CREATE, when i excute it with PRITEM param ACCTASSCAT:K, and PRACCOUNT param
GL_ACCOUNT:666003,
COSTCENTER:500010044,
CO_AREA:1000
the same fields value is 'X' in table PRITEMX and PRACCOUNTX.
I will got the error message "Account 666003 does not exist in chart of accounts SDCA",
But when I'm woring on the GUI:ME51N, there is no any error and return PR number successful.
Same sap environment,same material, same params.
I don't know why.
A BAPI usually (but not always) requires the parameters fields in internal format, not external format.
During execution of a GUI transaction the data are converted from external to internal format and vice-versa (check Domain definition of the field parameter for any conversion-exit)
Try to pass data as 0000666003 (10 characters) or use FM CONVERSION_EXIT_ALPHA_INPUT.
For reference, look for Internal and External Data Formats BAPI in online help.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
the problem is resovled.I should pass the parameter with 10 characters.
GL_ACCOUNT:0000666003,
COSTCENTER:0500010044,
CO_AREA:0000001000
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Check to find your company code in OX18 which is assigned to your plant where you know your plant in PO
Now find your chart of account assigned to your company code in OBY6
Check G/L Account 666003 created with same chart of account in FS00 else get assistance from Finance team to copy G/L Account 666003 to your company code from other company code which belongs to same chart of account.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
9 | |
6 | |
6 | |
4 | |
3 | |
3 | |
2 | |
2 | |
2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.