Create document in Background with BAPI_DOCUMENT_CREATE2

Hi,
how can i create a document with the BAPI_DOCUMENT_CREATE2 in background (not in dialog)?
I want to upload the original from my front-end (Path: C:\test.pdf).
If i use the paramter "pf_http_dest = SAPHTTP", it didn't work.
I don't want to upload the file from the applicationserver (not SAPHTTPA).
I am thankful for any solution?
Thanks in advance.
Sebastian

The straight answer is that it doesn't work.
The only workaround I've used befor is having a shared network folder that both your user and the user running the SAP dialog service have access to. This does work, but you could argue it is a little messy.
That windows user is probably named SAPservice<SID> on the OS level (or equivalent for Linux).
Windows Operating System User Settings in an SAP System - SAP NetWeaver Security Guide - SAP Library
Share a folder and grant both acess. Afterwards you can run the bapi with the network path.
espen

Similar Messages

  • Want to create Document new version with BAPI_DOCUMENT_create2

    Hi,
    I want to create a document with new version with the help of existing document in DMS. In my development of module pool
    i can add new file and also i can create new version of existing document. all this i can do from my Z-development.
    When on initial time when there is no dicument exist BAPI creating new document correctly with attached files. also i am able to create a new version of that document if i am excuting applicatin from my PC. if this appication run from another system to generate new version BAPI is giving me Error.
    i am passing below data in DOCUMENTFILES(table parameter of BAPI) for existing File which is available already in older version.
    DOC_HEADER-DOCUMENTTYPE = 'ABC'
    DOC_HEADER-DOCUMENTNUMBER = '456'
    DOC_HEADER-DOCUMENTVERSION = '00'
    DOC_HEADER-DOCUMENTPART = '000'
    FWA_DOCFILE-STORAGECATEGORY = 'ZDMS'.
    FWA_DOCFILE-WSAPPLICATION = PFX_EXT.
    FWA_DOCFILE-DOCPATH = F_FILEPATH.
    FWA_DOCFILE-CHECKEDIN = ''.
    FWA_DOCFILE-ACTIVE_VERSION = 'X'.
    FWA_DOCFILE-DOCUMENTTYPE = WA_COMDOC-DOKAR.
    FWA_DOCFILE-DOCUMENTNUMBER = WA_COMDOC-DOCNR.
    FWA_DOCFILE-DOCUMENTPART = WA_COMDOC-DOKTL.
    FWA_DOCFILE-DOCUMENTVERSION = WA_COMDOC-DOKVR.
    FWA_DOCFILE-APPLICATION_ID = WA_DOCFILE-APPLICATION_ID.
    FWA_DOCFILE-FILE_ID = WA_DOCFILE-FILE_ID .
    FWA_DOCFILE-DOCFILE = F_FILENAME.
    APPEND FWA_DOCFILE TO FIT_DOCFILE.
    I am passing all those data which i am getting from BAPI_DOCUMENT_GETDETAIL2 for existing attached file. Need help.

    use BAPI_DOCUMENT_CREATENEWVRS2 ..

  • How to create Document / Literal WSDL with axis 1.3

    Dear All,
    1. How to create Document / Literal WSDL from java interface ?? or how to create Java 2 WSDL using Document/ Literal.
    2. from document/literal WSDL to java classes(stub, skelton, serivces).
    I am using Axis 1.3 , tomcat-5.5.20 and eclipse.
    Please provide the command and arguments for java2wsdl and wsdl2java for doc/lit.
    is there any tool that help to generate java2wsdl and wsdl2java for doc/lit.

    That would be the <web-service> element in the web-services.xml file, of course.
    "Michael Wooten" <[email protected]> wrote:
    >
    Hi Rich,
    Try adding a style="document" attribute to the starting <web-service>
    element.
    The might be a way to get <servicegen> to do this for you, but I haven't
    found
    it yet :-)
    Regards,
    Mike Wooten
    "Rich Muth" <[email protected]> wrote:
    How do you create document/literal web services with WLS7 ( not workshop)
    - Is it possible with servicegen and stateless EJBs as the backend component?
    The default is RPC/Soap-encoded is there anyway to craft the web-services.xml
    to make it document/literal
    - Is it possible with the JMS-implemented web services - have not tried
    this yet
    - Is there another mechanism?

  • Create excel in background with data sheet

    any way to create a excel with data sheet with specific name in background?

    Hi try this simple program.Instead of giving hard-coded file name as i did in this report, you can take the filename dynamicaly from a selection screen parameter. if you call this report from some other program by "submit .." statement, t runs in back ground.
    DATA: BEGIN OF intab occurs 0,
    mandt LIKE mara-mandt,
    matnr LIKE mara-matnr,
    ersda LIKE mara-ersda,
    ernam LIKE mara-ernam,
    laeda LIKE mara-laeda,
    aenam LIKE mara-aenam,
    END OF intab.
    start-of-selection.
    select mandt matnr ersda laeda aenam from mara
                         into corresponding fields
                         of table intab up to 30 rows.
    loop at intab.
    write:/ intab-matnr,intab-ersda,intab-ernam,intab-laeda,intab-aenam.
    clear intab.
    endloop.
    CALL FUNCTION 'SAP_CONVERT_TO_XLS_FORMAT'
      EXPORTING
        I_FIELD_SEPERATOR          = ','
      I_LINE_HEADER              =
        i_filename                 = 'c:\test123.xls'
      I_APPL_KEEP                = ' '
      tables
        i_tab_sap_data             = intab.
    CHANGING
      I_TAB_CONVERTED_DATA       =
    EXCEPTIONS
      CONVERSION_FAILED          = 1
      OTHERS                     = 2
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    endif.

  • Creating a transparent background with a SWF file for Export to Air

    I have been trying to place a SWF with a transparent background into an image component and use as a background for a widget. When I place the swf (just a simple single frame swf file) and output with any other method the background works perfectly. If I output to air then the background is a white rectangle with only a progress bar the stays at 0%. I have tried to not embed it but I get a broken link icon in the same rectangle.
    What am I missing? Should the swf file have some special setting that I am missing?
    I am using Xcelsisus 2008 with SP1 and FP1.
    Thank you for any assistance.
    Heath

    While there is no means to be sure about the method in which SAP/BO creates their components. My assumption is that the component uses the WindowedApplication or an HTMLLoader object(more likely) to display each SWF file.
    If this is the case then it is a known limitation in Adobe Air that we may be able to overcome by trying out the methods described in the following link:   [Air Transparency Help|http://help.adobe.com/en_US/AIR/1.5/devappshtml/WS5b3ccc516d4fbf351e63e3d118666ade46-7e09.html#WS5b3ccc516d4fbf351e63e3d118676a452d-7fe5]
    Or try this link for more detail on [HTMLLoader display options within Air|http://help.adobe.com/en_US/AIR/1.5/devappshtml/WS5b3ccc516d4fbf351e63e3d118666ade46-7e79.html#WS5b3ccc516d4fbf351e63e3d118676a3e36-7ff9]
    Let me know if this works! Now I'm curious...

  • No able to create TO in background with transaction LB10

    Scenario:
    1) LP21 to create Repleninshment TRs for fix bin
    2) LB10 to convert the TRs to TOs
    Situation:
    When I click on create TO in foreground, following by F6 (stock removal background) it follows my search strategy and it works.
    BUT when I select the TR and click on TO in Backgroung (see picture below)
    I receive the follwoing message: No batch input data for screen SAPLSTXC 0100
    Thank you

    http://You are right Jurgen. There is not printer defaulting here.
    I had to enter a printer (LOCL) manually for the TO to automatically print in foreground processing.
    I checked my OMLV configuration, I compared it to a Sandbox environnment that for some reason prints well and they are the same.
    So what else can it be that does not populate a printer in the output device field?
    I checked SPAD also. It seems ok too.
    Thanks again.

  • How can I create a single background image for a BorderLayout?

    I can create a background with an image file for the individual panel (North, West, Center, East and South) in a BorderLayout, but I've been spinning my wheel for a long while now trying to figure out how to create just one background with a single image file for all of these panels?
    In my application, a panel may contain various buttons, a listbox, a group of checkboxes, a combo box, or a canvas. Even if I used the same image file, when the panels are finally put together, one can clearly see that the end product is the result of a lot of patch works.
    Hope someone has an answer for this. BTW, I'm using AWT because it works with existing browsers without the need for a separate Java plug-in.
    Regards,
    V.V.

    Look at this :
    import java.awt.*;
    import java.awt.event.*;
    import java.util.*;
    import java.awt.image.BufferedImage;
    public class PanI extends Frame
         Image map;
         Panel pan;
         myPan p8,p4,p6,p2,p5;
         BufferedImage I;
    public PanI() 
         addWindowListener(new WindowAdapter()
        {     public void windowClosing(WindowEvent ev)
              {     dispose();
                   System.exit(0);}});
         map = getToolkit().getImage("map2.gif");
         MediaTracker tracker = new MediaTracker(this);
         tracker.addImage(map,0);
         try   {tracker.waitForID(0);}
         catch (InterruptedException e){}
         I = new BufferedImage(1,1,BufferedImage.TYPE_INT_ARGB);
         setBounds(10,10,map.getWidth(null)+8,map.getHeight(null)+27);
         setLayout(new BorderLayout());
         pan = new Panel();
         add(pan,BorderLayout.CENTER);
         pan.setLayout(new BorderLayout());
         pan.setSize(map.getWidth(null),map.getHeight(null));
         p5 = new myPan(5);
         p5.setBackground(Color.red);
         pan.add(p5,BorderLayout.CENTER);
         p8 = new myPan(8);
         p8.setBackground(Color.orange);
         pan.add(p8,BorderLayout.NORTH);
         p4 = new myPan(4);
         p4.setBackground(Color.blue);
         pan.add(p4,BorderLayout.WEST);
         p6 = new myPan(6);
         p6.setBackground(Color.green);
         pan.add(p6,BorderLayout.EAST);
         p2 = new myPan(2);
         p2.setBackground(Color.pink);
         pan.add(p2,BorderLayout.SOUTH);
         setVisible(true);
    public class myPan extends Panel
         int where;
    public myPan(int i)
         super();
         where = i;
    public void paint(Graphics g)
         if (I.getWidth(null) != pan.getWidth() || I.getHeight(null) != pan.getHeight())
              I = new BufferedImage(pan.getWidth(),pan.getHeight(),BufferedImage.TYPE_INT_ARGB);
              Graphics      G = I.getGraphics();
              G.drawImage(map,0,0,pan.getWidth(),pan.getHeight(),null);     
              G.dispose();
         int x1=0;
         int x2=getWidth();
         int y1=0;
         int y2=getHeight();
         if (where == 8)
         if (where == 2)
              y1 =  p8.getHeight()+p5.getHeight();
              y2 =  getHeight()+y1;
         if (where == 4)
              y1 =  p8.getHeight();
              y2 =  y1+getHeight();
         if (where == 5)
              x1 =  p4.getWidth();
              x2 =  x1+getWidth();
              y1 =  p8.getHeight();
              y2 =  y1+getHeight();
         if (where == 6)
              x1 =  p4.getWidth()+p5.getWidth();;
              x2 =  x1+getWidth();
              y1 =  p8.getHeight();
              y2 =  y1+getHeight();
         g.drawImage(I,0,0,getWidth(),getHeight(),x1,y1,x2,y2,null);
    public void update(Graphics g)
         paint(g);
    public static void main (String[] args) 
         new PanI();
    Noah

  • Delivery in background with respect to SO number

    Hi experts,
    Anyone kindly help me for the following case...
    In my workflow scenario, If sales order gets created, mail has to be sent to every user. Also for that sales order, delivery should be created in background and again mail has to be sent to all users...
    I m clear with sending mail. but i m struggled while creating delivery in background. i dont know how to do this. I hav an idea that it can be created using BDC recording and this recording program can be called in our method which is created in our business object.
    How to create a single BDC recording to create sales order as well as creating delivery in background... Is it possible to do like this. Or is there any function module to create delivery in background with respect to sales order number?
    kindly give some suggestion and step by step procedure to do this...
    Thanks in advance...
    Regards
    Raaams...

    Dear Raams,
    You can create delivery background automatically by maintaing Batch Jobs.
    The process of creating Batch Jobs:
    1.Tcode: SM36 for define background job/batch job
    enter job name, job class & click enter
    enter ABAP program name, varient name(optional)
    finally, u get message as batch job released
    2. Tcode: SM37 for simple job selection
    goto job log to check batch jobs are running or not(status)
    3. Tcode: SA38 for creation of varients
    If you have any concerns revert back the same
    Regards
    Amjath

  • Web Service to Create a Document Info Record with attachments (e.g. PDF)

    Hello guys,
    we are looking forward to create a Web Service that should be able to create a Document Info Record on SAP ERP Application Server. As we don't have installed the SAP Standard Web Services on our SAP ERP ECC 6.0 system we will manually create a Web Service with the help of the standard BAPI_DOCUMENT_CREATE2.
    The current problem is that the Web Service based on the Standard BAPI can not upload Files (PDF or Word files) from the Users Client PC to the Application Server.
    Is there a possibility to Create a Web Service that can handle files and create DIRs on application server?
    Thanks a lot!!
    Regards,
    Christian

    Hello Natallia,
    Well, in this case you don't really need the CV01N transaction. This represents the user interface (UI), and you only need an interface (that is, an API), which in SAP is represented by a BAPI
    I'm not familiar with CRM, but I assume that at some point when saving a Service Contract, you have a BAdI, where you can check the status and insert some custom code.
    So, all you have to do is call BAPI_DOCUMENT_CREATE or BAPI_DOCUMENT_CREATE2 (if available on your installed version), with the required attributes (this can be master data, classification, custom data...). After this function is called successfully, you should receive the document key (DOKAR, DOKNR, DOKVR, and DOKTL). Which you can also save in the Attachments tab.
    Hope this helps,
    Tudor

  • I am changing from Word to Pages. I have created my custom template with all my styles etc and that is what comes up when I go for a New Document. Fine. How do I get it to use the same Custom Template when I use Pages to open a Word document?

    I am changing from Word to Pages. I have created my custom template with all my styles etc and that is what comes up when I go for a New Document. Fine. How do I get it to use the same Custom Template when I use Pages to open a Word document?

    The template is a document in itself, it is not applied to an existing document whether it is a Pages document or a Word document converted to a Pages document.
    You would need to either copy and paste content, using existing styles, or apply the styles to the converted Word document.
    You can Import the Styles from an existing document and those imported Styles can be used to override the current document's styles:
    Menu > Format > Import Styles
    The process is simplified if the styles use the same names, otherwise you will need to delete the style you don't want and replace it with the one that you do want when asked, then the substitution is pretty straightforward.
    Peter

  • How to Create Excise Invoice (J1IIN) with order related billing document

    Dear Experts,
    Is it possible  to Create Excise Invoice (J1IIN) with order related billing document? How? please guide
    Regards
    BK GAIKWAD

    Sir,
    We have make the supplementary Invoice (Debit Note) as per below process
    1) Create sales order_VA01
    2) Create billing document_VF01_with reference to sales order
    3) Create Excise Invoice With J1IS (Other Movement) It is manually job & due to heavy work load (create 200 invoice  per day) it is not possible to do manually.
    Hence we want to create excise Invoice with J1IIN instead of J1IS, any alternative solution for that?
    Regards
    BK GAIKWAD

  • My iWork (pages and keynote) are not communicating with the iCloud. I haven't changed anything and all of the sudden there is no sync happening.  My iCloud account is fine as i can create documents on my iPad and they appear on iCloud.

    my iWork (pages and keynote) are not communicating with the iCloud. I haven't changed anything and all of the sudden there is no sync happening.  My iCloud account is fine as i can create documents on my iPad and they appear on iCloud. However, when i change documents on my mac (documents that are supposed to be in the iCloud), the changes do not sync with my other devices nor with iCloud.  Even when i create new documents on my mac and save them to iCloud, all seems okay and i can access them from my mac, however they do not show up in the iCloud and i can't access them with my other devices.
    Most recent version of mountain lion updated over a month ago.  New iPad in use for over a month.
    thanks

    The same thing is happening to me, Mail was fine about an hour ago and now is rejecting correct password.  Typical when today I'm waiting some important emails!

  • Pbm with document name while generating URL for created document

    Hi Gurus,<br>
    <br>
    When we upload a document and generate the URL for that document, and then while we paste the same in the explorer window to access it, I was able to see the dialog asking me whether to save or open the document with the <B>actual document name</B>.<br>
    <br>
    But, when I create a document using the template which we uploaded in SOLAR_PROJECT_ADMIN, and then generate the URL for that document, and then when I paste it in the explorer window to access it, the dialog now asks me to save or open the document, but it is not with the name of the <b>actual document</b>, but with the name of the <b>template</b>. <br>e.g <b>Business_Blueprint_template</b>.<br>
    <br>
    Can anyone say why such a problem? and how to solve it.<br>
    <br>
    Useful answers will certainly be greatly appreciated.<br>
    <br>
    best regds,<br>
    Alagammai.<br>

    Hi Gerry,
    try content matrix it gives you free 25 GB and it keeps metadata
    http://www.metalogix.com/Products/Content-Matrix/Features.aspx
    Kind Regards, John Naguib Technical Consultant/Architect MCITP, MCPD, MCTS, MCT, TOGAF 9 Foundation

  • Can't open a document I created an hour before with Pages 5.0.1; get message saying my Pages is too old, for me to download 5.0.1

    Can't open a document I created an hour before with Pages 5.0.1; get message saying my Pages is too old, for me to download 5.0.1

    You have 2 versions of Pages on your Mac.
    Pages 5 is in your Applications folder.
    Pages '09/'08 is in your Applications/iWork folder.
    You are alternately opening the wrong versions.
    Pages '09/'08 can not open Pages 5 files and you will get the warning that you need a newer version.
    Pages 5 can open Pages '09 files but may damage/alter them. It can not open Pages '08 files at all.
    Once opened and saved in Pages 5 the Pages '09 files can not be opened in Pages '09.
    Anything that is saved to iCloud is also converted to Pages 5 files.
    All Pages files no matter what version and incompatibility have the same extension .pages.
    Pages 5 files are now only compatible with themselves on a very restricted set of hardware, software and Operating Systems and will not transfer correctly on any other server software than iCloud.
    Note: Apple has removed over 90 features from Pages 5 and added many bugs:
    http://www.freeforum101.com/iworktipsntrick/viewforum.php?f=22&sid=3527487677f0c 6fa05b6297cd00f8eb9&mforum=iworktipsntrick
    Archive/trash Pages 5, after exporting all Pages 5 files to Pages '09 or Word .docx, and rate/review it in the App Store, then get back to work.
    Peter

  • I created a 5x7 postcard document in Word with text boxes and graphics.  When I converted it to PDF, some of the items were missing, even though they were in the boundaries of the page and looked fine on the Word document.  What happened, and how do I fix

    I created a 5x7 postcard document in Word with text boxes and graphics.  When I converted it to PDF, some of the items were missing, even though they were in the boundaries of the page and looked fine on the Word document.  What happened, and how do I fix it?  I'm trying to upload the PDF version to Vistaprint.  Thanks.

    Reader doesn’t create pdf files. You can use Acrobat (ask in that forum) to create pdfs. You can subscribe to the Adobe PDF Pack which has a create pdf functionality (please ask in that forum), or you can use a third party utility such as ghostscript, cutepdf, or Microsoft’s own PDF creation capability. For third party pdf creation you will need to ask in a forum dedicated to that software as fellow users of Reader are unlikely to have the knowledge to help.

