‎2008 Nov 26 11:22 AM
hi,
really need your suggestion.
i'm now using BAPI_ACC_DOCUMENT_POST. as usual, i pass the parameter to bapi as my requirement except bus_act. and it returning error message that: Required field BUS_ACT was not transferred in parameter DOCUMENTHEADER. i am figured that this field correspond to table /BEV3/CH1030BKPF.
can anyone tell me what should i do?
i use this bapi to upload journal with tax code, so i couldn't use BAPI_ACC_GL_POSTING_POST since the the field of tax code is missing in bapi structure.
many thanks, tiara.
‎2008 Nov 26 11:25 AM
Hi,
The mandatory fields in the Bapi should be passed there is no other go for that...so its better to ask your functional consultant to give the value for that parameter tooo....if not then search for other FM for your requirement which do not have that bus_act field...
Regards,
Rohan.
‎2008 Nov 26 11:31 AM
hi rohan,
thanks for your suggestion. i figured out how to filled it.
but now i am trapped with error "Incorrect entry in field OBJ_TYPE: BKPFF"
it is work in BAPI_ACC_GL_POSTING but not work in BAPI_ACC_DOCUMENT_POST.
should i use another obj_type?
and should i do this -> CONCATENATE document_number company code fiscal year INTO OBJ_KEY.
thanks a lot
Edited by: tiara astari on Nov 26, 2008 12:32 PM
Edited by: tiara astari on Nov 26, 2008 12:32 PM
‎2008 Nov 26 11:39 AM
Hi,
FYI....
AWKEY (OBJ_KEY) Reference key
Source document number
The reference key is made up of:
AWREF Reference document number (10 digits)
Source document number
AWORG Reference organizational unit (10 digits)
Number range ID (if required)
Reference Key
Definition
If an accounting document is posted via the interface in Accounting, the sending application transfers a unique reference. It consists of object key and object type. The object key consists of a reference document number and a reference organizational unit.
Example: 1000007899 00011996
Reference Reference organizational unit
document no. client and fiscal year
So u can concatenate doc.no,client and the fiscal year in to that obj key.
Hope this will help.
Regards,
Rohan.
‎2008 Nov 26 11:36 AM
Specify like this.
b_header-obj_type = 'BKPFF'.
b_header-obj_key = ref_key.
b_header-username = sy-uname.
b_header-header_txt = bktxt.
b_header-comp_code = it_upload-bukrs.
b_header-fisc_year = it_upload-gjahr.
b_header-doc_date = budat.
b_header-pstng_date = budat.
b_header-doc_type = blart.
b_header-bus_act = 'RFBU'.
‎2008 Nov 26 12:04 PM