2006 Oct 31 4:22 AM
Hi all,
I am doing BDc for Vf02 but facing skin resoltuion issue. Can anyone plz send me the code for the VF02 transaction BDC.
Can anyone plz Put a code over here.
Points will be rewarded
Regards
Shilpa
Hi all,
I am doing BDc for Vf02 but facing skin resoltuion issue. Can anyone plz send me the code for the VF02 transaction BDC.
Can anyone plz Put a code over here.
Points will be rewarded
Regards
Shilpa
2006 Oct 31 5:09 AM
Hi,
It would be fine if you do it on your own. Given steps may
help you.
1. Go to SHDB transaction
2. Go to New Recording. Enter transaction Code.
3. Process through screens as per your requirement.
4. Save recording.
5. Come to main screen of SHDB and for your created
recording goto New Program (Shift+F5), this will create
BDC code in new program. Just take that code and
apply the same in your program.
Since BDC is requirement specific crack it yourself.
*REWARD if this helps you to go ahead.
2006 Oct 31 5:18 AM
hi shilpa,
use the foll syntax in call transaction.
CALL TRANSACTION tcode... OPTIONS FROM opt
define the opt like ABAP Dictionary type CTU_PARAMS.
pass ctu_params-defsize value 'X'
this option will use the default window size
*Reward points if found helpful
2006 Oct 31 5:28 AM
hi
good
go through this link, which ll give you brief idea about the VF02
http://www.erphome.net/wdb/upload/forum14_f_3289.doc
thanks
mrutyun^
2006 Oct 31 5:56 AM
hi shilp,
follow Palak Limbachiya steps and try for coding i will give you the way of coding for u below this is an example only.
DATA: BEGIN OF BDC_TAB OCCURS 0.
INCLUDE STRUCTURE BDCDATA.DATA:
END OF BDC_TAB.
DATA BEGIN OF messtab OCCURS 10. INCLUDE STRUCTURE bdcmsgcoll. DATA END OF messtab.
REFRESH bdc_tab.
*Create new dynpro
PERFORM bdc_newdynpro USING 'SAPML03T' '101'.
Insert fields
PERFORM bdc_field USING 'LTAK-BWLVS' w_screen1000-io_bwls.
PERFORM bdc_field USING 'LTAP-MATNR' w_screen1000-io_matnr.
PERFORM bdc_field USING 'RL03T-ANFME' w_tmpstr.
PERFORM bdc_field USING 'LTAP-CHARG' w_screen1000-io_charg.
PERFORM bdc_field USING 'BDC_OKCODE' '=TAM'.
........ And much more of the same ..................
PERFORM open_group.
PERFORM bdc_insert USING 'VF02'.
PERFORM close_group.
FORM bdc_newdynpro USING program dynpro.
CLEAR bdc_tab.
bdc_tab-program = program.
bdc_tab-dynpro = dynpro.
bdc_tab-dynbegin = 'X'.
APPEND bdc_tab.
ENDFORM.
FORM bdc_field USING fnam fval.
CLEAR bdc_tab.
bdc_tab-fnam = fnam.
bdc_tab-fval = fval.
APPEND bdc_tab.
ENDFORM.
FORM open_group.
CALL FUNCTION 'BDC_OPEN_GROUP'
EXPORTING
client = sy-mandt
DEST = FILLER8
group = 'ZSM02'
HOLDDATE = FILLER8
keep = 'X'
user = sy-uname
RECORD = FILLER1
IMPORTING
QID =
EXCEPTIONS
client_invalid = 1
destination_invalid = 2
group_invalid = 3
group_is_locked = 4
holddate_invalid = 5
internal_error = 6
queue_error = 7
running = 8
system_lock_error = 9
user_invalid = 10 OTHERS = 11.
ENDFORM.
FORM close_group.
CALL FUNCTION 'BDC_CLOSE_GROUP' EXCEPTIONS
not_open = 1
queue_error = 2
OTHERS = 3.
ENDFORM.
FORM bdc_insert USING tcode.
CALL FUNCTION 'BDC_INSERT'
EXPORTING
tcode = tcode
POST_LOCAL = NOVBLOCAL
PRINTING = NOPRINT
TABLES
dynprotab = bdc_tab
EXCEPTIONS
internal_error = 1
not_open = 2
queue_error = 3
tcode_invalid = 4
printing_invalid = 5
posting_invalid = 6
OTHERS = 7.
ENDFORM.
it may help in coding,
best regards,
munvar.
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |