Skip to Content
0
Sep 24, 2020 at 10:35 AM

how to insert some data using BDC???

114 Views Last edit Sep 24, 2020 at 11:21 AM 2 rev

hello experts...

now i am making some program..

this program write some data in standard program using BDC

first step, i go to T-Code SHDB

and then i record standard program.. this standard program's t-Code is VL10N

this standard program have some tab menu..( this is what i ask some question )

i input some data in standard Program

and i terminate my recording

and then i execute my program and then call my function "BDC_RUN"

my Function's some data entered first tab menu.. it is ok..!

but some data aren't entered next tab menu

i want to enter my data in first tab, next tab, and next tab...

this is my BDC_RUN source..

-------------------------------------------------------------------------------------------------------------

FORM bdc_run .
DATA : LV_INDEX TYPE SY-tabix.

CLEAR : GT_BDC, GT_BDC[], GS_OPT, GT_MSG, GT_MSG[], GT_MSG.

GS_OPT-dismode = 'E'. " 모든 화면 표시
GS_OPT-updmode = 'A'. " 비동기
GS_OPT-defsize = 'X'. " 기본 윈도우

PERFORM BDC_DATA USING :
'X' 'RVV50R10C' '1000',
' ' 'ST_LEDAT-LOW' P_LEDAT, " TAB1
' ' 'ST_LEDAT-HIGH' P_LEDAT, " TAB1
" ' ' 'BDC_OKCODE' '=S0S_TAB1',
* 'X' 'RVV50R10C' '1000',
' ' 'ST_KUNWE-LOW' s_kunwe-low, " TAB1
' ' 'ST_KUNWE-HIGH' s_kunwe-high, " TAB1
" ' ' 'BDC_OKCODE' '=S0S_TAB1',
* 'X' 'RVV50R10C' '1000',
' ' 'ST_LPRIO-LOW' s_lprio-low, " TAB1
' ' 'ST_LPRIO-HIGH' s_lprio-high, " TAB1
" ' ' 'BDC_OKCODE' '=S0S_TAB1',
* 'X' 'RVV50R10C' '1000',
' ' 'ST_VSBED-LOW' s_vsbed-low, " TAB1
' ' 'ST_VSBED-LOW' s_vsbed-high, " TAB1
" ' ' 'BDC_OKCODE' '=S0S_TAB1',


'X' 'RVV50R10C' '1000',
' ' 'ST_VBELN-LOW' s_vbeln-low, " TAB2
' ' 'ST_VBELN-LOW' s_vbeln-high, " TAB2
" ' ' 'BDC_OKCODE' '=S0S_TAB2',
* 'X' 'RVV50R10C' '1000',
' ' 'ST_KUNNR-LOW' s_kunnr-low, " TAB2
' ' 'ST_KUNNR-HIGH' s_kunnr-high, " TAB2
" ' ' 'BDC_OKCODE' '=S0S_TAB2'


'X' 'RVV50R10C' '1000',
' ' 'ST_WERKS-LOW' P_WERKS, " TAB3
' ' 'ST_WERKS-HIGH' P_WERKS, " TAB3
" ' ' 'BDC_OKCODE' '=S0S_TAB3',
* 'X' 'RVV50R10C' '1000',
' ' 'ST_LGORT-LOW' p_lgort. " TAB3
" ' ' 'BDC_OKCODE' '=S0S_TAB3'.

PERFORM BDC_TRANSACTION USING 'VL10A'.


ENDFORM.

-------------------------------------------------------------------------------------------------------------

i really wonder how to insert some data next tab...??

i attach some screen shot

i want to input my data in red zone ( i remark 'HERE' .. lol )

anyone help me plz....................................................!!

Attachments

screenshot.png (36.1 kB)
screenshot2.png (56.7 kB)
screenshot3.png (51.9 kB)