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

TITLE BAR

Former Member
0 Likes
814

My Program.

-


report zprog1.

.....

.....

SUBMIT zprog2 "VIA SELECTION-SCREEN

WITH p_asset EQ p_asset

WITH p_werks EQ p_werks

WITH p_date EQ p_date

WITH p_opt7 EQ 'X'

AND RETURN.

.........

..........

*************************

The program zprog2 is having some tile 'XYZ'.

now i am calling zprog2 though Zprog1 now the title should not show 'XYZ'

it has to show 'ABCD'.

Could u pls help me how to solve this probelm...

My Program.

-


report zprog1.

.....

.....

SUBMIT zprog2 "VIA SELECTION-SCREEN

WITH p_asset EQ p_asset

WITH p_werks EQ p_werks

WITH p_date EQ p_date

WITH p_opt7 EQ 'X'

AND RETURN.

.........

..........

*************************

The program zprog2 is having some tile 'XYZ'.

now i am calling zprog2 though Zprog1 now the title should not show 'XYZ'

it has to show 'ABCD'.

Could u pls help me how to solve this probelm...

6 REPLIES 6
Read only

Former Member
0 Likes
776

Hi

Insert a control in AT SELECTION-SCREEN OUTPUT event to check if the program is called by another program:

AT SELECTION-SCREEN OUTPUT.

IF SY-CALLD = 'X'.

SET TITLEBAR 'ABCD'.

ENDIF.

max

Read only

0 Likes
776

hi,

add this code


AT SELECTION-SCREEN OUTPUT.

IF SY-CALLD = 'X'.
 SET TITLEBAR 'ABCD'.
ENDIF.

Regards,

Santosh

Read only

LucianoBentiveg
Active Contributor
0 Likes
776

Try adding this code to ZPROG2:

INITIALIZATION.

IF SY-CALLD = 'X'.

SET TITLEBAR 'ABCD'.

ENDIF.

Regards.

Read only

0 Likes
776

Just change the description of ZPROG2. To to SE38, enter ZPROG2, click change, click Go To-> Attributes, change the Title here. Then this is the title that will show in titlebar. No special coding required.

Regards,

Rich Heilman

Read only

Former Member
0 Likes
776

My Program.

-


report zprog1.

.....

.....

SUBMIT zprog2 "VIA SELECTION-SCREEN

WITH p_asset EQ p_asset

WITH p_werks EQ p_werks

WITH p_date EQ p_date

WITH p_opt7 EQ 'X'

AND RETURN.

.........

..........

*************************

The program zprog2 is having some tile 'XYZ'.

now i am calling zprog2 though Zprog1 now the title should not show 'XYZ'

it has to show 'ABCD'.

->If we run d program zprog2 title should be 'XYZ'.

->If we run d program zprog2 through zprog1 title should be 'ABACD'.

->I don't want make any changes in zprog2, i have to wahtever changes in zprog1 only..

Could u pls help me how to solve this probelm...

Regards,

Ramesh.

Read only

0 Likes
776

Hi

You can't do it without changing the program zprog2 because the status gui can be setted only in the same program (i.e. ZPROG2).

Max