How to upload file and put in BDC, need sample func specs to practice on...
Hi guys,
I do not have anything to do as of the moment, so I want to practice BDC on, lets say SU01. I have seen existing BDC programs here and I am confused as to why some are using read dataset, open dataset, etc. and others are not using them at all. Anyway, what I want to do is to create a flatfile and upload it then populate the fields in t-code SU01.
Also, if its not too much, I want some functional specs or requirements that I can practice here in the office:)
Again, thanks guys and have a nice day!:)
Message was edited by: viraylab
Hi,
In order to practice BDC you better go through recording first through the Tcode SHBD. There you provide the name for the recording and also the Tcode you want to use for BDC. Once you complete with the recording you press the back button and click on program button in the application toolbar. You get the complete program written to execute the BDC in both session method and also Call transaction Method.
BDC can be done using some flat files in presentation server as well as application server. Data sets will be used for loading the file from application server. For presentation server functions like Ws_Upload and WS_download will be used.
So if you want to create Flat file in presentation server upload the same through BDC you use functions BDC_open group for opening a session,BDC_insert group to insert the flat file and bdc_close group to close after completion of the upload of data.
Give me your mail id so that i can send you some specs for the same.
Hope this helps you.
Pls reward points for useful answers..
Regards,
Ram Mohan
Similar Messages
-
How to upload file and show it's progress
hi
i want to upload files and show the progress of the upload
process how?
thanks in advance.Hey,
I attached a sample I did in Flash 8 using PHP. Hope it
helps.
http://www.cybercussion.com/vault/fileuploading.zip -
Using ABAP Webdynpr How to Upload File and download file in SAP R/3
Hi SAP GURUS ,
I wanted to save employee profile from ESS to SAP so i am creating ESS Application .
For that I go with BDS Approach and create test program for this I got success while uploading file in my folder
which i have created with the help of class and content repository . but when i Using ABAP Webdynpro , i got error FM "BDS_BUSINESSDOCUMENT_CREATEF" message " error_kpro " .
Also I wanted to use KM for storage of Documents and wanted to retrive with help of ABAP Webdynpro .
So pls tell me / mailed me the process , approach and if you have examples .
Thanks in Advance ,
Vishwassap at gmailHi Vishwas,
Check out the thread [Efficient way of saving documents uploaded|Re: Efficient way of saving documents uploaded by users; and check the blog by Raja Thangamani.
Also check the thread [Export Images through Function Modules |Export Images through Function Modules;.
Hope it helps you. -
How to make blank copies of a PDF file and put it into the printer tray.
Dear experts,
Before you try printing the data from the FM, How tomake several blank copies of the PDF file and put it in the printer tray so that you can print just the data from the function module on it??????
Please reply.Hi drredwood,
When you open your PDF file a yellow bar will appear on the top of the screen.
Click on 'Enable All Features'.
Then you will be able to copy the content from your pdf and to paste in any of the file.
Regards,
Florence -
How to make an openfiledialog? (browse a file and put it in a parameter)
How to make an openfiledialog? (browse a file and put it in a parameter)
Best Regardshi,
check the code below:
FORM sub_gui_download.
* Define local variables
DATA:
lo_fullpath TYPE string,
lo_filename TYPE string,
lo_path TYPE string,
lo_user_action TYPE i,
lo_encoding TYPE abap_encoding.
* Define local constants
CONSTANTS:
lc_encoding(1) TYPE c VALUE 'X',
lc_directory TYPE string VALUE 'D:',
lc_filetype TYPE char10 VALUE 'DAT',
lc_separator TYPE char01 VALUE 'X',
lc_blank TYPE char01 VALUE ''.
* Call method to create dynamic save_path and save_format
CALL METHOD cl_gui_frontend_services=>file_save_dialog
EXPORTING
with_encoding = lc_encoding
initial_directory = lc_directory
CHANGING
filename = lo_filename
path = lo_path
fullpath = lo_fullpath
user_action = lo_user_action
file_encoding = lo_encoding
EXCEPTIONS
cntl_error = 1
error_no_gui = 2
not_supported_by_gui = 3
OTHERS = 4.
IF sy-subrc <> 0.
EXIT.
ENDIF.
* Check user_action
IF lo_user_action <> cl_gui_frontend_services=>action_ok.
EXIT.
ELSE.
* If user_action equals to action_ok, call function module to download datas
* using download table i_dwn_tab
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
filename = lo_fullpath
filetype = lc_filetype
write_field_separator = lc_separator
trunc_trailing_blanks = lc_blank
TABLES
data_tab = i_dwn_tab
EXCEPTIONS
file_write_error = 1
no_batch = 2
gui_refuse_filetransfer = 3
invalid_type = 4
no_authority = 5
unknown_error = 6
header_not_allowed = 7
separator_not_allowed = 8
filesize_not_allowed = 9
header_too_long = 10
dp_error_create = 11
dp_error_send = 12
dp_error_write = 13
unknown_dp_error = 14
access_denied = 15
dp_out_of_memory = 16
disk_full = 17
dp_timeout = 18
file_not_found = 19
dataprovider_exception = 20
control_flush_error = 21
OTHERS = 22.
IF sy-subrc <> 0.
MESSAGE i007.
ENDIF.
ENDIF.
ENDFORM. -
How do I upload photos from PC to icloud. I have already moved photos to icloud upload file and nothing seems to upload. jnelso1
I have this problem too. Photo stream works fine on iPhone+iPad, but the photos are never loaded to my PC (Win 8.1). My shared folders works fine on iOS and PC, but not My photo stram.
In the beginning, a couple of years ago, it work, but not now (2014).
All iOS are updated, and PC-iCloud software/panel is Active, and Photo stream is activated.
What to do??
Reset all streams on PC? I tried, no result.
I can understand that it takes time to reload all Pictures from iCload to my PC, but I wait Days, weeks... -
How to upload file in a server
Hi,
How to upload file to server through reporting. Plz guide me and what would be the probable code.
ThanksHi,
Try this Report Program.
*& Report ZUPLOADTAB *
*& Example of Uploading tab delimited file *
REPORT zuploadtab .
PARAMETERS: p_infile LIKE rlgrap-filename
OBLIGATORY DEFAULT '/usr/sap/'..
DATA: ld_file LIKE rlgrap-filename.
*Internal tabe to store upload data
TYPES: BEGIN OF t_record,
name1 like pa0002-VORNA,
name2 like pa0002-name2,
age type i,
END OF t_record.
DATA: it_record TYPE STANDARD TABLE OF t_record INITIAL SIZE 0,
wa_record TYPE t_record.
*Text version of data table
TYPES: begin of t_uploadtxt,
name1(10) type c,
name2(15) type c,
age(5) type c,
end of t_uploadtxt.
DATA: wa_uploadtxt TYPE t_uploadtxt.
*String value to data in initially.
DATA: wa_string(255) type c.
constants: con_tab TYPE x VALUE '09'.
*If you have Unicode check active in program attributes then you will
*need to declare constants as follows:
*class cl_abap_char_utilities definition load.
*constants:
con_tab type c value cl_abap_char_utilities=>HORIZONTAL_TAB.
*START-OF-SELECTION
START-OF-SELECTION.
ld_file = p_infile.
OPEN DATASET ld_file FOR INPUT IN TEXT MODE ENCODING DEFAULT.
IF sy-subrc NE 0.
ELSE.
DO.
CLEAR: wa_string, wa_uploadtxt.
READ DATASET ld_file INTO wa_string.
IF sy-subrc NE 0.
EXIT.
ELSE.
SPLIT wa_string AT con_tab INTO wa_uploadtxt-name1
wa_uploadtxt-name2
wa_uploadtxt-age.
MOVE-CORRESPONDING wa_uploadtxt TO wa_upload.
APPEND wa_upload TO it_record.
ENDIF.
ENDDO.
CLOSE DATASET ld_file.
ENDIF.
*END-OF-SELECTION
END-OF-SELECTION.
*!! Text data is now contained within the internal table IT_RECORD
Display report data for illustration purposes
loop at it_record into wa_record.
write:/ sy-vline,
(10) wa_record-name1, sy-vline,
(10) wa_record-name2, sy-vline,
(10) wa_record-age, sy-vline.
endloop.
Regards,
Padmam. -
Reading .txt files and put it into a TextArea
Hi all,
I got a problem! I have to make something like a messenger.
I want to put the written text into a .txt file, after that I have to get the text out of the .txt file and put in into a TextArea.
I would ike it to to that like this:
">User 1
Hello!
>User 2
Hi!
Now here are my questions:
1: What is the moet easy way to do this ?
2: How could i put Enters into a .txt file with Java ?
3: How could i read all the text from the .txt file and put it into a TextArea WITH ENTERS ?
Thanks for your help!
Greetings, Jasper Kouwenberguse JTextArea.read(new FileReader(fileName)) for reading.
and JTextArea.write(new FileWriter(fileName)) for writing.
The enters should be ok if the user press enter and adds a new line ("\n") to the text area component.
It will save the enter in the text file and load it correctly back to the text area.
If you want to add enter programmatically just add "\n" string to the text area component. -
Read from xls file and put it in a table
Hi,
I've an xls file while is having 8 cells with some thousands of rows. i've to write a procedure to read that file and put it in a table(each cell as each column). pls help me how to proceed. i'm using oracle 9i
Regards
Abdul Muthalefas Gasparotto said, copy the csv file to the database server.
create a directory object on the database.
create directory dir_temp as 'e:\mydir'
grant read, write on directory dir_Temp to <user>
and then map this csv file to the external table using the below syntax.
CREATE TABLE tab_hierarchy
node_id NUMBER,
parent_id NUMBER,
description VARCHAR2(255)
ORGANIZATIOn EXTERNAL
TYPE ORACLE_LOADER
DEFAULT DIRECTORY dir_temp
ACCESS PARAMETERS
records delimited by newline
fields terminated by ','
(node_id,parent_id,description)
LOCATION ('tree.csv')
PARALLEL
REJECT LIMIT UNLIMITED;in the above code, replace the filename under the LOCATION with your csv file name.
now you should be just able to do select on this table and insert to the other main tbale. -
How to upload file in webdynpro abap alv
Hello Friends,
how to upload file in webdynpro abap alv
Regards
Narendra
Moderator message: please search for available information, post in correct "Web Dynpro ABAP" forum if still required.
Edited by: Thomas Zloch on Jun 6, 2011 11:55 AMHi Narendra,
You ahve to search before posting. This discussed many times.
You need to use file upload ui element to upload data. and display in alv.
Please go thorugh this..
http://wiki.sdn.sap.com/wiki/display/WDABAP/UploadandDownloadfilesinWebdynproABAP
Re: Upload .xls file in WDABAP
http://forums.sdn.sap.com/click.jspa?searchID=72307893&messageID=5425671
Cheers,
Kris. -
How to upload file from Application Server?
Dear Friends,
How to upload file from Application Server?
Plz. with example...
Regards,
Dharmeshhi,
check the code for upload from application server.
tables: kna1.
types: begin of s_file,
customer type kna1-kunnr,
country type kna1-land1,
name type kna1-name1,
region type kna1-regio,
end of s_file.
*--Internal tables
data: it_file type s_file occurs 0 with header line.
*-- Selection screen
selection-screen: begin of block b1 with frame title text-001.
parameter: p_file type rlgrap-filename default 'C:/customer.txt'
obligatory.
selection-screen: end of block b1.
*-- At selection screen
at selection-screen on value-request for p_file.
perform file_help using p_file.
*-- Process File
start-of-selection.
perform upload_file using p_file.
*-- write File data to o/p
end-of-selection.
perform write_data.
*& Form file_help
form file_help using p_p_file.
data: l_filepath type ibipparms-path.
call function 'F4_FILENAME'
EXPORTING
PROGRAM_NAME = SYST-CPROG
DYNPRO_NUMBER = SYST-DYNNR
FIELD_NAME = ' '
importing
file_name = l_filepath
p_p_file = l_filepath.
endform. " file_help
*& Form upload_file
form upload_file using p_p_file.
call function 'WS_UPLOAD'
exporting
filename = p_p_file
filetype = 'DAT'
IMPORTING
FILELENGTH =
tables
data_tab = it_file
exceptions
conversion_error = 1
file_open_error = 2
file_read_error = 3
invalid_type = 4
no_batch = 5
unknown_error = 6
invalid_table_width = 7
gui_refuse_filetransfer = 8
customer_error = 9
no_authority = 10
others = 11
if sy-subrc <> 0.
message i001.
endif.
endform. " upload_file
*& Form write_data
form write_data .
loop at it_file.
write:/ it_file-customer, it_file-country, it_file-name,
it_file-region.
endloop.
endform.
regards,
keerthi. -
When I upload files and correct in lightroom then I export to another named file I keep getting two duplicates. numbered 1 and 2. this never happened before
When I first upload to lightroom I set up a file called new photos. When I correct them I export to a newly named file. But when I go to the newly named
File on my harddrive there are duplicate files
Stan -
I update my iPad with the new version 7.0.3 and my game Hay Day also was updated, but with another Apple ID that is not mine, how can i change and put my Appel Id ??
Anything Downloaded with a Particular Apple ID is tied to that Apple ID and Cannot be Merged or Transferred to a Different Apple ID
Apple ID FAQs > http://support.apple.com/kb/HT5622 -
How to find files and subdirectories in a directory
can anyone tell me how to find files and subdirectories in a directory .
Here's a code snippet,
http://javaalmanac.com/egs/java.io/TraverseTree.html -
How do I file and manage documents?
How do I file and manage documents?
New to iPad, very impressed.
I want to stop using a PC and run my small B&B using the iPad and iPhone
ThanksThe iPad does not include a file management system in the way that a PC does. You may want to think twice about giving up your PC. The iPad is not meant to completely replace a PC.
Maybe you are looking for
-
The [shift] behavior occurs in the yahoo mail password box. It takes me to the previous page as soon as I depress it. Same with both [shift] keys. I use the [shift] for "W" and "+" in my password. HP 2000-2c23dx, Win 8.1 Update. Windows updates curre
-
Mynotes app for my macbook pro
Has anyone had the icon change on the mynotes app for their macbook pro?? I have what looks to be a pumkin face in place of the usual look of the icon. I know I did not change it. Help???
-
How do I get the password for an old apple ID when I dont have access to the email address and it does not recognize my birthdate?
-
To follow up on my question. Only because this is the first time I am using this forum. I have owned the iPad for approximately six months. I have been using the iPad at home thru my wireless network, no problems. In addition to my IPad I connect to
-
Clearing old emails addresses on iPhone
Is there any method to clear old or incorrect email addresses to prevent them from popping up in auto fill?