2006 Jul 13 3:04 PM
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...
2006 Jul 13 3:07 PM
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
2006 Jul 13 3:09 PM
hi,
add this code
AT SELECTION-SCREEN OUTPUT.
IF SY-CALLD = 'X'.
SET TITLEBAR 'ABCD'.
ENDIF.Regards,
Santosh
2006 Jul 13 3:20 PM
Try adding this code to ZPROG2:
INITIALIZATION.
IF SY-CALLD = 'X'.
SET TITLEBAR 'ABCD'.
ENDIF.
Regards.
2006 Jul 13 3:25 PM
2006 Jul 14 5:54 AM
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.
2006 Jul 14 8:15 AM
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
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |