Businessplace
Dear All,
I have a requirement regarding interest calculation with tds.
I have received dealer deposit from customer, on that i have to pay interest on this. I have configured for interest calculation, and also i have assigned with holding tax codes to Customer master. Interest calculation and tds is working fine. But i am not able to generate tds Certificate, why because at the time of generation of automated interest entry, there is no option to give business place and section code by manually.
So that i have done substitution, but its not working. Kindly requesting you to please guide me, how to substitute business place and section codes. Please give me steps how to solve this issue.
Thank you,
JAGAN VETCHA
Hi Monika
The following step needs to do
1st Prerequisites
SYST-TCODE=FB60 and BSEG-KOAR="K" or
SYST-TCODE=F-43 and BSEG-KOART=K or
2nd CHECK:
BSEG-BUPLA=YOUR BUSINESS PLACE
In message
Create the message class with the help of your ABAPer and assign the message or you
can use the available message and Message can be Warning or Error .
Thanks
GG
Similar Messages
-
Validation for Businessplace section code
Hi,
Can any body tell me abt how to put valiadation for making business place section code mandatory in Transaction code GGB0Hi Monika
The following step needs to do
1st Prerequisites
SYST-TCODE=FB60 and BSEG-KOAR="K" or
SYST-TCODE=F-43 and BSEG-KOART=K or
2nd CHECK:
BSEG-BUPLA=YOUR BUSINESS PLACE
In message
Create the message class with the help of your ABAPer and assign the message or you
can use the available message and Message can be Warning or Error .
Thanks
GG -
Making Down Payment Request using BAPI_ACC_DOCUMENT_POST
Hi, all...
I faced a problem while I'm testing BAPI_ACC_DOCUMENT_POST to make down payment request(F-47), so I need some help.
I've found a BAPI_ACC_DOCUMENT_POST in down payment about this topic and followed its parameter settings except for currency settings.
In that posting, the accountpayable-pymt_cur and currencyamount-currency are set different currency.
While I set the two fields with same currency(USD). Belows are my source codes.
DOCUMENTHEADER-OBJ_TYPE = 'IDOC'.
DOCUMENTHEADER-OBJ_KEY = '$'.
DOCUMENTHEADER-OBJ_SYS = 'D10CLNT200'.
DOCUMENTHEADER-BUS_ACT = 'RFBU'.
DOCUMENTHEADER-USERNAME = SY-UNAME.
DOCUMENTHEADER-HEADER_TXT = 'DOWN PAYMENT REQUEST'.
DOCUMENTHEADER-COMP_CODE = '1000'.
DOCUMENTHEADER-DOC_DATE = '2006.09.01'.
DOCUMENTHEADER-PSTNG_DATE = '2006.09.01'.
DOCUMENTHEADER-DOC_TYPE = 'KG'.
ACCOUNTPAYABLE-ITEMNO_ACC = '0000000001'.
ACCOUNTPAYABLE-VENDOR_NO = '0002314908'.
ACCOUNTPAYABLE-GL_ACCOUNT = '0091120100'.
ACCOUNTPAYABLE-COMP_CODE = '1000'.
ACCOUNTPAYABLE-PYMT_METH = 'L'.
ACCOUNTPAYABLE-PMNT_BLOCK = 'A'.
ACCOUNTPAYABLE-BUSINESSPLACE = '1001'.
ACCOUNTPAYABLE-PYMT_CUR = 'USD'.
ACCOUNTPAYABLE-PYMT_AMT = '123,438.0000'.
ACCOUNTPAYABLE-SP_GL_IND = '2'.
ACCOUNTPAYABLE-TAX_CODE = 'RR'.
CURRENCYAMOUNT-ITEMNO_ACC = '0000000001'.
CURRENCYAMOUNT-CURRENCY = 'USD'.
CURRENCYAMOUNT-AMT_DOCCUR = '123,438.0000'.
But the function returns an error:
'Enter a payment currency different to USD'
But if I would set with different currencies, it returns an error:
'Balance in transaction currency'
If the ACCOUNTPAYABLE-PYMT_CUR and ACCOUNTPAYABLE-PYMT_AMT were remained empty, it returns
'Balance in transaction currency'
What should I do about this currency setting.
Someone please let me know about doing this right way.
Thank you.
Message was edited by: Jong-woon LeeHi,
Just in case you found this thread with the same problem.
At least in my case what was happening is that I wanted to leave the currency fields blank (the same currency as payment value) but I was filling in ACCOUNTPAYABLE-PYMT_AMT, so was receiving error telling me that currency fields could not be empty. And if I set them to the same as payment, I would receive a message telling me that currency must be different.
If you want to use only one currency you don't need to fill in these 3 fields:
ACCOUNTPAYABLE-PYMT_AMT
ACCOUNTPAYABLE-PYMT_CUR
ACCOUNTPAYABLE-PYMT_CUR_ISO
The same probably applies for the ACCOUNTRECEIVABLE table.
Cheers,
Erick
Ps.
Some extra text so you can find this thread by searching for error messages:
Required field CURRENCY was not transferred in parameter ACCOUNTPAYABLE
For the ISO code there is no unique SAP currency code for ALE
For the ISO code there is no unique SAP currency code for ALE
Message no. B1888
Diagnosis
There are several entries in TCURC for this ISO code, but none with the
primary flag set.
Procedure
In table TCURC set the primary flag for ISO codes used multiple times.
Required field CURRENCY was not transferred in parameter ACCOUNTPAYABLE
Message no. RW602
Diagnosis
Field CURRENCY is required in parameter ACCOUNTPAYABLE for processing
the document. The document is incomplete without this field.
System Response
The document cannot be processed.
Procedure
Enter a valid value in field CURRENCY in parameter ACCOUNTPAYABLE. -
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^ -
Error in Receiver File adapter using File content Conversion
Hi,
I am getting the following error in the receiver file adapter.
Conversion initialization failed: java.lang.Exception: java.lang.Exception: Error(s) in XML conversion parameters found: Parameter 'statement.fieldFixedLengths' or 'statement.fieldSeparator' is missing
I am using the below parameters for FCC:
Recordset Structure - statement
statement.endSeparator - 'nl'
statement.fieldSeparator - '0X09'
statement.fieldNames -xblnr,wrbtr,newbs,kostl,newko,prctr,xref1,rke_wwfud,rke_wwst3,blart,bukrs,bldate,budat,gjahr,monat,ctype,waers,bktxt,posnr,wbs_element,mwxkz,businessplace,businessplace,c_waers,c_wrbtr,g_ctype,g_waers,g_wrbtr,h_ctype,h_waers,h_wrbtr,trade_id,lob,sgtxt,zuonr,reason_rev,ldgrp,tcode,lifnr
ignoreRecordsetName - true
Please let me know where i am going wrong.
Thanks,
AparnaHi Aparna,
I feel the problem in your content conversion parameters is with
statement.fieldNames and ignoreRecordsetName
When you are confirguring receiver file adapter for file content conversion the above one is not required. Please refer below link for details on configuring content conversion in file adapter
[http://help.sap.com/saphelp_nw04/helpdata/en/bc/bb79d6061007419a081e58cbeaaf28/frameset.htm]
Hope this helps !!
Regards,
Amit -
Passing Business place in BAPI_ACC_DOCUMENT_POST in ACCOUNTGL table.
Dear Experts,
I am working on BAPI_ACC_DOCUMENT_POST for posting the accounting documents which includes G/Ls and Vendor payments. BAPI is ready and working fine, but we want to pass the Business Place with GL, as it allows iin FB01, i have searched though the ACCOUNTGL but i didn't find any field for this or like BUPLA.
Any suggestion ... How to pass Business Place field in ACCOUNTGL...?Hi Prassad,
I've faced the same issue here; we were facing an error while posting to accoountgl, because AR & AP are working fine, so what we've come up with and worked is;
Append the businessplace into BAPIACGL09 structure and i should look like this;
wl_accountgl TYPE bapiacgl09,
wl_accountgl-businessplace = wl_file_i-local_neg.
in bapiacgl09 structure
.APPEND ZZST_BUSINESS ...
BUSINESSPLACE ACPI_BRANCH CHAR 4 0 ...
This was the ABAPer solution here in the company, i hope it helps. -
Hi,
I am working on a CRM IPM project for a music company. I have a problem while maintaining the OR billing documents. The billing documents are not getting transferred to Accounting. The error code reads as "Maintain entry in the field "Business place" and "Section Code". But, I could not find these fields in the CRM. Please share any info that could solve this issue.
Regards
SekarHi again, Sekar
"Business Place" and "Section Code" are fields in the Accounting Document Segment in R/3, for the Account Payable/Receivable line.
--> Technically: Table is BSEG, fields are BSEG-BUPLA and BSEG-SECCO respectively.
Especially "Business Place" sounds like a specific field of IS-Media Solution.
First of all, you should investigate on WHY these 2 fields are mandatory in R/3 system: I'm working in a IPM system with a R/3 IS-Media backend, and I have not this problem. with these 2 fields.
After that, you should determine a RULE to give a value to these fields (a FI Business Analyst for the R/3 backend system could help you), and then implement a code in IPM to value these fields.
To do that, I thinks you should develop a new implemetation of BAdI BILL_ACC_IF; the method you should develop is ENRICH_ACC_DOCUMENT, and the code could be something like that:
DATA:
ls_acc_acar09 TYPE LINE OF bill_acc_acar09_t "Table: Customer Line
,ls_acc_acap09 TYPE LINE OF bill_acc_acap09_t "Table: Creditor Row
LOOP AT CT_ACC_ACAP09 INTO ls_acc_acap09.
****--> Here you should implement the rule to find suitable values for Business Place and Section Code
**--> Here you give values
ls_acc_acap09-BUSINESSPLACE = (Value of Business Place)
ls_acc_acap09-SECTIONCODE = (Value of Section Code)
modify CT_ACC_ACAP09 from ls_acc_acap09 index sy-tabix
transporting BUSINESSPLACE SECTIONCODE.
ENDLOOP.
LOOP AT CT_ACC_ACAr09 INTO ls_acc_acar09.
*****---> SAME LOGIC...
endloop.
I think you could start with a technical test, assigning fixed values to fields:
--> See Table J_1BBRANCH in R/3 for possible values of Business Place
--> See Tbale SECCODE in R/3 for possible values of Section Code -
I seem to have spotted a ‘bug’ on version 31.3.0 (version 21, xxx was OK) in as much as:- if I type in a couple of letters in the ‘To’ field, I am presented with a list of addresses that contain those letters – if I then click on any one of the addresses (other than the TOP one) the persons address is entered in the ‘To’ field – however when I then press the ENTER key the added address is replaced by the TOP address from the list and the one I chose is removed.
I have tried “Rebuilding the Global Database” still the same.
Regards Dave.
Application Basics
Name Thunderbird
Version 31.3.0
User Agent Mozilla/5.0 (Windows NT 6.2; rv:31.0) Gecko/20100101 Thunderbird/31.3.0
Profile Folder
Show Folder
(Local drive)
Application Build ID 20141127140543
Enabled Plugins about:plugins
Build Configuration about:buildconfig
Memory Use about:memory
Mail and News Accounts
ID Incoming server Outgoing servers
Name Connection security Authentication method Name Connection security Authentication method Default?
account1 (imap) imap.googlemail.com:993 SSL passwordCleartext smtp.googlemail.com:465 SSL passwordCleartext true
account2 (none) Local Folders plain passwordCleartext
account3 (imap) imap.googlemail.com:993 SSL passwordCleartext smtp.googlemail.com:465 SSL passwordCleartext true
account7 (pop3) pop.mail.yahoo.com:995 SSL passwordCleartext smtp.mail.yahoo.com:465 SSL passwordCleartext true
account9 (pop3) pop.mail.yahoo.com:995 SSL passwordCleartext smtp.mail.yahoo.com:465 SSL passwordCleartext true
account10 (imap) imap.googlemail.com:993 SSL passwordCleartext smtp.googlemail.com:465 SSL passwordCleartext true
account11 (pop3) pop.mail.yahoo.com:995 SSL passwordCleartext smtp.mail.yahoo.com:465 SSL passwordCleartext true
account12 (pop3) pop.mail.yahoo.com:995 SSL passwordCleartext smtp.mail.yahoo.com:465 SSL passwordCleartext true
Crash Reports
Report ID Submitted
bp-4cb21659-70c8-478a-b309-4b6672130813 13-Aug-13
bp-3b4e217b-9282-4ba8-bd5b-67c5e2130813 13-Aug-13
bp-cd9d646e-1b38-4785-91e1-905a02130723 23-Jul-13
bp-28fc842a-2da5-4461-94ea-7f91c2130624 24-Jun-13
bp-aa9c25a1-ad41-4a83-863d-f3c1c2130611 11-Jun-13
Extensions
Name Version Enabled ID
Zindus 0.8.42 true {ad7d8a66-253b-11dc-977c-000c29a3126e}
Important Modified Preferences
Name Value
accessibility.typeaheadfind.flashBar 0
browser.cache.disk.capacity 358400
browser.cache.disk.smart_size.first_run false
browser.cache.disk.smart_size.use_old_max false
browser.cache.disk.smart_size_cached_value 358400
dom.max_chrome_script_run_time 0
extensions.lastAppVersion 31.3.0
font.internaluseonly.changed false
font.name.monospace.el Consolas
font.name.monospace.tr Consolas
font.name.monospace.x-baltic Consolas
font.name.monospace.x-central-euro Consolas
font.name.monospace.x-cyrillic Consolas
font.name.monospace.x-unicode Consolas
font.name.monospace.x-western Consolas
font.name.sans-serif.el Calibri
font.name.sans-serif.tr Calibri
font.name.sans-serif.x-baltic Calibri
font.name.sans-serif.x-central-euro Calibri
font.name.sans-serif.x-cyrillic Calibri
font.name.sans-serif.x-unicode Calibri
font.name.sans-serif.x-western Calibri
font.name.serif.el Cambria
font.name.serif.tr Cambria
font.name.serif.x-baltic Cambria
font.name.serif.x-central-euro Cambria
font.name.serif.x-cyrillic Cambria
font.name.serif.x-unicode Cambria
font.name.serif.x-western Cambria
font.size.fixed.el 14
font.size.fixed.tr 14
font.size.fixed.x-baltic 14
font.size.fixed.x-central-euro 14
font.size.fixed.x-cyrillic 14
font.size.fixed.x-unicode 14
font.size.fixed.x-western 14
font.size.variable.el 17
font.size.variable.tr 17
font.size.variable.x-baltic 17
font.size.variable.x-central-euro 17
font.size.variable.x-cyrillic 17
font.size.variable.x-unicode 17
font.size.variable.x-western 17
mail.openMessageBehavior.version 1
mail.winsearch.enable true
mail.winsearch.firstRunDone true
mail.winsearch.global_reindex_time 1358414380
mailnews.database.global.datastore.id 9a95babe-e41f-4461-9a42-cbbd75e7150
network.cookie.prefsMigrated true
places.database.lastMaintenance 1420661514
places.history.expiration.transient_current_max_pages 87230
plugin.importedState true
Graphics
Adapter Description NVIDIA GeForce 6200 LE
Vendor ID 0x10de
Device ID 0x0163
Adapter RAM 64
Adapter Drivers nvd3dum
Driver Version 9.18.13.697
Driver Date 10-2-2012
Direct2D Enabled false
DirectWrite Enabled false (6.2.9200.16581)
ClearType Parameters ClearType parameters not found
WebGL Renderer false
GPU Accelerated Windows 0. Blocked for your graphics card because of unresolved driver issues.
AzureCanvasBackend skia
AzureSkiaAccelerated 0
AzureFallbackCanvasBackend cairo
AzureContentBackend cairo
JavaScript
Incremental GC 1
Accessibility
Activated 0
Prevent Accessibility 0
Library Versions
Expected minimum version Version in use
NSPR 4.10.6 4.10.6
NSS 3.16.2.3 Basic ECC 3.16.2.3 Basic ECC
NSS Util 3.16.2.3 3.16.2.3
NSS SSL 3.16.2.3 Basic ECC 3.16.2.3 Basic ECC
NSS S/MIME 3.16.2.3 Basic ECC 3.16.2.3 Basic ECCHi again, Sekar
"Business Place" and "Section Code" are fields in the Accounting Document Segment in R/3, for the Account Payable/Receivable line.
--> Technically: Table is BSEG, fields are BSEG-BUPLA and BSEG-SECCO respectively.
Especially "Business Place" sounds like a specific field of IS-Media Solution.
First of all, you should investigate on WHY these 2 fields are mandatory in R/3 system: I'm working in a IPM system with a R/3 IS-Media backend, and I have not this problem. with these 2 fields.
After that, you should determine a RULE to give a value to these fields (a FI Business Analyst for the R/3 backend system could help you), and then implement a code in IPM to value these fields.
To do that, I thinks you should develop a new implemetation of BAdI BILL_ACC_IF; the method you should develop is ENRICH_ACC_DOCUMENT, and the code could be something like that:
DATA:
ls_acc_acar09 TYPE LINE OF bill_acc_acar09_t "Table: Customer Line
,ls_acc_acap09 TYPE LINE OF bill_acc_acap09_t "Table: Creditor Row
LOOP AT CT_ACC_ACAP09 INTO ls_acc_acap09.
****--> Here you should implement the rule to find suitable values for Business Place and Section Code
**--> Here you give values
ls_acc_acap09-BUSINESSPLACE = (Value of Business Place)
ls_acc_acap09-SECTIONCODE = (Value of Section Code)
modify CT_ACC_ACAP09 from ls_acc_acap09 index sy-tabix
transporting BUSINESSPLACE SECTIONCODE.
ENDLOOP.
LOOP AT CT_ACC_ACAr09 INTO ls_acc_acar09.
*****---> SAME LOGIC...
endloop.
I think you could start with a technical test, assigning fixed values to fields:
--> See Table J_1BBRANCH in R/3 for possible values of Business Place
--> See Tbale SECCODE in R/3 for possible values of Section Code -
CFL - "oForm.ChooseFromLists.Item("?")" List in all documents
Hi to all, is there anyone who can tell on how to get the exact "oForm.ChooseFromLists.Item("?")" list in all document forms: example AR,AP,Inventory transfer, Service call etc.....
Hi
Please use this For your Dobts
Member Description Value
oChartOfAccounts ChartOfAccounts object. 1
oBusinessPartners BusinessPartners object. 2
oBanks Banks Object. 3
oItems Items object. 4
oVatGroups VatGroups Object. 5
oPriceLists PriceLists object. 6
oSpecialPrices SpecialPrices object. 7
oItemProperties ItemProperties 8
oUsers Users object. 12
oInvoices Documents object that represents a draft of sales invoice document. 13
oCreditNotes Documents object that represents a draft of sales credit note document. 14
oDeliveryNotes Documents object that represents a draft of sales delivery note document. 15
oReturns Documents object that represents a draft of sales return document. 16
oOrders Documents object that represents a draft of sales order document. 17
oPurchaseInvoices Documents object that represents a draft of purchase invoice document. 18
oPurchaseCreditNotes Documents object that represents a draft of purchase credit note document. 19
oPurchaseDeliveryNotes Documents object that represents a draft of purchase delivery note document. 20
oPurchaseReturns Documents object that represents a draft of a purchase return document. 21
oPurchaseOrders Documents object that represents a draft of purchase order document. 22
oQuotations Documents object that represents a draft of sales quotation document. 23
oIncomingPayments Payments object. 24
oJournalVouchers JournalVouchers object. 28
oJournalEntries JournalEntries object that represents a normal journal entry. 30
oStockTakings StockTaking object. 31
oContacts Contacts object. 33
oCreditCards CreditCards Object 36
oCurrencyCodes Currencies object. 37
oPaymentTermsTypes PaymentTermsTypes object. 40
oBankPages BankPages object. 42
oManufacturers Manufacturers 43
oVendorPayments Payments object that represents payments to vendors. 46
oLandedCostsCodes LandedCostsCodes 48
oShippingTypes ShippingTypes 49
oLengthMeasures LengthMeasures 50
oWeightMeasures WeightMeasures 51
oItemGroups ItemGroups object. 52
oSalesPersons SalesPersons 53
oCustomsGroups CustomsGroups 56
oChecksforPayment ChecksforPayment object. 57
oInventoryGenEntry Documents object that is used to enter general items to the inventory. 59
oInventoryGenExit Documents object that is used to exit general items from inventory. 60
oWarehouses Warehouses object. 64
oCommissionGroups CommissionGroups 65
oProductTrees ProductTrees object. 66
oStockTransfer StockTransfer object. 67
oWorkOrders WorkOrders object. 68
oCreditPaymentMethods CreditPaymentMethods 70
oCreditCardPayments CreditCardPayments 71
oAlternateCatNum AlternateCatNum object. 73
oBudget Budget object. 77
oBudgetDistribution BudgetDistribution object. 78
oMessages Messages object. 81
oBudgetScenarios BudgetScenarios object. 91
oSalesOpportunities SalesOpportunities object. 97
oUserDefaultGroups UserDefaultGroups 93
oSalesStages SalesStages 101
oActivityTypes ActivityTypes object. 103
oActivityLocations ActivityLocations object. 104
oDrafts Documents object that represents a draft document (see Creating a draft document sample). 112
oDeductionTaxHierarchies DeductionTaxHierarchies object. 116
oDeductionTaxGroups DeductionTaxGroups object. 117
oAdditionalExpenses AdditionalExpenses object. 125
oSalesTaxAuthorities SalesTaxAuthorities object. 126
oSalesTaxAuthoritiesTypes SalesTaxAuthoritiesTypes object. 127
oSalesTaxCodes SalesTaxCodes object. 128
oQueryCategories QueryCategories object. 134
oFactoringIndicators object. FactoringIndicators 138
oPaymentsDrafts Payments object. 140
oAccountSegmentations AccountSegmentations object. 142
oAccountSegmentationCategories AccountSegmentationCategories object. 143
oWarehouseLocations WarehouseLocations object. 144
oForms1099 Forms1099 object. 145
oInventoryCycles InventoryCycles object. 146
oWizardPaymentMethods WizardPaymentMethods object. 147
oBPPriorities BPPriorities object. 150
oDunningLetters DunningLetters object. 151
oUserFields UserFieldsMD object. 152
oUserTables UserTablesMD object. 153
oPickLists PickLists object. 156
oPaymentRunExport PaymentRunExport object. 158
oUserQueries UserQueries object. 160
oMaterialRevaluation MaterialRevaluation object. 162
oCorrectionPurchaseInvoice Documents object that represents a draft of purchase invoice correction document. 163
oCorrectionPurchaseInvoiceReversal Documents object that represents a draft of reverse purchase invoice correction document. 164
oCorrectionInvoice Documents object that represents a draft of correction invoice document. 165
oCorrectionInvoiceReversal Documents object that represents a draft of reverse invoice correction document. 166
oContractTemplates ContractTemplates object. 170
oEmployeesInfo EmployeesInfo object. 171
oCustomerEquipmentCards CustomerEquipmentCards object. 176
oWithholdingTaxCodes WithholdingTaxCodes object. 178
oBillOfExchangeTransactions BillOfExchangeTransaction object. 182
oKnowledgeBaseSolutions KnowledgeBaseSolutions object. 189
oServiceContracts ServiceContracts object. 190
oServiceCalls ServiceCalls object. 191
oUserKeys UserKeysMD object. 193
oQueue Queue object. 194
oSalesForecast SalesForecast object. 198
oTerritories Territories object. 200
oIndustries Industries object. 201
oProductionOrders ProductionOrders object. 202
oPackagesTypes PackagesTypes object. 205
oUserObjectsMD UserObjectsMD object. 206
oTeams Teams object. 211
oRelationships Relationships object. 212
oUserPermissionTree UserPermissionTree object. 214
oActivityStatus ActivityStatus object. 217
oChooseFromList ChooseFromList object. 218
oFormattedSearches FormattedSearches object. 219
oAttachments2 Attachments2 object. 221
oUserLanguages UserLanguages object. 223
oMultiLanguageTranslations MultiLanguageTranslations object. 224
oDynamicSystemStrings DynamicSystemStrings object. 229
oHouseBankAccounts HouseBankAccounts object. 231
oBusinessPlaces BusinessPlaces object. 247
oLocalEra LocalEra object. 250
oSalesTaxInvoice Sales tax invoice. See TaxInvoices object and DocType property with the valid value botit_Invoice. 280
oPurchaseTaxInvoice Purchase tax invoice. See TaxInvoices object and DocType property with the valid value botit_Payment. 281
BoRecordset Recordset object. 300
BoBridge SBObob object. 305
oNotaFiscalUsage NotaFiscalUsage object. 260
oNotaFiscalCFOP NotaFiscalCFOP object. 258
oNotaFiscalCST NotaFiscalCST object. 259
oClosingDateProcedure ClosingDateProcedure object. 261
oBusinessPartnerGroups object. 10
oBPFiscalRegistryID BPFiscalRegistryID object.
Pls give Feedback
N.Mohamed Zubair -
Currencies Object Id for Choose From List
I would like to know the id of the Currencies Object so i can use it in a CFL . I have looked in the BoLinkedObject Enumeration , but i couldn't find it.
Does anyone know it ?Hi Tibi
Please use this For your Dobts
Member Description Value
oChartOfAccounts ChartOfAccounts object. 1
oBusinessPartners BusinessPartners object. 2
oBanks Banks Object. 3
oItems Items object. 4
oVatGroups VatGroups Object. 5
oPriceLists PriceLists object. 6
oSpecialPrices SpecialPrices object. 7
oItemProperties ItemProperties 8
oUsers Users object. 12
oInvoices Documents object that represents a draft of sales invoice document. 13
oCreditNotes Documents object that represents a draft of sales credit note document. 14
oDeliveryNotes Documents object that represents a draft of sales delivery note document. 15
oReturns Documents object that represents a draft of sales return document. 16
oOrders Documents object that represents a draft of sales order document. 17
oPurchaseInvoices Documents object that represents a draft of purchase invoice document. 18
oPurchaseCreditNotes Documents object that represents a draft of purchase credit note document. 19
oPurchaseDeliveryNotes Documents object that represents a draft of purchase delivery note document. 20
oPurchaseReturns Documents object that represents a draft of a purchase return document. 21
oPurchaseOrders Documents object that represents a draft of purchase order document. 22
oQuotations Documents object that represents a draft of sales quotation document. 23
oIncomingPayments Payments object. 24
oJournalVouchers JournalVouchers object. 28
oJournalEntries JournalEntries object that represents a normal journal entry. 30
oStockTakings StockTaking object. 31
oContacts Contacts object. 33
oCreditCards CreditCards Object 36
oCurrencyCodes Currencies object. 37
oPaymentTermsTypes PaymentTermsTypes object. 40
oBankPages BankPages object. 42
oManufacturers Manufacturers 43
oVendorPayments Payments object that represents payments to vendors. 46
oLandedCostsCodes LandedCostsCodes 48
oShippingTypes ShippingTypes 49
oLengthMeasures LengthMeasures 50
oWeightMeasures WeightMeasures 51
oItemGroups ItemGroups object. 52
oSalesPersons SalesPersons 53
oCustomsGroups CustomsGroups 56
oChecksforPayment ChecksforPayment object. 57
oInventoryGenEntry Documents object that is used to enter general items to the inventory. 59
oInventoryGenExit Documents object that is used to exit general items from inventory. 60
oWarehouses Warehouses object. 64
oCommissionGroups CommissionGroups 65
oProductTrees ProductTrees object. 66
oStockTransfer StockTransfer object. 67
oWorkOrders WorkOrders object. 68
oCreditPaymentMethods CreditPaymentMethods 70
oCreditCardPayments CreditCardPayments 71
oAlternateCatNum AlternateCatNum object. 73
oBudget Budget object. 77
oBudgetDistribution BudgetDistribution object. 78
oMessages Messages object. 81
oBudgetScenarios BudgetScenarios object. 91
oSalesOpportunities SalesOpportunities object. 97
oUserDefaultGroups UserDefaultGroups 93
oSalesStages SalesStages 101
oActivityTypes ActivityTypes object. 103
oActivityLocations ActivityLocations object. 104
oDrafts Documents object that represents a draft document (see Creating a draft document sample). 112
oDeductionTaxHierarchies DeductionTaxHierarchies object. 116
oDeductionTaxGroups DeductionTaxGroups object. 117
oAdditionalExpenses AdditionalExpenses object. 125
oSalesTaxAuthorities SalesTaxAuthorities object. 126
oSalesTaxAuthoritiesTypes SalesTaxAuthoritiesTypes object. 127
oSalesTaxCodes SalesTaxCodes object. 128
oQueryCategories QueryCategories object. 134
oFactoringIndicators object. FactoringIndicators 138
oPaymentsDrafts Payments object. 140
oAccountSegmentations AccountSegmentations object. 142
oAccountSegmentationCategories AccountSegmentationCategories object. 143
oWarehouseLocations WarehouseLocations object. 144
oForms1099 Forms1099 object. 145
oInventoryCycles InventoryCycles object. 146
oWizardPaymentMethods WizardPaymentMethods object. 147
oBPPriorities BPPriorities object. 150
oDunningLetters DunningLetters object. 151
oUserFields UserFieldsMD object. 152
oUserTables UserTablesMD object. 153
oPickLists PickLists object. 156
oPaymentRunExport PaymentRunExport object. 158
oUserQueries UserQueries object. 160
oMaterialRevaluation MaterialRevaluation object. 162
oCorrectionPurchaseInvoice Documents object that represents a draft of purchase invoice correction document. 163
oCorrectionPurchaseInvoiceReversal Documents object that represents a draft of reverse purchase invoice correction document. 164
oCorrectionInvoice Documents object that represents a draft of correction invoice document. 165
oCorrectionInvoiceReversal Documents object that represents a draft of reverse invoice correction document. 166
oContractTemplates ContractTemplates object. 170
oEmployeesInfo EmployeesInfo object. 171
oCustomerEquipmentCards CustomerEquipmentCards object. 176
oWithholdingTaxCodes WithholdingTaxCodes object. 178
oBillOfExchangeTransactions BillOfExchangeTransaction object. 182
oKnowledgeBaseSolutions KnowledgeBaseSolutions object. 189
oServiceContracts ServiceContracts object. 190
oServiceCalls ServiceCalls object. 191
oUserKeys UserKeysMD object. 193
oQueue Queue object. 194
oSalesForecast SalesForecast object. 198
oTerritories Territories object. 200
oIndustries Industries object. 201
oProductionOrders ProductionOrders object. 202
oPackagesTypes PackagesTypes object. 205
oUserObjectsMD UserObjectsMD object. 206
oTeams Teams object. 211
oRelationships Relationships object. 212
oUserPermissionTree UserPermissionTree object. 214
oActivityStatus ActivityStatus object. 217
oChooseFromList ChooseFromList object. 218
oFormattedSearches FormattedSearches object. 219
oAttachments2 Attachments2 object. 221
oUserLanguages UserLanguages object. 223
oMultiLanguageTranslations MultiLanguageTranslations object. 224
oDynamicSystemStrings DynamicSystemStrings object. 229
oHouseBankAccounts HouseBankAccounts object. 231
oBusinessPlaces BusinessPlaces object. 247
oLocalEra LocalEra object. 250
oSalesTaxInvoice Sales tax invoice. See TaxInvoices object and DocType property with the valid value botit_Invoice. 280
oPurchaseTaxInvoice Purchase tax invoice. See TaxInvoices object and DocType property with the valid value botit_Payment. 281
BoRecordset Recordset object. 300
BoBridge SBObob object. 305
oNotaFiscalUsage NotaFiscalUsage object. 260
oNotaFiscalCFOP NotaFiscalCFOP object. 258
oNotaFiscalCST NotaFiscalCST object. 259
oClosingDateProcedure ClosingDateProcedure object. 261
oBusinessPartnerGroups object. 10
oBPFiscalRegistryID BPFiscalRegistryID object.
The Currency Object
oCurrencyCodes Currencies object. 37
Pls give Feedback
N.Mohamed Zubair -
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. -
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 -
Hi To All
How to get the UDOID of a system form....Hi,
For system forms you can have a object id thru'
SDK help centre by searching word
"GetBusinessObjectMethod"
I have also appended the object id's for system form
Regards,
Venkatesan G.
Member Description Value
oChartOfAccounts ChartOfAccounts object. 1
oBusinessPartners BusinessPartners object. 2
oBanks Banks Object. 3
oItems Items object. 4
oVatGroups VatGroups Object. 5
oPriceLists PriceLists object. 6
oSpecialPrices SpecialPrices object. 7
oItemProperties ItemProperties 8
oUsers Users object. 12
oInvoices Documents object that represents a draft of sales invoice document. 13
oCreditNotes Documents object that represents a draft of sales credit note document. 14
oDeliveryNotes Documents object that represents a draft of sales delivery note document. 15
oReturns Documents object that represents a draft of sales return document. 16
oOrders Documents object that represents a draft of sales order document. 17
oPurchaseInvoices Documents object that represents a draft of purchase invoice document. 18
oPurchaseCreditNotes Documents object that represents a draft of purchase credit note document. 19
oPurchaseDeliveryNotes Documents object that represents a draft of purchase delivery note document. 20
oPurchaseReturns Documents object that represents a draft of a purchase return document. 21
oPurchaseOrders Documents object that represents a draft of purchase order document. 22
oQuotations Documents object that represents a draft of sales quotation document. 23
oIncomingPayments Payments object. 24
oJournalVouchers JournalVouchers object. 28
oJournalEntries JournalEntries object that represents a normal journal entry. 30
oStockTakings StockTaking object. 31
oContacts Contacts object. 33
oCreditCards CreditCards Object 36
oCurrencyCodes Currencies object. 37
oPaymentTermsTypes PaymentTermsTypes object. 40
oBankPages BankPages object. 42
oManufacturers Manufacturers 43
oVendorPayments Payments object that represents payments to vendors. 46
oLandedCostsCodes LandedCostsCodes 48
oShippingTypes ShippingTypes 49
oLengthMeasures LengthMeasures 50
oWeightMeasures WeightMeasures 51
oItemGroups ItemGroups object. 52
oSalesPersons SalesPersons 53
oCustomsGroups CustomsGroups 56
oChecksforPayment ChecksforPayment object. 57
oInventoryGenEntry Documents object that is used to enter general items to the inventory. 59
oInventoryGenExit Documents object that is used to exit general items from inventory. 60
oWarehouses Warehouses object. 64
oCommissionGroups CommissionGroups 65
oProductTrees ProductTrees object. 66
oStockTransfer StockTransfer object. 67
oWorkOrders WorkOrders object. 68
oCreditPaymentMethods CreditPaymentMethods 70
oCreditCardPayments CreditCardPayments 71
oAlternateCatNum AlternateCatNum object. 73
oBudget Budget object. 77
oBudgetDistribution BudgetDistribution object. 78
oMessages Messages object. 81
oBudgetScenarios BudgetScenarios object. 91
oSalesOpportunities SalesOpportunities object. 97
oUserDefaultGroups UserDefaultGroups 93
oSalesStages SalesStages 101
oActivityTypes ActivityTypes object. 103
oActivityLocations ActivityLocations object. 104
oDrafts Documents object that represents a draft document (see Creating a draft document sample). 112
oDeductionTaxHierarchies DeductionTaxHierarchies object. 116
oDeductionTaxGroups DeductionTaxGroups object. 117
oAdditionalExpenses AdditionalExpenses object. 125
oSalesTaxAuthorities SalesTaxAuthorities object. 126
oSalesTaxAuthoritiesTypes SalesTaxAuthoritiesTypes object. 127
oSalesTaxCodes SalesTaxCodes object. 128
oQueryCategories QueryCategories object. 134
oFactoringIndicators object. FactoringIndicators 138
oPaymentsDrafts Payments object. 140
oAccountSegmentations AccountSegmentations object. 142
oAccountSegmentationCategories AccountSegmentationCategories object. 143
oWarehouseLocations WarehouseLocations object. 144
oForms1099 Forms1099 object. 145
oInventoryCycles InventoryCycles object. 146
oWizardPaymentMethods WizardPaymentMethods object. 147
oBPPriorities BPPriorities object. 150
oDunningLetters DunningLetters object. 151
oUserFields UserFieldsMD object. 152
oUserTables UserTablesMD object. 153
oPickLists PickLists object. 156
oPaymentRunExport PaymentRunExport object. 158
oUserQueries UserQueries object. 160
oMaterialRevaluation MaterialRevaluation object. 162
oCorrectionPurchaseInvoice Documents object that represents a draft of purchase invoice correction document. 163
oCorrectionPurchaseInvoiceReversal Documents object that represents a draft of reverse purchase invoice correction document. 164
oCorrectionInvoice Documents object that represents a draft of correction invoice document. 165
oCorrectionInvoiceReversal Documents object that represents a draft of reverse invoice correction document. 166
oContractTemplates ContractTemplates object. 170
oEmployeesInfo EmployeesInfo object. 171
oCustomerEquipmentCards CustomerEquipmentCards object. 176
oWithholdingTaxCodes WithholdingTaxCodes object. 178
oBillOfExchangeTransactions BillOfExchangeTransaction object. 182
oKnowledgeBaseSolutions KnowledgeBaseSolutions object. 189
oServiceContracts ServiceContracts object. 190
oServiceCalls ServiceCalls object. 191
oUserKeys UserKeysMD object. 193
oQueue Queue object. 194
oSalesForecast SalesForecast object. 198
oTerritories Territories object. 200
oIndustries Industries object. 201
oProductionOrders ProductionOrders object. 202
oPackagesTypes PackagesTypes object. 205
oUserObjectsMD UserObjectsMD object. 206
oTeams Teams object. 211
oRelationships Relationships object. 212
oUserPermissionTree UserPermissionTree object. 214
oActivityStatus ActivityStatus object. 217
oChooseFromList ChooseFromList object. 218
oFormattedSearches FormattedSearches object. 219
oAttachments2 Attachments2 object. 221
oUserLanguages UserLanguages object. 223
oMultiLanguageTranslations MultiLanguageTranslations object. 224
oDynamicSystemStrings DynamicSystemStrings object. 229
oHouseBankAccounts HouseBankAccounts object. 231
oBusinessPlaces BusinessPlaces object. 247
oLocalEra LocalEra object. 250
oSalesTaxInvoice Sales tax invoice. See TaxInvoices object and DocType property with the valid value botit_Invoice. 280
oPurchaseTaxInvoice Purchase tax invoice. See TaxInvoices object and DocType property with the valid value botit_Payment. 281
BoRecordset Recordset object. 300
BoBridge SBObob object. 305
oNotaFiscalUsage NotaFiscalUsage object. 260
oNotaFiscalCFOP NotaFiscalCFOP object. 258
oNotaFiscalCST NotaFiscalCST object. 259
oClosingDateProcedure ClosingDateProcedure object. 261
oBusinessPartnerGroups object. 10
oBPFiscalRegistryID BPFiscalRegistryID object. 278 -
Abbreviation of ST in the field origin of table JDT1
Dear Experts/Gurus,
I have a problem relate to define the abbreviation of ST in the field origin of table JDT1. it is not only ST and also other terms in the field. I have tried to find it out using ppt and help file but fail. where do I have to see it ? do you have ppt or pdf file explained about it ? I appreciate your answer so much. TIA
Rgds,Hi steve andre
The origin field is on OJDT and not JDT1. The field TransId on the table ojdt tells you which document it came from. But this field is numeric. So for example if the journal came from a Sales Invoice it will have 13. These numbers repreasent the actual DI API object also.
Here is a table of the values.
oChartOfAccounts ChartOfAccounts object. 1
oBusinessPartners BusinessPartners object. 2
oBanks Banks Object. 3
oItems Items object. 4
oVatGroups VatGroups Object. 5
oPriceLists PriceLists object. 6
oSpecialPrices SpecialPrices object. 7
oItemProperties ItemProperties 8
oUsers Users object. 12
oInvoices Documents object that represents a draft of sales invoice document. 13
oCreditNotes Documents object that represents a draft of sales credit note document. 14
oDeliveryNotes Documents object that represents a draft of sales delivery note document. 15
oReturns Documents object that represents a draft of sales return document. 16
oOrders Documents object that represents a draft of sales order document. 17
oPurchaseInvoices Documents object that represents a draft of purchase invoice document. 18
oPurchaseCreditNotes Documents object that represents a draft of purchase credit note document. 19
oPurchaseDeliveryNotes Documents object that represents a draft of purchase delivery note document. 20
oPurchaseReturns Documents object that represents a draft of a purchase return document. 21
oPurchaseOrders Documents object that represents a draft of purchase order document. 22
oQuotations Documents object that represents a draft of sales quotation document. 23
oIncomingPayments Payments object. 24
oJournalVouchers JournalVouchers object. 28
oJournalEntries JournalEntries object that represents a normal journal entry. 30
oStockTakings StockTaking object. 31
oContacts Contacts object. 33
oCreditCards CreditCards Object 36
oCurrencyCodes Currencies object. 37
oPaymentTermsTypes PaymentTermsTypes object. 40
oBankPages BankPages object. 42
oManufacturers Manufacturers 43
oVendorPayments Payments object that represents payments to vendors. 46
oLandedCostsCodes LandedCostsCodes 48
oShippingTypes ShippingTypes 49
oLengthMeasures LengthMeasures 50
oWeightMeasures WeightMeasures 51
oItemGroups ItemGroups object. 52
oSalesPersons SalesPersons 53
oCustomsGroups CustomsGroups 56
oChecksforPayment ChecksforPayment object. 57
oInventoryGenEntry Documents object that is used to enter general items to the inventory. 59
oInventoryGenExit Documents object that is used to exit general items from inventory. 60
oWarehouses Warehouses object. 64
oCommissionGroups CommissionGroups 65
oProductTrees ProductTrees object. 66
oStockTransfer StockTransfer object. 67
oWorkOrders WorkOrders object. 68
oCreditPaymentMethods CreditPaymentMethods 70
oCreditCardPayments CreditCardPayments 71
oAlternateCatNum AlternateCatNum object. 73
oBudget Budget object. 77
oBudgetDistribution BudgetDistribution object. 78
oMessages Messages object. 81
oBudgetScenarios BudgetScenarios object. 91
oSalesOpportunities SalesOpportunities object. 97
oUserDefaultGroups UserDefaultGroups 93
oSalesStages SalesStages 101
oActivityTypes ActivityTypes object. 103
oActivityLocations ActivityLocations object. 104
oDrafts Documents object that represents a draft document (see Creating a draft document sample). 112
oDeductionTaxHierarchies DeductionTaxHierarchies object. 116
oDeductionTaxGroups DeductionTaxGroups object. 117
oAdditionalExpenses AdditionalExpenses object. 125
oSalesTaxAuthorities SalesTaxAuthorities object. 126
oSalesTaxAuthoritiesTypes SalesTaxAuthoritiesTypes object. 127
oSalesTaxCodes SalesTaxCodes object. 128
oQueryCategories QueryCategories object. 134
oFactoringIndicators object. FactoringIndicators 138
oPaymentsDrafts Payments object. 140
oAccountSegmentations AccountSegmentations object. 142
oAccountSegmentationCategories AccountSegmentationCategories object. 143
oWarehouseLocations WarehouseLocations object. 144
oForms1099 Forms1099 object. 145
oInventoryCycles InventoryCycles object. 146
oWizardPaymentMethods WizardPaymentMethods object. 147
oBPPriorities BPPriorities object. 150
oDunningLetters DunningLetters object. 151
oUserFields UserFieldsMD object. 152
oUserTables UserTablesMD object. 153
oPickLists PickLists object. 156
oPaymentRunExport PaymentRunExport object. 158
oUserQueries UserQueries object. 160
oMaterialRevaluation MaterialRevaluation object. 162
oCorrectionPurchaseInvoice Documents object that represents a draft of purchase invoice correction document. 163
oCorrectionPurchaseInvoiceReversal Documents object that represents a draft of reverse purchase invoice correction document. 164
oCorrectionInvoice Documents object that represents a draft of correction invoice document. 165
oCorrectionInvoiceReversal Documents object that represents a draft of reverse invoice correction document. 166
oContractTemplates ContractTemplates object. 170
oEmployeesInfo EmployeesInfo object. 171
oCustomerEquipmentCards CustomerEquipmentCards object. 176
oWithholdingTaxCodes WithholdingTaxCodes object. 178
oBillOfExchangeTransactions BillOfExchangeTransaction object. 182
oKnowledgeBaseSolutions KnowledgeBaseSolutions object. 189
oServiceContracts ServiceContracts object. 190
oServiceCalls ServiceCalls object. 191
oUserKeys UserKeysMD object. 193
oQueue Queue object. 194
oSalesForecast SalesForecast object. 198
oTerritories Territories object. 200
oIndustries Industries object. 201
oProductionOrders ProductionOrders object. 202
oPackagesTypes PackagesTypes object. 205
oUserObjectsMD UserObjectsMD object. 206
oTeams Teams object. 211
oRelationships Relationships object. 212
oUserPermissionTree UserPermissionTree object. 214
oActivityStatus ActivityStatus object. 217
oChooseFromList ChooseFromList object. 218
oFormattedSearches FormattedSearches object. 219
oAttachments2 Attachments2 object. 221
oUserLanguages UserLanguages object. 223
oMultiLanguageTranslations MultiLanguageTranslations object. 224
oDynamicSystemStrings DynamicSystemStrings object. 229
oHouseBankAccounts HouseBankAccounts object. 231
oBusinessPlaces BusinessPlaces object. 247
oLocalEra LocalEra object. 250
oSalesTaxInvoice Sales tax invoice. See TaxInvoices object and DocType property with the valid value botit_Invoice. 280
oPurchaseTaxInvoice Purchase tax invoice. See TaxInvoices object and DocType property with the valid value botit_Payment. 281
BoRecordset Recordset object. 300
BoBridge SBObob object. 305
oNotaFiscalUsage NotaFiscalUsage object. 260
oNotaFiscalCFOP NotaFiscalCFOP object. 258
oNotaFiscalCST NotaFiscalCST object. 259
oClosingDateProcedure ClosingDateProcedure object. 261
oBusinessPartnerGroups object. 10
oBPFiscalRegistryID BPFiscalRegistryID object. 278
Hope this helps
Maybe you are looking for
-
Failed to retrieve data from the database crystal reports 2008 in SAP B1
Hello friends, I am using Crystal report 2008 with SAP B1 PL 8.8. When I run any report, it runs correctly from Crystal Report. But whenever I try to open the same report through SAP ( Tools -> Preview External Crystal Report ), it prom
-
Popping and static during playback
When I am playing music through iTunes there is a static popping sound in the background. This occurs through speakers and headphones (brand new Bose) but does not happen when listening to the same songs on my iPod. As far as I can tell it is happeni
-
Is Informatica 9.0.1 with hot fix 2 is supported with AIX 7.1
Hi
-
Join 2 tables which are not related with any primary-foriegn key constraint
Hello, How to join 2 tables which are not related with any primary key foreign key constraint. Ex.Consider Table A has 5 columns->A_ID,A_Name,A_Address,A_City,A_Pin(Total 10 rows) Table B has 5 columns->B_ID,B_Name,B_Adress,B_City,B_City(Total 30 row
-
Mp4 movies with h264 codec on iPhone
I've been converting DVDs to mp4 format to take on my iPhone on vacation. I can get the mpeg-4 codec movies to download and play on the iPhone, but I can not get mp4 movies created with the h264 codec to download to the iPhone from iTunes. The messag