on 2015 Mar 12 4:56 PM
Hello experts,
Is it possible control the value of the field Document Version in CV01N. SAP maintain the last value used in this transaction, I would like to have this filed empty in every CV01N execution. Is it possible??
Thanks in advance.
Laura
Hi Laura,
please try to implement BAdI DOCUMENT_MAIN01, method AFTER_SAVE with following line:
set parameter id 'CV3' field space.
This should initialize the parameter id CV3 (version) after the document is saved.
Regards,
Benedikt
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Laura,
I think that the easiest way to control the document version is to use the BADI definition DOCUMENT_NUMBER01 with methods
DOCVERSION_GET_NEXT
DOCVERSION_GET_LAST
With these BADI methods you should be able to create your individual checking and setting routine for document versions.
Best regards,
Christoph
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Laura,
I'm sorry but I thought your question was about getting a special document version. If you edit a document info record and then return to CV01N the data is getting auto-filled. This means to be the standard behavior and there is no parameter or exit I know that could prevent this behavior.
Best regards,
Christoph
Hello Laura,
This can be easily done at personal levels. From any SAP screen > Go to Own data screen as shown here.
Go to Parameters tab and maintain these values. CV3 is parameter Id for Document Version and CV4 is that of Document Part and Save settings.
Next time on when you run CV01n you have these defaults.
KJogeswaraRao
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Jogeswara,
you are right, but by this mechanism you cannot empty the field ... unfortunately. Even if you save one space character.
But you can set the parameter CV3 to # ... this leads to the Situation, that the user must care about the field in general. Perhaps this is an interesting workaround, too.
Regards,
Markus
Hi Laura,
I think this is possible if you implement a field exit for data element DOKVR with a little ABAP, e.g.
if SY-TCODE = 'CV01N'.
clear DRAW-DOKVR.
endif.
To implement a filed exit, follow: http://wiki.scn.sap.com/wiki/display/ABAP/Field+exits
Regards,
Markus
P.S. pls rate if this was helpful
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
98 | |
8 | |
6 | |
6 | |
5 | |
5 | |
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.