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: 

Use of function module STATUS_UPDATE

Former Member
0 Kudos

Hello All,

i need to TECO projects which are not used. I have a list of the projects. I need to use update function STATUS_UPDATE instead of writing a BDC. Could someone assist me with the parameters that need to be passed so the project status could be set to Teco.

Thanks and Regards,

Sachin

7 REPLIES 7

Former Member
0 Kudos

Hi u can use the FM

STATUS_CHANGE_INTERN passing OBJNR and the status ie I0045 for TECO.

den use COMMIT WORK or FM STATUS_UPDATE_DIALOG to do database update

Former Member
0 Kudos

Hi,

Thanks for the immediate response. When I check the FM STATUS_CHANGE_INTERN, I have an option to pass the OBJNR but there is no parameter for STAT (status to be set as I0045). If just the object number is passed, will it teco it or there nneds to be some way to update the table entry in JEST for OBJNR to I0045.

Thanks and Regards,

Sachin

0 Kudos

Pass the status to tables parameter STATUS.

data:it_stat type standard table of jstat,

wa_stat type jstat.

wa_stat-stat = 'I0045'.

append wa_stat to it_stat.

pass it_stat to STATUS

Former Member
0 Kudos

Hi,

After use the FM STATUS_CHANGE_INTERN then write If sy-subrc = 0 then use statement COMMIT WORK.

Regards

Md.MahaboobKhan

Former Member
0 Kudos

Thanks for all the replies. The issue has to be done using the FM STATUS_UPDATE. I have found out the way. Thanks anyways to all.

Regards,

Sachin

0 Kudos

Please be careful concerning function modules concerning some statuses changes. To my understanding these function modules merely changes the status but may not perform some background activities. Allot goes on in the background with some statuses such as TECO and CNF. When some statuses are set there are resources that may get released, dates could be set, dates could be recalculated, entries made into back ground tables such as in the case of when performing a CNF in table AFRU etc... I had to learn that the hard way.

Edited by: Eric Thomas on Aug 12, 2010 7:05 PM

0 Kudos

Hi Sachin,

I ave the same issue,

plz write me how to use this.