2006 Dec 12 5:54 PM
Hello,
I'm using BAPI_ACC_DOCUMENT_POST to simulate FB01.
Someone has used this BAPI to simulate FB01??
I cant find the Posting Key (BSEG-BSCHL) in this BAPI, and i really need that.
Can anyone tell me if i should use this BAPI to simulate FB01 or exists another one.
And can someone help me to find the Posting Key in this BAPI?
Thanks in advance
Best regards.
Hello,
I'm using BAPI_ACC_DOCUMENT_POST to simulate FB01.
Someone has used this BAPI to simulate FB01??
I cant find the Posting Key (BSEG-BSCHL) in this BAPI, and i really need that.
Can anyone tell me if i should use this BAPI to simulate FB01 or exists another one.
And can someone help me to find the Posting Key in this BAPI?
Thanks in advance
Best regards.
2006 Dec 12 5:57 PM
Try using FM POSTING_INTERFACE_DOCUMENT instead BAPI, works really fine.
Regards.
2006 Dec 16 8:55 PM
HI, I NEED MORE INFO ABOUT THIS FM POSTING_INTERFACE_DOCUMENT.
2006 Dec 12 5:58 PM
Hi,
The posting key is decided automatically by the BAPI, it depends on the sign you have assigned to the amounts.
In this case I suppose the BAPI'll use the postig key 40/50:
- 40 if the amount is greater than 0,
- 50 if the amount is less than 0,
So you can have some problem only if you need to use some keys different from 40/50.
In this case I believe you have to use the BAPI BAPI_ACC_DOCUMENT_POST, here you can choose which posting keys to be used in order to transaction key (<b>KOTSL).</b>
See the table T030B
If I could make a suggestion why dont you use <b>LSMW</b> for the same
The standard object is 0100.
It uses the standard program RFBIBL00 itself. But you should be able to format it easily
Here is a document on how you can use the tool.
http://sapabap.iespana.es/sapabap/manuales/pdf/lsmw.pdf
<b>Or you can Do BDC</b>
Look at the below threads, these threads have the sameple code also
Suggest you to Search in SDN with key - FB01
Will get few more useful related Posts.
Reward points if this Helps.
Manish
Message was edited by:
Manish Kumar
2006 Dec 12 6:05 PM
Hi,
Please check this line codes in program LACC9F20 inside the BAPI.
FORM fill_acct_key.
DATA: ld_bschh LIKE accit-bschl,
ld_bschs LIKE accit-bschl,
ld_umskz LIKE accit-umskz.
IF NOT gs_accit-ktosl IS INITIAL AND
gs_accit-kstat IS INITIAL.
CALL FUNCTION 'FI_GET_POSTING_KEY'
EXPORTING
i_ktosl = gs_accit-ktosl
IMPORTING
e_bschs = ld_bschs
e_bschh = ld_bschh
e_umskz = ld_umskz
EXCEPTIONS
error_message = 1.
...
Regards,
Ferry Lianto
2006 Dec 12 7:55 PM
you can check sap note : 487722 if you would like to include posting key in the BAPI
2011 May 24 3:20 PM
Hi,
The posting key is picked up automatically by the BAPI.
The posting key is decided on the following factors
> the sign you have assigned to the amounts against each Accounting Document Line Item Number (ITEMNO_ACC).
> Also the accnt(GL / Vendor / Customer) details given against the corresponding ITEMNO_ACC to show from which accnt the amount needs to be debited and credited to which accnt.
>Debit /Crdit indicator used.
Hope this info helped you in giving an idea about the posting key for this BAPI.
Regards,
Nishi.M
| User | Count |
|---|---|
| 6 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |