08-02-2006 3:33 PM
In Tranx Code ME2N ( Purchasing Documents Per Document Number ), i have filled Document date as today's date, and i saved this variant, but when i want to run ths tranz code tomarrow, and when i select this variant, it must filled with tomarrow date, can u tell me how can we do this ?
Thanks in Advance,
Srini Kumar
Points for sure
08-02-2006 3:40 PM
Yes, you can do this with a selection variable. When saving your variant, select the checkbox in the Document Date Row mark as "L" for Selection Variable. Then click the selection varible button on the application toolbar.
Where you see the traffic lights, click the column for "D". Then click the down arrow. You will see a dialog. Select the "Current Date" and click green check. Click Save. Now save the variant. Now at the selection screen, choose your variant. Now you will see the current date populated into the document date field.
Regards,
Rich Heilman
08-02-2006 3:38 PM
There is a user exit for this wherein u can write the condition as date = sy-datum which will take the date by default.
Just check in User exists for this.
08-02-2006 3:40 PM
Yes, you can do this with a selection variable. When saving your variant, select the checkbox in the Document Date Row mark as "L" for Selection Variable. Then click the selection varible button on the application toolbar.
Where you see the traffic lights, click the column for "D". Then click the down arrow. You will see a dialog. Select the "Current Date" and click green check. Click Save. Now save the variant. Now at the selection screen, choose your variant. Now you will see the current date populated into the document date field.
Regards,
Rich Heilman
08-02-2006 3:58 PM
08-02-2006 3:43 PM
In the variant,
check the date field at column 'L' (selection variable).
then click on selection variable. A new screen will appear in that screen specify the current_date parameter from the selection list and save the variant.
Ur variant will come according to the current date.
Reward points if it helps
Cheers,
Hasmath