‎2009 Apr 02 3:39 PM
Hi,
I am trying to use this bapi but I have a little problem to resolve. Yesterday I had problem with some fields that I did not know how to fill and that the bapi ask me:
1) obj_type
2) obj_sys
3) obj_key
I found on oss note that explains how to solve this problem: in the header parameter passed to the bapi, I have to leave empty these fields:
obj_type
obj_sys
obj_key
and ac_doc_no both on header and account_gl table.
Effectively, leaving empty these fields, the bapi don't ask me for them and they're just created as explained in note (seen following the code with the debugger), but the bapi anyway give error for ac_doc_no empty. The problem is that if I fill the ac_doc_no field the problem comes again: I'm asked for obj_type obj_sys obj_key. so ... what have I to do for correctly use this bapi ? what are my mistakes?
Thanks to anyone will help me
‎2009 Apr 02 11:15 PM
Hi,
which OSS note you have checked? There is for example note 561175 which looks like relevant for you but you need to also implement program corrections attached to this note. It's not enough just to fill fields as it is described in this note. There is also useful collective note 306504 for accounting interface. You can also have a look how to fill structures of this BAPI in program ACC_BAPI_TEST_DOCUMENT.
Good luck
‎2009 Apr 03 8:03 AM
thanks.
I was looking exactly the notes you suggest me, but I don't understand what I have to do now. I left the field empty as suggested (I was looking for the first part of solution because it's the part of interest for me) in the program I am developing ... have I to do something else?
thanks
Gabriele
‎2009 Apr 03 8:17 AM
Hi,
you need to also implement corrections to the programs. The best way how to implement OSS not is via transaction SNOTE. If you are not familiar with this transaction then look for SAP documentation for this transaction.
Good luck