2010 Sep 03 7:27 AM
Dynamic date display as a heading in module pool from a ztable
the ZTABLE contain the date from which the date value is to be printed as a heading like
"BILLING FOR THE MONTH OF MAY 2010 WILL BE CLOSED ON 26/05/2010"
thanks,
Sree
2010 Sep 03 7:56 AM
Hi,
Use a simple text field with reference (name) as <ZTABLE-DATE> from your Z table.
Make it a 2 D display in the properties Tab.
Place this text field at the end of your heading in the module pool screen.
Regards,
Ateet
2010 Sep 03 7:56 AM
Hi,
Use a simple text field with reference (name) as <ZTABLE-DATE> from your Z table.
Make it a 2 D display in the properties Tab.
Place this text field at the end of your heading in the module pool screen.
Regards,
Ateet
2010 Sep 03 8:09 AM
HI,
Thanks for your reply can give me a short code for that so that i can implement it.
Thanks,
Sree
2010 Sep 03 9:26 AM
Hi Sreekanth,
Simply follow below steps:
1. Create a Input/Output field in screen layout.
2. Double click on it and 'Attributes' window will get opened.
3. Give a 'Name' to it (Ex: Text) and under 'Display' tab, tick 2D display and As label on left
4. Save and Activate.
5. In PBO, use below code,
MODULE status_2000 OUTPUT.
SET PF-STATUS 'DEMO'. " PF status
DATA: l_f_date TYPE sy-datum.
SELECT SINGLE zdate FROM ztable INTO l_f_date. " Select Date from ur ZTABLE
text = 'BILLING FOR THE MONTH OF MAY 2010 WILL BE CLOSED ON'.
CONCATENATE text l_f_date INTO text SEPARATED BY spce.
ENDMODULE. " STATUS_2000 OUTPUT
6. In TOP include,
DATA: TEXT type string. " Same name given to Input/Output field in screen layout.
7. Save & Activate.
Thanks..