cancel
Showing results for 
Search instead for 
Did you mean: 

Modification date should come on PO Print out

Former Member
0 Kudos

Hi,

I want to show the Modification Dates on PO Print out.. means whenever we change in the PO, that modification date should show in the PO Printout. Is there any idea for do it...

NOTE: - Please note that I m using the copy of Standard Script MEDRUCK.

Regards,

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

You could put a PERFORM in the Script code and in the subroutine use the function module ME_CHANGEDOC_READ.

Pass the document category and Document number

In the Output table you will get the change date and time (UDATE and UTIME).

Sort the table and get the latest value

Regards

Former Member
0 Kudos

Please let me know that Output table name...where change date and time (UDATE and UTIME) value store.

Thanks

Former Member
0 Kudos

Hi,

Check the function module "Tables" parameter T_AUSG

Just run the function module for a document and check

Regards

;

Former Member
0 Kudos

Hi,

Now in my PO printout, last date of changed PO is coming... i write a PERFORM in script with subroutine.

But i want all the modified dated...means whenever the PO has been changed, all dates should come on printout.

Please help me...My code is:----

*****************************************

FORM f_convert_changed TABLES in_par STRUCTURE itcsy

out_par STRUCTURE itcsy.

READ TABLE in_par WITH KEY c_ebeln_ekpo.

CHECK sy-subrc = 0.

l_ebeln = in_par-value.

SELECT udate

INTO date_c

FROM cdhdr

WHERE objectclas = 'EINKBELEG'

AND objectid = l_ebeln

AND tcode NOT LIKE 'ME21%'.

a = date_c+0(4).

b = date_c+4(2).

f = date_c+6(2).

CONCATENATE f b a INTO date_ch SEPARATED BY '.'.

READ TABLE out_par WITH KEY 'DATE_CH'.

CHECK sy-subrc = 0.

out_par-value = date_ch.

MODIFY out_par INDEX sy-tabix.

ENDSELECT.

ENDFORM. "f_convert_DATE

*****************************************

and PERFORM in Script is:----

/:DEFINE &DATE_CH&

/:PERFORM F_CONVERT_CHANGED IN PROGRAM ZPO_MEDRUCK1

/:USING &CDHDR-OBJECTCLAS&

/:USING &EKPO-EBELN&

/:CHANGING &DATE_CH&

/:ENDPERFORM

I1Changed Date : &DATE_CH&

*****************************************

Thanks...

Former Member
0 Kudos

Hi,

If you want all the dates, i think this should be put in driver program. You won't be able to loop at the form level.

So in the driver program select all dates into a internal table (delete all duplicates to get unique dates)

Loop through the table and call the text element in the form to display all the date using function module WRITE_FORM

Regards

Edited by: Rajvansh Ravi on Aug 12, 2009 9:00 AM

Former Member
0 Kudos

Thanks dear...

But i m using the Subroutine because of my Driver Program is standard.. We are using the MEDRUCK Script and we cann't modify its driver program...

What can i do now...

Former Member
0 Kudos

Hi,

If you are using subroutine you need to know the number of date fields to define in the PERFORM, but in your case it is dynamic and has to be handled using LOOP .

Are you not allowed to copy the driver to a Z program ?

Regards

Former Member
0 Kudos

Is it not possible to do it without copy the driver program???

We don't want to copy the driver to Z program. if any other idea, please let me know...

Former Member
0 Kudos

Hello Gurus,

I think there is no solution of this problem.

Regards,