Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Dynamic date display as a heading in module pool

Former Member
0 Likes
657

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
618

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

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

3 REPLIES 3
Read only

Former Member
0 Likes
619

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

Read only

0 Likes
618

HI,

Thanks for your reply can give me a short code for that so that i can implement it.

Thanks,

Sree

Read only

0 Likes
618

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..