09-10-2022 3:58 PM
can we able to post asset related transactions like purchase or transfer between plants...? When we are trying to use we are receiving an error like " Enter a transaction type". I am using BAPI "BAPI_ACC_DOCUMENT_POST"
Requirement:-
Is there any SAP NOTE to resolve this issue?
09-10-2022 5:38 PM
09-11-2022 9:52 AM
Hi
You must be using the function call as below:
CALL FUNCTION 'BAPI_ACC_DOCUMENT_POST'
EXPORTING
documentheader = header
IMPORTING
obj_key = docno
TABLES
accountgl = accountgl
currencyamount = currencyamount
return = return.
Make sure, in header - you are passing the parameter document type as below
header-doc_type = 'SA'. "Pass document type below (your document type)<br>
Please share your code..
Also in accountgl
Structure - BAPIACGL09 fidld - CS_TRANS_T - Pass value 220 to this.
Venkat