on 08-11-2011 2:15 PM
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
97 | |
11 | |
11 | |
6 | |
6 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.