07-24-2008 9:55 AM
Hi,
I'm in need to create a Z-ed program to create new BBP from scratch, bases only on contract ID and Starting date.
Can some one help me on this?
I've test the FM ISU_S_BUDBILPLAN_CREATE, but it fails to create and raises error message FF704 "Tax code in procedure TAXEUR is invalid".
code extract:
Include current contract in the BBP.
CALL FUNCTION 'ISU_S_BUDBILPLAN_CREATE'
EXPORTING
x_vertrag = <my contract>
x_edatum = <BBP start date>
x_upd_online = c_true
x_no_dialog = c_true
x_auto = x_bbp_auto
x_ep_period = 'M'
X_LOG_OBJECT = 'IU25'
IMPORTING
y_db_update = w_db_update
y_obj = x_bbp_obj
EXCEPTIONS
not_found = 1
existing = 2
foreign_lock = 3
number_error = 4
input_error = 5
system_error = 6
not_created_noduedate = 7
billing_error = 8
not_authorized = 9
OTHERS = 10.
Thank you for you help.
I'll award points to all relevant replies.
Thx,
AAL!
07-24-2008 10:11 AM
Hello,
I guess you might have mentioned a tax code that either incorrect or does not exist.
You can check you list of tax codes for your country via T-Code FTXP.
For tax procedure, you can check via OY01 <<if ECC>> else you can view the tax procedure in FTXP.
Hope this helps
Rgds
Rajendra
Pnts!!!
07-24-2008 10:14 AM
Have u populated all these 3 fields....
l_auto-paymentplan-contract_tab
l_auto-paymentplan-portion
l_auto-paymentplan-startmonth
07-24-2008 10:46 AM
Hi Kumar,
I'm now filling l_auto-paymentplan, data but still have the same result.
Edited by: Andre Almeida on Jul 24, 2008 11:47 AM
07-24-2008 10:35 AM
Hello,
If u have selected tax procedure correctly , check out the table TE503 at sm30 for to maintain the tax procedure at billing/invoicing..
I am not sure....
07-24-2008 2:43 PM
Hi,
I found a solution.
Just for the record, here it is.
REPORT ZXPTOxxx .
TYPE-POOLS:
isu06.
DATA: xt_bbpever TYPE emitbbpever,
x_autbbp TYPE autbbp,
xy_obj TYPE isu06_movein,
xy_objs TYPE isu06_objs.
DATA:
xt_anlage TYPE isu_anlage_tab WITH HEADER LINE,
xt_objc TYPE isu06_t_objc,
xt_obji TYPE isu06_t_obji,
lt_emibbpever TYPE emitbbpever.
*" REFERENCE(YT_BBPKEY) TYPE ETBBPKEY
*" REFERENCE(YT_EABP) TYPE ISU_EABP_TAB
PARAMETERS:
anlage TYPE eanl-anlage OBLIGATORY,
datum TYPE emibbpever-startdate OBLIGATORY,
absbetrw TYPE emibbpever-absbetrw OBLIGATORY,
absaut TYPE emibbpever-absaut,
skip_mi TYPE boole-boole .
xt_anlage = anlage.
APPEND xt_anlage.
*APPEND anlage TO lt_anlage.
TABLES: ever, v_eanl.
SELECT SINGLE * FROM ever "INTO TABLE lt_emibbpever-ever
WHERE anlage EQ anlage.
SELECT SINGLE * FROM v_eanl
WHERE anlage EQ anlage.
DATA: l_emibbpever TYPE emibbpever.
IF skip_mi EQ 'X'.
ever-einzdat = datum.
ENDIF.
l_emibbpever-ever = ever.
l_emibbpever-v_eanl = v_eanl.
l_emibbpever-key_anlage = anlage.
l_emibbpever-startdate = datum.
l_emibbpever-absaut = absaut. "Manual
l_emibbpever-absbetrw = absbetrw.
l_emibbpever-waers = 'EUR'.
APPEND l_emibbpever TO lt_emibbpever.
xy_obj-contr-wmode = 3.
xy_obj-contr-open_wmode = 3.
xy_obj-contr-upd_online = 'X'.
xy_obj-contr-no_dialog = 'X'.
xy_obj-contr-save_okcode = 'SAVE'.
BREAK-POINT.
CALL FUNCTION 'ISU_MI_BBP_CREATE'
EXPORTING
xt_bbpever = lt_emibbpever
x_autbbp = absaut
CHANGING
xy_obj = xy_obj
EXCEPTIONS
OTHERS = 1.
05-04-2009 6:42 PM
Hi Andres,
Can you please share the code of Creating BBP with me? My requirement is create the BBP for a particular amount and with alternative start month option.
jain.an of google
Waiting for your reply.
Thanks
Ankur.