Application Development and Automation 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: 
Read only

Help using transaction CT04

Former Member
0 Likes
1,619

Hi all,

I'm using transaction CT04 to configure some fields as characteristics. I already created the corresponding class in CL02.

But now I want to assign a default value in this characteristic, and put the field not editable, but only filled with this default value.

Is this possible? It's the first time I'm using this.

Thanks in advance.

Best regards,

Sónia Gonçalves

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,217

Hello Sónia,

you can enter the default value in tab "Values". Set the flag "Default" for this value.

=> this value will be the default value for this characteristic.

On tab "Additional data" you can set the flag "Not ready for input".

=> the default value cannot be modified.

Best regards

Stephan

Hi all,

I'm using transaction CT04 to configure some fields as characteristics. I already created the corresponding class in CL02.

But now I want to assign a default value in this characteristic, and put the field not editable, but only filled with this default value.

Is this possible? It's the first time I'm using this.

Thanks in advance.

Best regards,

Sónia Gonçalves

7 REPLIES 7
Read only

Former Member
0 Likes
1,218

Hello Sónia,

you can enter the default value in tab "Values". Set the flag "Default" for this value.

=> this value will be the default value for this characteristic.

On tab "Additional data" you can set the flag "Not ready for input".

=> the default value cannot be modified.

Best regards

Stephan

Read only

0 Likes
1,217

That's it! Thank you very much for the reply.

Now one more thing: if I want to get the value to be shown by default by logic, which means, by abap conditions, how can I do that?

Thanks!

Sónia Goncalves

Read only

0 Likes
1,217

Hello Sónia,

perhaps you can have a look at the object dependencies for the value (double click on the checkbox "Object dependencies exist") in the line of your characteristic value.

For help on object dependencies see here:

http://help.sap.com/saphelp_erp60_sp/helpdata/en/ec/62aa64416a11d1896d0000e8322d00/content.htm

Best regards

Stephan

Read only

0 Likes
1,217

As mentioned above, you would need Object Dependencies. These can be at the Configuration Profile as Procedures. Look at using the $SET_DEFAULT and $DEL_DEFAULT statements. Just to clarify, Object Dependencies are not ABAP. You can search on Procedures in the SAP Help to learn about $SET_DEFAULT.

Read only

0 Likes
1,217

Hello Mike,

the object dependencies themselves aren't ABAP, but you can use functions (defined in transaction CU65) in an object dependency, that are linked to function modules (which are ABAP).

Best regards

Stephan

Read only

0 Likes
1,217

Yes Stephan, you are correct, you can incorporate Function Modules into your Object Dependencies through Variant Functions. These Function Modules are very handy for Complex Logic and/or Calcualtions for Characteristic Values.

Read only

0 Likes
1,217

Hi,

Thanks for your answers. I will try this now.

Sónia Goncalves