LSMW CRMXIF_ORDER_SAVE_M02 upload attachment
Hi
does anyone know how to upload a batch of attachments using the above interface, in maintain activities.
The attachment links should upload using source structure E103CRMXIF_ATTACHMENT_LINK. However this has not worked. Has anyone been able to create attachments by importing then into CRM by using an IDOC interface? If so how did you get this to work.
Hi Nicola,
do you have a solution for your prob? I can't set a link from an activity to a document. I use the CL_CRM_DOCUMENTS=>CREATE_WITH_TABLE.
I have written a report that creates a new activity and a new document. But the link between the activity and the document I can't make work.
Pl. help!!!!!
Have a nice day,
Ralf
P.S. Here is some coding. It's only for testing, that is why it looks so terrible.
CALL METHOD cl_crm_documents=>create_with_table
EXPORTING
BUSINESS_OBJECT = cwt_business_object
PROPERTIES = cwt_properties
FILE_ACCESS_INFO =
FILE_CONTENT_ASCII =
FILE_CONTENT_BINARY = content
RAW_MODE = 'X'
TEXT_AS_STREAM =
PARENT_FOLDER =
IMPORTING
LOIO = cwt_loio
PHIO = cwt_phio
ERROR = cwt_error.
if sy-subrc = 0. endif.
Message was edited by: Ralf Nowak
Similar Messages
-
LSMW file upload from presentation server
Hi,
We are using LSMW to create new Document info records and will need to upload/ attach multiple files to the DIR.
everything is working except in the IDOC processing stage, it errors out -
"Error while checking in and storing:
otlta134a\pcm\test1.txt"
Its is unable to upload file from network drive, it works successfully when the same file is uploaded from application server.
I have worked in other LSMW projects and have successfully loaded files from network drive.
Please let me know what configuration setup is required, is it the content server or the gateway server?
Thanks for all your help.Sheetal,
I think this is the problem due to the authorization....
try to open the file from AL11........... if u r still getting the problem better to contact the basis guys...
If it is the problem with the authorization... once u get this error open another session with SU53 tcode.. take the authorization object and give it to basis guys to allow the permissions to u... -
SAP LSMW to upload values against characteristics in CL20N
Morning,
I need to upload values against characteristics in transaction code CL20N using LSMW.
I have tried batch input recording method, but I receive the error below.
The setup of characteristics is as follows:
Plants – Upload all plants
Purchasing Groups – Upload all purchasing groups
Cost Centre – Upload cost centres specific to a strategy
Value of PR – Upload PR value specific to a strategy
Account Assignment - – Upload account assignments specific to a strategy
Document Type – Upload document types specific to a strategy
We have over 800 strategies and I need LSMW to upload the characteristics across all 800 strategies.
I started creating a LSMW program by recording the transaction CL20N, but I get the following error:
Error received "Runtime error DYNPRO_NOT_FOUND has occurred"
Please advise or send me user guide on what I need to do to successfully create the LSMW.
See attached screen shots.
Many thanks,
GeorgeHi George,
For Idoc CLFMAS / CLFMAS02: when updating nodes, add table for nodes OBTAB = 'PNODID'.
For CL24N recording it is the same as other LSMW recodings, use selects if all data isn't available to fill needed recoding fields.
Anete -
Upload (Attach) documents to a custom application
Hi Experts,
We have a requirement.
our finance team is getting the Bank Guarantee in Hard copy.
And at present they are maintaining all the Details(Like bank name, bank address, Value, customer, customer name, Guarantee valid from & to ) in Excel sheet and the scanned document in a folder on their desktop.
Now they want to bring into SAP.so for that data to maintain I created a Z Table & Maintained all the data & given a Z report for seeing the data.
But they want to upload (Attach) the scanned copy of that Bank guarantee to the corresponding document in z table. so how to upload the scanned (pdf or image or word) copy into sap and they want to open & see in the sap itself.
already I searched the sdn, for GOS creation for custom program , but that document is for 4.6c version.we are on ecc 6.0 version.
So please suggest a solution , how to upload & manage the documents.
Thanks in advance,
Regards,
VenkatHi Abhi,
All object services require a unique identifier for the object processed. The Internal
Number for a document is used as the key. But this number is not created until the request is saved. Therefore it is only possible to add an Object such as an attachment through change mode fb02.
try this and assign points if it useful.
Regards
Ravinagh Boni -
How to Upload/Attachment File in MYSQL ADF???
HEY Guys...
How to Upload/Attachment File in MYSQL ADF???
Regards Ninja,You need to provide more information.
Which jdev version do you use?
Which ui technology?
I see two question to be answered:
1) load the attatchments ADFrc af:inputFile (http://technology.amis.nl/blog/2297/adf-faces-file-uploading-it-is-really-that-simple)
2) store the loaded data in the DB -> mysql doc or google should have the needed information
Timo -
Upload attachements from Windows and Save them to File System
Hi
We are upgrading to 11.5.10, using Database 10g r2. Can any one help me to upload attachement from a PC and save to a Unix file system instead of database. We are using forms 6i. Please help.Hi
We are upgrading to 11.5.10, using Database 10g r2. Can any one help me to upload attachement from a PC and save to a Unix file system instead of database. We are using forms 6i. Please help. -
'Create' Push button is not working in BDC and LSMW while uploading G/L master data
Hello Experts:
I am facing the following problem:
While uploading G/L master data with the BDC program, 'create' push button is not working even after executing following lines.
PERFORM BDC_DYNPRO USING 'SAPLGL_ACCOUNT_MASTER_MAINTAIN' '2001'.
PERFORM BDC_FIELD USING 'BDC_OKCODE'
'=ACC_CRE'.
Create G/L account screen is not coming in BDC. Please suggest me what to do.
Thanks !!Re: 'Create' Push button is not working in BDC and LSMW while uploading G/L master data
Re: 'Create' Push button is not working in BDC and LSMW while uploading G/L master data
Hi Glen Anthony
Thank you for the reply Glen Anthony please take a look at the following code.
REPORT ZFI_BDC_FS00
NO STANDARD PAGE HEADING LINE-SIZE 255.
*INCLUDE BDCRECX1.
TYPES : BEGIN OF STR,
BUKRS TYPE GLACCOUNT_SCREEN_KEY-BUKRS, "Company Code
SAKNR TYPE GLACCOUNT_SCREEN_KEY-SAKNR, "G/L Account Number
KTOKS TYPE GLACCOUNT_SCREEN_COA-KTOKS, "G/L Account Group
XPLACCT TYPE GLACCOUNT_SCREEN_COA-XPLACCT, "P&L statement account
XBILK TYPE GLACCOUNT_SCREEN_COA-XBILK, "Indicator: Account is a balance sheet account?
TXT20_ML TYPE GLACCOUNT_SCREEN_COA-TXT20_ML, "G/L account short text
TXT50_ML TYPE GLACCOUNT_SCREEN_COA-TXT50_ML, "G/L account short text
WAERS TYPE GLACCOUNT_SCREEN_CCODE-WAERS, "Account currency
XSALH TYPE GLACCOUNT_SCREEN_CCODE-XSALH, "Indicator: Only Manage Balances in Local Currency
MWSKZ TYPE GLACCOUNT_SCREEN_CCODE-MWSKZ, "Tax Category in Account Master Record
XMWNO TYPE GLACCOUNT_SCREEN_CCODE-XMWNO, "Indicator: Tax code is not a required field
MITKZ TYPE GLACCOUNT_SCREEN_CCODE-MITKZ, "Account is reconciliation account
XOPVW TYPE GLACCOUNT_SCREEN_CCODE-XOPVW, "Indicator: Open item management?
XKRES TYPE GLACCOUNT_SCREEN_CCODE-XKRES, "Indicator: Can Line Items Be Displayed by Account?
ZUAWA TYPE GLACCOUNT_SCREEN_CCODE-ZUAWA, "Key for sorting according to assignment numbers
FSTAG TYPE GLACCOUNT_SCREEN_CCODE-FSTAG, "Field status group
XINTB TYPE GLACCOUNT_SCREEN_CCODE-XINTB, "Indicator: Is account only posted to automatically?
END OF STR.
DATA : ITAB TYPE TABLE OF STR WITH HEADER LINE,
IT_BDCDATA TYPE TABLE OF BDCDATA WITH HEADER LINE,
TXT(4096) TYPE C OCCURS 0,
MSG TYPE STRING,
COUNT(5) TYPE N.
SELECTION-SCREEN : BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
PARAMETERS : MY_FILE TYPE RLGRAP-FILENAME.
SELECTION-SCREEN : END OF BLOCK B1.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR MY_FILE.
CALL FUNCTION 'F4_FILENAME'
EXPORTING
PROGRAM_NAME = SYST-CPROG
DYNPRO_NUMBER = SYST-DYNNR
* FIELD_NAME = ' '
IMPORTING
FILE_NAME = MY_FILE
CALL FUNCTION 'TEXT_CONVERT_XLS_TO_SAP'
EXPORTING
* I_FIELD_SEPERATOR =
* I_LINE_HEADER =
I_TAB_RAW_DATA = TXT
I_FILENAME = MY_FILE
TABLES
I_TAB_CONVERTED_DATA = ITAB[]
EXCEPTIONS
CONVERSION_FAILED = 1
OTHERS = 2
IF SY-SUBRC <> 0.
* IMPLEMENT SUITABLE ERROR HANDLING HERE
ENDIF.
START-OF-SELECTION.
COUNT = 0.
LOOP AT ITAB.
*PERFORM OPEN_GROUP.
REFRESH IT_BDCDATA.
PERFORM BDC_DYNPRO USING 'SAPLGL_ACCOUNT_MASTER_MAINTAIN' '2001'.
PERFORM BDC_FIELD USING 'BDC_CURSOR'
'GLACCOUNT_SCREEN_KEY-BUKRS'.
PERFORM BDC_FIELD USING 'BDC_OKCODE'
'=ACC_CRE'.
*PERFORM BDC_FIELD USING 'BDC_CURSOR'
* 'GLACCOUNT_SCREEN_KEY-BUKRS'.
PERFORM BDC_FIELD USING 'GLACCOUNT_SCREEN_KEY-SAKNR'
ITAB-SAKNR. "'5'.
PERFORM BDC_FIELD USING 'GLACCOUNT_SCREEN_KEY-BUKRS'
ITAB-BUKRS. "'TATA'.
PERFORM BDC_DYNPRO USING 'SAPLGL_ACCOUNT_MASTER_MAINTAIN' '2001'.
PERFORM BDC_FIELD USING 'BDC_OKCODE'
'=2102_GROUP'.
PERFORM BDC_FIELD USING 'BDC_CURSOR'
'GLACCOUNT_SCREEN_COA-KTOKS'.
PERFORM BDC_FIELD USING 'GLACCOUNT_SCREEN_COA-KTOKS'
ITAB-KTOKS. "'GL'.
PERFORM BDC_FIELD USING 'GLACCOUNT_SCREEN_COA-XPLACCT'
ITAB-XPLACCT. "'X'.
PERFORM BDC_DYNPRO USING 'SAPLGL_ACCOUNT_MASTER_MAINTAIN' '2001'.
PERFORM BDC_FIELD USING 'BDC_OKCODE'
'=2102_BS_PL'.
PERFORM BDC_FIELD USING 'BDC_CURSOR'
'GLACCOUNT_SCREEN_COA-XBILK'.
PERFORM BDC_FIELD USING 'GLACCOUNT_SCREEN_COA-KTOKS'
ITAB-KTOKS. "'GL'.
PERFORM BDC_FIELD USING 'GLACCOUNT_SCREEN_COA-XPLACCT'
ITAB-XPLACCT. "''.
PERFORM BDC_FIELD USING 'GLACCOUNT_SCREEN_COA-XBILK'
ITAB-XBILK. "'X'.
PERFORM BDC_DYNPRO USING 'SAPLGL_ACCOUNT_MASTER_MAINTAIN' '2001'.
PERFORM BDC_FIELD USING 'BDC_OKCODE'
'=TAB02'.
PERFORM BDC_FIELD USING 'GLACCOUNT_SCREEN_COA-KTOKS'
ITAB-KTOKS. "'GL'.
PERFORM BDC_FIELD USING 'GLACCOUNT_SCREEN_COA-XBILK'
ITAB-XBILK. "'X'.
PERFORM BDC_FIELD USING 'BDC_CURSOR'
'GLACCOUNT_SCREEN_COA-TXT50_ML'.
PERFORM BDC_FIELD USING 'GLACCOUNT_SCREEN_COA-TXT20_ML'
ITAB-TXT20_ML. "'G/L ACCOUNT'.
PERFORM BDC_FIELD USING 'GLACCOUNT_SCREEN_COA-TXT50_ML'
ITAB-TXT50_ML. "'G/L ACCOUNT'.
PERFORM BDC_DYNPRO USING 'SAPLGL_ACCOUNT_MASTER_MAINTAIN' '2001'.
PERFORM BDC_FIELD USING 'BDC_OKCODE'
'=TAB03'.
PERFORM BDC_FIELD USING 'GLACCOUNT_SCREEN_CCODE-WAERS'
ITAB-WAERS. "'INR'.
PERFORM BDC_FIELD USING 'GLACCOUNT_SCREEN_CCODE-XSALH'
ITAB-XSALH. "'X'.
PERFORM BDC_FIELD USING 'GLACCOUNT_SCREEN_CCODE-MWSKZ'
ITAB-MWSKZ. "'*'.
PERFORM BDC_FIELD USING 'GLACCOUNT_SCREEN_CCODE-XMWNO'
ITAB-XMWNO. "'X'.
PERFORM BDC_FIELD USING 'GLACCOUNT_SCREEN_CCODE-MITKZ'
ITAB-MITKZ. "''.
PERFORM BDC_FIELD USING 'BDC_CURSOR'
'GLACCOUNT_SCREEN_CCODE-ZUAWA'.
PERFORM BDC_FIELD USING 'GLACCOUNT_SCREEN_CCODE-XOPVW'
ITAB-XOPVW. "'X'.
PERFORM BDC_FIELD USING 'GLACCOUNT_SCREEN_CCODE-XKRES'
ITAB-XKRES. "'X'.
PERFORM BDC_FIELD USING 'GLACCOUNT_SCREEN_CCODE-ZUAWA'
ITAB-ZUAWA. "'1'.
PERFORM BDC_DYNPRO USING 'SAPLGL_ACCOUNT_MASTER_MAINTAIN' '2001'.
PERFORM BDC_FIELD USING 'BDC_OKCODE'
'=SAVE'.
PERFORM BDC_FIELD USING 'BDC_CURSOR'
'GLACCOUNT_SCREEN_CCODE-XINTB'.
PERFORM BDC_FIELD USING 'GLACCOUNT_SCREEN_CCODE-FSTAG'
ITAB-FSTAG. "'G019'.
PERFORM BDC_FIELD USING 'GLACCOUNT_SCREEN_CCODE-XINTB'
ITAB-XINTB. "'X'.
*PERFORM BDC_TRANSACTION USING 'FS00'.
CALL TRANSACTION 'FS00' USING IT_BDCDATA MODE 'E' UPDATE 'S'.
COUNT = COUNT + 1.
*PERFORM CLOSE_GROUP.
ENDLOOP.
CONCATENATE COUNT ' RECORDS UPDATED SUCCESSFULLY' INTO MSG.
MESSAGE MSG TYPE 'I'.
FORM BDC_DYNPRO USING PROGRAM DYNPRO.
CLEAR IT_BDCDATA.
IT_BDCDATA-PROGRAM = PROGRAM.
IT_BDCDATA-DYNPRO = DYNPRO.
IT_BDCDATA-DYNBEGIN = 'X'.
APPEND IT_BDCDATA.
ENDFORM.
* INSERT FIELD *
FORM BDC_FIELD USING FNAM FVAL.
* IF FVAL <> NODATA.
CLEAR IT_BDCDATA.
IT_BDCDATA-FNAM = FNAM.
IT_BDCDATA-FVAL = FVAL.
APPEND IT_BDCDATA.
* ENDIF.
ENDFORM. -
Determining Source Structure u0096 for LSMW to upload Purchasing Info records?
I am trying to use program RM06IBI0 through LSMW to upload Purchasing Info records. While configuring LSMW, how do I determine the source structure? Can anybody please help me with an example?
Thanks,
Ketanhi dear
first of all record all the fields which you require through shdb including your vendor code and esokz.
now
generate a structure for mapping the fields through table maintainence generator option.you can add any number of fields there.
actully this must include all the fields which are being fetched from the your flat file.
please revert back if u find problem.
reward points if it find useful
regards
amit singla -
LSMW to upload documents in DMS
Hello guys
Can we use LSMW to upload large number of documents at once?
If yes, please list the detailed steps. I have never used LSMW before.
So keeping that in mind, please respond in detail.
Looking forward to your replies
Thanks a lot
Best Regards
AmareshHi Amaresh
There is a good tutorial on lsmw in sap technicaldotcom. It would be useful to you definitely.
Prasad K -
Hi All,
can any one tell me how to write LSMW for uploading PO text, as I am having only material no and po text I want to modify all material and update po text only
thanksHi
look at this..
<b>http://help.sap.com/saphelp_erp2005/helpdata/en/e1/c6d30210e6cf4eac7b054a73f8fb1d/frameset.htm</b>
Reward if useful
Anji -
Upload attachment using BPM File Chooser in OBPM 10g
Hi,
I am currently working on OBPM 10g.
Can anyone please help me with upload attachment using BPM File Chooser using BPM Presentation?????Do not use the existing Fuego.Ui.FileChooser component. This OOTB Oracle BPM component would work fine if you're trying to get a file from the server where the Engine is running, but will not work if you want a file from the end user client's machine.
Take a look at a project I uploaded to http://www.4shared.com/file/aq-cY2qN/_2__FileChooserDemo.html
It has both a JSP and a BPM Object presentation. The BPM Object presentation has a button called "Attach File", If you click in the presentation editor and then click the Properties tab you'll see that its "Name" property is "AttachFile" and the Action property is set to "submit". This means that it will return the text "AttachFile" in the result predefined variable in the screenflow. If you open the screenflow, you'll see the conditional transition from the "AttachmentViewerInteractive" to the "FileChooser" task. The name of this transition is "AttachFile". Because this was named "AttachFile", the logic behind this transition evaluates if "result ==AttachFile".
Be careful with this example project. It will succeed when a small text or binary file < 100k is selected. It will go to the "File is too big" task in the screenflow shown below when the file > 100k. To make this maximum size limit larger, simply add a new line in your
<Oracle BPM Enterprise Home Directory>\webapps\workspace\WEB-INF\workspace.properties file:
# Max size of a file coming from a client machine (default is 100k)
fuego.workspace.servlet.Attachment.MAX_ATTACHMENT_SIZE=2000000
Once the file has been retrieved, do not store this as an instance variable unless it has been marked as a “Separated” instance variable.
The “AttachView1.jsp” is invoked from the Interactive activity’s “FileChooser” task in the screenflow.
Once the end user selects the file from the JSP, work flows to the “Add file” task. This is where you can retrieve the selected file’s:
- Name: fileHolder.file_filename variable
- Content type: fileHolder.file_content_type variable
- Contents: fileHolder.file binary variable
Dan -
LSMW to upload Material Characteritics and BOM info
Hi,
I am using LSMW to upload Material Characteristic and BOM info for the first time. It would be of great help if someone can provide me with an example with screenshots. Thanx in advance for your help.
SachinHi Sachin,
1) BOM and Classification Datacan not be uploaded together.
We have Standard Programs available to these uplaods.
BOM upload
Object - 0030
method -0001
Program - RCSBI010(AUTOMATIC)
Classification uplaod
Object -0130
Method- 0002
Program-RCCLBI03
http://www.megaupload.com/?d=578KUG4X
please follow the link and download the file.
It has all the critical steps, screen shots, sample load file.
let me know if it helps.
Have fun,
Satheesh. -
Error in doing LSMW for uploading in Sale order
Dear Sir,
While doing test run for LSMW for uploading 15 Sale order , first order saved with no error and from second order the following error is displayed.
Exchange rate of 1 in INR 2 for date 25.05.2009 3 could not be determined.
Kindly do the needfull.Sir,
If we manually enter, order getting saved for all the sale order.
Why it is not possible while doing LSMW.
Please clarify.
Regards
Sethuraman -
Dear Guru's
Is it possible to upload attachements on behalf of travel expensses using an ESS scenario? We are on ECC 6.0 and EhP4 but I can't see a button in the webdynpro to attach documents or scanned receipts in the accelarated entry of expense function in ehp nor in the ehp1 or ehp2 functionality . If possible which scenario or service should we use. Should we use ArchiveLink or Easy DMS in favor?
All answers are welcome.
Kind regards,Hi Stephan
This functionality is available in ABAP Web Dynpro starting Enhancement
Package 2 with BP 1.2. However please note this is limited only to the WD ABAP landscape for ESS and
is a limitation for Java but is planned functionality for EHp5.
Use of Scanned Receipts and Adding of Attachments
If you use optical archives for Travel Management, in expense reports
you can display receipts that are scanned into the system. When
scanned receipts are allocated to an expense report, the system shows
them in the POWLs for travelers, travel assistants, and approving
manager.
Travelers can add attachments to their expense reports (for example, the
agenda of a convention). This can be done when creating an expense
report or in the POWL. Attachments are linked to the trip number and can
be viewed by travel assistants and approving managers.
http://help.sap.com/erp2005_ehp_04/helpdata/en/5d/eecf6d3832433ea4d292e5
7d925e10/frameset.htm
Please also check here:
http://help.sap.com/saphelp_47x200/helpdata/en/dc/92d8345388482be1000000
9b38f83b/frameset.htm
You also have to decide between using the functionality of using either attachments or scanned receipts (Archivelink) . Attachments are created with BUS2089. These are shown:
- in the POWL under the column 'attachments'
- in the trip itself on the header data view
Scanned documents must be created with TRAVEL. These are shown:
- in the POWL under the column 'facsimiles'. If not there, please
change the settings to display this column!
- in the trip itself in the receipts view!
You need to also customise in PE03, feature TRVPA, This works if OAA is 1 and if the documents are created with Type
TRAVEL.
Hope this helps! -
LSMW for uploading assets using BAPI
Hi.
I am trying to upload assets from a flat file into the standard table using LSMW with BAPI.
I could upload the assets by calling the BAPI from an ABAP report. But when I use the same BAPI in LSMW it gives an error while maintaining structure relationships.
I created different source structures for header segment, general data and for depreciation areas on same level. While assigning these structures to target structures it asked for maintaining hierarchy between them. After I created that hierarchy I could maintain the relationships properly. But the read program was not generated.
Please help me in this.
Thank you.Hi Savitha.
Thanks for the reply.
The identification field need to be defined in case of data maintained for several source structures in one file. I am maintaining the data for each source structure in a separate file.
Still it is giving me the same problem that is not generating the read program.
If I dont maintain the hierarchy in source structures then it is generating the read program but then gives error while converting the data.
Don't know how to proceed.
Maybe you are looking for
-
WHERE clause creating a join for two or more tables
The CS3 Dreamweaver book says that the WHERE clause can create a join for two or more tables. The join was created, but the data is repeating. I have searched the web and this forum and have not found the answer. My Master page filters the recordset
-
How do I convert a pdf form into an app?
I am NOT a programmer but it seems to me that it shouldn't be that difficult to convert a pdf form into an app? There must be some kind of tool within adobe that I can use to do so? I am a member of Creative cloud. Jamie
-
[GeForce 6] Video distortion using KVM switches
When connected through a KVM switch the video quality from my main computer using a 128mb GF6800 from MSI becomes distorted, blurry, and the text very hard to read. However, my second computer using a GF4 4200ti looks fine. I thought it was a defect
-
Streaming, can someone explain what I am doing wrong?
I have two ATVs both synced to one computer. I have a large music library on a second computer but can't find how to stream to one of the ATVs. I followed the instructions in the booklet, opened iTunes on the relevant computer, chose sources on the A
-
Windows Server 2003 R2 x64 ISO
Bryan - I'm not sure that replacing the card is an option. It's of the age where the card and the drive cage mate up. I'm not just attaching the drives directly to the controller card. However..since it's Adaptec, they may well have a working Linux