cancel
Showing results for 
Search instead for 
Did you mean: 

How to specify a version comment in the Check-In process from the Scripting(VBScript)?

btldb2
Explorer
0 Kudos

Hello,

We're using SAP Power Desginer.

I'm writing an automation script using VBScript that one of the ideas of which is to running check-in.

How to specify a version comment in the Check-In?

Thanks in advance.

Accepted Solutions (1)

Accepted Solutions (1)

Ondrej_Divis
Contributor
0 Kudos

Hello,

I am afraid that this not possible, unfortunately. Attribute VersionComment exists in PD Metamodel, but only as read-only property.

However, there might be some kind of workaround for this. You could modify your comment (after you perform checkin operation) by direct UPDATE command in PD repository database. AFAIR there should be only two tables involved in such scenario and PD is capable of all the stuff necessary:

  • connecting to DB (containig PD repository)
  • performing SQL query to find and update versionCommnet of just checked-in model

Of course, it is not very nice workaround and it requires direct access to repository database (which you might not have), but I don`t see any better workaround. Let me know if you need more help with this. Or you can find me on LinkedIn.

Kind regards,

Ondrej Divis

btldb2
Explorer
0 Kudos

Hello Ondrej Divis,

Thanks for the reply.

I also think this is the only way and PD may be executing the UPDATE statement internally.

Best regards,

Ron Hameiri

Answers (0)