BAPI_ACC_DOCUMENT_REV_CHECK
Hello,
I´m using the bapi BAPI_ACC_DOCUMENT_REV_CHECK to check whether a FI document is able to be reversed. The bapi works fine, but it blocks the FI document till the programm finishes, so I can´t reverse the document if necesary.
How can I unblock the FI document so I can reverse it?
Thanks!
Nobody can help me?
I´m using the function DEQUEUE_EFBKPF but i´m not getting any good result.
Thanks!
Similar Messages
-
Issue in Reversing a FI Document using BAPI_ACC_DOCUMENT_REV_CHECK
Hi Experts!
When I try to reverse a FI document with document no (9100000451) in company code 005 in my code by calling the BAPI BAPI_ACC_DOCUMENT_REV_CHECK and BAPI_ACC_DOCUMENT_REV_POST, its gives an error saying 'Reversal in component General Ledger not possible' in BAPI_ACC_DOCUMENT_REV_CHECK and reversal is not possible.
But in the standard transaction FB08 when I pass the same doc no with the company code 005 it doesn't give an error and reversal is successful.
Please help.
Thanks.
Siddharth.
Moderator Message : Duplicate Post locked.
Edited by: Vinod Kumar on May 7, 2011 10:23 AMHi,
put a break in subroutine FORM fill_acchd
and execute the bapi.
Here you have:
CLEAR gs_acchd.
MOVE-CORRESPONDING gs_aw TO gs_acchd.
gs_acchd-usnam = gs_bapi_acchd-username.
gs_acchd-awsys = gs_bapi_acchd-obj_sys.
gs_acchd-bktxt = gs_bapi_acchd-header_txt."---->¡¡¡CHECK THIS!!!
gs_acchd-glvor = gs_bapi_acchd-bus_act.
gs_acchd-tcode = sy-tcode.
gs_acchd-acc_principle = gs_bapi_acchd-acc_principle.
Check if there is something wrong there.
Best regards -
Issue in BAPI_ACC_DOCUMENT_REV_CHECK
Hi Experts!
When I try to reverse a FI document with document no (9100000451) in company code 005 in my code by calling the BAPI BAPI_ACC_DOCUMENT_REV_CHECK and BAPI_ACC_DOCUMENT_REV_POST, its gives an error saying 'Reversal in component General Ledger not possible' in BAPI_ACC_DOCUMENT_REV_CHECK and reversal is not possible.
But in the standard transaction FB08 when I pass the same doc no with the company code 005 it doesn't give an error and reversal is successful.
Please help.
Thanks.
Siddharth.Nobody can help me?
I´m using the function DEQUEUE_EFBKPF but i´m not getting any good result.
Thanks! -
Issue with BAPI BAPI_ACC_DOCUMENT_REV_POST
Hi,
I am using the BAPI BAPI_ACC_DOCUMENT_REV_POST to reverse FI documens but the function module generates a short dump when I commit the transaction.
I first use the function module BAPI_ACC_DOCUMENT_REV_CHECK to simulate the reversal operation and it does not return any error. I then use BAPI_ACC_DOCUMENT_REV_POST which returns the number of the reversed document. But when I commit, a short dump is generated.
The type of the exception is INS_ERROR_IT and it occurs in the include LFLQPOF01(Form UPDATE_ITEM ). After debugging the program, I noticed that the standard is trying to insert a row in FLQITEMBS table which exists already.
What is surprising is that reversing the same document directly through FB08 is done correctly.
I started looking to SAP notes, but no succes to finding a suitable solution.
Does any one have a similar issue? Any tips?
Thank you all in advance.Hello,
You can run the standard ACC_BAPI_TEST_DOCUMENT program and check if the same issue is coming. It will be then easier for you to find out what exactly happening.
Thanks & Regards,
Abhijit -
How to use EXTENSION1 in BAPI_ACC_DOCUMENT_POST
Hi,
I am using BAPI_ACC_DOCUMENT_POST for posting documents similar to what is posted using FBS1 transaction code.
I'm not able to populate reversal date in the BAPI_ACC_DOCUMENT_POST. There is a provision it seems using the EXTENSION1 tables parameter.
Can anyone please tell me the procedure preferably a small piece of sample code in which I can know how to pass the Reversal Date using the EXTENSION1 structure.
Also which process code is required to be used in the Business Transaction Events enhancements to implement this.
Thanks and regards,
Satyadev Duttahi
good
go through this program which ll help you to give greater knowledge about use of EXTENSION1 in BAPI_ACC_DOCUMENT_POST
======================================
report zbapi_factura_acreedor2 .
*REPORT acc_bapi_test_document .
selection-screen begin of block bl01 .
parameters:
check_l radiobutton group rb1,
check_a default 'X' radiobutton group rb1,
post radiobutton group rb1.
selection-screen uline.
parameters:
rev_c radiobutton group rb1,
rev_p radiobutton group rb1.
selection-screen uline.
parameters:
ref_key like bapiache01-obj_key default 'TEST000001BAPICALL',
dest like bdi_logsys-logsys default ' '.
selection-screen end of block bl01 .
data:
gd_documentheader like bapiache09,
gd_customercpd like bapiacpa09,
gd_fica_hd like bapiaccahd,
it_accountreceivable like table of bapiacar09 with header line,
it_accountgl like table of bapiacgl09 with header line,
it_accounttax like table of bapiactx09 with header line,
it_criteria like table of bapiackec9 with header line,
it_valuefield like table of bapiackev9 with header line,
it_currencyamount like table of bapiaccr09 with header line,
it_return like table of bapiret2 with header line,
it_receivers like table of bdi_logsys with header line,
it_fica_it like table of bapiaccait with header line,
it_accountpayable like table of bapiacap09 with header line,
it_paymentcard like table of bapiacpc09 with header line,
it_ext like table of bapiacextc with header line.
it_re LIKE TABLE OF bapiacre09 WITH HEADER LINE,
it_ext2 LIKE TABLE OF bapiparex WITH HEADER LINE.
perform fill_internal_tables.
if check_l = 'X'.
call function 'BAPI_ACC_DOCUMENT_CHECK'
destination dest
exporting
documentheader = gd_documentheader
customercpd = gd_customercpd
contractheader = gd_fica_hd
tables
accountgl = it_accountgl
accountreceivable = it_accountreceivable
accountpayable = it_accountpayable
accounttax = it_accounttax
currencyamount = it_currencyamount
criteria = it_criteria
valuefield = it_valuefield
extension1 = it_ext
return = it_return
paymentcard = it_paymentcard
contractitem = it_fica_it.
extension2 = it_ext2
realestate = it_re.
write: / 'Result of check lines:'. "#EC NOTEXT
perform show_messages.
endif.
if check_a = 'X'.
call function 'BAPI_ACC_DOCUMENT_CHECK'
destination dest
exporting
documentheader = gd_documentheader
customercpd = gd_customercpd
contractheader = gd_fica_hd
tables
accountgl = it_accountgl
accountreceivable = it_accountreceivable
accountpayable = it_accountpayable
accounttax = it_accounttax
currencyamount = it_currencyamount
criteria = it_criteria
valuefield = it_valuefield
extension1 = it_ext
return = it_return
paymentcard = it_paymentcard
contractitem = it_fica_it.
extension2 = it_ext2
realestate = it_re.
write: / 'Result of check all:'. "#EC NOTEXT
perform show_messages.
endif.
if post = 'X'.
data: l_type like gd_documentheader-obj_type,
l_key like gd_documentheader-obj_key,
l_sys like gd_documentheader-obj_sys.
if dest = space or
dest = gd_documentheader-obj_sys.
post synchron
call function 'BAPI_ACC_DOCUMENT_POST'
exporting
documentheader = gd_documentheader
customercpd = gd_customercpd
contractheader = gd_fica_hd
importing
obj_type = l_type
obj_key = l_key
obj_sys = l_sys
tables
accountgl = it_accountgl
accountreceivable = it_accountreceivable
accountpayable = it_accountpayable
accounttax = it_accounttax
currencyamount = it_currencyamount
criteria = it_criteria
valuefield = it_valuefield
extension1 = it_ext
return = it_return
paymentcard = it_paymentcard
contractitem = it_fica_it.
extension2 = it_ext2
realestate = it_re.
write: / 'Result of post:'. "#EC NOTEXT
perform show_messages.
else.
create Idoc
it_receivers-logsys = dest.
append it_receivers.
call function 'ALE_ACC_DOCUMENT_POST'
exporting
documentheader = gd_documentheader
customercpd = gd_customercpd
contractheader = gd_fica_hd
tables
accountgl = it_accountgl
accountreceivable = it_accountreceivable
accountpayable = it_accountpayable
accounttax = it_accounttax
currencyamount = it_currencyamount
criteria = it_criteria
valuefield = it_valuefield
extension1 = it_ext
paymentcard = it_paymentcard
contractitem = it_fica_it
extension2 = it_ext2
realestate = it_re
receivers = it_receivers
COMMUNICATION_DOCUMENTS =
APPLICATION_OBJECTS =
exceptions
error_creating_idocs = 1
others = 2 .
if sy-subrc = 0.
write: / 'IDoc created'. "#EC NOTEXT
else.
write: sy-msgid.
endif.
endif.
endif.
if rev_p = 'X' or rev_c = 'X'.
data: rev like bapiacrev,
rev_key like ref_key.
rev_key = ref_key.
rev_key(1) = 'R'.
rev-obj_type = gd_documentheader-obj_type.
rev-obj_key = rev_key.
rev-obj_sys = gd_documentheader-obj_sys.
rev-obj_key_r = ref_key.
if rev_c is initial.
if dest = space or
dest = gd_documentheader-obj_sys.
call function 'BAPI_ACC_DOCUMENT_REV_POST'
exporting
reversal = rev
bus_act = gd_documentheader-bus_act
tables
return = it_return.
else.
it_receivers-logsys = dest.
append it_receivers.
call function 'ALE_ACC_DOCUMENT_REV_POST'
exporting
reversal = rev
busact = gd_documentheader-bus_act
OBJ_TYPE = 'BUS6035'
SERIAL_ID = '0'
tables
receivers = it_receivers
COMMUNICATION_DOCUMENTS =
APPLICATION_OBJECTS =
exceptions
error_creating_idocs = 1
others = 2
if sy-subrc <> 0.
message id sy-msgid type sy-msgty number sy-msgno
with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
else.
write: / 'IDoc created'. "#EC NOTEXT
endif.
endif.
else.
call function 'BAPI_ACC_DOCUMENT_REV_CHECK'
exporting
reversal = rev
bus_act = gd_documentheader-bus_act
tables
return = it_return.
endif.
write: / 'Result of Reversal Posting:'. "#EC NOTEXT
perform show_messages.
endif.
commit work.
Form fill_internal_tables
form fill_internal_tables.
perform fill_header.
perform fill_accountgl.
perform fill_accountar.
perform fill_accountap.
perform fill_accounttax.
perform fill_currencyamount.
perform fill_criteria.
perform fill_valuefield.
perform fill_re.
perform fill_cpd.
perform fill_contractitem.
perform fill_contractheader.
perform fill_paymentcard.
perform fill_extension.
endform. " fill_internal_tables
Form Show_messages
form show_messages.
if it_return[] is initial.
write: / 'no messages'.
else.
skip 1.
loop at it_return.
write: / it_return-type,
(2) it_return-id,
it_return-number,
(80) it_return-message,
IT_RETURN-LOG_NO
IT_RETURN-LOG_MSG_NO
it_return-message_v1,
IT_RETURN-MESSAGE_V2
IT_RETURN-MESSAGE_V3
IT_RETURN-MESSAGE_V4
(20) it_return-parameter,
(3) it_return-row,
it_return-field.
IT_RETURN-SYSTEM
endloop.
endif.
uline.
endform. " Show_messages
FORM fill_accountgl *
form fill_accountgl.
clear it_accountgl.
it_accountgl-itemno_acc = 2.
it_accountgl-gl_account = '0021510201'.
it_accountgl-item_text = 'BAPI Test G/L line item'. "#EC NOTEXT
it_accountgl-bus_area = '01'.
it_accountgl-profit_ctr = '0000010101'.
it_accountgl-comp_code = 'SLOC'.
append it_accountgl.
clear it_accountgl.
it_accountgl-itemno_acc = 3.
it_accountgl-gl_account = '0082000201'.
it_accountgl-item_text = 'BAPI Test G/L line item'. "#EC NOTEXT
it_accountgl-bus_area = '01'.
it_accountgl-profit_ctr = '0000010101'.
it_accountgl-comp_code = 'SLOC'.
it_accountgl-tax_code = 'A3'.
append it_accountgl.
clear it_accountgl.
it_accountgl-itemno_acc = 5.
it_accountgl-gl_account = '0021510201'.
it_accountgl-item_text = 'BAPI Test G/L line item'. "#EC NOTEXT
it_accountgl-bus_area = '01'.
it_accountgl-profit_ctr = '0000010301'.
it_accountgl-comp_code = 'SLOC'.
append it_accountgl.
clear it_accountgl.
it_accountgl-itemno_acc = 6.
it_accountgl-gl_account = '0082000201'.
it_accountgl-item_text = 'BAPI Test G/L line item'. "#EC NOTEXT
it_accountgl-bus_area = '01'.
it_accountgl-profit_ctr = '0000010301'.
it_accountgl-comp_code = 'SLOC'.
it_accountgl-tax_code = 'A3'.
append it_accountgl.
clear it_accountgl.
it_accountgl-itemno_acc = 7.
it_accountgl-itemno_acc = 8.
it_accountgl-gl_account = '0021510201'.
it_accountgl-item_text = 'BAPI Test G/L line item'. "#EC NOTEXT
it_accountgl-bus_area = '90'.
it_accountgl-profit_ctr = '0000900008'.
it_accountgl-comp_code = 'CORP'.
append it_accountgl.
clear it_accountgl.
it_accountgl-itemno_acc = 8.
it_accountgl-itemno_acc = 9.
it_accountgl-gl_account = '0082000201'.
it_accountgl-item_text = 'BAPI Test G/L line item'. "#EC NOTEXT
it_accountgl-bus_area = '90'.
it_accountgl-profit_ctr = '0000900008'.
it_accountgl-comp_code = 'CORP'.
it_accountgl-tax_code = 'A3'.
append it_accountgl.
endform. "fill_accountgl
FORM fill_header *
form fill_header.
CALL FUNCTION 'OWN_LOGICAL_SYSTEM_GET'
IMPORTING
own_logical_system = gd_documentheader-obj_sys.
OBJ_TYPE has to be replaced by customers object key (Y* or Z*)
gd_documentheader-obj_type = 'IDOC'.
gd_documentheader-obj_key = ref_key.
gd_documentheader-username = sy-uname.
gd_documentheader-header_txt = 'BAPI Test'. "#EC NOTEXT
gd_documentheader-obj_key_r =
GD_DOCUMENTHEADER-reason_rev =
gd_documentheader-comp_code = 'SLOC'.
GD_DOCUMENTHEADER-AC_DOC_NO =
gd_documentheader-fisc_year = sy-datum(4).
gd_documentheader-doc_date = sy-datum.
gd_documentheader-pstng_date = sy-datum.
GD_DOCUMENTHEADER-TRANS_DATE =
GD_DOCUMENTHEADER-VALUE_DATE =
GD_DOCUMENTHEADER-FIS_PERIOD =
gd_documentheader-doc_type = 'KR'.
gd_documentheader-ref_doc_no = 'xxxx'.
GD_DOCUMENTHEADER-COMPO_ACC =
gd_documentheader-bus_act = 'RFBU'.
endform. "fill_header
FORM fill_contractheader *
form fill_contractheader.
gd_fica_hd-doc_no =
gd_fica_hd-doc_type_ca =
gd_fica_hd-res_key =
gd_fica_hd-fikey =
gd_fica_hd-payment_form_ref =
endform. "fill_contractheader
FORM fill_cpd *
form fill_cpd.
gd_customercpd-name
gd_customercpd-name_2
gd_customercpd-name_3
gd_customercpd-name_4
gd_customercpd-postl_code
gd_customercpd-city
gd_customercpd-country
gd_customercpd-country_iso
gd_customercpd-street
gd_customercpd-po_box
gd_customercpd-pobx_pcd
gd_customercpd-pobk_curac
gd_customercpd-bank_acct
gd_customercpd-bank_no
gd_customercpd-bank_ctry
gd_customercpd-bank_ctry_iso
gd_customercpd-tax_no_1
gd_customercpd-tax_no_2
gd_customercpd-tax
gd_customercpd-equal_tax
gd_customercpd-region
gd_customercpd-ctrl_key
gd_customercpd-instr_key
gd_customercpd-dme_ind
gd_customercpd-langu_iso
endform. "fill_cpd
FORM fill_ar *
form fill_accountar.
CLEAR it_accountreceivable.
it_accountreceivable-itemno_acc =
it_accountreceivable-customer =
IT_ACCOUNTRECEIVABLE-REF_KEY_1 =
IT_ACCOUNTRECEIVABLE-REF_KEY_2 =
IT_ACCOUNTRECEIVABLE-REF_KEY_3 =
IT_ACCOUNTRECEIVABLE-PMNTTRMS =
IT_ACCOUNTRECEIVABLE-BLINE_DATE =
IT_ACCOUNTRECEIVABLE-DSCT_DAYS1 =
IT_ACCOUNTRECEIVABLE-DSCT_DAYS2 =
IT_ACCOUNTRECEIVABLE-NETTERMS =
IT_ACCOUNTRECEIVABLE-DSCT_PCT1 =
IT_ACCOUNTRECEIVABLE-DSCT_PCT2 =
IT_ACCOUNTRECEIVABLE-PYMT_METH =
IT_ACCOUNTRECEIVABLE-DUNN_KEY =
IT_ACCOUNTRECEIVABLE-DUNN_BLOCK =
IT_ACCOUNTRECEIVABLE-PMNT_BLOCK =
IT_ACCOUNTRECEIVABLE-VAT_REG_NO =
IT_ACCOUNTRECEIVABLE-ALLOC_NMBR =
it_accountreceivable-item_text =
IT_ACCOUNTRECEIVABLE-PARTNER_BK =
IT_ACCOUNTRECEIVABLE-GL_ACCOUNT =
it_accountreceivable-comp_code
it_accountreceivable-bus_area
it_accountreceivable-pmtmthsupl
it_accountreceivable-paymt_ref
it_accountreceivable-scbank_ind
it_accountreceivable-businessplace
it_accountreceivable-sectioncode
it_accountreceivable-branch
it_accountreceivable-pymt_cur
it_accountreceivable-pymt_cur_iso
it_accountreceivable-pymt_amt
it_accountreceivable-c_ctr_area
it_accountreceivable-bank_id
it_accountreceivable-supcountry
it_accountreceivable-supcountry_iso
it_accountreceivable-tax_code
it_accountreceivable-taxjurcode
it_accountreceivable-tax_date
it_accountreceivable-sp_gl_ind
it_accountreceivable-partner_guid = '1465464654'.
APPEND it_accountreceivable.
endform. "fill_accountar
FORM fill_ap *
form fill_accountap.
clear it_accountpayable.
it_accountpayable-itemno_acc = 1.
it_accountpayable-vendor_no = '0000060259'.
it_accountpayable-vendor_no = '0000060693'.
it_accountpayable-gl_account
it_accountpayable-ref_key_1
it_accountpayable-ref_key_2
it_accountpayable-ref_key_3
it_accountpayable-comp_code = 'SLOC'.
it_accountpayable-bus_area = '01'.
it_accountpayable-pmnttrms = 'A000'.
it_accountpayable-bline_date
it_accountpayable-dsct_days1
it_accountpayable-dsct_days2
it_accountpayable-netterms
it_accountpayable-dsct_pct1
it_accountpayable-dsct_pct2
it_accountpayable-pymt_meth
it_accountpayable-pmtmthsupl
it_accountpayable-pmnt_block
it_accountpayable-scbank_ind
it_accountpayable-supcountry
it_accountpayable-supcountry_iso
it_accountpayable-bllsrv_ind
it_accountpayable-alloc_nmbr
it_accountpayable-item_text = 'BAPI Test A/P line item'. "#EC NOTEXT
it_accountpayable-po_sub_no
it_accountpayable-po_checkdg
it_accountpayable-po_ref_no
it_accountpayable-w_tax_code
it_accountpayable-businessplace
it_accountpayable-sectioncode
it_accountpayable-instr1
it_accountpayable-instr2
it_accountpayable-instr3
it_accountpayable-instr4
it_accountpayable-branch
it_accountpayable-pymt_cur
it_accountpayable-pymt_amt
it_accountpayable-pymt_cur_iso
it_accountpayable-sp_gl_ind
append it_accountpayable.
endform. "fill_accountap
FORM fill_tax *
form fill_accounttax.
clear it_accounttax.
it_accounttax-itemno_acc = 4.
it_accounttax-gl_account = '0011361502'.
it_accounttax-tax_code = 'A3'.
it_accounttax-acct_key = 'VST'.
it_accounttax-cond_key = 'MWVS'.
it_accounttax-itemno_tax = 8.
append it_accounttax.
clear it_accounttax.
it_accounttax-itemno_acc = 7.
it_accounttax-gl_account = '0011361502'.
it_accounttax-tax_code = 'A3'.
it_accounttax-acct_key = 'VST'.
it_accounttax-COND_KEY = 'MWVS'.
append it_accounttax.
clear it_accounttax.
it_accounttax-itemno_acc = 10.
it_accounttax-itemno_acc = 9.
it_accounttax-gl_account = '0011361502'.
it_accounttax-tax_code = 'A3'.
it_accounttax-acct_key = 'VST'.
it_accounttax-cond_key = 'MWVS'.
it_accounttax-itemno_tax = 4.
append it_accounttax.
endform. "fill_accounttax
FORM fill_currencyamount *
form fill_currencyamount.
clear it_currencyamount.
it_currencyamount-itemno_acc = 1.
it_currencyamount-curr_type = '00'.
it_currencyamount-currency = 'MXN'.
it_currencyamount-amt_doccur = '-7408036.2'.
append it_currencyamount.
clear it_currencyamount.
it_currencyamount-itemno_acc = 2.
it_currencyamount-curr_type = '00'.
it_currencyamount-currency = 'MXN'.
it_currencyamount-amt_doccur = '5336472.00'.
append it_currencyamount.
clear it_currencyamount.
it_currencyamount-itemno_acc = 3.
it_currencyamount-curr_type = '00'.
it_currencyamount-currency = 'MXN'.
it_currencyamount-amt_doccur = '3840.00'.
append it_currencyamount.
clear it_currencyamount.
it_currencyamount-itemno_acc = 4.
it_currencyamount-curr_type = '00'.
it_currencyamount-currency = 'MXN'.
it_currencyamount-amt_base = '5548.00'.
it_currencyamount-amt_doccur = '832.2'.
it_currencyamount-amt_doccur = '576.00'.
it_currencyamount-amt_base = '3840.00'.
append it_currencyamount.
clear it_currencyamount.
it_currencyamount-itemno_acc = 5.
it_currencyamount-curr_type = '00'.
it_currencyamount-currency = 'MXN'.
it_currencyamount-amt_doccur = '2051279.00'.
append it_currencyamount.
clear it_currencyamount.
it_currencyamount-itemno_acc = 6.
it_currencyamount-curr_type = '00'.
it_currencyamount-currency = 'MXN'.
it_currencyamount-amt_doccur = '1690.00'.
append it_currencyamount.
clear it_currencyamount.
it_currencyamount-itemno_acc = 7.
it_currencyamount-curr_type = '00'.
it_currencyamount-currency = 'MXN'.
it_currencyamount-amt_base = '1690.00'.
it_currencyamount-amt_doccur = '253.5'.
append it_currencyamount.
clear it_currencyamount.
it_currencyamount-itemno_acc = 8.
it_currencyamount-itemno_acc = 7.
it_currencyamount-curr_type = '00'.
it_currencyamount-currency = 'MXN'.
it_currencyamount-amt_doccur = '13905.00'.
append it_currencyamount.
clear it_currencyamount.
it_currencyamount-itemno_acc = 9.
it_currencyamount-itemno_acc = 8.
it_currencyamount-curr_type = '00'.
it_currencyamount-currency = 'MXN'.
it_currencyamount-amt_base = '2.70'.
it_currencyamount-amt_doccur = '18.00'.
append it_currencyamount.
clear it_currencyamount.
it_currencyamount-itemno_acc = 10.
it_currencyamount-itemno_acc = 9.
it_currencyamount-curr_type = '00'.
it_currencyamount-currency = 'MXN'.
it_currencyamount-amt_doccur = '2.70'.
it_currencyamount-amt_base = '18.00'.
append it_currencyamount.
endform. "fill_currencyamount
FORM fill_criteria *
form fill_criteria.
CLEAR it_criteria.
it_criteria-itemno_acc = 2.
it_criteria-fieldname = 'BZIRK'.
it_criteria-character = '000001'.
append it_criteria.
endform. "fill_criteria
FORM fill_valuefield *
form fill_valuefield.
CLEAR it_valuefield.
it_valuefield-itemno_acc = 2.
it_valuefield-fieldname = 'VV010'.
it_valuefield-curr_type
it_valuefield-currency = 'EUR'.
it_valuefield-currency_iso
it_valuefield-amt_valcom
it_valuefield-base_uom
it_valuefield-base_uom_iso
it_valuefield-qua_valcom
append it_valuefield.
endform. "fill_valuefield
FORM fill_extension *
form fill_extension.
CLEAR it_ext.
it_ext-field1
it_ext-field2
it_ext-field3
it_ext-field4
APPEND it_ext.
DATA: ls_zzz TYPE ZZZ_ACCIT.
CLEAR it_ext2.
it_ext2-structure = 'ZZZ_ACCIT'.
ls_zzz-posnr = 2.
ls_zzz-awref_reb = '123654'.
ls_zzz-aworg_reb = '654654'.
ls_zzz-grant_nbr = '0022002'.
MOVE ls_zzz TO it_ext2-valuepart1.
APPEND it_ext2.
endform. "fill_extension
FORM fill_paymentcard *
form fill_paymentcard.
CLEAR it_paymentcard.
it_paymentcard-itemno_acc = 1.
it_paymentcard-cc_glaccount
it_paymentcard-cc_type
it_paymentcard-cc_number
it_paymentcard-cc_seq_no
it_paymentcard-cc_valid_f
it_paymentcard-cc_valid_t
it_paymentcard-cc_name
it_paymentcard-dataorigin
it_paymentcard-authamount = '100'.
it_paymentcard-currency = 'EUR'.
it_paymentcard-currency_iso
it_paymentcard-cc_autth_no
it_paymentcard-auth_refno
it_paymentcard-auth_date
it_paymentcard-auth_time
it_paymentcard-merchidcl
it_paymentcard-point_of_receipt
it_paymentcard-terminal
it_paymentcard-cctyp = '1'.
APPEND it_paymentcard.
endform. "fill_paymentcard
FORM fill_contractitem *
form fill_contractitem.
CLEAR it_fica_it.
it_fica_it-itemno_acc
it_fica_it-cont_acct
it_fica_it-main_trans
it_fica_it-sub_trans
it_fica_it-func_area
it_fica_it-fm_area
it_fica_it-cmmt_item
it_fica_it-funds_ctr
it_fica_it-fund
append it_fica_it.
endform. "fill_contractitem
*& Form fill_re
form fill_re .
CLEAR it_re.
it_re-itemno_acc =
it_re-business_entity =
it_re-building =
it_re-property =
it_re-rental_object =
it_re-serv_charge_key =
it_re-settlement_unit =
it_re-contract_no =
APPEND it_re.
endform. "fill_re
thanks
mrutyun^ -
Posting an accounting document with material using BAPI (ver 4.6c)
Hello!
Can anyone help me out with this one please?
I need to post an accounting document using BAPI. Since the customer's SAP is 4.6c, the BAPI I found closest is BAPI_ACC_GL_POSTING_POST.
The posting has 2 specific requirements:
1. For the Vendor item, the tax needs to be calculated; and
2. For the G/L items, the corresponding material/quantity needs to be entered
So, my questions are:
1. How do you enable the "Calculate Tax" option, which is the Calculate Tax checkbox in F-02?
2. How do you enter the material and quantity for the G/L items?
Thanks a lot!Hi,
Before posting your document please check first whether this is reversal or not.
please use BAPI_ACC_DOCUMENT_REV_CHECK to check reversal document
Have a Nice Day,
Regards,
Sujeet -
How to update Assignment field in Accounting Document ? Any method
Hello experts,
i want to change Assignment field in already posted accounting document. The field is "GSBER".
i think i can't do a BDC on transaction FB09 or FB02 because this field is no available to change..
any advice ?
regards.i was looking for some bapi, then i found
BAPI_ACC_DOCUMENT_REV_CHECK Accounting: Check Reversal
BAPI_ACC_DOCUMENT_REV_POST Accounting: Post Reversal
maybe i could use that, or find an enhancement point in the aplication ?.
I suppose i have both options. -
IDOC/ BAPI for transaction FB60
Hi Experts,
Can anybody tell me IDOC/ BAPI for transaction FB60 for document type (KR = Original Invoice).
ThanksHi Venkata,
Please refer below code, this works similar to FB60.
REPORT z_bapi_test.
*REPORT acc_bapi_test_document .
SELECTION-SCREEN BEGIN OF BLOCK bl01 .
PARAMETERS:
check_l RADIOBUTTON GROUP rb1,
check_a DEFAULT 'X' RADIOBUTTON GROUP rb1,
post RADIOBUTTON GROUP rb1.
SELECTION-SCREEN ULINE.
PARAMETERS:
rev_c RADIOBUTTON GROUP rb1,
rev_p RADIOBUTTON GROUP rb1.
SELECTION-SCREEN ULINE.
PARAMETERS:
ref_key LIKE bapiache01-obj_key DEFAULT 'TEST000001BAPICALL',
dest LIKE bdi_logsys-logsys DEFAULT ' '.
SELECTION-SCREEN END OF BLOCK bl01 .
DATA:
gd_documentheader LIKE bapiache09,
gd_customercpd LIKE bapiacpa09,
gd_fica_hd LIKE bapiaccahd,
it_accountreceivable LIKE TABLE OF bapiacar09 WITH HEADER LINE,
it_accountgl LIKE TABLE OF bapiacgl09 WITH HEADER LINE,
it_accounttax LIKE TABLE OF bapiactx09 WITH HEADER LINE,
it_criteria LIKE TABLE OF bapiackec9 WITH HEADER LINE,
it_valuefield LIKE TABLE OF bapiackev9 WITH HEADER LINE,
it_currencyamount LIKE TABLE OF bapiaccr09 WITH HEADER LINE,
it_return LIKE TABLE OF bapiret2 WITH HEADER LINE,
it_receivers LIKE TABLE OF bdi_logsys WITH HEADER LINE,
it_fica_it LIKE TABLE OF bapiaccait WITH HEADER LINE,
it_accountpayable LIKE TABLE OF bapiacap09 WITH HEADER LINE,
it_paymentcard LIKE TABLE OF bapiacpc09 WITH HEADER LINE,
it_ext LIKE TABLE OF bapiacextc WITH HEADER LINE.
it_re LIKE TABLE OF bapiacre09 WITH HEADER LINE,
it_ext2 LIKE TABLE OF bapiparex WITH HEADER LINE.
PERFORM fill_internal_tables.
IF check_l = 'X'.
CALL FUNCTION 'BAPI_ACC_DOCUMENT_CHECK'
DESTINATION dest
EXPORTING
documentheader = gd_documentheader
customercpd = gd_customercpd
contractheader = gd_fica_hd
TABLES
accountgl = it_accountgl
accountreceivable = it_accountreceivable
accountpayable = it_accountpayable
accounttax = it_accounttax
currencyamount = it_currencyamount
criteria = it_criteria
valuefield = it_valuefield
extension1 = it_ext
return = it_return
paymentcard = it_paymentcard
contractitem = it_fica_it.
extension2 = it_ext2
realestate = it_re.
WRITE: / 'Result of check lines:'. "#EC NOTEXT
PERFORM show_messages.
ENDIF.
IF check_a = 'X'.
CALL FUNCTION 'BAPI_ACC_DOCUMENT_CHECK'
DESTINATION dest
EXPORTING
documentheader = gd_documentheader
customercpd = gd_customercpd
contractheader = gd_fica_hd
TABLES
accountgl = it_accountgl
accountreceivable = it_accountreceivable
accountpayable = it_accountpayable
accounttax = it_accounttax
currencyamount = it_currencyamount
criteria = it_criteria
valuefield = it_valuefield
extension1 = it_ext
return = it_return
paymentcard = it_paymentcard
contractitem = it_fica_it.
extension2 = it_ext2
realestate = it_re.
WRITE: / 'Result of check all:'. "#EC NOTEXT
PERFORM show_messages.
ENDIF.
IF post = 'X'.
DATA: l_type LIKE gd_documentheader-obj_type,
l_key LIKE gd_documentheader-obj_key,
l_sys LIKE gd_documentheader-obj_sys.
IF dest = space OR
dest = gd_documentheader-obj_sys.
post synchron
CALL FUNCTION 'BAPI_ACC_DOCUMENT_POST'
EXPORTING
documentheader = gd_documentheader
customercpd = gd_customercpd
contractheader = gd_fica_hd
IMPORTING
obj_type = l_type
obj_key = l_key
obj_sys = l_sys
TABLES
accountgl = it_accountgl
accountreceivable = it_accountreceivable
accountpayable = it_accountpayable
accounttax = it_accounttax
currencyamount = it_currencyamount
criteria = it_criteria
valuefield = it_valuefield
extension1 = it_ext
return = it_return
paymentcard = it_paymentcard
contractitem = it_fica_it.
extension2 = it_ext2
realestate = it_re.
WRITE: / 'Result of post:'. "#EC NOTEXT
PERFORM show_messages.
ELSE.
create Idoc
it_receivers-logsys = dest.
APPEND it_receivers.
CALL FUNCTION 'ALE_ACC_DOCUMENT_POST'
EXPORTING
documentheader = gd_documentheader
customercpd = gd_customercpd
contractheader = gd_fica_hd
TABLES
accountgl = it_accountgl
accountreceivable = it_accountreceivable
accountpayable = it_accountpayable
accounttax = it_accounttax
currencyamount = it_currencyamount
criteria = it_criteria
valuefield = it_valuefield
extension1 = it_ext
paymentcard = it_paymentcard
contractitem = it_fica_it
extension2 = it_ext2
realestate = it_re
receivers = it_receivers
COMMUNICATION_DOCUMENTS* APPLICATION_OBJECTS EXCEPTIONS
error_creating_idocs = 1
OTHERS = 2 .
IF sy-subrc = 0.
WRITE: / 'IDoc created'. "#EC NOTEXT
ELSE.
WRITE: sy-msgid.
ENDIF.
ENDIF.
ENDIF.
IF rev_p = 'X' OR rev_c = 'X'.
DATA: rev LIKE bapiacrev,
rev_key LIKE ref_key.
rev_key = ref_key.
rev_key(1) = 'R'.
rev-obj_type = gd_documentheader-obj_type.
rev-obj_key = rev_key.
rev-obj_sys = gd_documentheader-obj_sys.
rev-obj_key_r = ref_key.
IF rev_c IS INITIAL.
IF dest = space OR
dest = gd_documentheader-obj_sys.
CALL FUNCTION 'BAPI_ACC_DOCUMENT_REV_POST'
EXPORTING
reversal = rev
bus_act = gd_documentheader-bus_act
TABLES
return = it_return.
ELSE.
it_receivers-logsys = dest.
APPEND it_receivers.
CALL FUNCTION 'ALE_ACC_DOCUMENT_REV_POST'
EXPORTING
reversal = rev
busact = gd_documentheader-bus_act
OBJ_TYPE = 'BUS6035'
SERIAL_ID = '0'
TABLES
receivers = it_receivers
COMMUNICATION_DOCUMENTS* APPLICATION_OBJECTS EXCEPTIONS
error_creating_idocs = 1
OTHERS = 2
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ELSE.
WRITE: / 'IDoc created'. "#EC NOTEXT
ENDIF.
ENDIF.
ELSE.
CALL FUNCTION 'BAPI_ACC_DOCUMENT_REV_CHECK'
EXPORTING
reversal = rev
bus_act = gd_documentheader-bus_act
TABLES
return = it_return.
ENDIF.
WRITE: / 'Result of Reversal Posting:'. "#EC NOTEXT
PERFORM show_messages.
ENDIF.
COMMIT WORK.
Kindly close if it helps you.
Regards
Abhii... -
Hello Experts,
I am in need for standard BAPIs for the following info types. If it is not available please help me with some way.
<b>Infotypes:
 0002 (Personal Data)
 0006 (Addresses)
 0009 (Bank details)
 0021 (Family member/dependents)
 0023 (Other/Previous employers)
 0028 (Internal medical service) subtype 0008 (Blood group)
 0185 (Personal IDs)
 0591 (Nominations)
 0000 (Actions)
 0001 (Organizational Assignment)
 0007 (Planned working time)
 0016 (Contract Elements)
 0017 (Travel Privileges)
 2006 (Absence Quotas)</b>
