Red color for negative values with $ symbol in Excel
Hi All,
We have a custom XML Publisher Report developed using XML rtf template. There is a number field in that template and the field is number formatted with $. i.e. output will look like this.
$100
$200 ...
the issue which we are facing is when that number field is having negative value, then it is displayed in red color.
and the client dont want that red color to appear in excel.
ex:
-($100) is displayed in red color in the excel output. This should be displayed in black color.
Can anyone help me on this..
Thanks
gtungala
In excel, under format cells, under category -> Number, look under Negative Numbers to see if the selected option is a number format in red. I think selecting a regular format (in black) should fix the issue..
Thanks!
Similar Messages
-
Color for negative Values in ALV Report
I want to change the color for negative values displayed in ALV list diplay report. Eg. -5 in Quantity should be changed to orange. Kindly help me
ThanksCheck the below program and bold one are important ( which is similar to MD05 Traffic lights )
REPORT ZWM_BIN_STOCK_REQ no standard page heading
message-id zwave.
D A T A D E C L A R A T I O N ****************************
Tables
tables :zpwvbap,
mara,
marc,
makt,
vbap,
zshift,
marm,
lqua.
TYPE-POOLS: SLIS.
Internal Table for Sales order
data : begin of i_vbap occurs 0,
matnr like zpwvbap-matnr," Material #
ZZCUTOFF like zpwvbak-ZZCUTOFF," Cutoff Time
vlpla like zpwvbap-vlpla,
kwmeng like zpwvbap-kwmeng," Quantity
vrkme like zpwvbap-vrkme, " Sales Unit
meins like zpwvbap-meins, " Unit of measure
end of i_vbap.
Internal Table for final Processing
data : begin of i_final occurs 0,
date(8) type c,
matnr like zpwvbap-matnr," Material #
zzshift like zshift-zzshift, " Wave Drop
maktx like makt-maktx," Desc
lgpla like lagp-lgpla, " Pick Bin
pverme like lqua-verme," Stock at Pick Bin
prverme like lqua-verme," Stock at Prod Bin
kwmeng like zpwvbap-kwmeng," Requiremnet from Wave Drop
vrkme like zpwvbap-vrkme, " Sales Unit
meins like zpwvbap-meins," Unit of measure
end of i_final.
Internal Table for Output
data : begin of i_output occurs 0,
<b> field type c, " Traffic Lights</b>
zzshift like zshift-zzshift, " Wave Drop
matnr like zpwvbap-matnr," Material #
maktx like makt-maktx," Desc
lgpla like lagp-lgpla, " Pick Bin
pverme like lqua-verme," Stock at Pick Bin
prverme like lqua-verme," Stock at Prod Bin
kwmeng like zpwvbap-kwmeng," Requiremnet from Wave Drop
vrkme like zpwvbap-vrkme," Sales Unit
meins like zpwvbap-meins," Unit of measure
diff like zpwvbap-kwmeng, " Diffrence
end of i_output.
Work Area for Final Internal Table
data wa_final like i_final.
data : w_zzcutoff(12) TYPE c,
v_date type sy-datum,
v_time(4) type c,
v_fldate(12) type c,
v_fhdate(12) type c,
v_pverme like lqua-verme,
v_prverme like lqua-verme,
v_diff like zpwvbap-kwmeng.
Variables for new check box
data : v_nverme like lqua-verme.
Internal Table for Pick Bin
data : begin of i_verme occurs 0,
verme like lqua-verme,
end of i_verme.
Internal table for Prod Bin
data : begin of i_pverme occurs 0,
verme like lqua-verme,
end of i_pverme.
Variables for ALV
DATA: FIELDCAT TYPE SLIS_T_FIELDCAT_ALV,
FIELDCAT_LN LIKE LINE OF FIELDCAT,
SORTCAT TYPE SLIS_T_SORTINFO_ALV,
SORTCAT_LN LIKE LINE OF SORTCAT,
EVENTCAT TYPE SLIS_T_EVENT,
EVENTCAT_LN LIKE LINE OF EVENTCAT,
LAYOUT TYPE SLIS_LAYOUT_ALV,
C_TOP_OF_PAGE TYPE SLIS_FORMNAME VALUE 'TOP_OF_PAGE',
g_user_command TYPE slis_formname VALUE 'USER_COMMAND',
GT_LIST_TOP_OF_PAGE TYPE SLIS_T_LISTHEADER.
DATA: COL_POS TYPE I,
P_LIGNAM TYPE SLIS_FIELDNAME VALUE 'FIELD'.
DATA : V_REPID LIKE SY-REPID,
flag type c.
S E L E C T I O N - S C R E E N *************************
selection-screen : begin of block blk with frame title text-001.
parameter : p_plant like marc-werks obligatory default '1000'.
select-options : s_date for sy-datum obligatory ,
s_shift for zshift-zzshift,
s_matnr for mara-matnr,
s_dept for zpwvbap-zzdept,
s_pdept for marc-ZZPRODDEPT.
selection-screen: end of block blk.
parameters : p_check as checkbox ."default 'X'.
ranges r_cutoff for w_zzcutoff.
I N I T I A L I Z A T I O N ****************************
initialization.
V_REPID = SY-REPID.
s_date-low = sy-datum + 1.
append s_date.
S T A R T - O F - S E L E C T I O N ***********************
start-of-selection.
Get the Shift Data.
PERFORM GET_SHIFT_DETAILS.
Get the data from ZPWVBAP Table
PERFORM GET_DATA_VBAP.
E N D - O F - S E L E C T I O N **********************
end-of-selection.
if not i_output[] is initial.
sort i_output by field zzshift matnr.
Reset the all Fiedcatlog.
PERFORM RESETVALUES.
Traffic Lights
PERFORM BUILD_LAYOUT.
Fill the fieldcatlog values
PERFORM FILL_FIELDCATLOG.
Call the List Function module
PERFORM CALL_lIST.
endif.
*& Form GET_SHIFT_DETAILS
Get the Cutoff Time.
FORM GET_SHIFT_DETAILS.
clear : v_fldate,
v_fhdate.
if not s_shift-low is initial.
clear: v_time,
v_date.
if s_shift-low = '1'.
v_time = '2000'.
elseif s_shift-low = '2'.
v_time = '2300'.
endif.
v_date = s_date-low - 1.
concatenate v_date v_time into v_fldate.
endif.
if not s_shift-high is initial.
clear : v_date,
v_time.
if s_shift-high = '1'.
v_time = '2000'.
elseif s_shift-high = '2'.
v_time = '2300'.
endif.
if not s_date-high is initial.
v_date = s_date-high - 1.
else.
v_date = s_date-low - 1.
endif.
concatenate v_date v_time into v_fhdate.
endif.
if not v_fhdate is initial.
r_cutoff-low = v_fldate.
r_cutoff-high = v_fhdate.
r_cutoff-sign = 'I'.
r_cutoff-option = 'BT'.
append r_cutoff.
endif.
ENDFORM. " GET_SHIFT_DETAILS
*& Form GET_DATA_VBAP
Get the data from ZPWVBAP Table
FORM GET_DATA_VBAP.
Get the data from ZPWVBAP and ZPWVBAK Table
if not v_fhdate is initial.
select matnr ZZCUTOFF vlpla sum( kwmeng ) vrkme meins
into table i_vbap
from zpwvbap as a inner join zpwvbak as b on
a~vbeln = b~vbeln
where a~werks = p_plant
and a~matnr in s_matnr
and b~vdatu in s_date
and a~zzdept in s_dept
and b~zzcutoff in r_cutoff
group by matnr zzcutoff vlpla vrkme meins.
elseif not v_fldate is initial.
select matnr ZZCUTOFF vlpla sum( kwmeng ) vrkme meins
into table i_vbap
from zpwvbap as a inner join zpwvbak as b on
a~vbeln = b~vbeln
where a~werks = p_plant
and a~matnr in s_matnr
and b~vdatu in s_date
and a~zzdept in s_dept
and b~zzcutoff = v_fldate
group by matnr zzcutoff vlpla vrkme meins.
else.
select matnr ZZCUTOFF vlpla sum( kwmeng ) vrkme meins
into table i_vbap
from zpwvbap as a inner join zpwvbak as b on
a~vbeln = b~vbeln
where a~werks = p_plant
and a~matnr in s_matnr
and b~vdatu in s_date
and a~zzdept in s_dept
and b~zzcutoff in r_cutoff
group by matnr zzcutoff vlpla vrkme meins .
endif.
if sy-subrc ne 0.
message i000(zwave) with 'No data found for given selection'.
stop.
endif.
sort i_vbap by zzcutoff matnr.
loop at i_vbap.
clear : v_pverme,
v_prverme.
Compare the data with pick method
select single zzpick from marc into marc-zzpick
where matnr = i_vbap-matnr
and werks = p_plant
and zzpick = '01'.
if sy-subrc ne 0.
continue.
endif.
Compare the data from MARC Table with Production Department
select single zzPRODdept from marc into marc-zzPRODdept
where matnr = i_vbap-matnr
and werks = p_plant
and zzPRODdept in s_pdept.
if sy-subrc ne 0.
continue.
endif.
Get the Material Description from MAKT Table
Select single maktx from makt into makt-maktx
where matnr = i_vbap-matnr
and spras = 'E'.
if sy-subrc eq 0.
i_final-maktx = makt-maktx.
endif.
Get the Pick Bin
i_final-lgpla = i_vbap-vlpla.
refresh i_verme.
clear i_verme.
Get the stock at Pick bin
select verme from lqua into table i_verme
where lgpla = i_vbap-vlpla
and matnr = i_vbap-matnr
and LGNUM = '100'.
if sy-subrc eq 0.
loop at i_verme.
v_pverme = v_pverme + i_verme-verme.
endloop.
if sy-subrc eq 0.
i_final-pverme = v_pverme.
endif.
endif.
refresh i_pverme.
clear i_pverme.
Get the stock at Production bin
select verme from lqua into table i_pverme
where matnr = i_vbap-matnr
and LGNUM = '100'
and ( lgpla = '9595959595' or
lgpla = '2222222222' or
lgpla = '5555555555' or
lgpla = '3232323232' or
lgpla = '8080808080' or
lgpla = '4040404040' or
lgpla = '9090909090' ).
if sy-subrc eq 0.
loop at i_pverme.
v_prverme = v_prverme + i_pverme-verme.
endloop.
if sy-subrc eq 0.
i_final-prverme = v_prverme.
endif.
endif.
Compare the unit of measure and sales unit
if i_vbap-vrkme ne i_vbap-meins.
Get the data from MARM Table ( Unit of measure )
select single * from marm into marm
where matnr = i_vbap-matnr
and meinh = i_vbap-vrkme.
if sy-subrc eq 0.
i_final-pverme = ( i_final-pverme * marm-umren ) / marm-umrez.
endif.
endif.
Material #
i_final-matnr = i_vbap-matnr.
Quantity from ZPWVBAP
i_final-kwmeng = i_vbap-kwmeng.
Unit of Measure
i_final-meins = i_vbap-meins.
Sales Unit
i_final-vrkme = i_vbap-vrkme.
Wave Drop
if i_vbap-ZZCUTOFF+8(4) = '2000' .
i_final-zzshift = '1'.
endif.
if i_vbap-zzcutoff+8(4) = '2300'.
i_final-zzshift = '2'.
endif.
i_final-date = i_vbap-zzcutoff+0(8).
append i_final.
clear : i_final,
i_vbap.
**Difference
i_output-diff = i_output-pverme - i_vbap-kwmeng.
Traffic Lights Depends on value
if i_output-pverme > i_output-kwmeng.
i_output-field = '3'.
elseif i_output-pverme < i_output-kwmeng.
i_output-field = '1'.
elseif i_output-pverme = i_output-kwmeng.
i_output-field = '2'.
endif.
append i_output.
clear : i_output,
i_vbap.
endloop.
refresh i_vbap.
sort i_final by date matnr zzshift.
Processing the internal table to get same material with pick quantity
deduction even it for 2nd shift
loop at i_final.
Move the data into work area in order remove #
move i_final to wa_final.
clear : flag.
at new matnr.
move : wa_final-matnr to i_output-matnr," Material #
wa_final-maktx to i_output-maktx," Desc
wa_final-lgpla to i_output-lgpla," Pick Bin
wa_final-kwmeng to i_output-kwmeng," Order qty
wa_final-zzshift to i_output-zzshift," Shift
wa_final-pverme to i_output-pverme, " Pick bin qty
wa_final-vrkme to i_output-vrkme," Sales Unit
wa_final-prverme to i_output-prverme. " Prod Bin Qty
Difference
i_output-diff = i_output-pverme - i_output-kwmeng.
New logic for Only HMR Department
<b> if p_check = 'X'.
if i_output-pverme < i_output-kwmeng.
v_nverme = i_output-pverme + i_output-prverme.
if v_nverme > i_output-kwmeng.
if i_output-pverme < i_output-kwmeng.
i_output-field = '2'.
else.
Traffic Lights Depends on value
i_output-field = '3'.
endif.
elseif v_nverme < i_output-kwmeng.
i_output-field = '1'.
elseif v_nverme = i_output-kwmeng.
i_output-field = '2'.
endif.
elseif i_output-pverme > i_output-kwmeng.
i_output-field = '3'.
elseif i_output-pverme = i_output-kwmeng.
i_output-field = '3'.
endif.
else.
Traffic Lights Depends on value
if i_output-pverme > i_output-kwmeng.
i_output-field = '3'.
elseif i_output-pverme < i_output-kwmeng.
i_output-field = '1'.
elseif i_output-pverme = i_output-kwmeng.
i_output-field = '2'.
endif.
endif.
move i_output-diff to v_diff.
flag = 'X'.
endat.</b>
if flag ne 'X'.
move : wa_final-matnr to i_output-matnr," Material #
wa_final-maktx to i_output-maktx," Desc
wa_final-lgpla to i_output-lgpla," Pick Bin
wa_final-kwmeng to i_output-kwmeng," Order qty
wa_final-zzshift to i_output-zzshift," Shift
wa_final-vrkme to i_output-vrkme," Sales Unit
wa_final-prverme to i_output-prverme. " Prod Bin Qty
Move Diffrence value
move v_diff to i_output-pverme.
clear: v_diff.
New logic for Only HMR Department
New logic for Only HMR Department
if p_check = 'X'.
if i_output-pverme < i_output-kwmeng.
v_nverme = i_output-pverme + i_output-prverme.
if v_nverme > i_output-kwmeng.
if i_output-pverme < i_output-kwmeng.
i_output-field = '2'.
else.
Traffic Lights Depends on value
i_output-field = '3'.
endif.
Traffic Lights Depends on value
i_output-field = '3'.
elseif v_nverme < i_output-kwmeng.
i_output-field = '1'.
elseif v_nverme = i_output-kwmeng.
i_output-field = '2'.
endif.
elseif i_output-pverme > i_output-kwmeng.
i_output-field = '3'.
elseif i_output-pverme = i_output-kwmeng.
i_output-field = '3'.
endif.
i_output-diff = i_output-pverme - i_output-kwmeng.
else.
Difference
i_output-diff = i_output-pverme - i_output-kwmeng.
Traffic Lights Depends on value
if i_output-pverme > i_output-kwmeng.
i_output-field = '3'.
elseif i_output-pverme < i_output-kwmeng.
i_output-field = '1'.
elseif i_output-pverme = i_output-kwmeng.
i_output-field = '2'.
endif.
endif.
endif.
append i_output.
clear : i_output,
wa_final,
i_final,
v_nverme.
endloop.
sort i_output by field zzshift matnr.
ENDFORM. " GET_DATA_VBAP
*& Form RESETVALUES
Reset the all fieldcatlogs
FORM RESETVALUES.
FIELDCAT_LN-KEY = SPACE.
FIELDCAT_LN-DO_SUM = SPACE.
FIELDCAT_LN-NO_OUT = SPACE.
FIELDCAT_LN-QFIELDNAME = SPACE.
FIELDCAT_LN-HOTSPOT = SPACE.
FIELDCAT_LN-OUTPUTLEN = '0'.
CLEAR: fieldcat_ln-seltext_l, fieldcat_ln-seltext_m,
fieldcat_ln-seltext_s, fieldcat_ln-reptext_ddic.
ENDFORM. " RESETVALUES
*& Form FILL_FIELDCATLOG
Fill the Fieldcatlog values
FORM FILL_FIELDCATLOG.
DATA: ls_fieldcat TYPE slis_fieldcat_alv.
Trafiic Light
CLEAR LS_FIELDCAT.
LS_FIELDCAT-FIELDNAME = 'FIELD'.
LS_FIELDCAT-TABNAME = 'I_OUTPUT'.
LS_FIELDCAT-OUTPUTLEN = 7.
LS_FIELDCAT-col_pos = '1'.
ls_fieldcat-seltext_L = 'Lights'.
ls_fieldcat-seltext_s = 'Lights'.
ls_fieldcat-seltext_m = 'Lights'.
APPEND LS_FIELDCAT TO FIELDCAT.
Wave Drop
CLEAR LS_FIELDCAT.
LS_FIELDCAT-FIELDNAME = 'ZZSHIFT'.
LS_FIELDCAT-TABNAME = 'I_OUTPUT'.
LS_FIELDCAT-OUTPUTLEN = 9.
LS_FIELDCAT-col_pos = '2'.
ls_fieldcat-seltext_L = 'Wave Drop'.
APPEND LS_FIELDCAT TO FIELDCAT.
Material
CLEAR LS_FIELDCAT.
LS_FIELDCAT-FIELDNAME = 'MATNR'.
LS_FIELDCAT-ref_fieldname = 'MATNR'.
LS_FIELDCAT-ref_tabname = 'MARA'.
LS_FIELDCAT-TABNAME = 'I_OUTPUT'.
LS_FIELDCAT-OUTPUTLEN = 18.
LS_FIELDCAT-col_pos = '3'.
ls_fieldcat-seltext_L = 'Material'.
APPEND LS_FIELDCAT TO FIELDCAT.
Description
CLEAR LS_FIELDCAT.
LS_FIELDCAT-FIELDNAME = 'MAKTX'.
LS_FIELDCAT-TABNAME = 'I_OUTPUT'.
LS_FIELDCAT-OUTPUTLEN = 40.
LS_FIELDCAT-col_pos = '4'.
ls_fieldcat-seltext_L = 'Description'.
APPEND LS_FIELDCAT TO FIELDCAT.
Pick Bin
CLEAR LS_FIELDCAT.
LS_FIELDCAT-FIELDNAME = 'LGPLA'.
LS_FIELDCAT-TABNAME = 'I_OUTPUT'.
LS_FIELDCAT-OUTPUTLEN = 15.
LS_FIELDCAT-col_pos = '5'.
ls_fieldcat-seltext_L = 'Pick Bin'.
APPEND LS_FIELDCAT TO FIELDCAT.
Trafiic Light
CLEAR LS_FIELDCAT.
LS_FIELDCAT-FIELDNAME = 'PVERME'.
LS_FIELDCAT-TABNAME = 'I_OUTPUT'.
LS_FIELDCAT-OUTPUTLEN = 16.
LS_FIELDCAT-col_pos = '6'.
ls_fieldcat-seltext_L = 'Stock at Pick Bin'.
APPEND LS_FIELDCAT TO FIELDCAT.
Stock at Prod Bin
CLEAR LS_FIELDCAT.
LS_FIELDCAT-FIELDNAME = 'PRVERME'.
LS_FIELDCAT-TABNAME = 'I_OUTPUT'.
LS_FIELDCAT-OUTPUTLEN = 16.
LS_FIELDCAT-col_pos = '7'.
ls_fieldcat-seltext_L = 'Stock at Prod Bin'.
APPEND LS_FIELDCAT TO FIELDCAT.
Req from wave drop
CLEAR LS_FIELDCAT.
LS_FIELDCAT-FIELDNAME = 'KWMENG'.
LS_FIELDCAT-TABNAME = 'I_OUTPUT'.
LS_FIELDCAT-OUTPUTLEN = 23.
LS_FIELDCAT-col_pos = '8'.
ls_fieldcat-seltext_L = 'Requirement from Wave Drop'.
APPEND LS_FIELDCAT TO FIELDCAT.
Sales Unit
CLEAR LS_FIELDCAT.
LS_FIELDCAT-FIELDNAME = 'VRKME'.
LS_FIELDCAT-TABNAME = 'I_OUTPUT'.
LS_FIELDCAT-OUTPUTLEN = 12.
LS_FIELDCAT-col_pos = '9'.
ls_fieldcat-seltext_L = 'Sales Unit'.
APPEND LS_FIELDCAT TO FIELDCAT.
Unit of Measure
CLEAR LS_FIELDCAT.
LS_FIELDCAT-FIELDNAME = 'MEINS'.
LS_FIELDCAT-TABNAME = 'I_OUTPUT'.
LS_FIELDCAT-OUTPUTLEN = 9.
LS_FIELDCAT-col_pos = '10'.
ls_fieldcat-seltext_L = 'UNIT'.
ls_fieldcat-no_out = 'X'.
APPEND LS_FIELDCAT TO FIELDCAT.
Diffference
CLEAR LS_FIELDCAT.
LS_FIELDCAT-FIELDNAME = 'DIFF'.
LS_FIELDCAT-TABNAME = 'I_OUTPUT'.
LS_FIELDCAT-OUTPUTLEN = 12.
LS_FIELDCAT-col_pos = '11'.
ls_fieldcat-seltext_L = 'Difference'.
APPEND LS_FIELDCAT TO FIELDCAT.
ENDFORM. " FILL_FIELDCATLOG
*& Form CALL_lIST
Use ALV Function module to display output
FORM CALL_lIST.
Top - of - Page
PERFORM COMMENT_BUILD USING GT_LIST_TOP_OF_PAGE[].
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_INTERFACE_CHECK = ' '
I_BYPASSING_BUFFER =
I_BUFFER_ACTIVE = ' '
I_CALLBACK_PROGRAM = V_REPID
I_CALLBACK_PF_STATUS_SET = ' '
I_CALLBACK_USER_COMMAND = g_user_command
I_CALLBACK_TOP_OF_PAGE = C_TOP_OF_PAGE
I_CALLBACK_HTML_TOP_OF_PAGE = ' '
I_CALLBACK_HTML_END_OF_LIST = ' '
I_STRUCTURE_NAME =
I_BACKGROUND_ID = ' '
I_GRID_TITLE =
I_GRID_SETTINGS =
IS_LAYOUT = LAYOUT
IT_FIELDCAT = FIELDCAT
IT_EXCLUDING =
IT_SPECIAL_GROUPS =
IT_SORT =
IT_FILTER =
IS_SEL_HIDE =
I_DEFAULT = 'X'
I_SAVE = ' '
IS_VARIANT =
IT_EVENTS =
IT_EVENT_EXIT =
IS_PRINT =
IS_REPREP_ID =
I_SCREEN_START_COLUMN = 0
I_SCREEN_START_LINE = 0
I_SCREEN_END_COLUMN = 0
I_SCREEN_END_LINE = 0
IT_ALV_GRAPHICS =
IT_ADD_FIELDCAT =
IT_HYPERLINK =
I_HTML_HEIGHT_TOP =
I_HTML_HEIGHT_END =
IT_EXCEPT_QINFO =
IMPORTING
E_EXIT_CAUSED_BY_CALLER =
ES_EXIT_CAUSED_BY_USER =
TABLES
T_OUTTAB = I_OUTPUT
EXCEPTIONS
PROGRAM_ERROR = 1
OTHERS = 2
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDFORM. " CALL_lIST
*& Form BUILD_LAYOUT
text
FORM BUILD_LAYOUT.
LAYOUT-GET_SELINFOS = 'X'.
Now we want a traffic light to say if the Truck is deleted
the variable p_lignam contains the name in IREPO which stores the
value for the traffic light
LAYOUT-LIGHTS_FIELDNAME = P_LIGNAM.
layout-HEADER_TEXT = 'Lights'.
LAYOUT-LIGHTS_CONDENSE = 'X'.
ENDFORM. " BUILD_LAYOUT
*& Form COMMENT_BUILD
text
-->P_GT_LIST_TOP_OF_PAGE[] text
FORM COMMENT_BUILD USING LT_TOP_OF_PAGE TYPE
SLIS_T_LISTHEADER.
data : v_day(2) type c,
v_mon(2) type c,
v_year(4) type c,
v_ldate(10) type c,
v_hdate(10) type c.
DATA: LS_LINE TYPE SLIS_LISTHEADER.
data: d_date like sy-datum.
clear : v_ldate,
v_hdate.
Header Information.
LIST HEADING LINE: TYPE H
CLEAR LS_LINE.
LS_LINE-TYP = 'H'.
LS_LINE-KEY: NOT USED FOR THIS TYPE
LS_LINE-INFO = 'Bin Replenishment report for HMR'.
APPEND LS_LINE TO LT_TOP_OF_PAGE.
STATUS LINE: TYPE S
CLEAR LS_LINE.
LS_LINE-TYP = 'S'.
LS_LINE-KEY = TEXT-003.
LS_LINE-INFO = TEXT-003.
APPEND LS_LINE TO LT_TOP_OF_PAGE.
STATUS LINE: TYPE S
CLEAR LS_LINE.
LS_LINE-TYP = 'S'.
LS_LINE-KEY = TEXT-003.
LS_LINE-INFO = TEXT-003.
APPEND LS_LINE TO LT_TOP_OF_PAGE.
Get the data ( s_date_low) into proper format.
v_year = s_date-low+0(4).
v_mon = s_date-low+4(2).
v_day = s_date-low+6(2).
concatenate v_mon '/' v_day '/' v_year into v_ldate.
clear : v_mon,
v_year,
v_day.
Get the data ( s_date_high) into proper format.
v_year = s_date-high+0(4).
v_mon = s_date-high+4(2).
v_day = s_date-high+6(2).
concatenate v_mon '/' v_day '/' v_year into v_hdate.
clear : v_mon,
v_year,
v_day.
Delivery date
if not s_date-low is initial .
if not s_date-high is initial.
CLEAR LS_LINE.
LS_LINE-TYP = 'S'.
LS_LINE-KEY = 'Delivery date From:'.
LS_LINE-INFO = v_ldate.
APPEND LS_LINE TO LT_TOP_OF_PAGE.
CLEAR LS_LINE.
LS_LINE-TYP = 'S'.
LS_LINE-KEY = 'Delivery date To :'.
LS_LINE-INFO = v_hdate.
APPEND LS_LINE TO LT_TOP_OF_PAGE.
endif.
endif.
if not s_date-low is initial.
if s_date-high is initial.
CLEAR LS_LINE.
LS_LINE-TYP = 'S'.
LS_LINE-KEY = 'Delivery date :'.
LS_LINE-INFO = v_ldate.
APPEND LS_LINE TO LT_TOP_OF_PAGE.
endif.
endif.
Wave Drop
if not S_SHIFT-LOW is initial.
if not S_SHIFT-high is initial.
CLEAR LS_LINE.
LS_LINE-TYP = 'S'.
LS_LINE-KEY = 'Wave Drop From :'.
LS_LINE-INFO = s_shift-low.
APPEND LS_LINE TO LT_TOP_OF_PAGE.
CLEAR LS_LINE.
LS_LINE-TYP = 'S'.
LS_LINE-KEY = 'Wave Drop to :'.
LS_LINE-INFO = s_shift-high.
APPEND LS_LINE TO LT_TOP_OF_PAGE.
endif.
endif.
if not S_SHIFT-LOW is initial.
if S_SHIFT-high is initial.
CLEAR LS_LINE.
LS_LINE-TYP = 'S'.
LS_LINE-KEY = 'Wave Drop :'.
LS_LINE-INFO = s_shift-low.
APPEND LS_LINE TO LT_TOP_OF_PAGE.
CLEAR LS_LINE.
LS_LINE-TYP = 'S'.
LS_LINE-KEY = 'Wave Drop to :'.
LS_LINE-INFO = s_shift-high.
APPEND LS_LINE TO LT_TOP_OF_PAGE.
endif.
endif.
Department
if not s_dept-low is initial .
if not s_dept-high is initial.
CLEAR LS_LINE.
LS_LINE-TYP = 'S'.
LS_LINE-KEY = 'Department From :'.
LS_LINE-INFO = s_dept-low.
APPEND LS_LINE TO LT_TOP_OF_PAGE.
CLEAR LS_LINE.
LS_LINE-TYP = 'S'.
LS_LINE-KEY = 'Department to :'.
LS_LINE-INFO = s_dept-high.
APPEND LS_LINE TO LT_TOP_OF_PAGE.
endif.
endif.
if not s_dept-low is initial .
if s_dept-high is initial.
CLEAR LS_LINE.
LS_LINE-TYP = 'S'.
LS_LINE-KEY = 'Department :'.
LS_LINE-INFO = s_dept-low.
APPEND LS_LINE TO LT_TOP_OF_PAGE.
endif.
endif.
Production Department
if not S_PDEPT-LOW is initial.
if not S_PDEPT-high is initial.
CLEAR LS_LINE.
LS_LINE-TYP = 'S'.
LS_LINE-KEY = 'Production Department From :'.
LS_LINE-INFO = S_PDEPT-LOW.
APPEND LS_LINE TO LT_TOP_OF_PAGE.
CLEAR LS_LINE.
LS_LINE-TYP = 'S'.
LS_LINE-KEY = 'Production Department to :'.
LS_LINE-INFO = S_PDEPT-high.
APPEND LS_LINE TO LT_TOP_OF_PAGE.
endif.
endif.
if not S_PDEPT-LOW is initial.
if S_PDEPT-high is initial.
CLEAR LS_LINE.
LS_LINE-TYP = 'S'.
LS_LINE-KEY = 'Production Department :'.
LS_LINE-INFO = S_PDEPT-LOW.
APPEND LS_LINE TO LT_TOP_OF_PAGE.
endif.
endif.
ENDFORM. " COMMENT_BUILD
FORM TOP_OF_PAGE *
FORM TOP_OF_PAGE.
CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
EXPORTING
IT_LIST_COMMENTARY = GT_LIST_TOP_OF_PAGE
I_LOGO =
I_END_OF_LIST_GRID =
ENDFORM.
FORM USER_COMMAND *
FORM user_command USING r_ucomm LIKE sy-ucomm
rs_selfield TYPE slis_selfield. "#EC CALLED
CASE R_UCOMM.
WHEN '&IC1'.
read table i_output index rs_selfield-tabindex.
SET PARAMETER ID 'MAT' FIELD i_output-matnr.
SET PARAMETER ID 'WRK' FIELD p_plant.
if not i_output-matnr is initial.
call transaction 'MD04' and skip first screen.
endif.
ENDCASE.
ENDFORM.
the above code i mentioned 1,2 ,3 values ,1 will have green color,2 will have yellow color,3 will have red color.
Thanks
Seshu -
What is the reason for the Red color for the swap values?
Dear experts,
May I know why the swap values displyed while executing the ST02 T-code are in Red color?System performance tuning is continuous work. Once you will change the parameter then you need to monitor the system if you continuous getting Red in St02 then you need to again fine tune the parameters. So, it is a continuous improvement that happens over time. If you want to analyze it then you can check ST03n about how much load is there on the system and based on that you can change the parameter.
Thanks
Sunny -
Negative values with MatchExpression
Hello,
Is it possible to use a negative expression with for the MatchExpression variale on the weblogic plug-in for Apache? I was sure I had seen it as an example in one of the WLS product documentations, but I can't find it now...
I thought it was something like
MatchExpression !myfile.xml
i.e. all content is forwarded to weblogic unless it is called myfile.xml, which would be served from the virtualhost doc root location... The ! negates the match.
Has anyone else seen this config, have I got the syntax right?
Thanks,
MikeIn excel, under format cells, under category -> Number, look under Negative Numbers to see if the selected option is a number format in red. I think selecting a regular format (in black) should fix the issue..
Thanks! -
Extract negative values with @JExport function in Essbase version 9.0.1
I'm currently trying to extract values using the @JExport but I noticed that negative values weren't extracted.
Is there something to do to make it work?
Thanks for your help.
BR,
AndyThanks for confirming things Vivek.Wilfred.
FYI, for future others with this problem: After a couple hours of playing around it was fixed, though I'm not sure what finally did it. Be sure that you try Google's "Sign Out of All Accounts", and not just the regular sign out option. -
Red Color Cast when printing with Canon Pixma Pro 9000
My printer is giving me a horrible red color cast after the latest software update. The color cast can also be seen in Preview and in the print window. No changes to drivers have been made. Printer worked fine before the update.
Has anyone else found this problem and offered a solution?You may find it helpful.
Thanks, but if you look in the archives of the Apple ColorSync Users List, you'll find thousands of posts from his Mac dating back to the beginning of the List.
The principle is that you configure your device colour spaces to the largest gamut of which they are capable, calibrate them to a stable condition, characterise that condition in a measured test chart, and build ICC device profiles for those characterisations in your ICC profiling package of choice.
You then capture and correct colour with correct colour previews, resulting in normalised exposures in an ideal CIE colour space. With you normalised exposures, you convert into output condition 1, output condition 2, output condition n which is what repurposing is about.
But you do no apply a gamma change on top of the colour managed rendering. That is incorrect by definition. You apply your gamma change as part of the colour correction in order to get your normalised exposure.
If you imagine this in a prepress process, then you can forget the concept of determinate rendering which is the bedrock of the ICC architecture. If you as photographer do a gamma correction on top of your presentation print or proof print, then you can claim that you have a presentation print, but you cannot contractually claim that you have a proof print as your proof print is a colour correction on top of the colour management system. If Apple Aperture allows the user access to colour correction on top of colour management, then that is a bug in the application. Sorry ...
/hh -
Conversion error in Table control for Negative values
hello all,
Iam using table control with 6 columns and in that columns values are coming from Ztable. and out of that one column is of value which is input/output field and having negative value's also.type of that column is DEC.
Now when i run the report dump occurs showing error message as COnversion Error.
I think its because of negative value even the in attributes of that column i had selected With Sign checkbox.
Now when i run the report then if in Ztable negative value is there then i want to display negative value in table control also.
Please suggest me...
<removed_by_moderator>
Thanking you.
Regards.
Edited by: Hemant Baviskar on Sep 10, 2008 3:07 PM
Edited by: Julius Bussche on Sep 10, 2008 1:13 PMHemant
Refer to following link:
Table Control : Conversion error
Thanks
Amol Lohade -
How to search for multiple values with Bex Prompts
Hi,
I would like to know if it is possible to search for multiple values at the same time with Bex Prompts instead of searching one value at a time (please see the screen shot below). I searched the forum couldn't find any relevant answers. please let me know how to achieve?
Thanks,
Charvi.Hi Charvi,
You can use wild card search to ensure you get multiple similar values listed as search output.use * for multiple characters and ? for single character.
For Example, Ravi * would result you all employees with first name as Ravi
You can use various search formats such as * Ravi * and * Ravi and Ra?? etc.
Thanks
Mallik -
APEX 4 Interactive Report set font color of negative values to red
I have an interactive report with several columns containing numerical values. If the value is negative, I want the font color to be red. Can someone help me with this process please.
Application Express 4.1.1.00.23
Thanks!
ChrisHi,
Use build in highlight
http://docs.oracle.com/cd/E23903_01/doc/doc.41/e21674/ir_using.htm#sthref1343
Then save report default layout
http://docs.oracle.com/cd/E23903_01/doc/doc.41/e21674/ir_using.htm#CHDDDBCG
Regards,
Jari
My Blog: http://dbswh.webhop.net/dbswh/f?p=BLOG:HOME:0
Twitter: http://www.twitter.com/jariolai -
Hello,
I have a great table, generated by a repeat region, out of
access, in an asp page on my website.
I use a css style sheet. My mouse get over the number then
the cel wil be changed by color.
Now I want to make the generated negative mumbers red in stat
of black in the table. Is it possible?
There 80 pages so I like to have a simple solution.
Can some one help me how to do this?
Jan from Holland.Hello Paul
I have two problems:
First the direct changing:
1. I have change it but I got a compilation foult may be you
see it.
2. It was:
<td width="50" nowrap class="navTable"><div
align="center"><a
href="bestellen_kpn_hi.asp?belabonnement=KPN%20hi%20150&merk=<%=(KPNhiNK1jaar.Fields.Item ("Merk").Value)%>&type=<%=(KPNhiNK1jaar.Fields.Item("TypeMob").Value)%>&kosten=<%=(KPNhiNK 1jaar.Fields.Item("KPN
hi
150").Value)%>&aanbodtxt=<%=(ABTbellen150.Fields.Item("ABTaanbodNK1jaartxt").Value)%>&aan bodnum=<%=(ABTbellen150.Fields.Item("ABTaanbodNK1jaarnum").Value)%>&duur=12%20maanden&kleu r1=<%=(KPNhiNK1jaar.Fields.Item("Kleur1Mob").Value)%>&kleur2=<%=(KPNhiNK1jaar.Fields.Item( "Kleur2Mob").Value)%>&kleur3=<%=(KPNhiNK1jaar.Fields.Item("Kleur3Mob").Value)%>&soort=Nieu w%20abonnement&IdMobiel=<%=(KPNhiNK1jaar.Fields.Item("IdMobiel").Value)%>&provider=<%=(KPN hiNK1jaar.Fields.Item("Provider").Value)%>&netwerk=<%=(KPNhiNK1jaar.Fields.Item("Netwerk") .Value)%>&IdABTbellen=<%=(ABTbellen150.Fields.Item("IdABTbellen").Value)%>&ak1jaar=<%=(ABT bellen150.Fields.Item("AK1jaar").Value)%>&maandkostenbellen=<%=(ABTbellen150.Fields.Item(" MaandKostenBellen").Value)%>"><%=(KPNhiNK1jaar.Fields.Item("KPN
hi 150").Value)%></a></div></td>
3. I hae change it in (see the end after "if ")
<td width="50" nowrap class="navTable"><div
align="center"><a
href="bestellen_kpn_hi.asp?belabonnement=KPN%20hi%20150&merk=<%=(KPNhiNK1jaar.Fields.Item ("Merk").Value)%>&type=<%=(KPNhiNK1jaar.Fields.Item("TypeMob").Value)%>&kosten=<%=(KPNhiNK 1jaar.Fields.Item("KPN
hi
150").Value)%>&aanbodtxt=<%=(ABTbellen150.Fields.Item("ABTaanbodNK1jaartxt").Value)%>&aan bodnum=<%=(ABTbellen150.Fields.Item("ABTaanbodNK1jaarnum").Value)%>&duur=12%20maanden&kleu r1=<%=(KPNhiNK1jaar.Fields.Item("Kleur1Mob").Value)%>&kleur2=<%=(KPNhiNK1jaar.Fields.Item( "Kleur2Mob").Value)%>&kleur3=<%=(KPNhiNK1jaar.Fields.Item("Kleur3Mob").Value)%>&soort=Nieu w%20abonnement&IdMobiel=<%=(KPNhiNK1jaar.Fields.Item("IdMobiel").Value)%>&provider=<%=(KPN hiNK1jaar.Fields.Item("Provider").Value)%>&netwerk=<%=(KPNhiNK1jaar.Fields.Item("Netwerk") .Value)%>&IdABTbellen=<%=(ABTbellen100.Fields.Item("IdABTbellen").Value)%>&ak1jaar=<%=(ABT bellen150.Fields.Item("AK1jaar").Value)%>&maandkostenbellen=<%=(ABTbellen150.Fields.Item(" MaandKostenBellen").Value)%>"><%
If (KPNhiNK1jaar.Fields.Item("KPN hi 150".Value)<0 then %>
<%class="NegNum">&<KPNhiNK1jaar.Fields.Item("KPN
hi 150").Value%>
<% Else %>
<%(KPNhiNK1jaar.Fields.Item("KPN hi 150").Value%>
<% End If %>
</a></div></td>
4. I get a fould in <0 (smaller then zero ) but I
don’t know how to change
Second the very complexity of the problem. Maybe I do other
thinks also wrong.
1. I bring a lot of information out of my table to the next
page of my website www.gsm4all.nl You can see it before.
2. That means I have to change about 1000 times.
3. I hope there is an other solution and / or what I do wrong
in the past?
Jan -
Checking for different values with single var name.
Hi,
i have a variable NAME which should not take 5 different values.
i want to check NAME againist these 5 values at run time. is there any way to check NAME againist these 5 values like NAME in X, where x contains these 5 values.
could someone let me know the syntax and approach to do that.
your help would be appreciated.
thanks,
kranthi.
Message was edited by: kranthi kumar
Message was edited by: kranthi kumarHi Kranthi
If you want a method to set this property persistently via definitions made in DDIC, I do not know any way. If the values that the parameter can take are definite, then you can set up a check table.
Otherwise, one should achieve this programatically.
i.
IF name = <i><prohibited_val1></i> OR
name = <i><prohibited_val2></i> OR
name = <i><prohibited_val3></i> OR
name = <i><prohibited_val4></i> OR
name = <i><prohibited_val5></i> .
*-- The rule is broken
ENDIF .
ii. Define a range and check with it.
TABLES mytable .
RANGES grn_namepval FOR mytable-name .
*-- Begin of block A
CLEAR grn_namepval .
grn_namepval-sign = 'I' .
grn_namepval-option = 'EQ' .
grn_namepval-low = <i><prohibited_val1></i> .
APPEND grn_namepval .
*-- End of block A
*--Do block A for each prohibited value
IF name IN grn_name_pval .
*--Your rule is broken
ENDIF .
Regards
*--Serdar <a href="https://www.sdn.sap.com:443http://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.sdn.businesscard.sdnbusinesscard?u=qbk%2bsag%2bjiw%3d">[ BC ]</a> -
Column values shift towards left for null values when export to excel
Post Author: pssuresh
CA Forum: Exporting
All,
I have a strange problem when using crystal report 10 export through C# Code. Consider in a row there are 3 columns and i am exporting to excel. ex.Student_id,Student_name,Student_Section. If Student_name values are null, then student_section values get displayed under student_name. There is a column shift towards left when there are null values. If anybody has already faced this problem, please post ur answer.
Note: When i just export to excel directly from crystal report, it works fine. i face problem only when i export through .Net code. I guess it is the problem with some formatting through code. if any body has fix, let me know.
Thanks,
Suresh.P.SPost Author: pssuresh
CA Forum: Exporting
Thanks for your reply. Even i have done the same thing yesterday to solve that problem. But we have nearly 100 of reports and started migrating now. The best solution crystal reports suggest is this.
http://support.businessobjects.com/library/kbase/articles/c2014430.asp
Thanks,
Suresh.P.S -
Hi SDNers,
We are on BI 7.0 SP 16.
We have created custom Web Templates for our customer and are using Portal Themes to control the "look & feel" of the Web Reports, which are presented via the Consumer portal (not BI Portal but EP Portal).
My Question is : Is there a way to show negative values in Red Font color (we are not talking about background cell colour for negative values as RED which can be acheived by exception reporting).
The Reports are presented on WEB via EP Portal ,so no excel here...
Any suggestions will be appreciated.
Thanks
TCHi Tony,
Suggestion of code in method DATA_CELL will be below:. The only thing is that below code is doing a left justification instead of displaying in red. You will need to find out how to display in red in HTML and replace it in the codes. Hope it help.
l_value type i,
l_replace type string,
l_new type string,
l_txt(20),
l_valn(20).
move i_value to l_value.
if l_value lt 0.
write l_value to l_valn left-justified.
concatenate '>' l_valn '<' into l_replace.
condense l_replace no-gaps.
concatenate 'style="float:left;" ' '>' l_txt '<' into l_new. " replace value and left justify text
condense l_new no-gaps.
replace l_replace in c_cell_content with l_new.
endif.
Regards
Kate -
How to show a negative value in diffenet color in af:inputText inlineStyle
Hi Friends,
i am facing a problem with <af:inputText /> in Jheadstart.
i want to show a value in red color, if that value get's into the negative value in <af:inputText />.
I was tyring with following code using inlineStyle attribute in af:inputText />
inlineStyle="color:#{ (bindings.EmployeesAmount.inputValue) < 0 ? 'red':'black'}"
it's not working....
is there any other solution other then inlineStyle attribute, please suggest me.
can you please help in solving this issue.
Thanks in advance,
Rahulhi,
This is not jheadstart problem.
Your code should be like this:
inlineStyle="#{bindings.EmployeesAmount.inputValue lt 0 ? (' color:red;'):(' color:black; ')}"
I suggest to use this:
inlineStyle="#{row.EmployeesAmount lt 0 ? (' color:red;'):(' color:black; ')}" -
Input Negative values in selection screen for select-options field
I am not able enter negative values for
SELECT-OPTIONS V_ERFMG FOR MSEG-ERFMG.
It says negative values are not allowed but I need to check for negative values. Kindly provide me solution.You can't put the negative values here...because the Domain which is attached to MSEG-ERFMG has not the "Sign" checkbox on.
Try with this code:
tables:wbrp.
SELECT-OPTIONS V_ERFMG FOR WBRP-menge.
Regards,
Naimesh Patel
Maybe you are looking for
-
Problems in generating excel output
Hi all, I'm facing a problem submitting a report with XML output (XML Publisher 5.0.1). I created a RTF template in order to generate an excel output but when I launch the concurrent, its status after few minutes becomes "Warning" logging java.lang.O
-
Driver and software issue, please help!
I am having an issue. I am running itunes v 7.2 and ever since, I get a message saying "disk burner or software not found". I have tried everything listed on these boards, including rebooting, updating the GEARS driver, etc. And nothing worked! I cou
-
Windows 7 sees iMac but iMac can't see Win7 in Finder
I'm a brand new convert from the PC world to the Mac world and I'm trying my darndest to get this PC off my desk. I figured I would just get rid of the monitor and use remote desktop or CORD or something to control my PC through my new iMac. However,
-
Deleting Application Instance Form OIM 11gR2
Hi Experts, I deleted an application instance from sysadmin console and ran "Application Instance Post Delete" job on "Delete" mode. I noticed that application instance got completely removed but, When I tried to add a new form in that App Instance,
-
Migration from os 10.2 to 10.8
I just purchased a new MacBook Air running os 10.8.2. I want to migrate from an old iBook G4 running os 10.2. I went to the Genius Bar at the local Apple store a few days ago and the guy told me to plug in my firewire backup external hard drive (wi