on 08-11-2009 5:56 AM
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,
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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...
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
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.