Thanks & Regards
NigeshHi,
list of BAPI Funtions
0035 BAPI for Grant Master Data
BAPI_0035_CHANGE Change grant master data
BAPI_0035_CREATE Create GM grant master data
BAPI_0035_GET_DETAIL Get detail of grant master data
0036 BAPI for BudgetEntryDocGM
BAPI_0036_CREATE Create GM Budgeting Entry Document
BAPI_0036_GET_DETAIL Get the detail of a GM budget entry document
BAPI_0036_GET_LIST Get list of GM budgeting entry docs.
BAPI_0036_REVERSE Reverse GM Budgteing Entry document
0038 BAPIs for Funded Program
BAPI_0038_CHANGE Change a Funded Program
BAPI_0038_CREATE Create Funded Program
BAPI_0038_DELETE Delete a Funded Program
BAPI_0038_GETDETAIL Get details to a Funded Program
BAPI_0038_GETLIST Get list of Funded Programs
0050 BAPI for BudgetEntryDocFM
BAPI_0050_CREATE Create FM Budgeting Entry document
BAPI_0050_GET_DETAIL Get FM budgeting entry document
BAPI_0050_GET_LIST Get list of budgeting entry documents
BAPI_0050_REVERSE Reverse FM Budgeting Entry document
0051 BAPI for BudgetFM (mass data)
BAPI_0051_GET_TOTALS Get FM budget totals
BAPI_0051_UPDATE FM Budgeting - Update totals
1031 Business Object BUS1031 (Activity Type)
BAPI_ACTIVITYTYPE_GETDETAIL Detail Information for Activity Type on Key Date
BAPI_ACTIVITYTYPE_GETLIST List of Activity Types Using Selection Criteria
BAPI_ACTIVITYTYPE_GETPRICES Output Activity Prices for Activity Types on Key Date
BAPI_ACTTYPE_CHANGEMULTIPLE Change One or More Activity Types
BAPI_ACTTYPE_CREATEMULTIPLE Create One or More Activity Types
2145 Business Objects Complaints AB (BAPI)
BAPI_ABCLAIM_CREATE AB-CWB: Create BAPI Complaint
4499 Business Object: Bank Statement
BAPI_ACCSTMT_CREATEFROMBALANCE Store account balance/check debit information
BAPI_ACCSTMT_CREATEFROMLOCKBOX Create lockbox data
BAPI_ACCSTMT_CREATEFROMPREVDAY Create Bank Statement/Day-End Statement
BAPI_ACCSTMT_CREATEFROMSAMEDAY Create Bank Statement/Today's Data
ABSE Object Type "Absence"
BAPI_ABSENCE_APPROVE Unlock absence
BAPI_ABSENCE_CHANGE Change absence
BAPI_ABSENCE_CREATE Create absence
BAPI_ABSENCE_DELETE Delete absence
BAPI_ABSENCE_GETDETAIL Read absence
BAPI_ABSENCE_GETDETAILEDLIST Read instances with data
BAPI_ABSENCE_GETLIST Read instances
BAPI_ABSENCE_REQUEST Create locked absence
BAPI_ABSENCE_SIMULATECREATION Simulation: Create absence
ACC4 FI/CO: BAPIs for UPDATE
BAPI_ACC_BILLING_CHECK Accounting: Check Billing Doc. (OAG: LOAD RECEIVABLE)
BAPI_ACC_BILLING_POST Accounting: Post invoice (OAG: LOAD RECEIVABLE)
BAPI_ACC_DOCUMENTS_RECORD Follow-On Document Numbers in Accounting for Multiple Source Documents
BAPI_ACC_EMPLOYEE_EXP_CHECK Accounting: Check G/L acct assignment for HR posting (OAG:POST JOURNAL
BAPI_ACC_EMPLOYEE_EXP_POST Accounting: Post G/L account assignment for HR posting (OAG:POST JOURN
BAPI_ACC_EMPLOYEE_PAY_CHECK Accounting: Check Vendor Acct Assignment for HR Posting (OAG:LOAD PAYA
BAPI_ACC_EMPLOYEE_PAY_POST Accounting: Post Vendor Acct Assignment for HR Posting (OAG: LOAD PAYA
BAPI_ACC_EMPLOYEE_REC_CHECK Accounting: Check Cust. Acct Assignmt for HR Posting (OAG:LOAD RECEIVA
BAPI_ACC_EMPLOYEE_REC_POST FI/CO: Post Customer Acct Assignment for HR Posting (OAG: LOAD RECEIVA
BAPI_ACC_GL_POSTING_CHECK Accounting: General G/L Account Posting
BAPI_ACC_GL_POSTING_POST Accounting: General G/L Account Posting
BAPI_ACC_GOODS_MOVEMENT_CHECK Accounting: Check Goods Movement (OAG: POST JOURNAL)
BAPI_ACC_GOODS_MOVEMENT_POST Accounting: Post Goods Movement (OAG: POST JOURNAL)
BAPI_ACC_INVOICE_RECEIPT_CHECK Accounting: Check Invoice Receipt (OAG: LOAD PAYABLE)
BAPI_ACC_INVOICE_RECEIPT_POST Accounting: Post Invoice Receipt (OAG: LOAD PAYABLE)
BAPI_ACC_PURCHASE_ORDER_CHECK Accounting: Check Purchase Order
BAPI_ACC_PURCHASE_ORDER_POST Accounting: Post Purchase Order
BAPI_ACC_PURCHASE_REQUI_CHECK Accounting: Check Purchase Requisition
BAPI_ACC_PURCHASE_REQUI_POST Accounting: Post Purchase Requisition
BAPI_ACC_SALES_ORDER_CHECK Accounting: Check Sales Order
BAPI_ACC_SALES_ORDER_POST Accounting: Post Sales Order
BAPI_ACC_SALES_QUOTA_CHECK Accounting: Check Customer Quotation
BAPI_ACC_SALES_QUOTA_POST Accounting: Post Customer Quotation
BAPI_ACC_TRAVEL_CHECK Accounting: Check Trip
BAPI_ACC_TRAVEL_POST Accounting: Post Trip
ACC5 FI/CO: BAPIs Asset Postings
BAPI_ACC_ASSET_ACQ_SETT_CHECK ACC: Asset Acquisition - Synchronous Determination of Capitalization V
BAPI_ACC_ASSET_ACQ_SETT_POST ACC: Asset Acquisition-Asynchronous Determination of Capitalization Va
BAPI_ACC_***_ACQUISITION_CHECK BAPI: Check Asset Acquisition
BAPI_ACC_***_INTRA_TRANS_CHECK Accounting: Post Asset Transfer
BAPI_ACC_***_POSTCAP_CHECK BAPI: Check Subsequent Capitalization
BAPI_ACC_***_RETIREMENT_CHECK BAPI: Check Asset Retirement
BAPI_ACC_***_TRANSFER_CHECK Accounting: Post Asset Transfer
BAPI_ACC_***_TRANSFER_POST Accounting: Post Asset Transfer
BAPI_ACC_***_TRANS_ACQ_CHECK Accounting: Check acquisition from transfer
BAPI_ACC_***_TRANS_ACQ_POST Accounting: Post acquisition from transfer
BAPI_ACC_***_TRANS_RET_CHECK Accounting: Post Asset Transfer
BAPI_ACC_AUC_ACQUISITION_CHECK Accounting: Asset Acquisition from Settlement
BAPI_ACC_AUC_ACQUISITION_POST Accounting: Asset Acquisition from Settlement
ACC6 Accounting: BAPIs for UPDATE II
BAPI_ACC_BILLING_REV_CHECK Accounting: Check Billing Document Reversal (OAG: LOAD RECEIVABLE)
BAPI_ACC_BILLING_REV_POST Accounting: Post Billing Doc.Reversal (OAG: LOAD RECEIVABLE)
BAPI_ACC_GL_POSTING_REV_CHECK Accounting: Check Reversal of General G/L Account Posting
BAPI_ACC_GL_POSTING_REV_POST Accounting: Post General G/L Posting Reversal
BAPI_ACC_GOODS_MOV_REV_CHECK Accounting: Check Goods Movement Reversal (OAG: POST JOURNAL)
BAPI_ACC_GOODS_MOV_REV_POST Accounting: Post Goods Movement Reversal (OAG: POST JOURNAL)
BAPI_ACC_INVOICE_REV_CHECK Accounting: Check Reversal of Invoice Receipt (OAG: LOAD PAYABLE)
BAPI_ACC_INVOICE_REV_POST Accounting: Post Invoice Receipt Reversal (OAG: LOAD PAYABLE)
BAPI_ACC_PYMNTBLK_UPDATE_CHECK Accounting: Check Changes to Payment Block for Open Items
BAPI_ACC_PYMNTBLK_UPDATE_POST Accounting: Post Changes to Payment Block for Open Items
ACC9 Accounting: BAPIs
BAPI_ACC_DOCUMENT_CHECK Accounting: Check
BAPI_ACC_DOCUMENT_POST Accounting: Posting
BAPI_ACC_DOCUMENT_REV_CHECK Accounting: Check Reversal
BAPI_ACC_DOCUMENT_REV_POST Accounting: Post Reversal
AEMM Additionals in integrated mat. maint.
BAPI_ADDITIONAL_MAINTAINDATA Create and Change Additionals Assignments (Retail)
BEACTIVITY Process modeling activity
BAPI_ACTIVITY_COMPARE Test Module for Modeling
BAPI_ACTIVITY_GETALLCOUPLING Determination of Coupling Events for Several Activities
BAPI_ACTIVITY_GETCOUPLING Get activity coupling events
BAPI_ACTIVITY_GETDETAIL Read diagram
BAPI_ACTIVITY_GETPOTCOUPLING Get potential coupling events between two activities
BAPI_ACTIVITY_GET_PARENTS Delivers Higher-Level Activities
BAPI_ACTIVTY_GETDIAGRAMIDS Read diagram
CRM_CO_SLS CO Interface CRM Sales
BAPI_ACCOUNTING_PROXY_UPLOAD Account Assignment Objects for CRM Transactions
FAGL_SKF_BAPI
BAPI_ACC_POST_STAT_KEYFIGURE
FKN5 BAPI Account Balances
BAPI_ACCOUNT_GETBALANCES Retrieves Balances for a Contract Acct
IPPEBAPI_ACT
BAPI_1179_EXISTENCECHECK
BAPI_1179_REPLICATE
BAPI_1179_SAVEREPLICA
IPPEBAPI_BAL
BAPI_1183_EXISTENCECHECK
BAPI_1183_REPLICATE
BAPI_1183_SAVEREPLICA
IPPEBAPI_CMP iPPE: Component BAPIs
BAPI_1176001_EXISTENCECHECK Check Existence of Product Structure Variant
BAPI_1176_EXISTENCECHECK Check Existence of a Product Structure Node
BAPI_1176_REPLICATE Replicate Product Structure Nodes
BAPI_1176_SAVEREPLICA Maintain or Create Product Structure
IPPEBAPI_FLO
BAPI_1182_EXISTENCECHECK
BAPI_1182_REPLICATE
BAPI_1182_SAVEREPLICA
IPPEBAPI_GEN iPPE: BAPIs for Generic Engineering Node
BAPI_1197_EXISTENCECHECK Check Existence of Generic Engineering Node
BAPI_1197_REPLICATE Replicate the Generic Engineering Node
BAPI_1197_SAVEREPLICA Create and Change Generic Engineering Node
IPPEBAPI_MPO
BAPI_1220_REPLICATE
BAPI_1220_SAVEREPLICA
IPPEBAPI_PRM
BAPI_1196_EXISTENCECHECK
BAPI_1196_REPLICATE
BAPI_1196_SAVEREPLICA
IPPEBAPI_RES
BAPI_1193_EXISTENCECHECK
BAPI_1193_REPLICATE
BAPI_1193_SAVEREPLICA
K23G Service Function Modules
BAPI_ACC_CO_DOCUMENT_FIND Read CO Document for Manual Actual Postings
K40C CO Actual Postings, Manual
BAPI_ACC_ACTIVITY_ALLOC_CHECK Accounting: Check Activity Allocation
BAPI_ACC_ACTIVITY_ALLOC_POST Accounting: Post Activity Allocation
BAPI_ACC_ACT_POSTINGS_REVERSE Accounting: Reverse CO Documents - Manual Actual Postings
BAPI_ACC_MANUAL_ALLOC_CHECK Accounting: Check Manual Cost Allocation
BAPI_ACC_MANUAL_ALLOC_POST Accounting: Post Manual Cost Allocation
BAPI_ACC_PRIMARY_COSTS_CHECK Accounting: Check Primary Costs
BAPI_ACC_PRIMARY_COSTS_POST Accounting: Post Primary Costs
BAPI_ACC_REVENUES_CHECK Accounting: Check Revenues
BAPI_ACC_REVENUES_POST Accounting: Post Revenues
BAPI_ACC_SENDER_ACTIVITY_CHECK Accounting: Check Sender Activities
BAPI_ACC_SENDER_ACTIVITY_POST Accounting: Post Sender Activities
BAPI_ACC_STAT_KEY_FIG_CHECK Accounting: Check Statistical Key Figures
BAPI_ACC_STAT_KEY_FIG_POST Accounting: Post Statistical Key Figures
KACG Coding Block: FI/LO Part of KACB
BAPI_ACCSERV_CHECKACCASSIGNMT BAPI: Object BUS6001 AccountingServices, Method CheckAccountAssignment
KGR2 External Access to CO Hierarchies
BAPI_ACTIVITYTYPEGRP_ADDNODE Object BUS1115 (Activity Type Group) - Method AddNode
BAPI_ACTIVITYTYPEGRP_CREATE Object BUS1115 (Activity Type Group) - Method Create
BAPI_ACTIVITYTYPEGRP_GETDETAIL Object BUS1115 (Activity Type Group) - Method GetDetail
BAPI_ACTIVITYTYPEGRP_GETLIST Object BUS1115 (Activity Type Group) - Method GetList
KPLB BAPIs: Plan data interface
BAPI_ACT_INPUT_CHECK_AND_POST Activity Type Planning/Price Planning: Formal Parameter Check
BAPI_ACT_INPUT_READ Activity Type Planning/Price Planning: Formal Parameter Check
BAPI_ACT_PRICE_CHECK_AND_POST Activity Type Planning/Price Planning: Formal Parameter Check
BAPI_ACT_PRICE_READ Activity Type Planning/Price Planning: Formal Parameter Check
OPERS_CA Business Object: Other Personal Data
BAPI_ADDITIONALDATA_GETDETAIL Read additional personal data
BAPI_ADDPERSDATA_CHANGE Change additional personal data
BAPI_ADDPERSDATA_CREATE Create additional personal data
BAPI_ADDPERSDATA_DELETE Delete additional personal data
BAPI_ADDPERSDATA_DELIMIT Delimit additional personal data validity period
BAPI_ADDPERSDATA_GETDETAILEDLI Read instances with data
BAPI_ADDPERSDATA_GETLIST Read instances
PADR_AU Business Object AddressEmp (AU)
BAPI_ADDREMPAU_CHANGE ESS Address Change - Australia
BAPI_ADDREMPAU_CREATE ESS Address Create - Australia
BAPI_ADDREMPAU_CREATESUCCESSOR ESS Address Create Successor - Australia
BAPI_ADDREMPAU_GETDETAIL ESS Address Get Detail - Australia
BAPI_ADDREMPAU_GETDETAILEDLIST Read instances with data
BAPI_ADDREMPAU_REQUEST ESS Address Request - Australia
BAPI_ADDREMPAU_SIMULATECREATN ESS Address Simulate Creation - Australia
PADR_CH Business Object: AddressEmp
BAPI_ADDREMPCH_CREATESUCCESSOR Create Subsequent Employee Address Record
BAPI_ADDREMPCH_GETDETAILEDLIST Read Instances with Data
PADR_DE Business Object AddressEmp (DE)
BAPI_ADDREMPDE_CREATESUCCESSOR Create Next Employee Address Record
BAPI_ADDREMPDE_GETDETAILEDLIST Read Instances with Data
PADR_DK Business Object AddressEmp - DK
BAPI_ADDREMPDK_CREATESUCCESSOR Create Subs.Employee Address Record
BAPI_ADDREMPDK_GETDETAILEDLIST Read Instances with Data
PADR_ES Business Object AddrEmpE
BAPI_ADDREMPES_CREATESUCCESSOR Personnel number next record create
BAPI_ADDREMPES_GETDETAILEDLIST Read instances with data
PADR_FR Business Object AddrEmpFR
BAPI_ADDREMPFR_CREATESUCCESSOR Franch Employee Address: Create Next Record
BAPI_ADDREMPFR_GETDETAILEDLIST Read Data Records in Period (French Employee Addresses)
PADR_HK Business object: AddressEmp (HK)
BAPI_ADDREMPHK_CHANGE Change Employee Address (Hong Kong)
BAPI_ADDREMPHK_CREATE Create Employee Address (Hong Kong)
BAPI_ADDREMPHK_CREATESUCCESSOR Create subs.employee address record (Hong Kong)
BAPI_ADDREMPHK_GETDETAIL Read employee address (Hong Kong)
BAPI_ADDREMPHK_GETDETAILEDLIST Read instances with data (Hong Kong)
BAPI_ADDREMPHK_REQUEST Create locked employee address record (Hong Kong)
BAPI_ADDREMPHK_SIMULATECREATE Simulation: Create Employee Address (Hong Kong)
PADR_ID Business Object AddressEmp (ID)
BAPI_ADDREMPID_CHANGE ESS Address Change - Indonesia
BAPI_ADDREMPID_CREATE ESS Address Create - Indonesia
BAPI_ADDREMPID_CREATESUCCESSOR ESS Address Create Successor - Indonesia
BAPI_ADDREMPID_GETDETAIL ESS Address Get Detail - Indonesia
BAPI_ADDREMPID_GETDETAILEDLIST Read instances with data - Indonesia
BAPI_ADDREMPID_REQUEST Create locked employee address record - Indonesia
BAPI_ADDREMPID_SIMULATECREATIO ESS Address Simulate Creation - Indonesia
PADR_IE Business Object AddressEmp - Ireland
BAPI_ADDREMPIE_CREATESUCCESSOR Create subs.employee address record
BAPI_ADDREMPIE_GETDETAILEDLIST Read instances with data
PADR_IT HR Employee Self-Service: Address Italy
BAPI_ADDREMPIT_CREATESUCCESSOR Create personnel number next record
BAPI_ADDREMPIT_GETDETAILEDLIST <Currently not used>
PADR_MY Business Object AddressEmp (MY)
BAPI_ADDREMPMY_CHANGE ESS Address Change - Malaysia
BAPI_ADDREMPMY_CREATE ESS Address Create - Malaysia
BAPI_ADDREMPMY_CREATESUCCESSOR ESS Address Create Successor - Malaysia
BAPI_ADDREMPMY_GETDETAIL ESS Address Get Detail - Malaysia
RCP990
BAPI_1194_REPLICATE_GR
BAPI_1194_SAVEREP_MULTIPLE_GR
RCP993
BAPI_1198_REPLICATE_SR
BAPI_1198_SAVEREP_MULTIPLE_SR
RWCL Interface to Accounting
BAPI_ACC_DOCUMENT_DISPLAY Accounting: Display Method for Follow-On Document Display
BAPI_ACC_DOCUMENT_RECORD Accounting: Follow-on document numbers for source document
SZAM BAPIs f. BOR obj. BUS4003 (AddrContPart)
BAPI_ADDRCONTPART_SAVEREPLICA BAPI for inbound distribution of contact person addresses
Reward points if found helpful ..
Cheers,
Chandra Sekhar. -
BAPI to reverse a Document posted using transaction FB50 in ECC5.0
Hi All,
We have a requirement to reverse the document that is posted using the transaction FB50.We found the below BAPIu2019s for this requirement:
BAPI_ACC_DOCUMENT_REV_CHECK
BAPI_ACC_DOCUMENT_REV_POST
While trying to execute them, we are getting the error message u201C It cannot be postedu201D.
Please let me know if anyone has worked on these BAPIu2019s or information on any other BAPIu2019s would be of great help.
Regards
Prathimacheck this link[Reversing a document using the bapi 'BAPI_ACC_DOCUMENT_REV_POST';
-
Regarding: List of Bapi.
HIii,
PLs anyone can provide a list of BAPI which is having some critical functionality like , send a mail , download in pdf , excel , search help etc..
ThanksHi ,
Please find all the Bapis available .
Function Module Name Short text for function module
BAPI1164_COPAHIERUDEF_SETTREE CO-PA Hierarhy User-Defined Set Tree
BAPIADDREMPCH_SIMULATECREATION Simulation: Create Employee Address
BAPIADDREMPDE_SIMULATECREATION Simulation: Create Employee Address
BAPIADDREMPDK_SIMULATECREATION Simulation: Create Employee Address
BAPIADDREMPES_SIMULATECREATION Simulation: Create employee address
BAPIADDREMPFR_SIMULATECREATION Simulation: Create French Employee Address
BAPIADDREMPIE_SIMULATECREATION Simulation: Mitarbeiteradresse anlegen
BAPIADDREMPIT_SIMULATECREATION Simulation: Create employee's address
BAPIADDREMPNL_SIMULATECREATION Simulation: Create Employee Address
BAPIADDREMPUS_SIMULATECREATION Simulation: Create Employee Address
BAPIADDRESSEMPSIMULATECREATION Simulation: Create employee address
BAPIBANKDETAILGBSIMULATECREATN Simulation: Create Bank Details
BAPIBANKDETAILSIMULATECREATINL Simulation: Create Bank Details
BAPIBANKDETAILSIMULATECREATION Simulation: Create Bank Details
BAPIEMPCAPFODESIMULATECREATION Simulation: Create Capital Formation Savings
BAPIINTCONTROLSIMULATECREATION Simulation: Create internal control
BAPISDORDER_GETDETAILEDLIST Sales Order: List of All Order Data
BAPIW4W5INFOUSSIMULATECREATION Employee W4/W5 Information: Simulate Record Creation
BAPI_0050_CREATE Create FM Budgeting Entry document
BAPI_0050_GET_DETAIL Get FM budgeting entry document
BAPI_0050_GET_LIST Get list of budgeting entry documents
BAPI_0050_REVERSE Reverse FM Budgeting Entry document
BAPI_0051_GET_TOTALS Get FM budget totals
BAPI_0051_UPDATE FM Budgeting - Update totals
BAPI_1176001_EXISTENCECHECK Check Existence of Product Structure Variant
BAPI_1176_EXISTENCECHECK Check Existence of a Product Structure Node
BAPI_1176_REPLICATE Replicate Product Structure Nodes
BAPI_1176_SAVEREPLICA Maintain or Create Product Structure
BAPI_1179_EXISTENCECHECK Check Existence of Process Structure Node
BAPI_1179_REPLICATE Replicate Process Structure Nodes
BAPI_1179_SAVEREPLICA Maintain or Create Process Structure
BAPI_1182_EXISTENCECHECK Check Existence of Factory Layout Node
BAPI_1182_REPLICATE Replicate Factory Layout Nodes
BAPI_1182_SAVEREPLICA Maintain or Create Factory Layout
BAPI_1183_EXISTENCECHECK Check Existence of Line Balance
BAPI_1183_REPLICATE Replicate Line Balances
BAPI_1183_SAVEREPLICA Maintain or Create Line Balances
BAPI_1193_EXISTENCECHECK Check Existence of a Resource Node
BAPI_1193_REPLICATE Replicate Production Resources
BAPI_1193_SAVEREPLICA Maintain or Create iPPE Object Resources Nodes
BAPI_1196_EXISTENCECHECK Check Existence of iPPE Production Model
BAPI_1196_REPLICATE Replicate iPPE Production Models
BAPI_1196_SAVEREPLICA Create or Change iPEE Production Model
BAPI_1197_EXISTENCECHECK Check Existence of Generic Engineering Node
BAPI_1197_REPLICATE Replicate the Generic Engineering Node
BAPI_1197_SAVEREPLICA Create and Change Generic Engineering Node
BAPI_ABSENCE_APPROVE Unlock absence
BAPI_ABSENCE_CHANGE Change absence
BAPI_ABSENCE_CREATE Create absence
BAPI_ABSENCE_DELETE Delete absence
BAPI_ABSENCE_GETDETAIL Read absence
BAPI_ABSENCE_GETDETAILEDLIST Read instances with data
BAPI_ABSENCE_GETLIST Read instances
BAPI_ABSENCE_REQUEST Create locked absence
BAPI_ABSENCE_SIMULATECREATION Simulation: Create absence
BAPI_ACCOUNTING_PROXY_UPLOAD Account Assignment Objects for CRM Transactions
BAPI_ACCSERV_CHECKACCASSIGNMT BAPI: Object BUS6001 AccountingServices, Method CheckAccountAssignment
BAPI_ACCSTMT_CREATEFROMBALANCE Store account balance/check debit information
BAPI_ACCSTMT_CREATEFROMLOCKBOX Create lockbox data
BAPI_ACCSTMT_CREATEFROMPREVDAY Create Bank Statement/Day-End Statement
BAPI_ACCSTMT_CREATEFROMSAMEDAY Create Bank Statement/Today's Data
BAPI_ACC_ACTIVITY_ALLOC_CHECK Accounting: Check Activity Allocation
BAPI_ACC_ACTIVITY_ALLOC_POST Accounting: Post Activity Allocation
BAPI_ACC_ACT_POSTINGS_REVERSE Accounting: Reverse CO Documents - Manual Actual Postings
BAPI_ACC_ASSET_ACQ_SETT_CHECK ACC: Asset Acquisition - Synchronous Determination of Capitalization Value
BAPI_ACC_ASSET_ACQ_SETT_POST ACC: Asset Acquisition-Asynchronous Determination of Capitalization Value
BAPI_ACC_***_ACQUISITION_CHECK BAPI: Check Asset Acquisition
BAPI_ACC_***_INTRA_TRANS_CHECK Accounting: Post Asset Transfer
BAPI_ACC_***_POSTCAP_CHECK BAPI: Check Subsequent Capitalization
BAPI_ACC_***_RETIREMENT_CHECK BAPI: Check Asset Retirement
BAPI_ACC_***_TRANSFER_CHECK Accounting: Post Asset Transfer
BAPI_ACC_***_TRANSFER_POST Accounting: Post Asset Transfer
BAPI_ACC_***_TRANS_ACQ_CHECK Accounting: Check acquisition from transfer
BAPI_ACC_***_TRANS_ACQ_POST Accounting: Post acquisition from transfer
BAPI_ACC_***_TRANS_RET_CHECK Accounting: Post Asset Transfer
BAPI_ACC_AUC_ACQUISITION_CHECK Accounting: Asset Acquisition from Settlement
BAPI_ACC_AUC_ACQUISITION_POST Accounting: Asset Acquisition from Settlement
BAPI_ACC_BILLING_CHECK Accounting: Check Billing Doc. (OAG: LOAD RECEIVABLE)
BAPI_ACC_BILLING_POST Accounting: Post Billing Document (OAG: LOAD RECEIVABLE)
BAPI_ACC_BILLING_REV_CHECK Accounting: Check Billing Document Reversal (OAG: LOAD RECEIVABLE)
BAPI_ACC_BILLING_REV_POST Accounting: Post Billing Doc.Reversal (OAG: LOAD RECEIVABLE)
BAPI_ACC_CO_DOCUMENT_FIND Read CO Document for Manual Actual Postings
BAPI_ACC_DOCUMENTS_RECORD Follow-On Document Numbers in Accounting for Multiple Source Documents
BAPI_ACC_DOCUMENT_CHECK Accounting: Check
BAPI_ACC_DOCUMENT_DISPLAY Accounting: Display Method for Follow-On Document Display
BAPI_ACC_DOCUMENT_POST Accounting: Posting
BAPI_ACC_DOCUMENT_RECORD Accounting: Follow-on document numbers for source document
BAPI_ACC_DOCUMENT_REV_CHECK Accounting: Check Reversal
BAPI_ACC_DOCUMENT_REV_POST Accounting: Post Reversal
BAPI_ACC_EMPLOYEE_EXP_CHECK Accounting: Check G/L acct assignment for HR posting (OAG:POST JOURNAL)
BAPI_ACC_EMPLOYEE_EXP_POST Accounting: Post G/L account assignment for HR posting (OAG:POST JOURNAL)
BAPI_ACC_EMPLOYEE_PAY_CHECK Accounting: Check Vendor Acct Assignment for HR Posting (OAG:LOAD PAYABLE)
BAPI_ACC_EMPLOYEE_PAY_POST Accounting: Post Vendor Acct Assignment for HR Posting (OAG: LOAD PAYABLE)
BAPI_ACC_EMPLOYEE_REC_CHECK Accounting: Check Cust. Acct Assignmt for HR Posting (OAG:LOAD RECEIVABLE)
BAPI_ACC_EMPLOYEE_REC_POST FI/CO: Post Customer Acct Assignment for HR Posting (OAG: LOAD RECEIVABLE)
BAPI_ACC_GL_POSTING_CHECK Accounting: General G/L Account Posting
BAPI_ACC_GL_POSTING_POST Accounting: General G/L Account Posting
BAPI_ACC_GL_POSTING_REV_CHECK Accounting: Check Reversal of General G/L Account Posting
BAPI_ACC_GL_POSTING_REV_POST Accounting: Post General G/L Posting Reversal
BAPI_ACC_GOODS_MOVEMENT_CHECK Accounting: Check Goods Movement (OAG: POST JOURNAL)
BAPI_ACC_GOODS_MOVEMENT_POST Accounting: Post Goods Movement (OAG: POST JOURNAL)
BAPI_ACC_GOODS_MOV_REV_CHECK Accounting: Check Goods Movement Reversal (OAG: POST JOURNAL)
BAPI_ACC_GOODS_MOV_REV_POST Accounting: Post Goods Movement Reversal (OAG: POST JOURNAL)
BAPI_ACC_INVOICE_RECEIPT_CHECK Accounting: Check Invoice Receipt (OAG: LOAD PAYABLE)
BAPI_ACC_INVOICE_RECEIPT_POST Accounting: Post Invoice Receipt (OAG: LOAD PAYABLE)
BAPI_ACC_INVOICE_REV_CHECK Accounting: Check Reversal of Invoice Receipt (OAG: LOAD PAYABLE)
BAPI_ACC_INVOICE_REV_POST Accounting: Post Invoice Receipt Reversal (OAG: LOAD PAYABLE)
BAPI_ACC_MANUAL_ALLOC_CHECK Accounting: Check Manual Cost Allocation
BAPI_ACC_MANUAL_ALLOC_POST Accounting: Post Manual Cost Allocation
BAPI_ACC_PRIMARY_COSTS_CHECK Accounting: Check Primary Costs
BAPI_ACC_PRIMARY_COSTS_POST Accounting: Post Primary Costs
BAPI_ACC_PURCHASE_ORDER_CHECK Accounting: Check Purchase Order
BAPI_ACC_PURCHASE_ORDER_POST Accounting: Post Purchase Order
BAPI_ACC_PURCHASE_REQUI_CHECK Accounting: Check Purchase Requisition
BAPI_ACC_PURCHASE_REQUI_POST Accounting: Post Purchase Requisition
BAPI_ACC_PYMNTBLK_UPDATE_CHECK Accounting: Check Changes to Payment Block for Open Items
BAPI_ACC_PYMNTBLK_UPDATE_POST Accounting: Post Changes to Payment Block for Open Items
BAPI_ACC_REVENUES_CHECK Accounting: Check Revenues
BAPI_ACC_REVENUES_POST Accounting: Post Revenues
BAPI_ACC_SALES_ORDER_CHECK Accounting: Check Sales Order
BAPI_ACC_SALES_ORDER_POST Accounting: Post Sales Order
BAPI_ACC_SALES_QUOTA_CHECK Accounting: Check Customer Quotation
BAPI_ACC_SALES_QUOTA_POST Accounting: Post Customer Quotation
BAPI_ACC_SENDER_ACTIVITY_CHECK Accounting: Check Sender Activities
BAPI_ACC_SENDER_ACTIVITY_POST Accounting: Post Sender Activities
BAPI_ACC_STAT_KEY_FIG_CHECK Accounting: Check Statistical Key Figures
BAPI_ACC_STAT_KEY_FIG_POST Accounting: Post Statistical Key Figures
BAPI_ACC_TRAVEL_CHECK Accounting: Check Trip
BAPI_ACC_TRAVEL_POST Accounting: Post Trip
BAPI_ACTIVITYTYPEGRP_ADDNODE Object BUS1115 (Activity Type Group) - Method AddNode
BAPI_ACTIVITYTYPEGRP_CREATE Object BUS1115 (Activity Type Group) - Method Create
BAPI_ACTIVITYTYPEGRP_GETDETAIL Object BUS1115 (Activity Type Group) - Method GetDetail
BAPI_ACTIVITYTYPEGRP_GETLIST Object BUS1115 (Activity Type Group) - Method GetList
BAPI_ACTIVITYTYPE_GETDETAIL Detail Information for Activity Type on Key Date
BAPI_ACTIVITYTYPE_GETLIST List of Activity Types Using Selection Criteria
BAPI_ACTIVITYTYPE_GETPRICES Output Activity Prices for Activity Types on Key Date
BAPI_ACTIVITY_COMPARE Test Module for Modeling
BAPI_ACTIVITY_GETALLCOUPLING Determination of Coupling Events for Several Activities
BAPI_ACTIVITY_GETCOUPLING Get activity coupling events
BAPI_ACTIVITY_GETDETAIL Read diagram
BAPI_ACTIVITY_GETPOTCOUPLING Get potential coupling events between two activities
BAPI_ACTIVITY_GET_PARENTS Delivers Higher-Level Activities
BAPI_ACTIVTY_GETDIAGRAMIDS Read diagram
BAPI_ACTTYPE_CHANGEMULTIPLE Change One or More Activity Types
BAPI_ACTTYPE_CREATEMULTIPLE Create One or More Activity Types
BAPI_ACT_INPUT_CHECK_AND_POST Activity Type Planning/Price Planning: Formal Parameter Check
BAPI_ACT_INPUT_READ Activity Type Planning/Price Planning: Formal Parameter Check
BAPI_ACT_PRICE_CHECK_AND_POST Activity Type Planning/Price Planning: Formal Parameter Check
BAPI_ACT_PRICE_READ Activity Type Planning/Price Planning: Formal Parameter Check
BAPI_ADDITIONALDATA_GETDETAIL Read additional personal data
BAPI_ADDITIONAL_MAINTAINDATA Create and Change Additionals Assignments (Retail)
BAPI_ADDPERSDATA_CHANGE Change additional personal data
BAPI_ADDPERSDATA_CREATE Create additional personal data
BAPI_ADDPERSDATA_DELETE Delete additional personal data
BAPI_ADDPERSDATA_DELIMIT Delimit additional personal data validity period
BAPI_ADDPERSDATA_GETDETAILEDLI Read instances with data
BAPI_ADDPERSDATA_GETLIST Read instances
BAPI_ADDRCONTPART_SAVEREPLICA BAPI for inbound distribution of contact person addresses
BAPI_ADDREMPAU_CHANGE ESS Address Change - Australia
BAPI_ADDREMPAU_CREATE ESS Address Create - Australia
BAPI_ADDREMPAU_CREATESUCCESSOR ESS Address Create Successor - Australia
BAPI_ADDREMPAU_GETDETAIL ESS Address Get Detail - Australia
BAPI_ADDREMPAU_GETDETAILEDLIST Read instances with data
BAPI_ADDREMPAU_REQUEST ESS Address Request - Australia
BAPI_ADDREMPAU_SIMULATECREATN ESS Address Simulate Creation - Australia
BAPI_ADDREMPCH_CREATESUCCESSOR Create Subsequent Employee Address Record
BAPI_ADDREMPCH_GETDETAILEDLIST Read Instances with Data
BAPI_ADDREMPDE_CREATESUCCESSOR Create Next Employee Address Record
BAPI_ADDREMPDE_GETDETAILEDLIST Read Instances with Data
BAPI_ADDREMPDK_CREATESUCCESSOR Create Subs.Employee Address Record
BAPI_ADDREMPDK_GETDETAILEDLIST Read Instances with Data
BAPI_ADDREMPES_CREATESUCCESSOR Personnel number next record create
BAPI_ADDREMPES_GETDETAILEDLIST Read instances with data
BAPI_ADDREMPFR_CREATESUCCESSOR Franch Employee Address: Create Next Record
BAPI_ADDREMPFR_GETDETAILEDLIST Read Data Records in Period (French Employee Addresses)
BAPI_ADDREMPHK_CHANGE Change Employee Address (Hong Kong)
BAPI_ADDREMPHK_CREATE Create Employee Address (Hong Kong)
BAPI_ADDREMPHK_CREATESUCCESSOR Create subs.employee address record (Hong Kong)
BAPI_ADDREMPHK_GETDETAIL Read employee address (Hong Kong)
BAPI_ADDREMPHK_GETDETAILEDLIST Read instances with data (Hong Kong)
BAPI_ADDREMPHK_REQUEST Create locked employee address record (Hong Kong)
BAPI_ADDREMPHK_SIMULATECREATE Simulation: Create Employee Address (Hong Kong)
BAPI_ADDREMPID_CHANGE ESS Address Change - Indonesia
BAPI_ADDREMPID_CREATE ESS Address Create - Indonesia
BAPI_ADDREMPID_CREATESUCCESSOR ESS Address Create Successor - Indonesia
BAPI_ADDREMPID_GETDETAIL ESS Address Get Detail - Indonesia
BAPI_ADDREMPID_GETDETAILEDLIST Read instances with data - Indonesia
BAPI_ADDREMPID_REQUEST Create locked employee address record - Indonesia
BAPI_ADDREMPID_SIMULATECREATIO ESS Address Simulate Creation - Indonesia
BAPI_ADDREMPIE_CREATESUCCESSOR Create subs.employee address record
BAPI_ADDREMPIE_GETDETAILEDLIST Read instances with data
BAPI_ADDREMPIT_CREATESUCCESSOR Create personnel number next record
BAPI_ADDREMPIT_GETDETAILEDLIST <Currently not used>
BAPI_ADDREMPMY_CHANGE ESS Address Change - Malaysia
BAPI_ADDREMPMY_CREATE ESS Address Create - Malaysia
BAPI_ADDREMPMY_CREATESUCCESSOR ESS Address Create Successor - Malaysia
BAPI_ADDREMPMY_GETDETAIL ESS Address Get Detail - Malaysia
BAPI_ADDREMPMY_GETDETAILEDLIST Read instances with data - Malaysia
BAPI_ADDREMPMY_REQUEST Create locked employee address record - Malaysia
BAPI_ADDREMPMY_SIMULATECREATIO ESS Address Simulate Creation - Malaysia
BAPI_ADDREMPNL_CREATESUCCESSOR Create Subsequent Employee Address Record
BAPI_ADDREMPNL_GETDETAILEDLIST Read Authority Data
BAPI_ADDREMPNZ_CHANGE ESS Address Change - Newzealand
BAPI_ADDREMPNZ_CREATE ESS Address Create - Newzealand
BAPI_ADDREMPNZ_CREATESUCCESSOR ESS Address Create Successor -Newzealand
BAPI_ADDREMPNZ_GETDETAIL ESS Address Get Detail - Newzealand
BAPI_ADDREMPNZ_GETDETAILEDLIST Read instances with data
BAPI_ADDREMPNZ_REQUEST ESS Address Request - Newzealand
BAPI_ADDREMPNZ_SIMULATECREATN ESS Address Simulate Creation - Newzealand
BAPI_ADDREMPPT_GETDETAILEDLIST
BAPI_ADDREMPSG_CHANGE ESS Address Change - Singapore
BAPI_ADDREMPSG_CREATE ESS Address Create - Singapore
BAPI_ADDREMPSG_CREATESUCCESSOR ESS Address Create Successor - Singapore
BAPI_ADDREMPSG_GETDETAIL ESS Address Get Detail - Singapore
BAPI_ADDREMPSG_GETDETAILEDLIST Read instances with data - Singapore
BAPI_ADDREMPSG_REQUEST Create locked employee address record - Singapore
BAPI_ADDREMPSG_SIMULATECREATIO ESS Address Simulate Creation - Singapore
BAPI_ADDREMPTH_APPROVE Unlock employee address
BAPI_ADDREMPTH_CHANGE Change Employee Address
BAPI_ADDREMPTH_CREATE Create Employee Address
BAPI_ADDREMPTH_CREATESUCCESSOR Create subs.employee address record
BAPI_ADDREMPTH_DELIMIT Delimit Employee Address Validity Period
BAPI_ADDREMPTH_GETDETAIL Read employee address
BAPI_ADDREMPTH_GETDETAILEDLIST Read instances with data
BAPI_ADDREMPTH_GETLIST Read Instances
BAPI_ADDREMPTH_REQUEST Create locked employee address record
BAPI_ADDREMPTH_SIMULATECREATIO Simulation: Create Employee Address
BAPI_ADDREMPTW_CHANGE Change Employee Address (Taiwan)
BAPI_ADDREMPTW_CREATE Create Employee Address (Taiwan)
BAPI_ADDREMPTW_CREATESUCCESSOR Create subs.employee address record (Taiwan)
BAPI_ADDREMPTW_GETDETAIL Read employee address (Taiwan]
BAPI_ADDREMPTW_GETDETAILEDLIST Read instances with data (Taiwan)
BAPI_ADDREMPTW_REQUEST Create locked employee address record (Taiwan)
BAPI_ADDREMPTW_SIMULATECREATE Simulation: Create Employee Address (Taiwan)
BAPI_ADDREMPUS_CREATESUCCESSOR Create additional employee address record
BAPI_ADDREMPUS_GETDETAILEDLIST Read Instances with Data
BAPI_ADDRESSCONTPART_CHANGE BAPI to change contact person addresses
BAPI_ADDRESSCONTPART_GETDETAIL BAPI to read contact person addresses
BAPI_ADDRESSEMPCH_CHANGE Change Employee Address
BAPI_ADDRESSEMPCH_CREATE Create Employee Address
BAPI_ADDRESSEMPCH_GETDETAIL Read Employee Address
BAPI_ADDRESSEMPCH_REQUEST Create Locked Employee Address Record
BAPI_ADDRESSEMPCREATESUCCESSOR Create Next Employee Address Record
BAPI_ADDRESSEMPDE_CHANGE Change Employee Address
BAPI_ADDRESSEMPDE_CREATE Create Employee Address
BAPI_ADDRESSEMPDE_GETDETAIL Read Employee Address
BAPI_ADDRESSEMPDE_REQUEST Create Locked Employee Address Record
BAPI_ADDRESSEMPDK_CHANGE Change Employee Address
BAPI_ADDRESSEMPDK_CREATE Create Employee Address
BAPI_ADDRESSEMPDK_GETDETAIL Read Employee Address
BAPI_ADDRESSEMPDK_REQUEST Create Locked Employee Address Record
BAPI_ADDRESSEMPES_CHANGE Change employee address
BAPI_ADDRESSEMPES_CREATE Create employee address
BAPI_ADDRESSEMPES_GETDETAIL Read employee address
BAPI_ADDRESSEMPES_REQUEST Create locked employee address
BAPI_ADDRESSEMPFR_CHANGE Change French Employee Address
BAPI_ADDRESSEMPFR_CREATE Create French Employee Address
BAPI_ADDRESSEMPFR_GETDETAIL Read French Employee Address
BAPI_ADDRESSEMPFR_REQUEST Create Locked French Employee Address
BAPI_ADDRESSEMPGETDETAILEDLIST Read instances with data
BAPI_ADDRESSEMPIE_CHANGE Change Employee Address
BAPI_ADDRESSEMPIE_CREATE Create Employee Address
BAPI_ADDRESSEMPIE_GETDETAIL Read employee address
BAPI_ADDRESSEMPIE_REQUEST Create locked employee address record
BAPI_ADDRESSEMPIT_CHANGE Change employee's address
BAPI_ADDRESSEMPIT_CREATE Create employee's address
BAPI_ADDRESSEMPIT_GETDETAIL Read employee's address
BAPI_ADDRESSEMPIT_REQUEST Create locked employee's address
BAPI_ADDRESSEMPJP_CHANGE Address Japan: Change record
BAPI_ADDRESSEMPJP_CREATE address Japan: Create record
BAPI_ADDRESSEMPJP_CRESUCCESSOR Address Japan: Create succeeding record
BAPI_ADDRESSEMPJP_DETAILEDLIST Address Japan: Read instances with record
BAPI_ADDRESSEMPJP_GETDETAIL Address Japan: Read record
BAPI_ADDRESSEMPJP_REQUEST Address Japan: Create locked record
BAPI_ADDRESSEMPJP_SIMUCREATION Address Japan: Simulate Create record
BAPI_ADDRESSEMPNL_CHANGE Change Employee Addresses
BAPI_ADDRESSEMPNL_CREATE Create Employee Address
BAPI_ADDRESSEMPNL_GETDETAIL Read Employee Address
BAPI_ADDRESSEMPNL_REQUEST Create Locked Employee
BAPI_ADDRESSEMPPT_CHANGE
BAPI_ADDRESSEMPPT_CREATE
BAPI_ADDRESSEMPPT_GETDETAIL
BAPI_ADDRESSEMPUS_CHANGE Change Employee Address
BAPI_ADDRESSEMPUS_CREATE Create Employee Address
BAPI_ADDRESSEMPUS_GETDETAIL Read Employee Address
BAPI_ADDRESSEMPUS_REQUEST Create Locked Employee Address
BAPI_ADDRESSEMP_APPROVE Unlock employee address
BAPI_ADDRESSEMP_CHANGE Change Employee Address
BAPI_ADDRESSEMP_CREATE Create Employee Address
BAPI_ADDRESSEMP_DELETE Delete employee address
BAPI_ADDRESSEMP_DELIMIT Delimit employee address validity period
BAPI_ADDRESSEMP_GETDETAIL Read employee address
BAPI_ADDRESSEMP_GETLIST Read Instances
BAPI_ADDRESSEMP_REQUEST Create locked employee address record
BAPI_ADDRESSORG_CHANGE BAPI to Change Organization Addresses
BAPI_ADDRESSORG_GETDETAIL BAPI to Read Organization Addresses
BAPI_ADDRESSORG_SAVEREPLICA BAPI for Inbound Distribution of Organizational Addresses
BAPI_ADDRESSPERS_CHANGE BAPI for Changing Personal Addresses
BAPI_ADDRESSPERS_GETDETAIL BAPI for Reading Personal Addresses
BAPI_ADDRESSPERS_SAVEREPLICA BAPI for Inbound Distribution of Private Addresses
BAPI_ADV_MED_GET_ITEMS Read Product Catalog Items
BAPI_ADV_MED_GET_LAYOBJ_DESCR Read Long Text for Layout Area or Layout Area Item
BAPI_ADV_MED_GET_LAYOBJ_DOCS Read Documents for a Layout Area or a Layout Area Item
BAPI_ADV_MED_GET_LAYOUT Read Product Catalog Layout
BAPI_ADV_MED_GET_LIST Read Product Catalog List
BAPI_ADV_MED_GET_PRICES Read Product Catalog Item Prices
BAPI_ADV_MED_GET_SALES_AREA Read Sales Area for a Product Catalog
BAPI_ADV_MED_GET_VARIANT_LIST Read Product Catalog Variants
BAPI_AGMT_COND_PROXY_UPLOAD Distribution of Conditions for Contracts/Scheduling Agreements
BAPI_AGMT_COND_UPLOAD Distribution of Conditions for Contracts/Scheduling Agreements
BAPI_AGREEMENTS BAPI for Agreements
BAPI_AGREEMENT_MAINTAIN Create/Change Contract/Scheduling Agreement
BAPI_AGREEMENT_PROXY_UPLOAD Proxy BAPI for Upload Purchase Contracts/Scheduling Agreements
BAPI_ALE_MODEL_GET BAPI: read ALE distribution model
BAPI_ALM_COMPONENT_GET_DETAIL Read Detail Data for a Component
BAPI_ALM_CONF_CANCEL Cancel confirmation for maintenance/service order
BAPI_ALM_CONF_CREATE Create confirmation for maintenance/service order
BAPI_ALM_CONF_GETDETAIL Detailed data for maintenance/service order confirmation
BAPI_ALM_CONF_GETLIST List of maintenance/service order confirmations
BAPI_ALM_GET_PROP Propose Data for Time Confirmation
BAPI_ALM_NOTIF_CHANGEUSRSTAT Change User Status of a PM/CS Notification
BAPI_ALM_NOTIF_CLOSE Complete PM/CS Notification
BAPI_ALM_NOTIF_CREATE Create PM/CS Notification
BAPI_ALM_NOTIF_DATA_ADD PM/CS Notification: Add Data
BAPI_ALM_NOTIF_DATA_DELETE PM/CS Notification: Delete Data
BAPI_ALM_NOTIF_DATA_MODIFY PM/CS Notification: Change Data
BAPI_ALM_NOTIF_GET_DETAIL PM/CS Notification: Read Detail Data
BAPI_ALM_NOTIF_LIST_EQUI Select PM/CS Notifications by Equipment
BAPI_ALM_NOTIF_LIST_FUNCLOC Select PM/CS Notifications by Functional Locations
BAPI_ALM_NOTIF_LIST_PARTNER Select PM/CS Notifications by Partners
BAPI_ALM_NOTIF_LIST_PLANGROUP Select PM/CS Notifications by Maintenance Planner Group
BAPI_ALM_NOTIF_LIST_SORTFIELD Select PM/CS Notifications by Sort Field
BAPI_ALM_NOTIF_POSTPONE Reset PM/CS Notification
BAPI_ALM_NOTIF_PUTINPROGRESS Release PM/CS Notification
BAPI_ALM_NOTIF_SAVE Save PM/CS Notification
BAPI_ALM_NOTIF_TASK_COMPLETE PM/CS Notification: Complete Task
BAPI_ALM_NOTIF_TASK_RELEASE PM/CS Notification: Release Task
BAPI_ALM_NOTIF_TASK_SUCCESS PM/CS Notification: Set Task to Successful
BAPI_ALM_OPERATION_GET_DETAIL Read Detail Data for an Operation
BAPI_ALM_ORDERHEAD_GET_LIST Determination of a List of Maintenance/Service Orders from Selection
BAPI_ALM_ORDEROPER_GET_LIST Determination of a List of Operations from Selection
BAPI_ALM_ORDER_GET_DETAIL Reading of Detail Data for an Order
BAPI_ALM_ORDER_MAINTAIN Process Maintenance-/Service Order
BAPI_ALV_ATECATT_LOG_REQ2
BAPI_ALV_AT_NEW_DB
BAPI_ALV_AUTOMATION_ROUTINE
BAPI_ANSWER_READMULTIPLE Read answers
BAPI_APPCOMP_READMULTIPLE Read application component ID
BAPI_APPLICANT_CHANGEPASSWORD Change applicant password
BAPI_APPLICANT_CHECKEXISTENCE Check applicant's existence
BAPI_APPLICANT_CHECKPASSWORD Check applicant password
BAPI_APPLICANT_CREATE Create applicant
BAPI_APPLICANT_CREATE_PW_REG Create entry for applicant password
BAPI_APPLICANT_DELETE_PW_REG Delete entry for applicant password
BAPI_APPLICANT_DEQUEUE Unlock Applicant
BAPI_APPLICANT_ENQUEUE Lock Applicant
BAPI_APPLICANT_GETSTATUS Determine applicant status
BAPI_APPLICANT_GET_PW_REG Read entry for applicant password
BAPI_APPLICANT_INITPASSWORD Initialize applicant password
BAPI_APPLICATIONLOG_GETDETAIL Read Details of Entries in Application Log
BAPI_APPLICATION_CREATE Create Application
BAPI_APPRAISAL_CHANGE Change appraisals
BAPI_APPRAISAL_CREATE Create appraisals
BAPI_APPRAISAL_DELETE Delete appraisals
BAPI_APPRAISAL_GETDETAIL Read appraisal
BAPI_APPRAISAL_GETLIST Display appraisals
BAPI_APPRAISAL_MODEL_GETDETAIL Read appraisal model
BAPI_APPRAISAL_MODEL_GETLIST Display Appraisal Model
BAPI_APPRAISAL_SCALE_GETDETAIL Read proficiencies and texts for scale
BAPI_APPRAISAL_STATUS_CHANGE Change appraisal status
BAPI_APPRAISEE_GETLIST Read appraisees
BAPI_APPRAISER_GETLIST Read appraisers
BAPI_APPREQUEST_ADDVARIANT Create Appropriation Request Variant
BAPI_APPREQUEST_ASSGNTOPROGPOS Assign Appropriation Request to Inv. Program Position(s)
BAPI_APPREQUEST_ASSGNVRNTVERSN Assign Appropriation Request to Plan Version(s)
BAPI_APPREQUEST_CHANGE Change appropriation request
BAPI_APPREQUEST_CHANGEVARIANT Change Appropriation Request Variant
BAPI_APPREQUEST_CHANGEVARI_MPO Interface Module for BAPI_APPREQUEST_CHANGEVARIANT
BAPI_APPREQUEST_CHANGE_MPO Interface Module
BAPI_APPREQUEST_CHNGASSGNMNTIP Change Assignment of Approp. Request to Inv. Program Position
BAPI_APPREQUEST_CREATE Create Appropriation Request
BAPI_APPREQUEST_DELETE Delete appropriation request
BAPI_APPREQUEST_GETDETAIL Display appropriation request
BAPI_APPREQUEST_GETDETAIL_MPO Interface Module for BAPI_APPREQUEST_GETDETAIL
BAPI_APPREQUEST_GETSTATUS Display Status of Appropriation Request
BAPI_APPREQUEST_REMOVEVARIANT Delete Appropriation Request Variant
BAPI_APPREQUEST_RESETPLANVALUE Reset Plan Values of Appropriation Request Variant
BAPI_APPREQUEST_SETPLANVALUES Change Plan Values of Appropriation Request Variant
BAPI_APPREQUEST_SETSTATUS Setting System and User Status of Appropriation Request
BAPI_APPREQUEST_SETSTATUSVARNT Setting of User and System Status on Variants
BAPI_APPREQUEST_UASSGNVRNTVRSN Cancel Assignment of Appropriation Request Variant to Plan Version
BAPI_APPREQUEST_UNASSGNPROGPOS Cancel Assignment of Appropriation Request to Inv. Program Position(s)
BAPI_AP_ACC_GETBALANCEDITEMS Vendor Account Clearing Transactions in a given Period
BAPI_AP_ACC_GETCURRENTBALANCE Vendor Account Closing Balance in Current Fiscal Year
BAPI_AP_ACC_GETKEYDATEBALANCE Vendor Account Balance at Key Date
BAPI_AP_ACC_GETOPENITEMS Vendor Account Open Items at a Key Date
BAPI_AP_ACC_GETPERIODBALANCES Posting Period Balances per Vendor Account in Current Fiscal Year
BAPI_AP_ACC_GETSTATEMENT Vendor Account Statement for a given Period
BAPI_AR_ACC_GETBALANCEDITEMS Customer account clearing transactions in a given time period
BAPI_AR_ACC_GETCURRENTBALANCE Closing balance of customer account in current fiscal year
BAPI_AR_ACC_GETKEYDATEBALANCE Customer account balance at a key date
BAPI_AR_ACC_GETOPENITEMS Customer account open items at a key date
BAPI_AR_ACC_GETPERIODBALANCES Posting period totals per customer account in current fiscal year
BAPI_AR_ACC_GETSTATEMENT Customer account statement for a given period
BAPI_ASSET_ACQUISITION_CHECK Check asset acquisition
BAPI_ASSET_ACQUISITION_POST Post Asset Acquisition
BAPI_ASSET_POSTCAP_CHECK Check post-capitalization
BAPI_ASSET_POSTCAP_POST Post post-capitalization
BAPI_ASSET_RETIREMENT_CHECK Check asset retirement
BAPI_ASSET_RETIREMENT_POST Post asset retirement
BAPI_ASSET_REVERSAL_CHECK Check Reversal of Asset Document
BAPI_ASSET_REVERSAL_POST Post Reversal of Asset Document
BAPI_ASSORTMENTLIST_GETGROUP Select Assortment List Groups
BAPI_ASSORTMENTLIST_GETHEAD Select Assortment List Header
BAPI_ASSORTMENTLIST_GETPOS Select Assortment List Items
BAPI_ASSORTMENT_MAINTAINDATA Maintenance of Assortments
BAPI_ATTENDEE_BOOK_LIST Read Attendee Bookings
BAPI_ATTENDEE_CHANGEPASSWORD Change attendee password
BAPI_ATTENDEE_CHECKEXISTENCE Check existence of attendee
BAPI_ATTENDEE_CHECKPASSWORD Check attendee password
BAPI_ATTENDEE_PREBOOK_LIST Read attendee prebookings
BAPI_ATTENDEE_TYPE_LIST Internet attendee types
BAPI_ATTRIBUT_SENDLIST Function module for BAPI BARCODE.SendList
BAPI_BANKACCT_GET_BUPA BAPI: Select Business Partner for Account
BAPI_BANKACCT_GET_DETAIL BAPI: Account Detail Data
BAPI_BANKACCT_GET_HIERARCHY BAPI: Account Hierarchy for an Account
BAPI_BANKACCT_GET_LIST BAPI: List of Accounts for a Business Partner
BAPI_BANKACCT_GET_LIST_ALL BAPI: List of all Accounts for One or More Bank Keys
BAPI_BANKACCT_GET_ROOTACCOUNTS BAPI: Determination of Root Accounts for a Hierarchy
BAPI_BANKDETAILCREATESUCCESSNL Create Subsequent Bank Details Record
BAPI_BANKDETAILCREATESUCCESSOR Create subsequent bank details record
BAPI_BANKDETAILGBCREATESUCCESS Create subsequent bank details record
BAPI_BANKDETAILGBGETDETAILLIST Read instances with data
BAPI_BANKDETAILGB_APPROVE Unlock bank details
BAPI_BANKDETAILGB_CHANGE Change bank details
BAPI_BANKDETAILGB_CREATE Create bank details
BAPI_BANKDETAILGB_DELETE Delete bank details
BAPI_BANKDETAILGB_DELIMIT Bankverbindung zeitlich abgrenzen
BAPI_BANKDETAILGB_GETDETAIL Read bank details
BAPI_BANKDETAILGB_GETLIST Read instances
BAPI_BANKDETAILGB_REQUEST Create locked bank details record
BAPI_BANKDETAILGETDETAILEDLINL Read Authority Data
BAPI_BANKDETAILGETDETAILEDLIST Read instances with data
BAPI_BANKDETAILJP_DETAILEDLIST Bank Japan: Read instances with record
BAPI_BANKDETAILJP_GETDETAIL Bank Japan: Read record
BAPI_BANKDETAILNL_APPROVE Unlock Bank Details
BAPI_BANKDETAILNL_CHANGE Change Bank Details
BAPI_BANKDETAILNL_CREATE Create Bank Details
BAPI_BANKDETAILNL_DELETE Delete Bank Details
BAPI_BANKDETAILNL_GETDETAIL Read Bank Details
BAPI_BANKDETAILNL_GETLIST Read Authorities
BAPI_BANKDETAILNL_REQUEST Create Locked Bank Details
BAPI_BANKDETAIL_APPROVE Unlock bank details
BAPI_BANKDETAIL_CHANGE Change bank details
BAPI_BANKDETAIL_CREATE Create bank details
BAPI_BANKDETAIL_DELETE Delete bank details
BAPI_BANKDETAIL_DELIMIT Delimit bank details
BAPI_BANKDETAIL_GETDETAIL Read bank details
BAPI_BANKDETAIL_GETLIST Read instances
BAPI_BANKDETAIL_REQUEST Create locked bank details record
BAPI_BANKNZ_CHANGE Change bank details
BAPI_BANKNZ_CREATE Create bank details
BAPI_BANKNZ_CREATESUCCESSOR Create subsequent bank details record
BAPI_BANKNZ_GETDETAIL Read bank details
BAPI_BANKNZ_GETDETAILEDLIST Read instances with data
BAPI_BANKNZ_REQUEST Create locked bank details record
BAPI_BANKNZ_SIMULATECREATION Simulation: Create Bank Details
BAPI_BANK_CHANGE Change Bank
BAPI_BANK_CREATE Create Bank
BAPI_BANK_GETDETAIL Details on Banks
BAPI_BANK_GETLIST List of Banks
BAPI_BANK_SAVEREPLICA Duplicate Individual Banks (ALE)
BAPI_BANK_STATEMENT_EXEC Bank Statement: Newly Create Bank Statement
BAPI_BANK_STATEMENT_GET Bank Statement: Call Up Created Bank Statement
BAPI_BARCODE_SENDLIST Function module for BAPI BARCODE.SendList
BAPI_BASICPAYEVALUATEWAGETYPES Valuate person-specific wage types
BAPI_BASICPAY_APPROVE Unlock basic pay
BAPI_BASICPAY_CHANGE Change Basic Pay
BAPI_BASICPAY_CREATE Create Basic Pay
BAPI_BASICPAY_CREATESUCCESSOR Create subsequent basic pay record
BAPI_BASICPAY_DELETE Delete basic pay
BAPI_BASICPAY_EVALUATEWAGETYPS Create Basic Pay
BAPI_BASICPAY_GETDETAIL Read basic pay
BAPI_BASICPAY_GETLIST Read Instances
BAPI_BASICPAY_REQUEST Create Locked Basic Pay Record
BAPI_BASICPAY_SIMULATECREATION Simulation: Create basic pay
BAPI_BATCH_CHANGE Change Batch
BAPI_BATCH_CREATE Create Batch
BAPI_BATCH_DELETE
BAPI_BATCH_GET_DETAIL Batch detailed information
BAPI_BATCH_GET_LEVEL Determine batch level
BAPI_BATCH_REPLICATE Distribute Batch
BAPI_BATCH_RESTRICT
BAPI_BATCH_SAVE_REPLICA Replicate batch
BAPI_BATCH_UNDELETE
BAPI_BATCH_UNRESTRICT
BAPI_BECBUSSCEN_READ Read Collaborative Business Map
BAPI_BEN_BENADJREAS_CALC_ENDDA Determination of the (new) end date of an existing adjustment reason
BAPI_BEN_BENADJREAS_DELIMIT Delimitation of adjustment reason
BAPI_BEN_BENADJREAS_GET_LIST Define adjustment reasons that are currently valid for an employee
Edited by: Srinivas Manchikalapati on Nov 24, 2008 3:05 PM -
BAPI for posting accounting documents
Hi,
Can anyone please provide me with the BAPI to be used for GL postings with example.Hi,
Use the BAPI BAPI_ACC_DOCUMENT_POST for posting Documents.
Check the sample code related to posting.
REPORT acc_bapi_document .
selection-screen begin of block bl01 .
parameters:
check_l radiobutton group rb1,
check_a default 'X' radiobutton group rb1,
post radiobutton group rb1.
selection-screen uline.
parameters:
rev_c radiobutton group rb1,
rev_p radiobutton group rb1.
selection-screen uline.
parameters:
ref_key like bapiache01-obj_key default 'TEST000001BAPICALL',
dest like bdi_logsys-logsys default ' '.
selection-screen end of block bl01 .
data:
gd_documentheader like bapiache09,
gd_customercpd like bapiacpa09,
gd_fica_hd like bapiaccahd,
it_accountreceivable like table of bapiacar09 with header line,
it_accountgl like table of bapiacgl09 with header line,
it_accounttax like table of bapiactx09 with header line,
it_criteria like table of bapiackec9 with header line,
it_valuefield like table of bapiackev9 with header line,
it_currencyamount like table of bapiaccr09 with header line,
it_return like table of bapiret2 with header line,
it_receivers like table of bdi_logsys with header line,
it_fica_it like table of bapiaccait with header line,
it_accountpayable like table of bapiacap09 with header line,
it_paymentcard like table of bapiacpc09 with header line,
it_ext like table of bapiacextc with header line.
it_re LIKE TABLE OF bapiacre09 WITH HEADER LINE,
it_ext2 LIKE TABLE OF bapiparex WITH HEADER LINE.
perform fill_internal_tables.
if check_l = 'X'.
call function 'BAPI_ACC_DOCUMENT_CHECK'
destination dest
exporting
documentheader = gd_documentheader
customercpd = gd_customercpd
contractheader = gd_fica_hd
tables
accountgl = it_accountgl
accountreceivable = it_accountreceivable
accountpayable = it_accountpayable
accounttax = it_accounttax
currencyamount = it_currencyamount
criteria = it_criteria
valuefield = it_valuefield
extension1 = it_ext
return = it_return
paymentcard = it_paymentcard
contractitem = it_fica_it.
extension2 = it_ext2
realestate = it_re.
write: / 'Result of check lines:'. "#EC NOTEXT
perform show_messages.
endif.
if check_a = 'X'.
call function 'BAPI_ACC_DOCUMENT_CHECK'
destination dest
exporting
documentheader = gd_documentheader
customercpd = gd_customercpd
contractheader = gd_fica_hd
tables
accountgl = it_accountgl
accountreceivable = it_accountreceivable
accountpayable = it_accountpayable
accounttax = it_accounttax
currencyamount = it_currencyamount
criteria = it_criteria
valuefield = it_valuefield
extension1 = it_ext
return = it_return
paymentcard = it_paymentcard
contractitem = it_fica_it.
extension2 = it_ext2
realestate = it_re.
write: / 'Result of check all:'. "#EC NOTEXT
perform show_messages.
endif.
if post = 'X'.
data: l_type like gd_documentheader-obj_type,
l_key like gd_documentheader-obj_key,
l_sys like gd_documentheader-obj_sys.
if dest = space or
dest = gd_documentheader-obj_sys.
post synchron
call function 'BAPI_ACC_DOCUMENT_POST'
exporting
documentheader = gd_documentheader
customercpd = gd_customercpd
contractheader = gd_fica_hd
importing
obj_type = l_type
obj_key = l_key
obj_sys = l_sys
tables
accountgl = it_accountgl
accountreceivable = it_accountreceivable
accountpayable = it_accountpayable
accounttax = it_accounttax
currencyamount = it_currencyamount
criteria = it_criteria
valuefield = it_valuefield
extension1 = it_ext
return = it_return
paymentcard = it_paymentcard
contractitem = it_fica_it.
extension2 = it_ext2
realestate = it_re.
write: / 'Result of post:'. "#EC NOTEXT
perform show_messages.
else.
create Idoc
it_receivers-logsys = dest.
append it_receivers.
call function 'ALE_ACC_DOCUMENT_POST'
exporting
documentheader = gd_documentheader
customercpd = gd_customercpd
contractheader = gd_fica_hd
tables
accountgl = it_accountgl
accountreceivable = it_accountreceivable
accountpayable = it_accountpayable
accounttax = it_accounttax
currencyamount = it_currencyamount
criteria = it_criteria
valuefield = it_valuefield
extension1 = it_ext
paymentcard = it_paymentcard
contractitem = it_fica_it
extension2 = it_ext2
realestate = it_re
receivers = it_receivers
COMMUNICATION_DOCUMENTS =
APPLICATION_OBJECTS =
exceptions
error_creating_idocs = 1
others = 2 .
if sy-subrc = 0.
write: / 'IDoc created'. "#EC NOTEXT
else.
write: sy-msgid.
endif.
endif.
endif.
if rev_p = 'X' or rev_c = 'X'.
data: rev like bapiacrev,
rev_key like ref_key.
rev_key = ref_key.
rev_key(1) = 'R'.
rev-obj_type = gd_documentheader-obj_type.
rev-obj_key = rev_key.
rev-obj_sys = gd_documentheader-obj_sys.
rev-obj_key_r = ref_key.
if rev_c is initial.
if dest = space or
dest = gd_documentheader-obj_sys.
call function 'BAPI_ACC_DOCUMENT_REV_POST'
exporting
reversal = rev
bus_act = gd_documentheader-bus_act
tables
return = it_return.
else.
it_receivers-logsys = dest.
append it_receivers.
call function 'ALE_ACC_DOCUMENT_REV_POST'
exporting
reversal = rev
busact = gd_documentheader-bus_act
OBJ_TYPE = 'BUS6035'
SERIAL_ID = '0'
tables
receivers = it_receivers
COMMUNICATION_DOCUMENTS =
APPLICATION_OBJECTS =
exceptions
error_creating_idocs = 1
others = 2
if sy-subrc 0.
message id sy-msgid type sy-msgty number sy-msgno
with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
else.
write: / 'IDoc created'. "#EC NOTEXT
endif.
endif.
else.
call function 'BAPI_ACC_DOCUMENT_REV_CHECK'
exporting
reversal = rev
bus_act = gd_documentheader-bus_act
tables
return = it_return.
endif.
write: / 'Result of Reversal Posting:'. "#EC NOTEXT
perform show_messages.
endif.
commit work.
Form fill_internal_tables
form fill_internal_tables.
perform fill_header.
perform fill_accountgl.
perform fill_accountar.
perform fill_accountap.
perform fill_accounttax.
perform fill_currencyamount.
perform fill_criteria.
perform fill_valuefield.
perform fill_re.
perform fill_cpd.
perform fill_contractitem.
perform fill_contractheader.
perform fill_paymentcard.
perform fill_extension.
endform. " fill_internal_tables
Form Show_messages
form show_messages.
if it_return[] is initial.
write: / 'no messages'.
else.
skip 1.
loop at it_return.
write: / it_return-type,
(2) it_return-id,
it_return-number,
(80) it_return-message,
IT_RETURN-LOG_NO
IT_RETURN-LOG_MSG_NO
it_return-message_v1,
IT_RETURN-MESSAGE_V2
IT_RETURN-MESSAGE_V3
IT_RETURN-MESSAGE_V4
(20) it_return-parameter,
(3) it_return-row,
it_return-field.
IT_RETURN-SYSTEM
endloop.
endif.
uline.
endform. " Show_messages
FORM fill_accountgl *
form fill_accountgl.
clear it_accountgl.
it_accountgl-itemno_acc = 2.
it_accountgl-gl_account = '0021510201'.
it_accountgl-item_text = 'BAPI Test G/L line item'. "#EC NOTEXT
it_accountgl-bus_area = '01'.
it_accountgl-profit_ctr = '0000010101'.
it_accountgl-comp_code = 'SLOC'.
append it_accountgl.
clear it_accountgl.
it_accountgl-itemno_acc = 3.
it_accountgl-gl_account = '0082000201'.
it_accountgl-item_text = 'BAPI Test G/L line item'. "#EC NOTEXT
it_accountgl-bus_area = '01'.
it_accountgl-profit_ctr = '0000010101'.
it_accountgl-comp_code = 'SLOC'.
it_accountgl-tax_code = 'A3'.
append it_accountgl.
clear it_accountgl.
it_accountgl-itemno_acc = 5.
it_accountgl-gl_account = '0021510201'.
it_accountgl-item_text = 'BAPI Test G/L line item'. "#EC NOTEXT
it_accountgl-bus_area = '01'.
it_accountgl-profit_ctr = '0000010301'.
it_accountgl-comp_code = 'SLOC'.
append it_accountgl.
clear it_accountgl.
it_accountgl-itemno_acc = 6.
it_accountgl-gl_account = '0082000201'.
it_accountgl-item_text = 'BAPI Test G/L line item'. "#EC NOTEXT
it_accountgl-bus_area = '01'.
it_accountgl-profit_ctr = '0000010301'.
it_accountgl-comp_code = 'SLOC'.
it_accountgl-tax_code = 'A3'.
append it_accountgl.
clear it_accountgl.
it_accountgl-itemno_acc = 7.
it_accountgl-itemno_acc = 8.
it_accountgl-gl_account = '0021510201'.
it_accountgl-item_text = 'BAPI Test G/L line item'. "#EC NOTEXT
it_accountgl-bus_area = '90'.
it_accountgl-profit_ctr = '0000900008'.
it_accountgl-comp_code = 'CORP'.
append it_accountgl.
clear it_accountgl.
it_accountgl-itemno_acc = 8.
it_accountgl-itemno_acc = 9.
it_accountgl-gl_account = '0082000201'.
it_accountgl-item_text = 'BAPI Test G/L line item'. "#EC NOTEXT
it_accountgl-bus_area = '90'.
it_accountgl-profit_ctr = '0000900008'.
it_accountgl-comp_code = 'CORP'.
it_accountgl-tax_code = 'A3'.
append it_accountgl.
endform. "fill_accountgl
FORM fill_header *
form fill_header.
CALL FUNCTION 'OWN_LOGICAL_SYSTEM_GET'
IMPORTING
own_logical_system = gd_documentheader-obj_sys.
OBJ_TYPE has to be replaced by customers object key (Y* or Z*)
gd_documentheader-obj_type = 'IDOC'.
gd_documentheader-obj_key = ref_key.
gd_documentheader-username = sy-uname.
gd_documentheader-header_txt = 'BAPI Test'. "#EC NOTEXT
gd_documentheader-obj_key_r =
GD_DOCUMENTHEADER-reason_rev =
gd_documentheader-comp_code = 'SLOC'.
GD_DOCUMENTHEADER-AC_DOC_NO =
gd_documentheader-fisc_year = sy-datum(4).
gd_documentheader-doc_date = sy-datum.
gd_documentheader-pstng_date = sy-datum.
GD_DOCUMENTHEADER-TRANS_DATE =
GD_DOCUMENTHEADER-VALUE_DATE =
GD_DOCUMENTHEADER-FIS_PERIOD =
gd_documentheader-doc_type = 'KR'.
gd_documentheader-ref_doc_no = 'xxxx'.
GD_DOCUMENTHEADER-COMPO_ACC =
gd_documentheader-bus_act = 'RFBU'.
endform. "fill_header
FORM fill_contractheader *
form fill_contractheader.
gd_fica_hd-doc_no =
gd_fica_hd-doc_type_ca =
gd_fica_hd-res_key =
gd_fica_hd-fikey =
gd_fica_hd-payment_form_ref =
endform. "fill_contractheader
FORM fill_cpd *
form fill_cpd.
gd_customercpd-name
gd_customercpd-name_2
gd_customercpd-name_3
gd_customercpd-name_4
gd_customercpd-postl_code
gd_customercpd-city
gd_customercpd-country
gd_customercpd-country_iso
gd_customercpd-street
gd_customercpd-po_box
gd_customercpd-pobx_pcd
gd_customercpd-pobk_curac
gd_customercpd-bank_acct
gd_customercpd-bank_no
gd_customercpd-bank_ctry
gd_customercpd-bank_ctry_iso
gd_customercpd-tax_no_1
gd_customercpd-tax_no_2
gd_customercpd-tax
gd_customercpd-equal_tax
gd_customercpd-region
gd_customercpd-ctrl_key
gd_customercpd-instr_key
gd_customercpd-dme_ind
gd_customercpd-langu_iso
endform. "fill_cpd
FORM fill_ar *
form fill_accountar.
CLEAR it_accountreceivable.
it_accountreceivable-itemno_acc =
it_accountreceivable-customer =
IT_ACCOUNTRECEIVABLE-REF_KEY_1 =
IT_ACCOUNTRECEIVABLE-REF_KEY_2 =
IT_ACCOUNTRECEIVABLE-REF_KEY_3 =
IT_ACCOUNTRECEIVABLE-PMNTTRMS =
IT_ACCOUNTRECEIVABLE-BLINE_DATE =
IT_ACCOUNTRECEIVABLE-DSCT_DAYS1 =
IT_ACCOUNTRECEIVABLE-DSCT_DAYS2 =
IT_ACCOUNTRECEIVABLE-NETTERMS =
IT_ACCOUNTRECEIVABLE-DSCT_PCT1 =
IT_ACCOUNTRECEIVABLE-DSCT_PCT2 =
IT_ACCOUNTRECEIVABLE-PYMT_METH =
IT_ACCOUNTRECEIVABLE-DUNN_KEY =
IT_ACCOUNTRECEIVABLE-DUNN_BLOCK =
IT_ACCOUNTRECEIVABLE-PMNT_BLOCK =
IT_ACCOUNTRECEIVABLE-VAT_REG_NO =
IT_ACCOUNTRECEIVABLE-ALLOC_NMBR =
it_accountreceivable-item_text =
IT_ACCOUNTRECEIVABLE-PARTNER_BK =
IT_ACCOUNTRECEIVABLE-GL_ACCOUNT =
it_accountreceivable-comp_code
it_accountreceivable-bus_area
it_accountreceivable-pmtmthsupl
it_accountreceivable-paymt_ref
it_accountreceivable-scbank_ind
it_accountreceivable-businessplace
it_accountreceivable-sectioncode
it_accountreceivable-branch
it_accountreceivable-pymt_cur
it_accountreceivable-pymt_cur_iso
it_accountreceivable-pymt_amt
it_accountreceivable-c_ctr_area
it_accountreceivable-bank_id
it_accountreceivable-supcountry
it_accountreceivable-supcountry_iso
it_accountreceivable-tax_code
it_accountreceivable-taxjurcode
it_accountreceivable-tax_date
it_accountreceivable-sp_gl_ind
it_accountreceivable-partner_guid = '1465464654'.
APPEND it_accountreceivable.
endform. "fill_accountar
FORM fill_ap *
form fill_accountap.
clear it_accountpayable.
it_accountpayable-itemno_acc = 1.
it_accountpayable-vendor_no = '0000060259'.
it_accountpayable-vendor_no = '0000060693'.
it_accountpayable-gl_account
it_accountpayable-ref_key_1
it_accountpayable-ref_key_2
it_accountpayable-ref_key_3
it_accountpayable-comp_code = 'SLOC'.
it_accountpayable-bus_area = '01'.
it_accountpayable-pmnttrms = 'A000'.
it_accountpayable-bline_date
it_accountpayable-dsct_days1
it_accountpayable-dsct_days2
it_accountpayable-netterms
it_accountpayable-dsct_pct1
it_accountpayable-dsct_pct2
it_accountpayable-pymt_meth
it_accountpayable-pmtmthsupl
it_accountpayable-pmnt_block
it_accountpayable-scbank_ind
it_accountpayable-supcountry
it_accountpayable-supcountry_iso
it_accountpayable-bllsrv_ind
it_accountpayable-alloc_nmbr
it_accountpayable-item_text = 'BAPI Test A/P line item'. "#EC NOTEXT
it_accountpayable-po_sub_no
it_accountpayable-po_checkdg
it_accountpayable-po_ref_no
it_accountpayable-w_tax_code
it_accountpayable-businessplace
it_accountpayable-sectioncode
it_accountpayable-instr1
it_accountpayable-instr2
it_accountpayable-instr3
it_accountpayable-instr4
it_accountpayable-branch
it_accountpayable-pymt_cur
it_accountpayable-pymt_amt
it_accountpayable-pymt_cur_iso
it_accountpayable-sp_gl_ind
append it_accountpayable.
endform. "fill_accountap
FORM fill_tax *
form fill_accounttax.
clear it_accounttax.
it_accounttax-itemno_acc = 4.
it_accounttax-gl_account = '0011361502'.
it_accounttax-tax_code = 'A3'.
it_accounttax-acct_key = 'VST'.
it_accounttax-cond_key = 'MWVS'.
it_accounttax-itemno_tax = 8.
append it_accounttax.
clear it_accounttax.
it_accounttax-itemno_acc = 7.
it_accounttax-gl_account = '0011361502'.
it_accounttax-tax_code = 'A3'.
it_accounttax-acct_key = 'VST'.
it_accounttax-COND_KEY = 'MWVS'.
append it_accounttax.
clear it_accounttax.
it_accounttax-itemno_acc = 10.
it_accounttax-itemno_acc = 9.
it_accounttax-gl_account = '0011361502'.
it_accounttax-tax_code = 'A3'.
it_accounttax-acct_key = 'VST'.
it_accounttax-cond_key = 'MWVS'.
it_accounttax-itemno_tax = 4.
append it_accounttax.
endform. "fill_accounttax
FORM fill_currencyamount *
form fill_currencyamount.
clear it_currencyamount.
it_currencyamount-itemno_acc = 1.
it_currencyamount-curr_type = '00'.
it_currencyamount-currency = 'MXN'.
it_currencyamount-amt_doccur = '-7408036.2'.
append it_currencyamount.
clear it_currencyamount.
it_currencyamount-itemno_acc = 2.
it_currencyamount-curr_type = '00'.
it_currencyamount-currency = 'MXN'.
it_currencyamount-amt_doccur = '5336472.00'.
append it_currencyamount.
clear it_currencyamount.
it_currencyamount-itemno_acc = 3.
it_currencyamount-curr_type = '00'.
it_currencyamount-currency = 'MXN'.
it_currencyamount-amt_doccur = '3840.00'.
append it_currencyamount.
clear it_currencyamount.
it_currencyamount-itemno_acc = 4.
it_currencyamount-curr_type = '00'.
it_currencyamount-currency = 'MXN'.
it_currencyamount-amt_base = '5548.00'.
it_currencyamount-amt_doccur = '832.2'.
it_currencyamount-amt_doccur = '576.00'.
it_currencyamount-amt_base = '3840.00'.
append it_currencyamount.
clear it_currencyamount.
it_currencyamount-itemno_acc = 5.
it_currencyamount-curr_type = '00'.
it_currencyamount-currency = 'MXN'.
it_currencyamount-amt_doccur = '2051279.00'.
append it_currencyamount.
clear it_currencyamount.
it_currencyamount-itemno_acc = 6.
it_currencyamount-curr_type = '00'.
it_currencyamount-currency = 'MXN'.
it_currencyamount-amt_doccur = '1690.00'.
append it_currencyamount.
clear it_currencyamount.
it_currencyamount-itemno_acc = 7.
it_currencyamount-curr_type = '00'.
it_currencyamount-currency = 'MXN'.
it_currencyamount-amt_base = '1690.00'.
it_currencyamount-amt_doccur = '253.5'.
append it_currencyamount.
clear it_currencyamount.
it_currencyamount-itemno_acc = 8.
it_currencyamount-itemno_acc = 7.
it_currencyamount-curr_type = '00'.
it_currencyamount-currency = 'MXN'.
it_currencyamount-amt_doccur = '13905.00'.
append it_currencyamount.
clear it_currencyamount.
it_currencyamount-itemno_acc = 9.
it_currencyamount-itemno_acc = 8.
it_currencyamount-curr_type = '00'.
it_currencyamount-currency = 'MXN'.
it_currencyamount-amt_base = '2.70'.
it_currencyamount-amt_doccur = '18.00'.
append it_currencyamount.
clear it_currencyamount.
it_currencyamount-itemno_acc = 10.
it_currencyamount-itemno_acc = 9.
it_currencyamount-curr_type = '00'.
it_currencyamount-currency = 'MXN'.
it_currencyamount-amt_doccur = '2.70'.
it_currencyamount-amt_base = '18.00'.
append it_currencyamount.
endform. "fill_currencyamount
FORM fill_criteria *
form fill_criteria.
CLEAR it_criteria.
it_criteria-itemno_acc = 2.
it_criteria-fieldname = 'BZIRK'.
it_criteria-character = '000001'.
append it_criteria.
endform. "fill_criteria
FORM fill_valuefield *
form fill_valuefield.
CLEAR it_valuefield.
it_valuefield-itemno_acc = 2.
it_valuefield-fieldname = 'VV010'.
it_valuefield-curr_type
it_valuefield-currency = 'EUR'.
it_valuefield-currency_iso
it_valuefield-amt_valcom
it_valuefield-base_uom
it_valuefield-base_uom_iso
it_valuefield-qua_valcom
append it_valuefield.
endform. "fill_valuefield
FORM fill_extension *
form fill_extension.
CLEAR it_ext.
it_ext-field1
it_ext-field2
it_ext-field3
it_ext-field4
APPEND it_ext.
DATA: ls_zzz TYPE ZZZ_ACCIT.
CLEAR it_ext2.
it_ext2-structure = 'ZZZ_ACCIT'.
ls_zzz-posnr = 2.
ls_zzz-awref_reb = '123654'.
ls_zzz-aworg_reb = '654654'.
ls_zzz-grant_nbr = '0022002'.
MOVE ls_zzz TO it_ext2-valuepart1.
APPEND it_ext2.
endform. "fill_extension
FORM fill_paymentcard *
form fill_paymentcard.
CLEAR it_paymentcard.
it_paymentcard-itemno_acc = 1.
it_paymentcard-cc_glaccount
it_paymentcard-cc_type
it_paymentcard-cc_number
it_paymentcard-cc_seq_no
it_paymentcard-cc_valid_f
it_paymentcard-cc_valid_t
it_paymentcard-cc_name
it_paymentcard-dataorigin
it_paymentcard-authamount = '100'.
it_paymentcard-currency = 'EUR'.
it_paymentcard-currency_iso
it_paymentcard-cc_autth_no
it_paymentcard-auth_refno
it_paymentcard-auth_date
it_paymentcard-auth_time
it_paymentcard-merchidcl
it_paymentcard-point_of_receipt
it_paymentcard-terminal
it_paymentcard-cctyp = '1'.
APPEND it_paymentcard.
endform. "fill_paymentcard
FORM fill_contractitem *
form fill_contractitem.
CLEAR it_fica_it.
it_fica_it-itemno_acc
it_fica_it-cont_acct
it_fica_it-main_trans
it_fica_it-sub_trans
it_fica_it-func_area
it_fica_it-fm_area
it_fica_it-cmmt_item
it_fica_it-funds_ctr
it_fica_it-fund
append it_fica_it.
endform. "fill_contractitem
*& Form fill_re
form fill_re .
CLEAR it_re.
it_re-itemno_acc =
it_re-business_entity =
it_re-building =
it_re-property =
it_re-rental_object =
it_re-serv_charge_key =
it_re-settlement_unit =
it_re-contract_no =
APPEND it_re.
endform. "fill_re
Please check these links
http://sap4.com/wiki/index.php?title=BAPI_ACC_DOCUMENT_POST
http://www.sapfans.com/forums/viewtopic.php?p=76232&sid=b6519d31b5097f49dc303d03b35eed43
http://sap.ittoolbox.com/groups/technical-functional/sap-dev/bapi_acc_document_post-622561
Regards,
Raj. -
FM / BAPI for FBR2 transaction.
can anyone tell me
FM / BAPI for FBR2 transaction.Dear:
Please check
BAPI_ACC_DOCUMENT_REV_CHECK
Regards -
Adding new object type (field BKPF-AWKEY) for BAPI posting
Hi everyone,
I am posting to SAP GL using an input file to read the data and transfer it to BKPF and BSEG tables.
The problem is I have to use BAPI_ACC_DOCUMENT_POST, and it expects values for OBJ_KEY and OBJ_TYPE.. For now, OBJ_TYPE creates a problem, because if I use BKPF, it says it cannot post using this object type, as it is for SAP internal use only.
Does anyone know how to add a new object type for the customer namespace, which can be manually used for this kind of posting? I know that the new entry must be made in tables TTYP, TTYPT, and possibly TTYPV, for which the maintainence view exists: V_TTYPV.
How to add an entry here, or where can I find it in customizing?
All helpful answers will be awarded.
Thank you very much
Srdjanperform fill_internal_tables.
if check_l = 'X'.
call function 'BAPI_ACC_DOCUMENT_CHECK'
destination dest
exporting
documentheader = gd_documentheader
customercpd = gd_customercpd
contractheader = gd_fica_hd
tables
accountgl = it_accountgl
accountreceivable = it_accountreceivable
accountpayable = it_accountpayable
accounttax = it_accounttax
currencyamount = it_currencyamount
criteria = it_criteria
valuefield = it_valuefield
extension1 = it_ext
return = it_return
paymentcard = it_paymentcard
contractitem = it_fica_it.
extension2 = it_ext2
realestate = it_re.
write: / 'Result of check lines:'. "#EC NOTEXT
perform show_messages.
endif.
if check_a = 'X'.
call function 'BAPI_ACC_DOCUMENT_CHECK'
destination dest
exporting
documentheader = gd_documentheader
customercpd = gd_customercpd
contractheader = gd_fica_hd
tables
accountgl = it_accountgl
accountreceivable = it_accountreceivable
accountpayable = it_accountpayable
accounttax = it_accounttax
currencyamount = it_currencyamount
criteria = it_criteria
valuefield = it_valuefield
extension1 = it_ext
return = it_return
paymentcard = it_paymentcard
contractitem = it_fica_it.
extension2 = it_ext2
realestate = it_re.
write: / 'Result of check all:'. "#EC NOTEXT
perform show_messages.
endif.
if post = 'X'.
data: l_type like gd_documentheader-obj_type,
l_key like gd_documentheader-obj_key,
l_sys like gd_documentheader-obj_sys.
if dest = space or
dest = gd_documentheader-obj_sys.
post synchron
call function 'BAPI_ACC_DOCUMENT_POST'
exporting
documentheader = gd_documentheader
customercpd = gd_customercpd
contractheader = gd_fica_hd
importing
obj_type = l_type
obj_key = l_key
obj_sys = l_sys
tables
accountgl = it_accountgl
accountreceivable = it_accountreceivable
accountpayable = it_accountpayable
accounttax = it_accounttax
currencyamount = it_currencyamount
criteria = it_criteria
valuefield = it_valuefield
extension1 = it_ext
return = it_return
paymentcard = it_paymentcard
contractitem = it_fica_it.
extension2 = it_ext2
realestate = it_re.
write: / 'Result of post:'. "#EC NOTEXT
perform show_messages.
else.
create Idoc
it_receivers-logsys = dest.
append it_receivers.
call function 'ALE_ACC_DOCUMENT_POST'
exporting
documentheader = gd_documentheader
customercpd = gd_customercpd
contractheader = gd_fica_hd
tables
accountgl = it_accountgl
accountreceivable = it_accountreceivable
accountpayable = it_accountpayable
accounttax = it_accounttax
currencyamount = it_currencyamount
criteria = it_criteria
valuefield = it_valuefield
extension1 = it_ext
paymentcard = it_paymentcard
contractitem = it_fica_it
extension2 = it_ext2
realestate = it_re
receivers = it_receivers
COMMUNICATION_DOCUMENTS =
APPLICATION_OBJECTS =
exceptions
error_creating_idocs = 1
others = 2 .
if sy-subrc = 0.
write: / 'IDoc created'. "#EC NOTEXT
else.
write: sy-msgid.
endif.
endif.
endif.
if rev_p = 'X' or rev_c = 'X'.
data: rev like bapiacrev,
rev_key like ref_key.
rev_key = ref_key.
rev_key(1) = 'R'.
rev-obj_type = gd_documentheader-obj_type.
rev-obj_key = rev_key.
rev-obj_sys = gd_documentheader-obj_sys.
rev-obj_key_r = ref_key.
if rev_c is initial.
if dest = space or
dest = gd_documentheader-obj_sys.
call function 'BAPI_ACC_DOCUMENT_REV_POST'
exporting
reversal = rev
bus_act = gd_documentheader-bus_act
tables
return = it_return.
else.
it_receivers-logsys = dest.
append it_receivers.
call function 'ALE_ACC_DOCUMENT_REV_POST'
exporting
reversal = rev
busact = gd_documentheader-bus_act
OBJ_TYPE = 'BUS6035'
SERIAL_ID = '0'
tables
receivers = it_receivers
COMMUNICATION_DOCUMENTS =
APPLICATION_OBJECTS =
exceptions
error_creating_idocs = 1
others = 2
if sy-subrc <> 0.
message id sy-msgid type sy-msgty number sy-msgno
with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
else.
write: / 'IDoc created'. "#EC NOTEXT
endif.
endif.
else.
call function 'BAPI_ACC_DOCUMENT_REV_CHECK'
exporting
reversal = rev
bus_act = gd_documentheader-bus_act
tables
return = it_return.
endif.
write: / 'Result of Reversal Posting:'. "#EC NOTEXT
perform show_messages.
endif.
commit work.
chk this
Give points if useful -
Hi gurus,
I am trying to run a BAPI 'BAPI_ACC_DOCUMENT_POST' for transacion FB01, although the program is not giving any errror but somehow no document is creating.
Can you please help me out.
Thanks
Rajeev Gupta
data: begin of it_input occurs 0,
doc_date(10),
pos_date(10),
doc_type(2),
pos_per(2),
c_code(4),
currency(3),
pos_key(2),
glaccount(10),
amount(16),
cctr(10),
prctr(10),
assignment(18),
end of it_input.
data: documentheader type BAPIACHE09,
obj_type type BAPIACHE09-OBJ_TYPE,
obj_key type BAPIACHE09-OBJ_KEY,
obj_sys type BAPIACHE09-OBJ_SYS,
glaccount like BAPIACGL09 occurs 0 with header line,
ap like BAPIACAP09 occurs 0 with header line,
currencyamount like BAPIACCR09 occurs 0 with header line,
return like BAPIRET2 occurs 0 with header line,
return2 type BAPIRET2.
perform get_data.
perform call_bapi.
*& Form get_data
text
--> p1 text
<-- p2 text
FORM get_data .
call function 'WS_UPLOAD'
EXPORTING
filename = 'C:\Documents and Settings\rajeevgupta\Desktop\fb01.txt'
filetype = 'DAT'
TABLES
data_tab = it_input
EXCEPTIONS
conversion_error = 1
file_open_error = 2
file_read_error = 3
invalid_type = 4
no_batch = 5
unknown_error = 6
invalid_table_width = 7
gui_refuse_filetransfer = 8
customer_error = 9
others = 10.
ENDFORM. " get_data
*& Form call_bapi
text
--> p1 text
<-- p2 text
FORM call_bapi .
move:
it_input-doc_date to documentheader-doc_date,
it_input-pos_date to documentheader-pstng_date,
it_input-doc_type to documentheader-doc_type,
it_input-c_code to documentheader-comp_code,
it_input-pos_per to documentheader-fis_period.
move:
it_input-glaccount to glaccount-gl_account,
it_input-cctr to glaccount-costcenter,
it_input-prctr to glaccount-profit_ctr,
it_input-assignment to glaccount-alloc_numbr.
append glaccount.
move:
it_input-currency to currencyamount-currency,
it_input-amount to currencyamount-amt_doccur.
append currencyamount.
CALL FUNCTION 'BAPI_ACC_DOCUMENT_POST'
EXPORTING
DOCUMENTHEADER = documentheader
IMPORTING
OBJ_TYPE = obj_type
OBJ_KEY = obj_key
OBJ_SYS = obj_sys
TABLES
ACCOUNTGL = glaccount
ACCOUNTPAYABLE = ap
CURRENCYAMOUNT = currencyamount
RETURN = return.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
WAIT =
IMPORTING
RETURN = return2.
ENDFORM. " call_bapiHi,
Here is the example program
*REPORT acc_bapi_test_document .
selection-screen begin of block bl01 .
parameters:
check_l radiobutton group rb1,
check_a default 'X' radiobutton group rb1,
post radiobutton group rb1.
selection-screen uline.
parameters:
rev_c radiobutton group rb1,
rev_p radiobutton group rb1.
selection-screen uline.
parameters:
ref_key like bapiache01-obj_key default 'TEST000001BAPICALL',
dest like bdi_logsys-logsys default ' '.
selection-screen end of block bl01 .
data:
gd_documentheader like bapiache09,
gd_customercpd like bapiacpa09,
gd_fica_hd like bapiaccahd,
it_accountreceivable like table of bapiacar09 with header line,
it_accountgl like table of bapiacgl09 with header line,
it_accounttax like table of bapiactx09 with header line,
it_criteria like table of bapiackec9 with header line,
it_valuefield like table of bapiackev9 with header line,
it_currencyamount like table of bapiaccr09 with header line,
it_return like table of bapiret2 with header line,
it_receivers like table of bdi_logsys with header line,
it_fica_it like table of bapiaccait with header line,
it_accountpayable like table of bapiacap09 with header line,
it_paymentcard like table of bapiacpc09 with header line,
it_ext like table of bapiacextc with header line.
* it_re LIKE TABLE OF bapiacre09 WITH HEADER LINE,
* it_ext2 LIKE TABLE OF bapiparex WITH HEADER LINE.
perform fill_internal_tables.
if check_l = 'X'.
call function 'BAPI_ACC_DOCUMENT_CHECK'
destination dest
exporting
documentheader = gd_documentheader
customercpd = gd_customercpd
contractheader = gd_fica_hd
tables
accountgl = it_accountgl
accountreceivable = it_accountreceivable
accountpayable = it_accountpayable
accounttax = it_accounttax
* currencyamount = it_currencyamount
criteria = it_criteria
valuefield = it_valuefield
extension1 = it_ext
return = it_return
paymentcard = it_paymentcard
contractitem = it_fica_it.
* extension2 = it_ext2
* realestate = it_re.
write: / 'Result of check lines:'. "#EC NOTEXT
perform show_messages.
endif.
if check_a = 'X'.
call function 'BAPI_ACC_DOCUMENT_CHECK'
destination dest
exporting
documentheader = gd_documentheader
customercpd = gd_customercpd
contractheader = gd_fica_hd
tables
accountgl = it_accountgl
accountreceivable = it_accountreceivable
accountpayable = it_accountpayable
accounttax = it_accounttax
currencyamount = it_currencyamount
criteria = it_criteria
valuefield = it_valuefield
extension1 = it_ext
return = it_return
paymentcard = it_paymentcard
contractitem = it_fica_it.
* extension2 = it_ext2
* realestate = it_re.
write: / 'Result of check all:'. "#EC NOTEXT
perform show_messages.
endif.
if post = 'X'.
data: l_type like gd_documentheader-obj_type,
l_key like gd_documentheader-obj_key,
l_sys like gd_documentheader-obj_sys.
if dest = space or
dest = gd_documentheader-obj_sys.
* post synchron
call function 'BAPI_ACC_DOCUMENT_POST'
exporting
documentheader = gd_documentheader
customercpd = gd_customercpd
contractheader = gd_fica_hd
importing
obj_type = l_type
obj_key = l_key
obj_sys = l_sys
tables
accountgl = it_accountgl
accountreceivable = it_accountreceivable
accountpayable = it_accountpayable
accounttax = it_accounttax
currencyamount = it_currencyamount
criteria = it_criteria
valuefield = it_valuefield
extension1 = it_ext
return = it_return
paymentcard = it_paymentcard
contractitem = it_fica_it.
* extension2 = it_ext2
* realestate = it_re.
write: / 'Result of post:'. "#EC NOTEXT
perform show_messages.
else.
* create Idoc
it_receivers-logsys = dest.
append it_receivers.
call function 'ALE_ACC_DOCUMENT_POST'
exporting
documentheader = gd_documentheader
customercpd = gd_customercpd
contractheader = gd_fica_hd
tables
accountgl = it_accountgl
accountreceivable = it_accountreceivable
accountpayable = it_accountpayable
accounttax = it_accounttax
currencyamount = it_currencyamount
criteria = it_criteria
valuefield = it_valuefield
extension1 = it_ext
paymentcard = it_paymentcard
contractitem = it_fica_it
* extension2 = it_ext2
* realestate = it_re
receivers = it_receivers
* COMMUNICATION_DOCUMENTS =
* APPLICATION_OBJECTS =
exceptions
error_creating_idocs = 1
others = 2 .
if sy-subrc = 0.
write: / 'IDoc created'. "#EC NOTEXT
else.
write: sy-msgid.
endif.
endif.
endif.
if rev_p = 'X' or rev_c = 'X'.
data: rev like bapiacrev,
rev_key like ref_key.
rev_key = ref_key.
rev_key(1) = 'R'.
rev-obj_type = gd_documentheader-obj_type.
rev-obj_key = rev_key.
rev-obj_sys = gd_documentheader-obj_sys.
rev-obj_key_r = ref_key.
if rev_c is initial.
if dest = space or
dest = gd_documentheader-obj_sys.
call function 'BAPI_ACC_DOCUMENT_REV_POST'
exporting
reversal = rev
bus_act = gd_documentheader-bus_act
tables
return = it_return.
else.
it_receivers-logsys = dest.
append it_receivers.
call function 'ALE_ACC_DOCUMENT_REV_POST'
exporting
reversal = rev
busact = gd_documentheader-bus_act
* OBJ_TYPE = 'BUS6035'
* SERIAL_ID = '0'
tables
receivers = it_receivers
* COMMUNICATION_DOCUMENTS =
* APPLICATION_OBJECTS =
exceptions
error_creating_idocs = 1
others = 2
if sy-subrc <> 0.
message id sy-msgid type sy-msgty number sy-msgno
with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
else.
write: / 'IDoc created'. "#EC NOTEXT
endif.
endif.
else.
call function 'BAPI_ACC_DOCUMENT_REV_CHECK'
exporting
reversal = rev
bus_act = gd_documentheader-bus_act
tables
return = it_return.
endif.
write: / 'Result of Reversal Posting:'. "#EC NOTEXT
perform show_messages.
endif.
commit work.
* Form fill_internal_tables
form fill_internal_tables.
perform fill_header.
perform fill_accountgl.
* perform fill_accountar.
perform fill_accountap.
perform fill_accounttax.
perform fill_currencyamount.
* perform fill_criteria.
* perform fill_valuefield.
* perform fill_re.
* perform fill_cpd.
* perform fill_contractitem.
* perform fill_contractheader.
* perform fill_paymentcard.
* perform fill_extension.
endform. " fill_internal_tables
* Form Show_messages
form show_messages.
if it_return[] is initial.
write: / 'no messages'.
else.
skip 1.
loop at it_return.
write: / it_return-type,
(2) it_return-id,
it_return-number,
(80) it_return-message,
* IT_RETURN-LOG_NO
* IT_RETURN-LOG_MSG_NO
it_return-message_v1,
* IT_RETURN-MESSAGE_V2
* IT_RETURN-MESSAGE_V3
* IT_RETURN-MESSAGE_V4
(20) it_return-parameter,
(3) it_return-row,
it_return-field.
* IT_RETURN-SYSTEM
endloop.
endif.
uline.
endform. " Show_messages
* FORM fill_accountgl *
form fill_accountgl.
clear it_accountgl.
it_accountgl-itemno_acc = 2.
it_accountgl-gl_account = '0021510201'.
it_accountgl-item_text = 'BAPI Test G/L line item'. "#EC NOTEXT
it_accountgl-bus_area = '01'.
it_accountgl-profit_ctr = '0000010101'.
it_accountgl-comp_code = 'SLOC'.
append it_accountgl.
clear it_accountgl.
it_accountgl-itemno_acc = 3.
it_accountgl-gl_account = '0082000201'.
it_accountgl-item_text = 'BAPI Test G/L line item'. "#EC NOTEXT
it_accountgl-bus_area = '01'.
it_accountgl-profit_ctr = '0000010101'.
it_accountgl-comp_code = 'SLOC'.
it_accountgl-tax_code = 'A3'.
append it_accountgl.
clear it_accountgl.
it_accountgl-itemno_acc = 5.
it_accountgl-gl_account = '0021510201'.
it_accountgl-item_text = 'BAPI Test G/L line item'. "#EC NOTEXT
it_accountgl-bus_area = '01'.
it_accountgl-profit_ctr = '0000010301'.
it_accountgl-comp_code = 'SLOC'.
append it_accountgl.
clear it_accountgl.
it_accountgl-itemno_acc = 6.
it_accountgl-gl_account = '0082000201'.
it_accountgl-item_text = 'BAPI Test G/L line item'. "#EC NOTEXT
it_accountgl-bus_area = '01'.
it_accountgl-profit_ctr = '0000010301'.
it_accountgl-comp_code = 'SLOC'.
it_accountgl-tax_code = 'A3'.
append it_accountgl.
clear it_accountgl.
it_accountgl-itemno_acc = 7.
* it_accountgl-itemno_acc = 8.
it_accountgl-gl_account = '0021510201'.
it_accountgl-item_text = 'BAPI Test G/L line item'. "#EC NOTEXT
it_accountgl-bus_area = '90'.
it_accountgl-profit_ctr = '0000900008'.
it_accountgl-comp_code = 'CORP'.
append it_accountgl.
clear it_accountgl.
it_accountgl-itemno_acc = 8.
* it_accountgl-itemno_acc = 9.
it_accountgl-gl_account = '0082000201'.
it_accountgl-item_text = 'BAPI Test G/L line item'. "#EC NOTEXT
it_accountgl-bus_area = '90'.
it_accountgl-profit_ctr = '0000900008'.
it_accountgl-comp_code = 'CORP'.
* it_accountgl-tax_code = 'A3'.
append it_accountgl.
endform. "fill_accountgl
* FORM fill_header *
form fill_header.
* CALL FUNCTION 'OWN_LOGICAL_SYSTEM_GET'
* IMPORTING
* own_logical_system = gd_documentheader-obj_sys.
* OBJ_TYPE has to be replaced by customers object key (Y* or Z*)
* gd_documentheader-obj_type = 'IDOC'.
* gd_documentheader-obj_key = ref_key.
gd_documentheader-username = sy-uname.
gd_documentheader-header_txt = 'BAPI Test'. "#EC NOTEXT
* gd_documentheader-obj_key_r =
* GD_DOCUMENTHEADER-reason_rev =
gd_documentheader-comp_code = 'SLOC'.
* GD_DOCUMENTHEADER-AC_DOC_NO =
gd_documentheader-fisc_year = sy-datum(4).
gd_documentheader-doc_date = sy-datum.
gd_documentheader-pstng_date = sy-datum.
* GD_DOCUMENTHEADER-TRANS_DATE =
* GD_DOCUMENTHEADER-VALUE_DATE =
* GD_DOCUMENTHEADER-FIS_PERIOD =
gd_documentheader-doc_type = 'KR'.
gd_documentheader-ref_doc_no = 'xxxx'.
* GD_DOCUMENTHEADER-COMPO_ACC =
gd_documentheader-bus_act = 'RFBU'.
endform. "fill_header
* FORM fill_contractheader *
form fill_contractheader.
* gd_fica_hd-doc_no =
* gd_fica_hd-doc_type_ca =
* gd_fica_hd-res_key =
* gd_fica_hd-fikey =
* gd_fica_hd-payment_form_ref =
endform. "fill_contractheader
* FORM fill_cpd *
form fill_cpd.
* gd_customercpd-name
* gd_customercpd-name_2
* gd_customercpd-name_3
* gd_customercpd-name_4
* gd_customercpd-postl_code
* gd_customercpd-city
* gd_customercpd-country
* gd_customercpd-country_iso
* gd_customercpd-street
* gd_customercpd-po_box
* gd_customercpd-pobx_pcd
* gd_customercpd-pobk_curac
* gd_customercpd-bank_acct
* gd_customercpd-bank_no
* gd_customercpd-bank_ctry
* gd_customercpd-bank_ctry_iso
* gd_customercpd-tax_no_1
* gd_customercpd-tax_no_2
* gd_customercpd-tax
* gd_customercpd-equal_tax
* gd_customercpd-region
* gd_customercpd-ctrl_key
* gd_customercpd-instr_key
* gd_customercpd-dme_ind
* gd_customercpd-langu_iso
endform. "fill_cpd
* FORM fill_ar *
form fill_accountar.
* CLEAR it_accountreceivable.
* it_accountreceivable-itemno_acc =
* it_accountreceivable-customer =
* IT_ACCOUNTRECEIVABLE-REF_KEY_1 =
* IT_ACCOUNTRECEIVABLE-REF_KEY_2 =
* IT_ACCOUNTRECEIVABLE-REF_KEY_3 =
* IT_ACCOUNTRECEIVABLE-PMNTTRMS =
* IT_ACCOUNTRECEIVABLE-BLINE_DATE =
* IT_ACCOUNTRECEIVABLE-DSCT_DAYS1 =
* IT_ACCOUNTRECEIVABLE-DSCT_DAYS2 =
* IT_ACCOUNTRECEIVABLE-NETTERMS =
* IT_ACCOUNTRECEIVABLE-DSCT_PCT1 =
* IT_ACCOUNTRECEIVABLE-DSCT_PCT2 =
* IT_ACCOUNTRECEIVABLE-PYMT_METH =
* IT_ACCOUNTRECEIVABLE-DUNN_KEY =
* IT_ACCOUNTRECEIVABLE-DUNN_BLOCK =
* IT_ACCOUNTRECEIVABLE-PMNT_BLOCK =
* IT_ACCOUNTRECEIVABLE-VAT_REG_NO =
* IT_ACCOUNTRECEIVABLE-ALLOC_NMBR =
* it_accountreceivable-item_text =
* IT_ACCOUNTRECEIVABLE-PARTNER_BK =
* IT_ACCOUNTRECEIVABLE-GL_ACCOUNT =
* it_accountreceivable-comp_code
* it_accountreceivable-bus_area
* it_accountreceivable-pmtmthsupl
* it_accountreceivable-paymt_ref
* it_accountreceivable-scbank_ind
* it_accountreceivable-businessplace
* it_accountreceivable-sectioncode
* it_accountreceivable-branch
* it_accountreceivable-pymt_cur
* it_accountreceivable-pymt_cur_iso
* it_accountreceivable-pymt_amt
* it_accountreceivable-c_ctr_area
* it_accountreceivable-bank_id
* it_accountreceivable-supcountry
* it_accountreceivable-supcountry_iso
* it_accountreceivable-tax_code
* it_accountreceivable-taxjurcode
* it_accountreceivable-tax_date
* it_accountreceivable-sp_gl_ind
* it_accountreceivable-partner_guid = '1465464654'.
* APPEND it_accountreceivable.
endform. "fill_accountar
* FORM fill_ap *
form fill_accountap.
clear it_accountpayable.
it_accountpayable-itemno_acc = 1.
* it_accountpayable-vendor_no = '0000060259'.
it_accountpayable-vendor_no = '0000060693'.
* it_accountpayable-gl_account
* it_accountpayable-ref_key_1
* it_accountpayable-ref_key_2
* it_accountpayable-ref_key_3
it_accountpayable-comp_code = 'SLOC'.
it_accountpayable-bus_area = '01'.
it_accountpayable-pmnttrms = 'A000'.
* it_accountpayable-bline_date
* it_accountpayable-dsct_days1
* it_accountpayable-dsct_days2
* it_accountpayable-netterms
* it_accountpayable-dsct_pct1
* it_accountpayable-dsct_pct2
* it_accountpayable-pymt_meth
* it_accountpayable-pmtmthsupl
* it_accountpayable-pmnt_block
* it_accountpayable-scbank_ind
* it_accountpayable-supcountry
* it_accountpayable-supcountry_iso
* it_accountpayable-bllsrv_ind
* it_accountpayable-alloc_nmbr
it_accountpayable-item_text = 'BAPI Test A/P line item'. "#EC NOTEXT
* it_accountpayable-po_sub_no
* it_accountpayable-po_checkdg
* it_accountpayable-po_ref_no
* it_accountpayable-w_tax_code
* it_accountpayable-businessplace
* it_accountpayable-sectioncode
* it_accountpayable-instr1
* it_accountpayable-instr2
* it_accountpayable-instr3
* it_accountpayable-instr4
* it_accountpayable-branch
* it_accountpayable-pymt_cur
* it_accountpayable-pymt_amt
* it_accountpayable-pymt_cur_iso
* it_accountpayable-sp_gl_ind
append it_accountpayable.
endform. "fill_accountap
* FORM fill_tax *
form fill_accounttax.
clear it_accounttax.
it_accounttax-itemno_acc = 4.
it_accounttax-gl_account = '0011361502'.
it_accounttax-tax_code = 'A3'.
it_accounttax-acct_key = 'VST'.
it_accounttax-cond_key = 'MWVS'.
* it_accounttax-itemno_tax = 8.
append it_accounttax.
* clear it_accounttax.
* it_accounttax-itemno_acc = 7.
* it_accounttax-gl_account = '0011361502'.
* it_accounttax-tax_code = 'A3'.
* it_accounttax-acct_key = 'VST'.
* it_accounttax-COND_KEY = 'MWVS'.
* append it_accounttax.
* clear it_accounttax.
** it_accounttax-itemno_acc = 10.
* it_accounttax-itemno_acc = 9.
* it_accounttax-gl_account = '0011361502'.
* it_accounttax-tax_code = 'A3'.
* it_accounttax-acct_key = 'VST'.
* it_accounttax-cond_key = 'MWVS'.
** it_accounttax-itemno_tax = 4.
* append it_accounttax.
endform. "fill_accounttax
* FORM fill_currencyamount *
form fill_currencyamount.
clear it_currencyamount.
it_currencyamount-itemno_acc = 1.
it_currencyamount-curr_type = '00'.
it_currencyamount-currency = 'MXN'.
it_currencyamount-amt_doccur = '-7408036.2'.
append it_currencyamount.
clear it_currencyamount.
it_currencyamount-itemno_acc = 2.
it_currencyamount-curr_type = '00'.
it_currencyamount-currency = 'MXN'.
it_currencyamount-amt_doccur = '5336472.00'.
append it_currencyamount.
clear it_currencyamount.
it_currencyamount-itemno_acc = 3.
it_currencyamount-curr_type = '00'.
it_currencyamount-currency = 'MXN'.
it_currencyamount-amt_doccur = '3840.00'.
append it_currencyamount.
clear it_currencyamount.
it_currencyamount-itemno_acc = 4.
it_currencyamount-curr_type = '00'.
it_currencyamount-currency = 'MXN'.
it_currencyamount-amt_base = '5548.00'.
it_currencyamount-amt_doccur = '832.2'.
* it_currencyamount-amt_doccur = '576.00'.
* it_currencyamount-amt_base = '3840.00'.
append it_currencyamount.
clear it_currencyamount.
it_currencyamount-itemno_acc = 5.
it_currencyamount-curr_type = '00'.
it_currencyamount-currency = 'MXN'.
it_currencyamount-amt_doccur = '2051279.00'.
append it_currencyamount.
clear it_currencyamount.
it_currencyamount-itemno_acc = 6.
it_currencyamount-curr_type = '00'.
it_currencyamount-currency = 'MXN'.
it_currencyamount-amt_doccur = '1690.00'.
append it_currencyamount.
* clear it_currencyamount.
* it_currencyamount-itemno_acc = 7.
* it_currencyamount-curr_type = '00'.
* it_currencyamount-currency = 'MXN'.
* it_currencyamount-amt_base = '1690.00'.
* it_currencyamount-amt_doccur = '253.5'.
* append it_currencyamount.
clear it_currencyamount.
* it_currencyamount-itemno_acc = 8.
it_currencyamount-itemno_acc = 7.
it_currencyamount-curr_type = '00'.
it_currencyamount-currency = 'MXN'.
it_currencyamount-amt_doccur = '13905.00'.
append it_currencyamount.
clear it_currencyamount.
* it_currencyamount-itemno_acc = 9.
it_currencyamount-itemno_acc = 8.
it_currencyamount-curr_type = '00'.
it_currencyamount-currency = 'MXN'.
* it_currencyamount-amt_base = '2.70'.
it_currencyamount-amt_doccur = '18.00'.
append it_currencyamount.
* clear it_currencyamount.
** it_currencyamount-itemno_acc = 10.
* it_currencyamount-itemno_acc = 9.
* it_currencyamount-curr_type = '00'.
* it_currencyamount-currency = 'MXN'.
* it_currencyamount-amt_doccur = '2.70'.
* it_currencyamount-amt_base = '18.00'.
* append it_currencyamount.
endform. "fill_currencyamount
* FORM fill_criteria *
form fill_criteria.
* CLEAR it_criteria.
* it_criteria-itemno_acc = 2.
* it_criteria-fieldname = 'BZIRK'.
* it_criteria-character = '000001'.
* append it_criteria.
endform. "fill_criteria
* FORM fill_valuefield *
form fill_valuefield.
* CLEAR it_valuefield.
* it_valuefield-itemno_acc = 2.
* it_valuefield-fieldname = 'VV010'.
* it_valuefield-curr_type
* it_valuefield-currency = 'EUR'.
* it_valuefield-currency_iso
* it_valuefield-amt_valcom
* it_valuefield-base_uom
* it_valuefield-base_uom_iso
* it_valuefield-qua_valcom
* append it_valuefield.
endform. "fill_valuefield
* FORM fill_extension *
form fill_extension.
* CLEAR it_ext.
* it_ext-field1
* it_ext-field2
* it_ext-field3
* it_ext-field4
* APPEND it_ext.
* DATA: ls_zzz TYPE ZZZ_ACCIT.
* CLEAR it_ext2.
* it_ext2-structure = 'ZZZ_ACCIT'.
* ls_zzz-posnr = 2.
* ls_zzz-awref_reb = '123654'.
* ls_zzz-aworg_reb = '654654'.
* ls_zzz-grant_nbr = '0022002'.
* MOVE ls_zzz TO it_ext2-valuepart1.
* APPEND it_ext2.
endform. "fill_extension
* FORM fill_paymentcard *
form fill_paymentcard.
* CLEAR it_paymentcard.
* it_paymentcard-itemno_acc = 1.
* it_paymentcard-cc_glaccount
* it_paymentcard-cc_type
* it_paymentcard-cc_number
* it_paymentcard-cc_seq_no
* it_paymentcard-cc_valid_f
* it_paymentcard-cc_valid_t
* it_paymentcard-cc_name
* it_paymentcard-dataorigin
* it_paymentcard-authamount = '100'.
* it_paymentcard-currency = 'EUR'.
* it_paymentcard-currency_iso
* it_paymentcard-cc_autth_no
* it_paymentcard-auth_refno
* it_paymentcard-auth_date
* it_paymentcard-auth_time
* it_paymentcard-merchidcl
* it_paymentcard-point_of_receipt
* it_paymentcard-terminal
* it_paymentcard-cctyp = '1'.
* APPEND it_paymentcard.
endform. "fill_paymentcard
* FORM fill_contractitem *
form fill_contractitem.
* CLEAR it_fica_it.
* it_fica_it-itemno_acc
* it_fica_it-cont_acct
* it_fica_it-main_trans
* it_fica_it-sub_trans
* it_fica_it-func_area
* it_fica_it-fm_area
* it_fica_it-cmmt_item
* it_fica_it-funds_ctr
* it_fica_it-fund
* append it_fica_it.
endform. "fill_contractitem
*& Form fill_re
form fill_re .
* CLEAR it_re.
* it_re-itemno_acc =
* it_re-business_entity =
* it_re-building =
* it_re-property =
* it_re-rental_object =
* it_re-serv_charge_key =
* it_re-settlement_unit =
* it_re-contract_no =
* APPEND it_re.
endform. "fill_re
Regards
Sudheer
Maybe you are looking for
-
ITunes not closing down - hanging on close down
When I close down iTunes (using command Q or when shutting down the computer), iTunes does not close. There is just a spinning colorful wheel, and eventually a time out error. This happened first about a week ago, after upgrading to 10.2, and still h
-
System Error in Exection Function
Dear all, I've the following problem. I have created some key figs and added these to a realtime infoprovider. From a certain point I changed the infoprovider and deleted the created key figs from the system. Now I have a problems when I want to exec
-
How can I customize Navigator in JClient
I want to customize the navigator in a form in JClient so that I can use Insert button and a new row will be insert at the end of a table so I can add data. Can you show me the way???
-
Mountain Lion installation problem?
Hi, so I have a mid-2012 MacBook Pro and im installing Mountain Lion. I've gotten to the part where the screen shows that it's installing on Macintosh HD with the estimated time. The problem being that it says I am at "About -15 minutes" and it conti
-
How to create match code object?
Hi To all.. 1.......I created a match code object i.e select-options : s_mara for mara-matnr matchcode object mobj. when i execute the report the lower limit will assign to matchcode object. but when i click on search help it shows that no values fou