-
Notifications
You must be signed in to change notification settings - Fork 148
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PROFITCENTER_DOCUMENT_POST throws errors 440, 570 and 700 #167
Comments
When certain parameter work in ABAP transactions and does not work from Python, the cause is usually a Conversion Exit, implemented for that parameter on ABAP side: RFC call results differ from expected Looking into ALPHA for PROFIT_CTR, PART_PRCTR, GL_ACCOUNT fields It can be fixed by implementing a The ABAP Conversion Exit logic can be also replicated on Python side, like adding leading zeroes PROFIT_CTR, PART_PRCTR, GL_ACCOUNT for example. This can fork for quick testing and is not recommended. |
Hi Srdjan, thanks a lot for your reply. I tried the second version for testing with adding leading zeros but although I get a success message and an appertaining document number I can't find the booking neither using the GUI, nor by reading the table "GLPCA" which is contains the already made bookings. Concerning the preferred first method you mentioned:
|
Sorry that I can't help further here, the question is more for SAP FI consultant. With new G/L in the ECC and then with the Universal Journal in S/4 Hana, the profit center invoice was integrated into the general ledger. Classic profit center accounting can still be used by in parallel, but not really recommended by SAP and is no longer being developed. Better check with SAP FI experts, who might have more knowledge/info on this. |
Just published the rfmcall utility, helpful for catching ALPHA exits, among other things. It is for nodejs and the output is (for the time being) in JS but with few search/replace you can get the Python output. Feedback welcome |
I have done it. |
I try to upload profitcenter bookings in SAP with PROFITCENTER_DOCUMENT_POST but I'm getting errors 440, 570 and 700:
{'RETURN': {'TYPE': 'E', 'ID': 'KM', 'NUMBER': '440', 'MESSAGE': '', 'LOG_NO': '', 'LOG_MSG_NO': '000000', 'MESSAGE_V1': '', 'MESSAGE_V2': '', 'MESSAGE_V3': '', 'MESSAGE_V4': '', 'PARAMETER': '', 'ROW': 0, 'FIELD': '', 'SYSTEM': ''}, 'LINEDATA': [{'PROFIT_CTR': '123456', 'GL_ACCOUNT': '123456', 'IN_TC': Decimal('123456.12'), 'PART_PRCTR': '123456', 'PLANT': '', 'FUNC_AREA': '', 'TRADE_ID': '', 'S_COMP_CODE': '', 'PARTNER_FUNC_AREA': '', 'CS_TRANS_T': '', 'OBJECTCLASS': '', 'REP_MATERIAL': '', 'DEPR_AREA': '00'}], 'LMESSAGE': [{'TYPE': 'E', 'ID': 'KM', 'NUMBER': '700', 'MESSAGE': '', 'LOG_NO': '', 'LOG_MSG_NO': '000000', 'MESSAGE_V1': '1000', 'MESSAGE_V2': '123456', 'MESSAGE_V3': '30122019', 'MESSAGE_V4': '', 'PARAMETER': '', 'ROW': 0, 'FIELD': '', 'SYSTEM': ''}, {'TYPE': 'E', 'ID': 'KM', 'NUMBER': '700', 'MESSAGE': '', 'LOG_NO': '', 'LOG_MSG_NO': '000000', 'MESSAGE_V1': '1000', 'MESSAGE_V2': '123456', 'MESSAGE_V3': '30122019', 'MESSAGE_V4': '', 'PARAMETER': '', 'ROW': 0, 'FIELD': '', 'SYSTEM': ''}, {'TYPE': 'E', 'ID': 'KM', 'NUMBER': '570', 'MESSAGE': '', 'LOG_NO': '', 'LOG_MSG_NO': '000000', 'MESSAGE_V1': '123456', 'MESSAGE_V2': '1000', 'MESSAGE_V3': 'GKR', 'MESSAGE_V4': '', 'PARAMETER': '', 'ROW': 0, 'FIELD': '', 'SYSTEM': ''}]}
Referring to the messages in Profit Center Accounting in sapdatasheet.org:
440 is "Error messages exist"
570 is "No master data found for account &1 in chart of accounts &3"
and 700 is "Profit center &1/&2 does not exist for &3"
With the mentioned parameters I can perform the booking in SAP, so in general it should be possible.
Can somebody give me advise on what I'm missing?
Please see my code below:
The text was updated successfully, but these errors were encountered: