Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

installation fact update

Former Member
0 Kudos

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.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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

2 REPLIES 2

Former Member
0 Kudos

Hi,

Please try the standard function module ISU_DB_ETTIFB_UPDATE.

Regards,

Jyothi

Former Member
0 Kudos

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