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

pf-status

Former Member
0 Likes
902

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
879

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

7 REPLIES 7
Read only

Former Member
0 Likes
879

hi

after your set pf-status command there is one more command called set titlebar

use that it will solve your problem

Read only

Former Member
0 Likes
880

Hi ,

You can give five titles based on 5 contitions

case ...

when ....

set titlebar '01'.

when.....

set titlebar '02'.

endcase.

like that

Read only

Former Member
0 Likes
879

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>

Read only

Former Member
0 Likes
879

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.

Read only

Former Member
0 Likes
879

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>

Read only

Former Member
0 Likes
879

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

Read only

Former Member
0 Likes
879

hi,

thanks to all.

i solve the problem my self.

Regards,

sarath.