on 2021 Dec 01 2:40 PM
Hi
Greetings
Need FM / Table connect for details of Document created with CV01N & managed with version & date validity for the document.
DRAW table is having only the document created date how to map the data with CV01N validity date.
Thanks in Advance.
Vignesh V
Help others by sharing your knowledge.
AnswerRequest clarification before answering.
Hello Vignesh,
Check table DRAP with the keys fields from DRAW.. the highest value of DRAP-STZAE determines the current status of the document and the Validity is also probably formed based on the date for DRAP-STZAE = 1 to the date for highest number STZAE for the key..
Hope this is what you are looking for..
Regards,
Vijay
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Vijay
Thanks for reply.
My requirement is in one custom report the material data validity need to be printed based on the input date in selection screen.
For example
Part123 version : A ===> Validity 01 Jan 2021 to 30 Nov 2021
Part123 version : B ===> Validity from 01 Dec 2021 -- till date.
Output put is like :
When I give 01 Jun 2021 ===> Output should show Part 123 : Ver A with date range 01 Jan 21 to 30 Nov 2021
When I give 02 Dec 2021 ==> Output should show Part 123 : ver B with date range 01 Dec 21 to 31 Dec 9999
In DRAW table only the creation of the Document [ie] Part 123 A/B etc information is available.
I need to fetch as above.
Vignesh V
Check Standard Report MCDOKVLS.. The function module used is CV115_DOCUMENT_VALID_DATES.. should solve your purpose..
DATA: BEGIN OF intervals OCCURS 0,
dokvr LIKE draw-dokvr,
datefrom LIKE draw-adatum,
dateto LIKE draw-adatum,
END OF intervals.
DATA: from TYPE d.
DATA: to TYPE d.
* Ab 4.0C werden nur noch gültig ab und gültig bis Datum angezeigt!
CALL FUNCTION 'CV115_DOCUMENT_VALID_DATES'
EXPORTING
dokar = draw-dokar
doknr = draw-doknr
tldok = draw-doktl
* sicht_all = 'X'
TABLES
dates = intervals
EXCEPTIONS
OTHERS = 1.
Regards,
Vijay
Go to CV03N for any valid document in your system with multiple versions.. Enter.. Go to Extras->Versions.. you should see the version output.. The above report is called to display the values.. Your ABAPer can check this in debug mode..
Important Note - Please note that the Forum is not to provide you the EXACT solution rather it is to guide you in the right direction.. your consultants would have to further analyze where required..
Regards,
Vijay
Hi VIjay
Thanks for support.
Issue sorted out using FM : CV115_DOCUMENT_VALID_DATES.
DOKAR : Doc.type
DOKNR : Document number
TLDOK : 000
Output will show all the date ranges mapped for the Documents maintained in CV02N irrespective of change number in case if change number exists system will map the date as per the validity of the change number.
BR
V Vignesh
User | Count |
---|---|
102 | |
39 | |
6 | |
5 | |
4 | |
3 | |
3 | |
2 | |
2 | |
2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.