2008 Sep 16 1:42 PM
Hi...
Can enybody tell me if there is a function module I can use in order to update installation fact from ETTIFB table?
I've found BAPI_UTILINSTALLATION_CHANFACT but it seems to work only for ETTIFN table.
Thank you.
2008 Sep 16 1:59 PM
Hi Victor,
You can see the sample code below.
data: lv_ettifb type ettifb occurs 0 with header line,
lv_iettifb type ISU_IETTIFN.
lv_ettifb-mandt = sy-mandt.
lv_ettifb-anlage = gv_eanl-anlage.
lv_ettifb-operand = 'VA_RTYPE'(201).
lv_ettifb-ab = C_20080701.
lv_ettifb-bis = C_99991231.
append lv_ettifb.
lv_ettifb-mandt = sy-mandt.
lv_ettifb-anlage = gv_eanl-anlage.
lv_ettifb-operand = 'VREBSLID'(202).
lv_ettifb-ab = C_20080701.
lv_ettifb-bis = C_99991231.
append lv_ettifb.
describe table lv_ettifb lines lv_line.
if lv_line > 0.
refresh lv_iettifb.
loop at lv_ettifb into lv_linet.
append lv_linet to lv_iettifb.
endloop.
Updating the Database for Installation with data populated from above steps
call function 'ISU_DB_ETTIFB_UPDATE'
EXPORTING
x_upd_mode = 'M'
x_iettifn = lv_iettifb.
Regards,
Jyothi
Hi...
Can enybody tell me if there is a function module I can use in order to update installation fact from ETTIFB table?
I've found BAPI_UTILINSTALLATION_CHANFACT but it seems to work only for ETTIFN table.
Thank you.
2008 Sep 16 1:53 PM
Hi,
Please try the standard function module ISU_DB_ETTIFB_UPDATE.
Regards,
Jyothi
2008 Sep 16 1:59 PM
Hi Victor,
You can see the sample code below.
data: lv_ettifb type ettifb occurs 0 with header line,
lv_iettifb type ISU_IETTIFN.
lv_ettifb-mandt = sy-mandt.
lv_ettifb-anlage = gv_eanl-anlage.
lv_ettifb-operand = 'VA_RTYPE'(201).
lv_ettifb-ab = C_20080701.
lv_ettifb-bis = C_99991231.
append lv_ettifb.
lv_ettifb-mandt = sy-mandt.
lv_ettifb-anlage = gv_eanl-anlage.
lv_ettifb-operand = 'VREBSLID'(202).
lv_ettifb-ab = C_20080701.
lv_ettifb-bis = C_99991231.
append lv_ettifb.
describe table lv_ettifb lines lv_line.
if lv_line > 0.
refresh lv_iettifb.
loop at lv_ettifb into lv_linet.
append lv_linet to lv_iettifb.
endloop.
Updating the Database for Installation with data populated from above steps
call function 'ISU_DB_ETTIFB_UPDATE'
EXPORTING
x_upd_mode = 'M'
x_iettifn = lv_iettifb.
Regards,
Jyothi
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |