Wednesday, December 27, 2006

[BIIP] example of self define class for BIIP BPS function type

method IF_RSPLFA_SRVTYPE_IMP_EXEC~EXECUTE.
DATA: l_r_param_elem TYPE REF TO if_rsplfa_param_elem,
l_r_param_keyf_sel TYPE REF TO if_rsplfa_param_keyf_sel,
l_t_keyfnm TYPE rsplf_t_keyfnm,
l_r_param_value TYPE CHAR10,
l_kyf TYPE rsiobjnm.
DATA: RECORDS TYPE I,
LT_DATA_1 TYPE /BIC/AZOPHPTNT00,
LT_DATA TYPE TABLE OF /BIC/AZOPHPTNT00 WITH DEFAULT KEY .
DATA: BEGIN OF LS_DATA,
ZPHASESTR TYPE /BIC/AZOPHPTNT00-/BIC/ZPHASESTR,
ZPHASEEND TYPE /BIC/AZOPHPTNT00-/BIC/ZPHASEEND,
ZPHASESEQ TYPE /BIC/AZOPHPTNT00-/BIC/ZPHASESEQ,
ZPHASE TYPE /BIC/AZOPHPTNT00-/BIC/ZPHASE,
END OF LS_DATA.
*data: i_d like sy-index.
*do.
*if i_d = 2.
*exit.
*else.
*endif.
*enddo.
FIELD-SYMBOLS: TYPE ANY,
TYPE ANY.

LOOP AT c_th_data ASSIGNING .
move-corresponding to ls_data.
LT_DATA_1-/BIC/ZPHASESTR = LS_DATA-ZPHASESTR.
LT_DATA_1-/BIC/ZPHASEEND = LS_DATA-ZPHASEEND.
LT_DATA_1-/BIC/ZPHASESEQ = LS_DATA-ZPHASESEQ.
LT_DATA_1-/BIC/ZPHASE = LS_DATA-ZPHASE.
COLLECT LT_DATA_1 INTO lt_DATA.
ENDLOOP.
CALL FUNCTION 'RSDRI_ODSO_DELETE_RFC'
EXPORTING
I_ODSOBJECT = 'ZOPHPTNT'
I_DELETE_ALL = 'X'.
CALL FUNCTION 'RSDRI_ODSO_MODIFY'
EXPORTING
I_ODSOBJECT = 'ZOPHPTNT'
I_T_MODIFY = LT_DATA
IMPORTING
E_RECORDS = RECORDS.
* l_r_param_elem = i_r_param_set->get_param_elem( 'PLNVER' ).
*l_r_param_elem->get_value( IMPORTING E_VALUE = l_r_param_value ).
* l_r_param_keyf_sel = i_r_param_set->get_param_keyf_sel( 'KYFSEL' ).
* l_t_keyfnm = l_r_param_keyf_sel->get_t_keyfnm( ).
*

endmethod.

Monday, December 18, 2006

[nw04s] javascript : example after page load


if you want to run some function after page load , just insert function between and <>
=====================
function s( ) {
t = document.getElementById('ANALYSIS_ITEM_1_interactive_0');
i = document.getElementById('imgdummy');
s = t.getElementsByTagName("table");
t1 = document.getElementById('ANALYSIS_ITEM_2_interactive_0');
s1 = t1.getElementsByTagName("table");
w = s1[0].rows[0].cells[0].clientWidth - 2;
text = '';
text2 = '';
s[0].rows[0].cells[1].innerHTML = text;
i.innerHTML = text2
alert(i.innerHTML);
}

================
function s( ) {

t = document.getElementById('ANALYSIS_ITEM_1_interactive_0');
s = t.getElementsByTagName("table");
t1 = document.getElementById('ANALYSIS_ITEM_2_interactive_0');
s1 = t1.getElementsByTagName("table");
alert(s1[0].rows[0].cells[0].innerTEXT);
s1[0].rows[0].cells[0].innerText = '總計';
text = '
' + s[0].innerHTML + s1[0].innerHTML + '
';
document.write(text);


}

Tuesday, December 12, 2006

[nw04s] report designer css word wrap web result

add


in web template

original style
.urTxtStd{overflow:hidden;text-overflow:ellipsis;width:100%;white-space:nowrap}

Monday, December 04, 2006

[NW04s] Regenerate fox or bi ip program

In order to regenerate the programs, please
run the function module RSPLR_GENREP_DELETE_ALL with
transaction SE37. For the parameter I_APPLCLASS enter the value
FUNC1.