‎2011 May 13 3:30 AM
Hi,
I'm currently using BAPI_ACC_DOCUMENT_POST and intended to post document type RJ, but instead the BAPI posted the document under a different document type C1. I tried other document types and the result is the same.
Hope I can have your inputs about this.
Thanks,
Nikolai
‎2011 May 13 11:18 AM
Hello,
Pass Document type at Header level ie DOCUMENTHEADER-doc_type = 'RJ'.
‎2011 May 13 12:53 PM
I'm already passing that field. Still it posts the documents under a document type C1.
‎2011 May 13 1:05 PM
Hi,
If you pass the right header parameter and it still posts the document with a different doc.type, make sure you don't have any exits/badis/FI substitutions active, what changes doc.type..
Regards,
MaryM
‎2011 May 13 5:55 PM
Hi MaryM, how can I check for the user exits/BADIs/FI substitutions?
‎2011 May 16 8:59 AM
Hi nikolai,
Check the implementation (if is exists) for BADI_ACC_DOCUMENT.
Or BTE function OPEN_FI_PERFORM_RWBAPI01_P..
Gor sustitutions check tcode OBBH.
Hope it helps!
MaryM
‎2011 May 13 1:01 PM
Dear Nikolai,
If you want to change the document type means you have to use the BADI to change the Document type the BADI Name is BADI_ACC_DOCUMENT.
In that BADI CHANGE method is there here C_ACCHD parameter is ther you can pass the Documnet type directly will c.
Regards,
Dhina..
‎2011 May 17 4:30 PM
I found the cause of the problem. The doc type passed on parameter DOCUMENTHEADER was being overridden by the doc type being passed in table ACCOUNTGL.
Thanks for all the help!