‎2007 Oct 04 12:44 PM
I found information that for posting FI document BAPI: BAPI_ACC_GL_POSTING_POST or BAPI_ACC_DOCUMENT_POST is used. I'm using second one.
I filled documentheader information as well but I've problem with filling positions information, exactly I don't know where to pass (to which field) info about "Buchungsschlüssel (SHKZG)" .
If helping_answer = abap_true.
reward_points = reward_points + 6.
endif.
‎2007 Oct 04 12:51 PM
hi Tomasz,
you cannot give the posting key (uchungschlüssel) to these BAPIs. You can only do it through the amounts:
100 ==> this is positive ==> Posting key 40 will be used by the BAPI
-100 ==> this is negative ==> Posting key 50 will be used by the BAPI
If you want to use other posting keys (like 01 for debitor, or for vendor), than you have to use toher BAPI.
hope this helps
ec