‎2006 Jun 20 6:42 AM
HI EXPERTS,
CAN ANYBODY TELL ME AM UPLOADING THE DATA IN TRANSACTION METHOD, AM NOT GETTING POPUP BOX FOR TRAN FOR THE FILE , AFTER EXECUTING PRG . IT WILL SHOWS TRANSACTION SCREEN ONLY..
WHAT CAN I DO..
ADVANCE THANKS
‎2006 Jun 20 6:54 AM
Hi,
Can you explain what you need to again? Are you doing a bdc upload?
Regards,
Kenny
‎2006 Jun 20 6:56 AM
Hi
Refer to following code. Also you can go to SAP help and wil get good
data: begin of itab occurs 0,
matnr type rmmg1-matnr,
mbrsh type rmmg1-mbrsh,
mtart type rmmg1-mtart,
maktx type makt-maktx,
meins type mara-meins,
end of itab.
include bdcrecx1.
start-of-selection.
call function 'UPLOAD'
exporting
codepage = 'IBM'
filename = 'D:\kunal1.TXT'
filetype = 'DAT'
ITEM = ' '
FILEMASK_MASK = ' '
FILEMASK_TEXT = ' '
FILETYPE_NO_CHANGE = ' '
FILEMASK_ALL = ' '
FILETYPE_NO_SHOW = ' '
LINE_EXIT = ' '
USER_FORM = ' '
USER_PROG = ' '
SILENT = 'S'
IMPORTING
FILESIZE =
CANCEL =
ACT_FILENAME =
ACT_FILETYPE =
tables
data_tab = itab
EXCEPTIONS
CONVERSION_ERROR = 1
INVALID_TABLE_WIDTH = 2
INVALID_TYPE = 3
NO_BATCH = 4
UNKNOWN_ERROR = 5
GUI_REFUSE_FILETRANSFER = 6
OTHERS = 7
.
if sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.
perform open_group.
loop at itab.
perform bdc_dynpro using 'SAPLMGMM' '0060'.
perform bdc_field using 'BDC_CURSOR'
'RMMG1-MTART'.
perform bdc_field using 'BDC_OKCODE'
'=AUSW'.
perform bdc_field using 'RMMG1-MATNR'
itab-matnr."'mat'.
perform bdc_field using 'RMMG1-MBRSH'
itab-mbrsh."'M'.
perform bdc_field using 'RMMG1-MTART'
itab-mtart."'HAWA'.
perform bdc_dynpro using 'SAPLMGMM' '0070'.
perform bdc_field using 'BDC_CURSOR'
'USRM1-SISEL'.
perform bdc_field using 'BDC_OKCODE'
'=ENTR'.
perform bdc_field using 'USRM1-SISEL'
'X'.
perform bdc_field using 'MSICHTAUSW-KZSEL(01)'
'X'.
perform bdc_field using 'MSICHTAUSW-KZSEL(02)'
'X'.
perform bdc_dynpro using 'SAPLMGMM' '0060'.
perform bdc_field using 'BDC_OKCODE'
'/EBABE'.
perform bdc_field using 'BDC_CURSOR'
'RMMG1-MATNR'.
perform bdc_transaction using 'MM01'.
endloop.
perform close_group.
‎2006 Jun 20 6:58 AM
Here you have two function modules WS_UPLOAD AND UPLOAD.
WS_UPLOAD will prompt you for file, UPLOAD will not prompt for file.
Regds
Manohar
‎2006 Jun 20 7:07 AM
Replace
call function 'UPLOAD'
with
call function 'WS_UPLOAD'
You will get the popup.
Regds
Manohar
‎2006 Jun 20 6:58 AM
hi
it wont show the popup box.
record the corresponding transaction and generate the program from the recording.replace the static values of the recording with correponding real scenario values and execute the program.you will have the option to choose either session/call transaction.choose your choice n proceed..
Cheers,
Abdul
Mark all useful answers..
‎2006 Jun 20 6:58 AM
Hi,
Assuming u r using "Call transaction" Method.
1. I thing u r using WS_UPLOAD or WS_DOWNLOAD,
GUI_UPLOAD or GUI_DOWNLOAD FMs.
In these FMs have no popup facilty.
If u use FMs : UPLOAD or DOWNLAOD it will show the popup when transferring from/to file. But this is outdated. It is not advisable to use.
2. In the "Call Transaction Method" u r using the mode "A"(Display all). Thats what it is coming. No problem in the csreen it places the value for the corresponding field. and click Enter. automatically it goes to the next screen.
if u don't want give the mode 'N'.
If it is helpful reawrd poinds.
Cheers,
-ASA
‎2006 Jun 20 6:59 AM
Hi,
Please check whether you have used the statement
"at selection-screen on value-request for p_flname." before the method
"cl_gui_frontend_services=>file_open_dialog". Here p_flname is the variable in which u pass ur file name. Hope this helps.
Regards,
Sharmila
‎2006 Jun 20 7:00 AM
Hi Raguveer,
If u r using Transaction method ..
Did u use Mode 'A' which will display all the stps..
FORM bdc_transaction USING tcode.
CALL TRANSACTION tcode USING i_bdcdata
MODE <b> 'A' </b>
UPDATE 'S'
MESSAGES INTO i_bdcmsgcoll.
Rgds,
Jothi.
Assign pts if helpful.
‎2006 Jun 20 7:03 AM
HI,
You can do this by recording the transaction which you want to. Goto tcode SHDB and give the transaction name for recording. Once you record that click on save button and press the bak button. It creates the recording for your trasaction. Select the recorded one and click on Program button in the pplication toolbar. You get the complete code for the Call transaction method. Execute the program and you can upload the data now using Call trasaction method.
Regards,
Ram Mohan
‎2006 Jun 20 7:04 AM
Pl go thro the following document.
http://www.sappoint.com/abap/bdcconcept.pdf
It will be helpful to you.
‎2006 Jun 20 7:07 AM
KD_GET_FILENAME_ON_F4--use this FM
and in call transaction use mode as 'A'..
Reward points if it helps
regards
Gunjan