CFX_API_DOC_DOCUMENT_WRITE -Upload issue

Hi,
I am working on a ABAP WD Application which has a Interactive form.After user inputs and clicks submit it is sending an email.Now I also want store the same pdf in cfolders-Design Collaboration .
For this I have PDFobject of XSTRING which holds the pdf in Click event.Now I need to convert this pdf object to PDF and store it in Cfolders.
For this I have gone through Cfolder APIs,
CFX_API_COL_GETDETAIL
CFX_API_GET_FOLDER_BY_PATH
CFX_API_DOC_CREATE
CFX_API_DOC_DOCUMENT_WRITE
In last step (CFX_API_DOC_DOCUMENT_WRITE) while writing I need to pass this PDF form .But I just have pdfobject How do we convert to Physical PDF?
Could you help me out here?
Edited by: Vara K on May 13, 2009 8:16 PM
Edited by: Vara K on May 13, 2009 8:40 PM

Hi Vara,
Try the SCMS_XSTRING_TO_BINARY function module before you call CFX_API_DOC_DOCUMENT_WRITE. The it_content shoul be declared TYPE STANDARD TABLE OF sdokcntbin.
Hope it helps.
Regards,
Ricardo.

Similar Messages

  • Uploading issues to other providers than .mac

    has anyone had uploading issues to other providers than .mac??

    can the names of the pages have spaces in them, or do
    i have to change both the file name and the name of
    the page?
    As the note says, some servers will let you upload files with spaces in their names, and some will not. Names without spaces will always work.
    In iWeb, the name you give to a site or page is the same as the name of the folder or file associated with it. So to avoid spaces in folder or file names, you need to omit them in the site and page names, or replace by hyphen or underscore.

  • LR 4/4.1RC and flickr uploading issues - resolved?

    Have the uploading issues between LR 4/4.1RC and flickr been resolved?  Waiting on upgrading from LR3, but the forum reports from unhappy flickr users wanting to "downgrade' are making me nervous.  Should I wait, just upgrade to 4.0 and leave the RC alone for now?  

    An update ...
    I have discovered that RC2 publishing does seem to be working (for me) but Flickr or LR seems to be objecting ("Invalid at the top level of the document") to specific images possibly relating to the contents of the caption field.
    I narrowed down the failure to just one image ... removed its caption... it published, I put the caption back on - "Invalid ..." error came back.
    FYI and not sure if relevant - I sometimes put http links in my caption fields.
    I would have come back with a more comprehensive test, but it now appears that LR will not communicate with Flickr at all, now saying it cannot contact the Flickr service, so I cannot investigate further yet.
    I know a little off the wall here ... but is it conceivable that Flickr itself has locked me out due to "erroneous" or suspicious content?     I have never had problems with LR talking to Flickr before today and publishing to SmugMug is still working fine.  

  • Multiple cffile upload issues

    Hello all. I'm having a little issue with a multiple upload I
    am trying to achieve. I've been searching and searching but could
    not find an answer, and maybe you guys could help me. Well I'm
    doing multiple uploads on a form i created and it's uploading the
    file and file name correctly, but it's inserting 6 records
    everytime I'm hitting the submit button. Also, I've notice in my
    database is when you click the submit button, it's inserting the
    same file in one record 6 times, then it creates a new record and
    inserts the second file 6 times. I'm going to post the code here,
    maybe it's something I'm missing, not sure. Thanks for the help.

    dame.cranon wrote:
    > Hello all. I'm having a little issue with a multiple
    upload I am trying to
    > achieve. I've been searching and searching but could not
    find an answer, and
    > maybe you guys could help me. Well I'm doing multiple
    uploads on a form i
    > created and it's uploading the file and file name
    correctly, but it's inserting
    > 6 records everytime I'm hitting the submit button. Also,
    I've notice in my
    > database is when you click the submit button, it's
    inserting the same file in
    > one record 6 times, then it creates a new record and
    inserts the second file 6
    > times. I'm going to post the code here, maybe it's
    something I'm missing, not
    > sure. Thanks for the help.
    >
    >
    >
    > <cfloop index="i" from="1" to="6">
    >
    > <cfif isDefined("form.upload")>
    >
    > <cffile action="upload"
    > destination="D:\Hosting\streetzmag\dev\crush_images\"
    > filefield="pic#i#"
    > nameconflict="makeunique"
    > result="cffile.pic#i#"
    > accept="image/jpeg, image/pjpeg, image/gif" >
    >
    > <!--- Code for insert of information --->
    > <cfquery datasource="mysqlcf_streetzmag"
    name="uploaded">
    > INSERT INTO Information(firstname,
    > lastname,
    > email,
    > contact_info,
    > nickname,
    > recent_work,
    > hair_color,
    > eye_color,
    > ethnicity,
    > age,
    > height,
    > measurements,
    > pic_1,
    > pic_2,
    > pic_3,
    > pic_4,
    > pic_5,
    > pic_6
    >
    >
    > )
    > VALUES('#FORM.firstname#',
    > '#FORM.lastname#',
    > '#FORM.email#',
    > '#FORM.contact#',
    > '#FORM.nickname#',
    > '#FORM.work#',
    > '#FORM.hair#',
    > '#FORM.eye#',
    > '#FORM.ethnic#',
    > #FORM.age#,
    > '#FORM.height#',
    > '#FORM.measurements#',
    > <cfif isDefined("form.pic#i#") and
    evaluate("form.pic#i#") NEQ "">
    > <cfqueryparam
    value="#CFFILE['pic'&i].SERVERFILE#" cfsqltype="cf_sql_varchar"
    > />
    > <cfelse>
    > NULL
    > </cfif>,
    >
    > <cfif isDefined("form.pic#i#") and
    evaluate("form.pic#i#") NEQ "">
    > <cfqueryparam
    value="#CFFILE['pic'&i].SERVERFILE#" cfsqltype="cf_sql_varchar"
    > />
    > <cfelse>
    > NULL
    > </cfif>,
    >
    > <cfif isDefined("form.pic#i#") and
    evaluate("form.pic#i#") NEQ "">
    > <cfqueryparam
    value="#CFFILE['pic'&i].SERVERFILE#" cfsqltype="cf_sql_varchar"
    > />
    > <cfelse>
    > NULL
    > </cfif>,
    >
    > <cfif isDefined("form.pic#i#") and
    evaluate("form.pic#i#") NEQ "">
    > <cfqueryparam
    value="#CFFILE['pic'&i].SERVERFILE#" cfsqltype="cf_sql_varchar"
    > />
    > <cfelse>
    > NULL
    > </cfif>,
    >
    > <cfif isDefined("form.pic#i#") and
    evaluate("form.pic#i#") NEQ "">
    > <cfqueryparam
    value="#CFFILE['pic'&i].SERVERFILE#" cfsqltype="cf_sql_varchar"
    > />
    > <cfelse>
    > NULL
    > </cfif>,
    >
    > <cfif isDefined("form.pic#i#") and
    evaluate("form.pic#i#") NEQ "">
    > <cfqueryparam
    value="#CFFILE['pic'&i].SERVERFILE#" cfsqltype="cf_sql_varchar"
    > />
    > <cfelse>
    > NULL
    > </cfif>
    >
    > )
    > </cfquery>
    > </cfif>
    > </cfloop>
    >
    of course it will do everything 6 times since you have your
    whole code
    wrapped with cfloop from 1 to 6... so the code execution will
    happen 6
    times... plus your synatx for inserting filenames inside your
    query
    makes it insert same file 6 times (since the code is inside
    one same
    cfloop)...
    you should separate your code and wrap only the cffile part
    in a cfloop:
    <cfif isDefined("form.upload")>
    <cfloop index="i" from="1" to="6">
    <cfif len(trim(form.pic#i#)) gt 0>
    <cffile action="upload"
    destination="D:\Hosting\streetzmag\dev\crush_images\"
    filefield="pic#i#"
    nameconflict="makeunique"
    result="uploadedpic_#i#"
    accept="image/jpeg, image/pjpeg, image/gif" >
    </cfif>
    </cfloop>
    <!--- Code for insert of information --->
    <cfquery datasource="mysqlcf_streetzmag"
    name="uploaded">
    INSERT INTO Information
    (firstname,
    lastname,
    email,
    contact_info,
    nickname,
    recent_work,
    hair_color,
    eye_color,
    ethnicity,
    age,
    height,
    measurements,
    pic_1,
    pic_2,
    pic_3,
    pic_4,
    pic_5,
    pic_6)
    VALUES('#FORM.firstname#',
    '#FORM.lastname#',
    '#FORM.email#',
    '#FORM.contact#',
    '#FORM.nickname#',
    '#FORM.work#',
    '#FORM.hair#',
    '#FORM.eye#',
    '#FORM.ethnic#',
    #FORM.age#,
    '#FORM.height#',
    '#FORM.measurements#',
    <cfloop from="1" to="6" index="x">
    <cfif isdefined("uploadedpic_#x#")>
    <cfqueryparam value="#evaluate('uploadedpic_' & x)#"
    cfsqltype="cf_sql_varchar"/>
    <cfelse>
    NULL
    </cfif>
    <cfif x lt 6>,</cfif>
    </cfloop>)
    </cfquery>
    </cfif>
    Azadi Saryev
    Sabai-dee.com
    http://www.sabai-dee.com

  • APEX 3.1.2 Static File Upload Issues

    We are still running on APEX 3.1.2 though we hope to go to 4 very soon.
    We had a production problem this past week that is perplexing. I have seen other posts referencing similar issues but no solutions.
    We have an application that has several Static File Javascripts (.js). We already ran into the IE Upload bug so we only upload in Mozilla now.
    We had changes to one of the .js files (identity.js). I deleted the old file using the Shared Components screen and uploaded the new one. The action was "Successful" but the file was still the old version. We deleted a file of 73 lines of code and uploaded a new version of 28 lines. After successful upload, we still would get the 73 line version . The app was still getting that version too.
    I deleted it many times and tried again. I ran scripts to do both the delete and upload. I even deleted the file manually from the FLOWS_FILES table that held it. Still got the old version.
    We bounced the server (thinking it was cached somewhere) - still got the old version. Finally, in desperation, I started cloning the app to another app number in another Workspace. Since we use aliases, I thought I could use a clean Workspace and uplad the new file there. This worked but - suddenly the old Workspace started using the correct file.
    Is ther some secret cache somewhere that needs to be cleared out? I did not want to start randomly clearing out caches and there is no documentation on this issue.
    Is it something about our config - we have Oracle HTTP Server, OC4J, and modplsql for this environment with a 10g database.
    Any insight would be appreciated - my manager does not like "it fixed itself magically".

    We ruled out the browser caching by trying the app on several other people's PCs.
    I am thinking it is being cached somewhere in the APEX server environment but cannot find any documentation on where or what that might be.
    I think I might have triggered a refresh when I was trying to implement a cloned version (in a different Workspace). It seems that the scope of a JS file is within its Workspace so we figured that a new Workspace would treat the changed file as a new file - and it did. During this process, we had duplicate ALIAS for a minute and I think that confused the APEX App Engine and triggered the refresh.
    But that is a SWAG opinion.
    I also thought of "versioning" the JS files but our developers are not too keen. If we don't find another solution, that may be what we have to do.

  • File Upload issue in MVC

    Hi,
    For my MVC application, I have created a main controller.
    On the DO_REQUEST of the main controller, I am setting the sub controllers, and directly calling that controller using create_controller, controller_set_active, and call_controller.
    I included dispatch_input( ) in the Main controller's DO_REQUEST method.
    Inside the DO_REQUEST  of the sub controller, I am creating a view using create_view and call_view methods.
    In this view, I have a <htmlb:tableView /> and a <htmlb:fileUpload />, with a button. The issue is that, when the button is clicked, in the DO_HANDLE_EVENT method of the sub-controller, I am not getting the File Data, or the table data.
    For File upload, I use the following -
    data lv_fupld_data TYPE REF TO cl_htmlb_fileupload.
    lv_fupld_data ?= cl_htmlb_manager=>get_data(
                          request = runtime->server->request
                          name    = 'fileupload'
                          id      = 'fupld_1').
    I have the <htmlb:form method       = "post"
                      encodingType = "multipart/form-data" > etc in the view.
    When I call this sub-controller directly from the browser (after including the dispatch_input( ) part in DO_REQUEST), I do not get any issue. I am able to read the file data and upload the file.
    Any Idea why this is happening?

    Hi Rakesh,
    I think I got your problem:
    You only have the htmlb:form in your view of the subcontroller, and not in the main view.
    Therefore the subcontroller works by itself, but not within the main controller.
    If you are including subcontrollers, then make sure the form element is only present in the view of the main controller, wrapping around any subcontroller calls. And don't use the form tag anymore in the subcontrollers.
    Just as you put dispatch_input() just in your top controller, also place htmlb:form only in your top view.
    Regards,
    Max

  • Lock Box Uploading Issue

    Hi,
    When i upload BAI file into Lock Box...I am getting the below error in FBL2 transaction.
    Accounts receivable posting Error: (F5 102) Customer * is not defined in company code 1000
    After that when i see in to FBL1,I am getting the below error.
    Payment Advise item doesnot exist
    Payment advice 010000007500001 does not exist for account 9372 1000
    Message no. FA006
    Kindly help me what is the problem and why i am not able to upload it successfully?
    Thanks
    Kishore

    I am experiencing the same issue.
    I am wondering how you went about in correcting this issue
    Thanks

  • Metadata upload issue in PI 7.4 Java stack

    Hello All,
    I need your help.
    We are using PI 7.4 single stack and for one Idoc scenario, we wanted to upload idoc metadata from ECC system with Version 4.6.
    we are facing Error : IDOC_ERROR_METADATA_UNAVAILABLE. We have successfull connection in place because we can successfully upload other standard Idoc metadata from same ECC, but issue is only with custom Idoc
    Kindly suggest how to proceed further.
    Thanks,
    Shiv

    Hello All,
    Small update here, here now we have uploaded metadata successfully but when idocs are sent from ECC(its unicode system ), they are failing in tRFC queue of ECC system  with error " IDOC_ERROR_METADATA_UNAVAILABLE.". and i have implemented below notes as well but seem no luck .
    sap notes 1767710 ,1473183 ,1529038 & 1405466.
    I have gone through
    SAP ECC-SM58 Error-IDOC Metadata unavailable
    Thanks,
    Shiv

  • File upload - issue with European .csv file format

    All,
    when uploading the .csv file for "Due List for Planned Receipts" in the File Transfer Upload center I receive an error.  It appears that it is due to the european .csv file format that is delimited by semicolon rather than comma. The only way I could solve this issue is to change Regional and Language options to English. However, I don't think this is a great solution as I can't ask all our suppliers to change their settings.  Has anyone come across this issue and another way of solving it?
    Thank you!
    Have a good day,
    Johanna

    Igor thank you for your suggestion. 
    I found this SAP note:
    +If you download a file, and the formatting of the CSV file is faulty, it is possible that your column separator does not match the standard settings of the SAP system. In the standard SAP system, the separator is ,.
    To ensure that the formatting is correct, set your global default for column separation in your system, so that it matches that of the SAP system you are using.+
    To do that Microsoft suggests to change the "List separator" in the Regional and Language Options Customize view. Though like you suggest that does not seem to do the trick. Am I missing something?
    However, if I change the whole setting from say German to English (UK) the .csv files are comma delimited and can be easily uploaded.  Was hoping there would be another way of solving this without need for custom development.

  • Upload Issues

    I have a few issues with uploading files through Dreamweaver. I will state that this could be a problem with DW and if it is I hope someone sees this that can address the problems.
      1. There is the consistent Waiting for Server Error. I have seen this problem ever since using BC with Dreamweaver CS5, 5.5, and 6. I know others have seen and posted about the problem before.  I do not know what to do but this is quite annoying. It can take several minutes for a small upload and there are times when it times out.
      2. Transferring files sometimes can take quite  a while. It will say "Transferring" and just sit there, sometimes for several minutes. I can cancel out and try again and it may or may not work better that time. Majority of the time I just have to wait until it is done. I know others are seeing this issue also.
      3. In the past week or two I have been getting "Access Denied" messages frequently. The message is sometimes just that and other times it will say something along the lines of "This file may not exist locally." (Even though I can see the file I am attempting to upload does exists.) Other times it will say I do not have "Permission to Access the Remote Server."  But I can get DW to show the remote server without issue. To solve this issue sometime I have to just wait, other times I have to re-save the file to get it to let me upload to the server.
      4. The most disturbing error I have seen is when I upload a file the file is actually deleted off the server completely. This has happened several times but is so sporadic I cannot nail down a set of steps to replicate this problem. I will be working with a document, upload the document, check it, make changes, re-upload again. Sometimes I will do this several times depending on what I am editing or attempting to do. Then all the sudden the file is just gone. I have had this happen with images and web pages. The images just require uploading to the server again. But with webpages this can be a real hassle. I will normally upload the page then change settings in the admin (IE removing the .html for a clean URL) and having to re-do this is time consuming.
      A few notes:
    I use one other program that uploads via FTP to my website. I use jAlbum to manage a couple photo galleries. It uploads directly to my site, recently it has had trouble uploading files and timing out. I wonder if this problem is related to number 1 or number 3 mentioned above. Beyond that program I do not use other FTP programs often enough to know if it happens more often.
    I am using the built in BC extension in DW CS6. In CS5 and 5.5 I was using the latest extension.
    For the first error it happens with CS5+. With 2,3,4 it has happened in CS6 only. (I am not longer using CS5.)
    I do not have sites outside of BC to tell if this is BC only issue.
      Are others seeing this happen or am I alone here? I will provide what information I can.
      I have opened a support ticket on this issue but am posting here as well to get others feedback.
      Thanks!
      Lynda

    Lynda, are you on PC or mac? It may be a good time for you to consider moving up to say Coda 2 on Mac or Sublime Text 2 on PC for example. Coda 2 especially you will be blown away by the FTP upload speeds.
    BC could improve their FTP further rolling out the updates to all DC's as they have to the EU one already etc but DW itself has a critical flaw in that the FTP of it is crap! Despite the claims to that it being a lot faster, it still is behind a lot of other software applications in that regard.

  • Photo upload issue with Facebook

    Am having a problem uploading photos to FaceBook via Lightroom's publish interface. It shows as authorized (which was a problem in itself for a while), but I get a generic "Photo Upload Failed" error from LR4. In addition, JPEGs exported from LR4 will not upload via FaceBook's own interface. This is all new since upgrading to LR4. Windows 7. While it looks like a FaceBook issue, it started with LR4 installation and no one else seems to be having a problem uploading images to FB via Lightroom or otherwise.

    Day 3 of this issue and still no repsonse from Blackberry. I guess we found out who Blackberry really cares about. March 2013 - you will be losing me as a Blackberry user.

  • Document Upload issue while clause creation

    Hi Experts,
    I am facing an issue where in When i try to upload a word document for creating clauses, I am successfully able to upload few documents and create clausw and some to the documents do not upload and i get an error though there is not much difference in the two documents in terms of formatting (only content differs).
    When i try to create contract from some of those created (Clause-->Section-->Contract Templates, i have uses those clause to create templates) templates, Contract generates for few and fails for few.( I get error " There is a problem with the Contract Generation web service ") This behaviour is weired.
    If anyone has information on this please help. I am using SAP Sourcing 9.0.15.
    regards,
    Vishal

    Hi Vishal,
    Usually this problem occurs when the Word service is facing some issues.
    Please try to restart the service and check.
    Hope it helps.
    Thanks
    Kushagra A

  • TS3989 Photo stream upload issues

    I have had battery issues with my iphone 4s and as a result took it to genious bar. My iphone was wiped and resotred as a new device.
    my phone was restored from icloud where i had approx 200 photos in photo stream. however only 9 photos from my photo stream uploaded back onto my iphone.
    can anyone assist on how to retrieve these photograph.
    thanks

    You will have to Pardon my ignorance. I am a relative beginner to this.
    The staff member at the genius bar checked my phone and he said the photograph that where on my photo stream prior to doing the restore would automatically upload on to my iPhone when I restore my settings from iCloud. However only 9 photos done this and there other 100 odd photos didn't.
    I am confused!

  • Iweb 3.0.3 upload issue

    Hi Guys, I have tried to upload iweb to mobile me since last night. But I always got the " an unknown error occurred" response. Does anyone know how to fix this problem?

    Larry ~ Welcome to the discussions. That error is mentioned in this Apple doc:
    MobileMe: Troubleshooting iWeb publishing issues
    ...Found by searching here:
    http://support.apple.com/kb/index?page=search
    If no luck with the suggestions there, MobileMe live chat support is now 24/7 — see this announcement.

  • Blackberry Z10 saving and uploading issue

    I got my blackberry a week ago, and I haven't been able to save files from the browser. When I click save, it doesn't do anything. I can't upload files to facebook or bbm straight from in the app either, I have to share them. I can only save images straight from the facebook app, and if I try to save while in the browser, nothing happens. This also happens when I'm trying to save other files such as applications. 
    Any help would be appreciated

    vikasnrsaini wrote:
    Team,
    I've purchased a new Blackberry Z10 battery and charging bundle. But when i'm connecting it to my phone:
    1. It displays message - "To charge you device faster, use the charger that came with this device".
    2. The battery charging icon on the top left of the main screen is showing a red warning sign.
    3. Phone battery is not charging at all.
    Model: BlackBerry Z10
    Model Number: STL100-1
    Software Release: 10.2.1.537
    OS Version: 10.2.1.1925
    Build ID: 648923
    Please suggest what can be the issue and how to resolve this problem.
    Regards,
    Vikas Saini
    If its a genuine Blackberry battery and charger, get a replacement, if its a generic then get your money back.

Maybe you are looking for