cancel
Showing results for 
Search instead for 
Did you mean: 

Status & Release details of CV03N for Document

VigneshV
Participant
0 Kudos
1,892

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

Accepted Solutions (0)

Answers (1)

Answers (1)

vijay_hariharan
Contributor

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

VigneshV
Participant
0 Kudos

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

vijay_hariharan
Contributor

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

VigneshV
Participant
0 Kudos

Hi Vijay

Thank you.

One query when I tried running MCDOKVLS system is showing blank scree?

Vignesh V

vijay_hariharan
Contributor
0 Kudos

That's probably because the Memory ID used at the START OF SELECTION is empty.. I guess the information already provided is enough for you to proceed with your requirement.. If so, kindly mark the answer and close the thread.. For any new queries, you may open a New thread..

Regards,
Vijay

VigneshV
Participant
0 Kudos

Hi Vijay,

Shared the code with ABAPer and he is getting Empty screen.

Vignesh V

vijay_hariharan
Contributor

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

VigneshV
Participant
0 Kudos

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