2020 Sep 24 11:35 AM
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....................................................!!
2020 Sep 24 2:46 PM
VL10A is a report with a selection-screen with tabs, you can pass all those values in a SUBMIT report statement , what is your exact requirement?
Nevertheless, did you
2020 Sep 24 12:06 PM
your attachment failed.
Could you try to restart your SHDB recording using VL10 or anything else without an "n" on the last char ? VL10n is enjoy, and enjoy means problem with BDC
2020 Sep 24 12:22 PM
i re-attach my screen shot..
and then i don't understand your word..
enjoy..??
anyway i try to change my t-code VL10 <<
but same now..
thank you
2020 Sep 24 2:21 PM
Hi,
Usually, it is never recommended to use BDC for enjoy transactions. Enjoy transactions are nothing but transactions. Enjoy transactions usually ends with N and is created with an Object-oriented concept.
If you want to use VL10N then go for user exists or Badi's for the same.
If you want to go for BDC then use transaction VL10 for the same.
many fields cannot be recorded for enjoy transaction and that is the reason why, you are not able to achieve your requirement.
2020 Sep 24 3:29 PM
thanks your comment
actually VL10N is my mistake.. it is typo..
T-Code is VL10A..
anyway.. thanks
2020 Sep 24 2:46 PM
VL10A is a report with a selection-screen with tabs, you can pass all those values in a SUBMIT report statement , what is your exact requirement?
Nevertheless, did you
2020 Sep 24 3:38 PM
thanks your comment..
my T-Code is VL10N.. not VL10A
soz for my mistake
it is typo..
anyway i will try your teaching
and then what i want to do exactly.. i want to input some value ( value means some input values that be input in my cbo program )
in field in second, third, fourth tab.. ( i already input some value to some field in first tab )
plz refer my first screen shot, i was written "HERE" ( second, third, fourth... tab )
( it means some input values that be input in my cbo program )
lastly sorry for my terrible english sorry sorry..
and thanks your comment
2020 Sep 25 8:14 AM
If the BDC does not return the hand to the user, did you consider the use of BAPI as
Don't use any search function in a BDC recording, that will usually not perform well at best.
NB: The report in your BDC recording is RVV50R10C (VL10A) and not SAPMV50A (VL01N) - If you use it to select some records to process, either execute the SELECT yourself, or use a SUBMIT statement with class CL_SALV_BS_RUNTIME_INFO to get the selected records internal table without displaying the dynpro/grid and then loop at the returned table and call the BAPI.
2020 Sep 28 5:52 AM
thanks your comment..
i solve my probelm
i forget to write " " "BDC_SUBSCR" "1002" <<< this code
thank you
2020 Sep 25 7:37 AM
Why don't you use user exit V50R0001 and V50R0002 to achieve your requirement. Go for BDC only if we don't have anyother options
2020 Sep 28 5:52 AM
thanks your comment..
i solve my probelm
i forget to write " " "BDC_SUBSCR" "1002" <<< this code
thank you