*----------------------------------------------------------------------*
* PROGRAM-ID : ZTASGSMP001 *
* PROGRAM-NAME : düæÆïEXV@\ *
* ì¬Ò : Rè FG *
* ì¬ú : 2011/07/11 *
*----------------------------------------------------------------------*
* áC³ðâ *
* No C³út C³Ò - C³àe(Rg) *
* *
* 001. 2012/07/20 é n -oÍ [ÏXApóÇÁ * *
* 002. 2013/08/21 ¤@æÔ -JKñÉê*
* 003. 2014/08/14 ö£@¢ÑG -G[JEgðÏX*
* 004. 2014/08/14 ö£@¢ÑG -JKñÉê*
* (ȺAC³ÌsxAÏXÔâC³àeðLqj *
*----------------------------------------------------------------------*
REPORT ZTASGSMP001
MESSAGE-ID ZTHM5
NO STANDARD PAGE HEADING
LINE-SIZE 144.
*----------------------------------------------------------------------*
* CN[hè`
*----------------------------------------------------------------------*
*INCLUDE:
*----------------------------------------------------------------------*
* fBNViè`(Ce[uAQÆe[uA\¢Ì)
*----------------------------------------------------------------------*
TABLES:
T001. "ïÐ}X^
TYPE-POOLS:
SLIS.
*----------------------------------------------------------------------*
* f[^^è`(TY_)
*----------------------------------------------------------------------*
***oÍîñ(o^gp)
TYPES:
BEGIN OF TY_CRTLIF,
BUKRS TYPE LFB1-BUKRS, "ïÐR[h
EKORG TYPE LFM1-EKORG, "wgD
LIFNR TYPE LFA1-LIFNR, "düæ
NAME1 TYPE LFA1-NAME1, "¼ÌP
ORT01 TYPE LFA1-ORT01, "s¬æº
PSTLZ TYPE LFA1-PSTLZ, "XÖÔ
LAND1 TYPE LFA1-LAND1, "R[h
WAERS TYPE LFM1-WAERS, "wÊÝ
END OF TY_CRTLIF,
***FILEUPLOADp(o^gp)
BEGIN OF TY_IREC,
COMM(2) TYPE C, "No(¢gp)
EKORG TYPE LFM1-EKORG, "wgD
LIFNR TYPE LFA1-LIFNR, "düæ¼
NAME1 TYPE LFA1-NAME1, "¼Ì1
KTOKK TYPE LFA1-KTOKK, "¨èO[v
SORTL TYPE LFA1-SORTL, "\[gÚ
ORT01 TYPE LFA1-ORT01, "s欺
PSTLZ TYPE LFA1-PSTLZ, "XÖÔ
AKONT TYPE LFB1-AKONT, "§¨è
LAND1 TYPE LFA1-LAND1, "R[h
SPRAS TYPE LFA1-SPRAS, "¾êL[
WAERS TYPE LFM1-WAERS, "ݼ
END OF TY_IREC,
***G[f[^i[p
BEGIN OF TY_ERROR,
LIFNR TYPE LFA1-LIFNR, "düæ¼
MTEXT(100) TYPE C, "G[R
END OF TY_ERROR,
***oÍ\¢(Æïgp)
BEGIN OF TY_REFLIF,
BUKRS TYPE LFB1-BUKRS, "ïÐR[h
EKORG TYPE LFM1-EKORG, "wgD
LIFNR TYPE LFA1-LIFNR, "düæ¼
NAME1 TYPE LFA1-NAME1, "¼Ì1
KTOKK TYPE LFA1-KTOKK, "¨èO[v
SORTL TYPE LFA1-SORTL, "\[gÚ
ORT01 TYPE LFA1-ORT01, "s¬æº
PSTLZ TYPE LFA1-PSTLZ, "XÖÔ
AKONT TYPE LFB1-AKONT, "§¨è
LAND1 TYPE LFA1-LAND1, "R[h
SPRAS TYPE LFA1-SPRAS, "¾êL[
WAERS TYPE LFM1-WAERS, "ݼ
END OF TY_REFLIF.
DATA:
***ALV\¢p
BEGIN OF TY_LIFNR_ALV,
BUKRS LIKE LFB1-BUKRS, "ïÐR[h
EKORG LIKE LFM1-EKORG, "wgD
LIFNR LIKE LFA1-LIFNR, "düæ¼
NAME1 LIKE LFA1-NAME1, "¼Ì1
KTOKK LIKE LFA1-KTOKK, "¨èO[v
SORTL LIKE LFA1-SORTL, "\[gÚ
ORT01 LIKE LFA1-ORT01, "s¬æº
PSTLZ LIKE LFA1-PSTLZ, "XÖÔ
AKONT LIKE LFB1-AKONT, "§¨è
LAND1 LIKE LFA1-LAND1, "R[h
SPRAS LIKE LFA1-SPRAS, "¾êL[
WAERS LIKE LFM1-WAERS, "ݼ
END OF TY_LIFNR_ALV.
*----------------------------------------------------------------------*
* èè`(CNS_)
*----------------------------------------------------------------------*
CONSTANTS:
CNS_X(1) TYPE C VALUE 'X',
CNS_0(1) TYPE C VALUE '0', "üÍsÂ
CNS_1(1) TYPE C VALUE '1', "üÍÂ
CNS_E(1) TYPE C VALUE 'E', "MSG TYPE E
*** ALVwb_ÒWp
CNS_TYPR_H(1) TYPE C VALUE 'H', "HEAER
CNS_TYPR_S(1) TYPE C VALUE 'S', "SELECTION
CNS_COLON(2) TYPE C VALUE 'F'. "R
*----------------------------------------------------------------------*
* àe[uè`(TB_)
*----------------------------------------------------------------------*
DATA:
***UPLOADpàe[u
TB_REC TYPE TABLE OF TY_IREC,
***BDC¬÷f[^mÛe[u
TB_OK_REC TYPE TABLE OF TY_IREC,
***BDCG[f[^mÛe[u
TB_NG_REC TYPE TABLE OF TY_ERROR,
***düæîñàe[u(OUTPUTp)
TB_LIFNR_INFO TYPE TABLE OF TY_REFLIF,
TB_BDCOK_INFO TYPE TABLE OF TY_CRTLIF,
***ob`Cvbgp
TB_BDCDATA TYPE TABLE OF BDCDATA,
***ALVoÍp
TB_FIELDCAT TYPE SLIS_T_FIELDCAT_ALV,
TB_EVENTS TYPE SLIS_T_EVENT,
TB_ALV_HEADER TYPE SLIS_T_LISTHEADER. "ALVoÍwb_
*----------------------------------------------------------------------*
* àe[uwb_A\¢è`(H_)
*----------------------------------------------------------------------*
DATA:
H_BDCDATA LIKE LINE OF TB_BDCDATA,
H_IREC TYPE TY_IREC, "UPLOADf[^æ¾p
H_ALV_HEADER TYPE SLIS_LISTHEADER. "ALVwb_
*----------------------------------------------------------------------*
* ÚÏè`(W_)
*----------------------------------------------------------------------*
DATA:
W_LIFNR TYPE LFA1-LIFNR, "düæp[^[
W_EKORG TYPE LFM1-EKORG, "wgDp[^[
W_MTEXT TYPE STRING. "G[bZ[W
*----------------------------------------------------------------------*
* tOè`(FLG_)
*----------------------------------------------------------------------*
DATA:
FLG_OK(1) TYPE C, "¬÷f[^ è
FLG_NG(1) TYPE C. "G[f[^ è
*----------------------------------------------------------------------*
* JE^è`(CNT_)
*----------------------------------------------------------------------*
DATA:
CNT_OK TYPE P, "o^
CNT_NG TYPE P, "o^NG
CNT_PRC TYPE P. "
*----------------------------------------------------------------------*
* ÍÍlè`(RG_)
*----------------------------------------------------------------------*
*DATA:
*----------------------------------------------------------------------*
* FIELD-SYMBOLè`(<F_>)
*----------------------------------------------------