Skip to Content
0
Former Member
Dec 08, 2006 at 10:34 AM

Document posting in FBCJ

1125 Views

Hello,

I am working on posting a document in FBCJ transaction. Following are the details. Help required!!

<b>requirement</b> : To post the document in FBCJ, and also in F-02. Selection

screen provides necessary inputs for posting.

<b>Approach</b> :

1. Started off with BDC for posting into FBCJ. It gave an error: 'G/L

account <Account No.> not defined in charts of accounts'.

2. After clicking 'OK' (Like in manual posting) the entered line becomes

blank and hence no record is created.

3. Thus decided to use BAPI 'BAPI_CASHJOURNALDOC_CREATE' to create the

record in FBCJ and 'FBCJ_ACC_GL_POSTING_POST' to post it.

4. BAPI_CASHJOURNALDOC_CREATE does not accept internal document number

from Z number range.

5. Since balance needs to be zero for posting; I made a provision for a

debit and credit entry in BAPI_ACC_GL_POSTING_POST. However it does not

accept direct entry for G/L account (Reconciliation account) of

customer/vendor. Tried all possible options of passing the G/L account

value as well as passing customer/vendor number and getting the G/L

account number automatically. However it doesn't work.

6. Again shifted to BDC.

7. In FBCJ, G/L account is not entered if Business transaction is

'Customer' or 'Vendor'. If it is entered then causes an error.

8. Thus in the program also I didn't pass the value of G/L account.

However now it throws the information message : 'Select at least one

entry' though the relevant entry is already selected. If clicked 'OK'

the entered record line becomes blank and hence no record is created.

<b>Help required</b>: Kindly provide me with the solution how to post a

document successfully in FBCJ. Should I use BAPI or BDC? If I use BAPI

then how should i make the balance zero and post it? And if I use BDC

how should I select the relevant entry and avoid any messages because of

which entry is not getting posted?

Kindly help. Source code will be highly appreciated.

Awaiting reply shortly.