2007 Jul 27 10:01 AM
Hi all,
Here I am having 5 differnt out puts according to the user selection in out put.
For this 5 diff out put, selction screen values are same, so I used
SET PF-STATUS.
FUN1,FUN2,FUN3,FUN4,FUN5
But what my problem is, For all these five differnt out puts I need different headings. I am not getting how to get different page headings when we are using set pf-status.
when I choose FUN1 I want one heading,
same like FUN2,FUN3 etc., diffent headings.
This is my coding.
set pf-status 'CHOOSE' EXCLUDING 'PICK'.
WRITE:/ 'SELECT THE TYPE OF ORDERS FROM APPLICATION TOOL BAR' COLOR 2.
AT USER-COMMAND.
CASE sy-ucomm.
WHEN 'ALL'.
PERFORM all_order_number_details.
WHEN 'BF_ORDERS'.
PERFORM brought_forward_order_no.
WHEN 'CURRENT'.
PERFORM current_order_numbers.
WHEN 'COMPLETED'.
PERFORM completed_order_numbers.
WHEN 'DATE_DIFF'.
PERFORM dif_dates.
ENDCASE.
For this I want different page headings.
I am not getting how to use this set title,
i am having 5 lines of heading in out put.
like.
___________________________________________________________________
....................................................report name
__________________________________________________________________
..................................................from and to date
___________________________________________________________________
unit
___________________________________________________________________
this name has to come, as per user selected the fun key.
___________________________________________________________________
filed headings(this also common to all selectd keys out put)
___________________________________________________________________
Regards,
sarath
2007 Jul 27 10:07 AM
Hi ,
You can give five titles based on 5 contitions
case ...
when ....
set titlebar '01'.
when.....
set titlebar '02'.
endcase.
like that
Hi ,
You can give five titles based on 5 contitions
case ...
when ....
set titlebar '01'.
when.....
set titlebar '02'.
endcase.
like that
2007 Jul 27 10:05 AM
hi
after your set pf-status command there is one more command called set titlebar
use that it will solve your problem
2007 Jul 27 10:07 AM
Hi ,
You can give five titles based on 5 contitions
case ...
when ....
set titlebar '01'.
when.....
set titlebar '02'.
endcase.
like that
2007 Jul 27 10:07 AM
hi Sarath
create a GUI title say with name GUI_TITLE
now create diffrent text symbols like t01 , t02 ,t03 etc
now depending upon which pf-status u want select different titlebar
example
if sy-ucomm 'save'
set titlebar ' GUI_TITLE' with text-t01.
elsif sy-ucomm 'create'
set titlebar ' GUI_TITLE' with text-t02.
etc
<b>hope it clears ur doubt</b>
regards
ravish
<b>plz dont forget to reward points if useful</b>
2007 Jul 27 10:07 AM
if u r using ALV Gruid, then use REUSE_ALV_COMMENTRY_WRITE
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = g_repid
I_CALLBACK_PF_STATUS_SET = 'SET_STATUS'
I_CALLBACK_USER_COMMAND = 'USER_COMMAND'
i_callback_top_of_page = 'TOP_OF_PAGE'
FORM top_of_page .
DATA: t_header TYPE slis_t_listheader,
wa_header TYPE slis_listheader.
Title
wa_header-typ = 'H'.
wa_header-info = ' Write Off Worklist'.
APPEND wa_header TO t_header.
CLEAR wa_header.
CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
EXPORTING
it_list_commentary = t_header.
ENDFORM. "Top_Of_Page
If u r using normal module pool then use SET PF_TITLE 'TXT'
Double click this TXT and set the title.
2007 Jul 27 10:09 AM
Hi,
Use set title bar for giving different titles.Trigger this based on condition.
If RB = 'X'.
SET TITLEBAR 'T1'.
If RB1 = 'X'.
SET TITLEBAR 'T2'.
Endif.
<b>Reward if helpful.</b>
2007 Jul 27 10:10 AM
Hi,
For setting different headings u need to use SET TITLEBAR. The PF status comprises those elements that are currently needed by the transaction.
Eg : SET TITLEBAR '100'.
Regards,
Anuradha
2007 Jul 27 11:33 AM
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |