Item Master Attachment from File Server
Hi All,
I have a requirement if I want to attach file stored onto FILE SERVER, how to attach it with Inventory Item.
Let say if file is stored onto the following location onto PC name "ABC", Directory Name "DIRTEST" and file name is "Test.pdf"
\\ABC\DirTest\Test.pdf
then how to accomplish this in Oracle Applications.
Thanks
Even if you load from backend using an API, data will get stored in fnd_lobs.
The following post has a great example and detailed code for loading attachments using API.
Re: Add Attachement to Sales Order
Hope this answers your question
Sandeep Gandhi
Similar Messages
-
Transfer data from File server to SAP R/3 AS
hi, i need to transfer data from file server (http:/.....) to SAP R/3 application server. I have the HTTP Host name (http:/......) and login details. please let me know how i can resolve this.
best regards
NeerajHi
You need to create a RFC Destination with the details what you have, then you can create a RFC Fucntion module to read the data, according to the destination system, you have to code that, once you
pick the data from the destination system, later you need to convert it to SAP Format.
To trace your fm status, there are function module availabe in sap, search with http, you can find.
regards
Praveen -
Read image direct from file server
hello, need to help me somebody.
A like to create form , what read image direct from file server, without store in database.
Please help me.Hi you may go through the below post to find what could be a better way to do that.
http://forum.java.sun.com/thread.jspa?threadID=5163829
REGARDS,
RaHuL -
Transport Master Data from one server to another server
How can I transport the master data from one server to another server?
Client copy will not be possible.
Regards,
SubhasishHi,
Look at the below link, you will understand
http://help.sap.com/saphelp_45b/helpdata/en/cc/f22c7dd435d1118b3f0060b03ca329/content.htm
Regards
Sudheer -
Is it possible to move the master data from one server to onther server?
is it possible to move the master data from one server to onther server?
iOS: Transferring information from your current iPhone, iPad, or iPod touch to a new device
-
Master Data from Dev Server to Qty Server
Hi Friends
How we are sending Master Data from Dev Server to Qty Server?
I created a Business Partner in Dev Server now I want move to Qty Server so how can send that Business Partner?
Plz give me the solution with Example plz
Regards
Mahesh Kumar
My mail id is [email protected]Hello Mahesh,
you CAN NOT transfer master date from DEV to QTY. You have to create the Business Partner again.
Regards
Gregor -
Hello everyone,
I have an requirement to attach an excel file in mail while sending from SAP ABAP. This excel file is a formatted one and its having a proper template which is stored in wwwdata table in sap. My program will pick the file with no changes in format from presentation server i.e. my desktop and will be sent to external email-ids .
I have searched in scn but couldn't get a proper answer which will send the .xls file as attachment with no changes in format of template and data of excel.
Please suggest the approaches how to handle this one.
Regards,
MadhusmitaI have read those two help file and was able to use it in the ABAP proxy code. Thanks.
This is the current outcome. I totally understand that SAP PI communicates via XML. So when PI picks up a file that contains XML tags, the Inbound proxy is triggered. I can see its processing in SM50. However, when I give the Sender FTP adapter a non-XML file to pick up, the Inbound Proxy does not trigger. The file itself should be read into memory so that I can save it to the application server via ABAP code (with no mapping). That is why there is no operation mapping
The reason I am using using FTP to ABAP proxy is because I need to call a subsequent RFC step to process the file. Else, I will just use FTP to File Adapter scenario.
Question 1: I am thinking that that file is the attachment. Is that where I am incorrect and I still need to send in an XML file with the attachment as an addition?
Question 2: Is this the best approach or should I use BPM? If BPM, what steps do I need? -
What is relation between atc1 (item master attachment) and item master.
hi.
i am having some problem.
ie.
what is the relation between atc1 and item master header....
i want to execute the below query.... and i want to get the line no from the sql.
if u ask what is the difficulty..
one.jpg may be two items can upload ...the same image. i can not filter based on the file name
select Line from atc1 where FileName ='one.jpg'
is it possible like
select Line from atc1 where FileName ='one.jpg' and itemcode='one'Hi,
Try this:
SELECT T1.[Line] FROM OITM T0 left join ATC1 T1 on T1.[AbsEntry] = T0.[AtcEntry] WHERE T1.[FileName] =[%0]
It will displace name of the file which is attached to item master.
Thanks & Regards,
Nagarajan -
Issue in material master update from presentation server using BAPI....
Hi Guru's...
i am trying to change the material master from presentation server (desktop flat file)
using BAPI(BAPI_MATERIAL_SAVEDATA) ....
while executing my program i am getting the message like material had changed...
but while in mm02 i am un able to fine the updates...
please find below program logic and correct me if any mistakes....
thanks in advance...
*& Report ZAREPAS36
REPORT zarepas36.
DATA : gs_bapimathead TYPE bapimathead,
gs_clientdata TYPE bapi_mara,
gs_clientdatax TYPE bapi_marax.
TYPES : BEGIN OF gty_itab1,
matnr(18),
matkl(9),
spart(2),
ntgew(13),
gewei(3),
meins(3),
END OF gty_itab1.
DATA : gt_itab1 TYPE STANDARD TABLE OF gty_itab1,
gwa_itab1 TYPE gty_itab1.
TYPES: BEGIN OF gty_itab2,
abc(132),
END OF gty_itab2.
DATA: gt_itab2 TYPE STANDARD TABLE OF gty_itab2,
gwa_itab2 TYPE gty_itab2.
flat file at selection screen
PARAMETERS: p_files TYPE string.
CALL METHOD cl_gui_frontend_services=>gui_upload
EXPORTING
filename = p_files
filetype = 'ASC'
CHANGING
data_tab = gt_itab2
EXCEPTIONS
OTHERS = 8.
LOOP AT gt_itab2 INTO gwa_itab2.
IF gwa_itab2-abc(1) = 'S'.
gwa_itab1 = gwa_itab2-abc(132).
APPEND gwa_itab1 TO gt_itab1.
ENDIF.
ENDLOOP.
loop at gt_itab1 into gwa_itab1.
*Material
gs_bapimathead-material = gwa_itab1-matnr.
*Material details at client data
*material group.
gs_clientdata-matl_group = gwa_itab1-matkl.
gs_clientdatax-matl_group = 'X'.
*Division
gs_clientdata-division = gwa_itab1-spart.
gs_clientdatax-division = 'X'.
*Net Weight
gs_clientdata-net_weight = gwa_itab1-ntgew.
gs_clientdatax-net_weight = 'X'.
*Unit of Weight
gs_clientdata-unit_of_wt = gwa_itab1-gewei.
gs_clientdatax-unit_of_wt = 'X'.
*Base Unit of Measure
gs_clientdata-base_uom = gwa_itab1-meins.
gs_clientdatax-base_uom = 'X'.
endloop.
*calling BAPI for making changes in material and saving thru BAPI.
CALL FUNCTION 'BAPI_MATERIAL_SAVEDATA'
EXPORTING
headdata = gs_bapimathead
clientdata = gs_clientdata
clientdatax = gs_clientdatax.
IF sy-subrc NE 0.
CALL FUNCTION 'BAPI_TRANSACTION_ROLLBACK'.
WRITE: / 'Error occured while changing material'.
ELSE.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
WRITE: / 'material',gs_bapimathead-material,'changed'.
ENDIF.hi hello Guru's
i resolved the issuee..
pleaso go thru the below proram logic for your reference..........
*& Report ZAREPAS36
REPORT zarepas36.
DATA : gs_bapimathead TYPE bapimathead,
gs_clientdata TYPE bapi_mara,
gs_clientdatax TYPE bapi_marax.
TYPES : BEGIN OF gty_itab1,
matnr(18),
matkl(9),
spart(2),
ntgew(13),
gewei(3),
meins(3),
END OF gty_itab1.
DATA : gt_itab1 TYPE STANDARD TABLE OF gty_itab1,
gwa_itab1 TYPE gty_itab1.
TYPES: BEGIN OF gty_itab2,
abc(132),
END OF gty_itab2.
DATA: gt_itab2 TYPE STANDARD TABLE OF gty_itab2,
gwa_itab2 TYPE gty_itab2.
DATA:ls_return TYPE bapiret2,
lt_bapiret2 TYPE standard table of bapiret2.
flat file at selection screen
PARAMETERS: p_files TYPE string.
CALL METHOD cl_gui_frontend_services=>gui_upload
EXPORTING
filename = p_files
filetype = 'ASC'
CHANGING
data_tab = gt_itab2
EXCEPTIONS
OTHERS = 8.
LOOP AT gt_itab2 INTO gwa_itab2.
IF gwa_itab2-abc(1) = 'S'.
gwa_itab1 = gwa_itab2-abc(132).
APPEND gwa_itab1 TO gt_itab1.
ENDIF.
ENDLOOP.
LOOP AT gt_itab1 INTO gwa_itab1.
*Material
gs_bapimathead-material = gwa_itab1-matnr.
*Material details at client data
*material group.
gs_clientdata-matl_group = gwa_itab1-matkl.
gs_clientdatax-matl_group = 'X'.
*Division
gs_clientdata-division = gwa_itab1-spart.
gs_clientdatax-division = 'X'.
*Net Weight
gs_clientdata-net_weight = gwa_itab1-ntgew.
gs_clientdatax-net_weight = 'X'.
*Unit of Weight
gs_clientdata-unit_of_wt = gwa_itab1-gewei.
gs_clientdatax-unit_of_wt = 'X'.
*Base Unit of Measure
gs_clientdata-base_uom = gwa_itab1-meins.
gs_clientdatax-base_uom = 'X'.
ENDLOOP.
*calling BAPI for making changes in material and saving thru BAPI.
CALL FUNCTION 'BAPI_MATERIAL_SAVEDATA'
EXPORTING
headdata = gs_bapimathead
clientdata = gs_clientdata
clientdatax = gs_clientdatax
IMPORTING
return = ls_return.
LOOP AT lt_bapiret2 INTO ls_return.
EXIT.
ENDLOOP.
IF sy-subrc = 0.
CALL FUNCTION 'BAPI_TRANSACTION_ROLLBACK'.
WRITE: / 'Error occured while changing material'.
ELSE.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
WRITE: / 'material',gs_bapimathead-material,'changed'.
ENDIF. -
Dear Experts
I am getting the following error message while adding item in Item Master data. I have modified the following SBO_SP_transactionNotification in SQL server after that could not able to add the item
ALTER proc [dbo].[SBO_SP_TransactionNotification]
@object_type nvarchar(20), -- SBO Object Type
@transaction_type nchar(1), -- [A]dd, [U]pdate, [D]elete, [C]ancel, C[L]ose
@num_of_cols_in_key int,
@list_of_key_cols_tab_del nvarchar(255),
@list_of_cols_val_tab_del nvarchar(255)
AS
begin
-- Return values
declare @error int -- Result (0 for no error)
declare @error_message nvarchar (200) -- Error string to be displayed
select @error = 0
select @error_message = N'Ok'
-- IF @OBJECT_TYPE = '59' AND (@TRANSACTION_TYPE = 'A' or @TRANSACTION_TYPE = 'U')
BEGIN
IF EXISTS(
SELECT T0.Price FROM IGN1 T0
where IsNull(T0.Price, '0') = '0' and T0.DocEntry = @list_of_cols_val_tab_del)
BEGIN
SELECT @ERROR=1,@ERROR_MESSAGE='Please insert the price !'
END
end
-- Select the return values
select @error, @error_message
endHi Rathna,
Just put the SP like this, without the -- before the IF. A -- marks the line as a command therefore you need to uncomment and it will work.
IF @OBJECT_TYPE = '59' AND (@TRANSACTION_TYPE = 'A' or @TRANSACTION_TYPE = 'U')
BEGIN
IF EXISTS(
SELECT T0.Price FROM IGN1 T0
where IsNull(T0.Price, '0') = '0' and T0.DocEntry = @list_of_cols_val_tab_del)
BEGIN
SELECT @ERROR=1,@ERROR_MESSAGE='Please insert the price !'
END
end
Hope it helps -
Ours is a SQL Server Express Edition 2008-R2 - Windows Forms based application. We have a backup/restore utility provided with our software which performs some logical checks before restoring a backup to ensure that the backup is functionally valid.
However, our clients often use the SQL Server Enterprise Manager utility to 1) Restore backups or 2) Attach data files (kept aside before formatting) directly. This type of action bypasses all our functional checks and allows the user to restore an invalid
backup.
We want to detect that a database was restored/attached and may be we will stop the software from loading if such a thing happened. We think that this information (attach/restore) should be available within some table of SQL Server itself but don't know the
right location/query.
If any change is required in our software to achieve the above, we are ready to do the same too, e.g. may be we need to store some data at some point of time to make the detection happen, please advise.
So, how can we detect that
A database backup was restored using SQL Server Management Utility
(Note: MSDB.Restorehistory may not be a good option as we have often found this table blank for unknown reasons even after backup was restored and just in case user restores the MSDB from MSDB backup or MSDB template due to a data corruption, may be due to
abnormal shutdown of system, then the RestoreHistory table data is gone)
A database was created by attaching a data/log file using SQL Server Management Utility
Any help in this regard is highly appreciated.
Rajarshi
ProjectServer 2007 BeginnerHi,
For Enterprise edition, we can enable Auditing to audit BACKUP_RESTORE_GROUP in a server audit specification. However, SQL Server audit (fine-grained auditing) feature is not available for the SQL Server Express.
Features Supported by the Editions of SQL Server 2008 R2
http://msdn.microsoft.com/en-us/library/cc645993(v=sql.105).aspx
When a database is attached, SQL Server ERRORLOG will record “Starting up database 'DBNAME'.”
Using ALTER DATABASE OFFLINE and ONLINE will re-open the database files under the SQL Server, the SQL Server error log also contains the following informational message: “Setting database option ONLINE to ON for database 'DBNAME'.”
Additional information:
SQL Server Audit (Database Engine)
http://msdn.microsoft.com/en-us/library/cc280386.aspx
Tracy Cai
TechNet Community Support -
PDF file transfer from File server into SAP
Hi,
I need to get the PDF file which exists in the File server into SAP using XI in any format so that I can convert into required form in SAP but the file exists in PDF format in File server or any method other than XI .Is it possible to do it through XI if so please explain me the procedure.
Answers will be appreciated with points.
Thanks,
Ramesh.Hi Ramesh,
In addition to above reply, also go through these blogs whcuh also talk about ADF Conversion:
<a href="/people/william.li/blog/2006/03/17/how-to-get-started-using-conversion-agent-from-itemfield:///people/william.li/blog/2006/03/17/how-to-get-started-using-conversion-agent-from-itemfield
<a href="/people/sap.user72/blog/2005/07/27/xi-generate-pdf-file-out-of-file-adapter:///people/sap.user72/blog/2005/07/27/xi-generate-pdf-file-out-of-file-adapter
Regards,
Subhasha Ranjan -
Display image in Report from File Server
Hi
As the logo of the company is changing every 3 - 4 months, i need a solution for this..
my approach is to replace the new logo in file server
call the logo in the oracle reports... using oracle reports 6i...
but i am not able to do so ( which objects to be used like formula column, link file, ole) ... any help from your side will be good.
Regards
YramYou may put the logo into db as a blob column and retrieve it onto report. One update in db would update all calling reports.
-
hi,
i have a BDC program to be done however the file is in File server so wht shud i do inorder to access the file the file server for example the path is given :
127.1.1.10\SharedFolder\20070704.txt
and i have authorization set on it and i have been given a user id and password to access the folder so wht shud i be doin to read the file from the given locationHi
Use the Tcode CG3Y to bring the file from Application to Local server and write the ordinary BDC code
other wise
Use OPEN DATASET concept..
READ dataset
TRANSFER dataset
CLOSE dataset
see the sample code
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.
Reward points for useful Answers
Regards
Anji -
CS5 opening file from file server through explorer gets file not found error
Hi There,
Has anyone come across an issue with CS5 where they open an ai file through Windows Explorer and gets an error file not found after CS5 has started? Opening through CS5's file > open option does not produce the same error and seems to only error when opening by double clicking on the ai file. Is this a possible issue with shellex open handler registry key?
Any help would be greatly appreciated.Opening files directly from the server can produce errors and damage files. It is generally not advised.
http://kb2.adobe.com/cps/327/327749.html
Maybe you are looking for
-
Please help --Error in insert into Statement
Error in insert into statement while connecting to ms-access. import java.sql.*; public class stupid8 public stupid8() try{ Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); Connection con=DriverManager.getCo
-
Vista not showing up in startup disc pref?
I have Vista 64bit Business installed, via a bootcamp partition on a second internal drive on my 8 Core Mac Pro, which is running 10.6.2. Occasionlly I will use VMware fusion running off my bootcamp partition, but yesterday when I tried this, vmware
-
Catch BO Session info in Crystal Report 2008
Hi All. I have an Xcelsius model with data provided by a Live Office connection. I've tried to embed this model, as swf file, in a report Crystal 2008. I've published this report within BOE Enterprise, but trying to visualize it, the Live Office conn
-
How to create a sharepoint 2013 replica site of an existing sharepoint 2013 publishing site
Hi Team, I have created a publishing site and used custom masterpage layouts for this site. now i want to copy this site in another site collection. How will i do that? I tried to export and then import a site template, by creating a design package
-
SOAP Error, ADS,WEBDYNPRO EXCEPTION
Hi All, Im very new to this ADS.I have two issues with in my landscape regards to ADS 1st issue BI has integrated ADS(as of my bw consultant,which was working before) he tried applying some SNOTE and he got SOAP ERROR(i have seen quiet few thhreads h