2013 Jun 27 10:50 AM
Hi,
I am trying to implement this bapi in BADI of MIGO according to requirement. This BAPI is giving error like
Error in document: BKPFF $ STDCLNT600
Required field PSTNG_DATE was not transferred in parameter ACCOUNTGL
Required field PSTNG_DATE was not transferred in parameter ACCOUNTGL
I have already entered posting date in header table & acc_gl table. But still it is giving this error.
Plz help as I have to deliver this object ASAP.
Thanks,
Sachin Singhal
Hi,
I am trying to implement this bapi in BADI of MIGO according to requirement. This BAPI is giving error like
Error in document: BKPFF $ STDCLNT600
Required field PSTNG_DATE was not transferred in parameter ACCOUNTGL
Required field PSTNG_DATE was not transferred in parameter ACCOUNTGL
I have already entered posting date in header table & acc_gl table. But still it is giving this error.
Plz help as I have to deliver this object ASAP.
Thanks,
Sachin Singhal
2013 Jun 27 1:58 PM
How you are preparing bapi data??
Could you debug by putiing breakpoint on message ID ?
2013 Jun 28 6:01 AM
Hi Deependra,
I am preparing bapi data in BADI & Yes I am debugging this code but when I debug this BAPI there is condition which shouldn't get skipped, but it is skipping that condition. Now I think there is some problem with this BAPI.
2013 Jun 27 2:30 PM
2013 Jun 27 3:14 PM
Hi Sachin,
According to the error message
there is an issue with the date you send
it doesnt expect that date
check the table gt_accgl table you pass to the function module!!
You can debug by changing the date or creating that document via parking fb01 and seeing the error
Before you post the document
you can check the document is valid
and if valid you can post as well
code snippet:
method check_accounting_document.
field-symbols: <lfs_return> like line of et_return.
*set the username
ev_return_code = 0.
*Main BAPİ to check
call function 'BAPI_ACC_DOCUMENT_CHECK'
exporting
documentheader = is_document_header
tables
accountgl = it_accountgl
accountreceivable = it_receivable
accountpayable = it_payable
accounttax = it_accounttax
currencyamount = it_amount
criteria = it_criteria
* valuefield = it_valuefield
extension1 = it_extension1
return = et_return
.
read table et_return assigning <lfs_return>
with key type = 'E'.
if sy-subrc eq 0."NO ERROR IN DOCUMENT
ev_return_code = 4.
endif.
endmethod.
2013 Jun 28 6:03 AM
Hi Solen,
The posting date which I am passing is fine but I dont understand why It is giving error. Can you plz let me know that how to park a document with the help of BAPI.
2013 Jun 28 7:44 AM
Hi sachin
Do you want to post the acct. document or park it.
You can park the accounting document and then post it
either with the BAPİ you are using or fb02 by saving it it will post manually.
For parking there is a BAPİ: this post like in FB01 check below
Code snippet:
try .
call function 'PRELIMINARY_POSTING_FB01'
exporting
i_tcode = 'FB01'
importing
xepbbp = lv_xepbbp
tables
t_bkpf = it_bkpf
t_bseg = it_bseg
t_bsec = it_bsec
t_bset = it_bset
t_bsez = it_bsez.
catch cx_sy_conversion_no_number.
append initial line to et_return assigning <lfs_return>.
<lfs_return>-type = 'E'.
<lfs_return>-number = sy-msgno.
concatenate 'Satır no : ' sy-msgv1 'Yıl :' sy-msgv2
've' sy-msgv4 'nolu Hesap numarasında sorun var' into <lfs_return>-message
separated by space in character mode.
catch cx_sy_zerodivide.
append initial line to et_return assigning <lfs_return>.
<lfs_return>-type = 'E'.
<lfs_return>-number = sy-msgno.
concatenate 'Satır no : ' sy-msgv1 'Yıl :' sy-msgv2
've' sy-msgv4 'nolu Hesap numarasında sorun var' into <lfs_return>-message
separated by space in character mode.
catch cx_sy_dyn_call_illegal_type.
append initial line to et_return assigning <lfs_return>.
<lfs_return>-type = 'E'.
<lfs_return>-number = sy-msgno.
<lfs_return>-message = 'Başlık verilerinde uyumsuzluk var.'.
endtry.
2013 Jul 01 3:12 PM
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |