Lake Worke R

myWork.

need skills. i'm worker.

Name:
Location: 板橋, 台北, Taiwan

free is the end. 單車 單眼 電影 電玩 音樂 美食 旅行 咖啡 回憶 樂觀 悲觀 自閉 自卑 矛盾 作做 虛偽 過敏 失眠 人生 台灣 台北 板橋 文山 苗栗 竹南 頭份 雲林 斗六 君毅 忠信 聯大 雲科 FRIENDS

Thursday, November 30, 2006

好笑的 ABAP 寫法

FORM SCR_0130.

DATA: myTitle(14) type c,
myString(20) type c,
counter(2) type n.
counter = 1.

PERFORM bdc_dynpro USING 'SAPMF02K' '0130'.
PERFORM bdc_field USING 'BDC_CURSOR'
'LFBK-BANKS'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=VW'.
LOOP AT i_tab.

myTitle = 'LFBK-BANKS('.
CONCATENATE myTitle counter ')' INTO myTitle.
* PERFORM bdc_field USING 'LFBK-BANKS'
PERFORM bdc_field USING myTitle
* 'TW'.
i_tab-country.
myTitle = 'LFBK-BANKL('.
CONCATENATE myTitle counter ')' INTO myTitle.
* PERFORM bdc_field USING 'LFBK-BANKL'
PERFORM bdc_field USING myTitle
* '0060040'.
i_tab-bankno.
myTitle = 'LFBK-BANKN('.
CONCATENATE myTitle counter ')' INTO myTitle.
* PERFORM bdc_field USING 'LFBK-BANKN'
PERFORM bdc_field USING myTitle
* '112355678'.
i_tab-accountno.
myTitle = 'LFBK-KOINH('.
CONCATENATE myTitle counter ')' INTO myTitle.
CONCATENATE '有' counter '間公司' INTO myString.
* PERFORM bdc_field USING 'LFBK-KOINH'
PERFORM bdc_field USING myTitle
* i_tab-vendername.
myString.
counter = counter + 1.
ENDLOOP.

ENDFORM.

0 Comments:

Post a Comment

<< Home