cancel
Showing results for 
Search instead for 
Did you mean: 

Characteristic must be required in CV01N

former_member334926
Participant
0 Kudos

Hi

Doc type ABC has some characteristics that must be required when user try save doc in t-code CV01N.

Example:

If user don't entry value for all chacaracteristics must be generated error and wait for all values. After user complete these information, doc can be save.

Regards

Accepted Solutions (1)

Accepted Solutions (1)

Former Member

If you are looking for more sophisticated characteristic checks the easiest would be to use the above mentioned badi and the before_save method.

We used this to create a check based on a table where we maintain document type, status and characteristics. In this way you can control that certain fields are required before for example releasing documents.

Answers (3)

Answers (3)

jennifer_kramer2
Participant
0 Kudos

Hi-

You should be able to accomplish this with object dependencies.

If you want the characteristic to be only manditory for a particular document type - Create a reference characteristic that shows the document type (for example DOCTYPE_REF - by in the additional data tab of the characteristic you populate DRAW and DOKAR in the fields for a reference characteristic).

Then create the selection condition. (tcode CU01)

IF DOCTYPE_REF = 'ABC' AND

NOT $ROOT.<Characteristic name> SPECIFIED

Now assign this selection condiition to the the characteristic (Tcode CT04) by clicking on Extras > Object Dependencies > Assignments.

So, now if the characteristic is blank and the document type is ABC, the user will get an error message to populate the additional data tab.

former_member334926
Participant
0 Kudos

Hello Pradeepkumar

Thank you for your help, but my problem is:

When one characteristic is blank DMS document can't be save until the user insert all information.

Thank you very much

Former Member
0 Kudos

With the above configuration that i indicated,only a 'characteristic missing' alert can be issued.

Alternatively,your ABAPer may want to look at introducing a check in the BADI DOCUMENT_MAIN01,method BEFORE_SAVE. If a characteristic entry exists, allow the DIR to be saved else throw up an error message.

Regards,

Pradeepkumar Haragoldavar

Former Member
0 Kudos

For the characteristics that you have defined using CT04 transaction,go to 'Basic Data' tab and navigate to 'Value Assignment' section and check the field 'Entry Required' .Now,re-test the scenario to see if it fulfills your requirement.

Regards,

Pradeepkumar Haragoldavar