Maybe you are looking for

  • Error  while running the PurgeCache.bat All

    Hi, I am trying to run PurgeCache.bat,however, getting below error. D:\Oracle\Middleware\Oracle_IDM1\server\bin>PurgeCache.bat All The system cannot find the path specified. The WL_HOME and OIM_HOME path are set in the environment varibale. Can you p

  • Not able to see project (slideshow) in Organizer

    I got the Blue Screen of Death while working on a slideshow in PSE 7. When I restarted, the project was corrupted and I could not get back into it. Fortunately, I had backed up just a couple days prior using PSE 7. I did a restore, and all my project

  • Help understanding how to pass dates to procedures in a package?

    When I run the following script in SQL*Plus, I get no obvious errors, but the truncate does not happen and all the other processing doesn't happen. I ran a similar version in another tool and it worked. Much of the code is deleted here but I believe

  • Statistics in 2004s and Query total runtime

    Hi Everyone, We are setting up stats in 2004s.  We have all business content activated and loading successfully.  All looks good from that end.  We see Data Manager and Frontend Cubes (Basic and Virtual). Question is: Where exactly can you see total

  • LED on all the time

    The green LED light in front of the Webcam Live. It's on all the time. I thought it supposed to be on only when the webcam is doing capture? If the LED is on all the time, how can I tell if the webcam is capturing or not?