WBS名称重复使用

在PS中如果一个WBS名被使用过以后(比如A),会在表VSPRPS_CN中记录,当WBS被改名(改为B)或是删除后,如果还需要使用原来的名字,就必须使用ZVERSION_UPDATE这个工具来更改表VSPRPS_CN中的WBS元素记录名,只有这样才能把A从表中彻底删除,否则就会报错说该WBS元素RELEASED版本已经存在。

 

ZVERSION_UPDATE使用方法:

LP_VSNMR    写入版本名 一般为RELEASED,具体要看配置情况
SO_PRDEF    项目定义名比如CN-0420.20
LP_PRFIX      写入00000000
TESTMODE    默认X   如果要实际修改去除X

 

First, read Note 529634. If it does not solve your problem, you can implement the report of this note. However, you have to take into account that the report violates the version concept since it also renames the versions of renamed operative WBS elements.
************************************************************************ Only execute this report after consultation with Regional Support or Development Support ************************************************************************
In order to be able to create a new WBS element with the old name, you must also change the old version when you change the name of the WBS element. It is only then possible to create a new WBS element with the old name. In order to change the old version of the WBS element, execute the ZVERSION_UPDATE report. This report changes the old version number into the current one. After the execution, you can insert a new WBS element with the old name into your project. This is again written into the version.

In addition, the report can rename WBS elements in versions for which the operative WBS element was deleted. To do this, enter a text for the parameter 'Prefix deleted objects'. In Customizing, you must create this text as a template followed by -00000000 (for example, DELE-00000000, important: eight zeros). Then the versions for which there is no longer an operative object are renamed according to the entry for the prefix (for example, DELE-00000001, DELE-00000002, and so on). If the parameter prefix is not filled on the selection screen, the system does not rename the deleted WBS elements in the version, it only renames those WBS elements in the version that were also renamed in the operative project.

Use Transaction SE38 to create the report. Here, create report ZVERSION_UPDATE and implement the source code specified in the attachment.
Then create the following selection texts:

  • select indicator 'Dictionary' for so_prdef and pl_vsnmr
  • enter 'Prefix deleted objects' for lp_prfix
  • enter 'Test mode' for the test mode

If you execute the report, you must first execute it in the test mode (Test mode = 'X'). If the system then displays the changes you required, you can execute the report without the test indicator.

Only execute the report once for each project.

======================================

To delete the project versions, execute the ZVERSDEL program for these project versions with the specified version number.

 

 

posted @ 2010-05-12 16:38  huggins  阅读(1338)  评论(0编辑  收藏  举报