Creating attachments in background

Hi,
I have a PDF document stored on my C: drive. I want to attach it to a RFQ in background.
RFQ is getting created by a RFC which is called from a third party(Non SAP) system.After the RFQ is created, the file in C: drive should automatically get attached to the created rFQ.
I have seen that the function module SO_DOCUMENTS_NAMAGER can be used to read and create a document in SAP. Later we can use BINARY_RELATION_CREATE to create the link between invoice and the document.Problem is these use Frontennd Services.
If I execute these function modules in SAP GUI, it works fine. But when the call is made from a third part system in background, these functions give a DUMP "CNTL_ERROR" in CL_GUI_FRONTEND_SERVICES->CONSTRUCTOR.
Any one has any idea of how a document can be read in background without using Frontend services.
Thanks,
Prasanna

HI Raja,
I tried this and I got a dump 
"CALL_XMLRFC_BACK_REJECTED   "
ShortText                                                 RFC callback calls are not allowed in the current ABAP program                    
What hapenned?                       
The function module "RFC_START_PROGRAM" is to be called as Remote Function Call with destination 'BACK' (RFC Callback) in the ABAP context "SAPMHTTP ", but an RFC callback from the program "SAPMHTTP " was prevented explicitly.This is due to an application problem. The active transaction was " ".            
Error in the ABAP application program.                                            
The running ABAP program "SAPLSYSE" had to be terminated because a statement cannot be executed.                                                
Erroranalysis                                             In the main program "SAPMHTTP ", it was determined that no RFC callbacks are to be called in its ABAP context. Now, a function module was called that has executed an RFC callback via the ABAP statement CALL FUNCTION 'RFC_START_PROGRAM'                              DESTINATION 'BACK'                                                                
This action was explicitly executed by the application in the transaction " " and in the ABAP main program "SAPMHTTP ". This is due to an application problem.                                                              
Do you have any idea  of why this dump is coming.
I am calling BDS_BUSINESSDOCUMENT_CREATEF in a Custom RFC Z_RFQ_CHANGE. This Z_RFQ_CHANGE is called from a third party system.
Thanks,
Prasanna

Similar Messages

  • 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

  • A background job creating/instantiating another background job

    Hi,
    Is there any possibility in SAP, that, a background job can create/instantiate another background job ?
    I have one suce requirement, and not sure if this is possible. Any inputs..
    -DK

    yes you can
    when you create a job using SM36,there is a option for start condition
    in that there is an option for After Job
    just give the job name and when that job completes,this job will trigger off
    http://help.sap.com/saphelp_nw04/helpdata/EN/c4/3a7fae505211d189550000e829fbbd/frameset.htm
    Rohit

  • How To Create A Website Background Video In Adobe Edge ?

    Hello,
    I have video file in my computer SSD drive and i want it to play as background on my web page (page that i am creating).I did try to follow this video:
    How To Create A Website Background Video In Adobe Edge Animate Using Edgehero - YouTube
    but i cant follow 100% what he is doing.
    Guide that i did try to follow is at this link: How To Create A Website Background Video In Adobe Edge Animate Using Edgehero - YouTube
    Steps i do in Adobe Edge Animate CC
    1.) Create New
    2.) i click + sign under section Library >> Scripts >> Add JS File from URL...
    URL that i am adding is: http://www.edgehero.com/edgehero.js/1.2/edgehero_1.2_min.js  (URL is taken from site: Edgehero.js )
    I add this link: http://www.edgehero.com/edgehero.js/1.2/edgehero_1.2_min.js to box that occures after i click on Add JS File from URL
    3.) I go to Edgehero.js and from there i scrol down to section named as Media - Html5 video / Html5 audio
    and i select from there this:
    there is a code:
      // this will set the video as background of the div/rectangle
    backgroundvideo_1 ='movie.mp4';
      // put new edgehero.js variables here
    4.) I go to Adobe Edge Animate CC 2014 and right click on project and select Open Actions for "Stage"
    and then i click on + sign and select creationComplete
    This will open Stage window
    there i will copy this code:
      // this will set the video as background of the div/rectangle
    backgroundvideo_1 ='movie.mp4';
      // put new edgehero.js variables here
    5.) Then i click on ++ sign under library >> Video
    and i add video from my computer SSD drive.
    Video is named as video3.mp4
    Now i eddit the code in Stage window (See above)
    code will look after editing like this:
    Then i change under left side px to %
    6.) Then i copy backgroundvideo_1 from Stage Code:
    Then i select Rectangle Tool and mark the area  (white box) and i click on small C icon
    And the box that occures i type there backgroundvideo_1_mp4 autoplay
    now when i use ctrl and enter i only get gray box that does not play video.
    What am i doing wrong?

    Here is the html file.
    Note video file that i try to add is random training video from youtube, And file format is saved using this site:
    How do I download and save a YouTube video to my computer?
    this is only for testing as i am not gonna put that video on background to my web page. I am only trying to understand how to add video as background.
    http://www.filedropper.com/test3_5
    http://www.filedropper.com/test3_6
    http://www.filedropper.com/test3edge
    http://www.filedropper.com/test3edgeactions
    http://www.filedropper.com/test3edgepreload
    Goal is to create background video like u can see here:
    Adobe Muse Tutorial - Responsive Design Hack! by MuseThemes.com - YouTube
    Similar possibility is available also in Edge as i understand?

  • Error while creating TO in background

    Hi Guys,
    I am getting error while creating TO in background using Transaction code LB13.
    The error is "No batch input data for screen SAPLSTXBC 0100" this is the screen which comes after saving a TO. Here we can give the printing details. If we are doing the TO in foreground with same transaction the data for this screen comes automatically. but in background it is showing the error.
    So help me in getting rid of the problem.
    Thanks and Regards
    Sukant

    Hi Manasa,
    What is your source for creation of CVC? Are you trying to create CVCs from infocube?
    Could you try out the following to identify the root cause?
    In the create CVC (/sapapo/mc62) variant, uncheck the check boxes for all the 3 checks at bottom of the variant, and also uncheck the "adjust time series objects" checkbox.
    Come to "selection condition", and select one or few CVCs from your source (Infocube, or flat file, whatever).
    Then try to run the job, which should only create one or few CVCs as per your selection criteria.
    If you are able to create CVCs in this way, that could mean that you might be having some issue during some check or generation of time series. Delete the created CVCs and again try to create them by activating the checks one by one.
    If the above helps in identification of the issue, then it might be possible to attack and resolve the issue e.g. special character, etc.
    PS: You could also try the "load to worklist" option to try to identify the CVC having issue. There you can specify one or few CVCs to be created in one go, and this might help in identifying if there is an issue with a certain CVC.
    Thanks - Pawan

  • Create Attachments to Generic Object Services from Webdynpro appliccation

    Hi,
    I have requirement to Create Attachments  to Generic Object Services(GOS) in equipment master (IE03)  from webdynpro when a user clicks on upload button and also allow the user to delete the attachments .
    Can anyone advice me of any Function Modules or logic to use from Web GUI.
    I used below logic from R/3 to create attachments, but from webdynpro this method doesn't work.
    DATA lo_attachment TYPE REF TO cl_gos_document_service.
      CREATE OBJECT lo_attachment.
      CALL METHOD   lo_attachment->create_attachment
           EXPORTING  is_object = ls_object
           IMPORTING  ep_attachment = lp_attachment
    Your inputs are appreciated.
    Thanks
    Rajesh Yalda

    Hi,
    try using the Class CL_GOS_SRV_ATTACHMENT_CREATE with Method EXECUTE_ITS.
    best regards,
    Michael

  • Retrieve the date a file was created in the background

    EDITED CONTENT----
    Apologies all...I just realized there is a specific forum for this type of question.  I will post it there.
    Thanks Marilyn for point this out>>>>should have read it first as suggested. 
    /message/2572763#2572763 [original link is broken]
    Hi guru's,
    I have a custom application that does some windows directory cleaning based an older than 'X' days setting.  I have to do some calculation to determine if the file being processed is older than that number of day and delete it if it is.  To determine the file created date I use the method DIRECTORY_LIST_FILES from CL_GUI_FRONTEND_SERVICES.  This works great in the foreground but dumps in the background because the handle object reference is not created in the class constructor and subsequently does a call to a "NULL" object.
    My question:
    Does anyone know of a way to get the date a file was created while running in the background?  If not, please read on --- I have another question regarding an alternate approach I am trying.
    I have tried the following approach FM EPS_GET_DIRECTORY_LISTING to return an internal table with all files in a directory.  Works fine in the background, but the created date is not in the return values.  Soooooo I looped at the internal table and called this system function:
            CALL 'C_FILE_ATTRIBUTES'
                ID 'NAME'     FIELD tempfile
                ID 'TYPE'     FIELD singleFile-
                ID 'LEN'      FIELD file-len
                ID 'OWNER'    FIELD file-owner
                ID 'MTIME'    FIELD file-mtime
                ID 'MODE'     FIELD file-mode
                ID 'ERRNO'    FIELD file-errno
                ID 'ERRMSG'   FIELD file-errmsg.
    This returns the MTime, which is the Modified time (in Epoch time format: number of seconds since Midnight 1 January 1970), but no created time.  Does anyone know the ID for the created time?  I tried CTIME but no value is returned. 
    Along with this question: any idea if a FM or Method exists to convert Epoch time to a standard time.  I could do the calculation myself....but it seems someone would have already done this.  No point in re-creating the wheel.
    Thanks so much,
    Quack
    Message was edited by:
            Ryan Quackenboss

    I will be happy to.
    Please post something to this thread. 
    Retrieve the date a file was created in the background
    I UNMARKED this question as a post and reposted in the data transfer forum.
    That post is still open.  Once you post there, I will mark it ANSWERED and award points.
    Thanks for the help
    Quack

  • Using Illustrator CS4 trying to create text with background showing thru in random areas

    how can I get this look in Illustrator?
    this is a red letter on a blue background which shows thru

    ween,
    If you have an image or whatever in grayscale with the desired pattern where full black or white corresponds to the background fully showing through the letters, you may:
    1) Create the blue background at the bottom;
    2) Create the red letters in the middle;
    3) Place the grayscale image/whatever at the top;
    4) Select 2) and 3) and in the Transparency palette flyout tick Make Opacity Mask with Clip ticked and Invert mask ticked or unticked, depending on the choice of colour (you can see which makes it right).

  • How to create a Faded background

    I'm using Fireworks CS3.
    I have created a new canvas and saved it as a .png. I now want to create a faded background. So I select the gradient tool and define the details of the color, etc BUT when I mouseover the canvas I get a circle with a slash through it pointer and I'm unable to apply the gradient.
    What do I need to do with a new canvas before i can start applying the gradient tool to it?
    Thank you kindly!

    The canvas is just that - a canvas. You need to draw a rectangle shape on the canvas using the vector tools, and use the gradient on the rectangle.
    Jim Babbage

  • Create Attachments - Authorization

    Hi @ all
    I have following example:
    My colleague wants an authorization restriction for creating attachments, for example in equipment.
    Two issues are important for him:
    At first he wants that some employees can create via u201CCreateu2026 -> Create Attachmentu201D (Services for Objects), but some should not be able to create attachments. I have found the transaction SGOS, but there you only can set this option inactive for all users.
    At second the deletion of these attachments should not be able in general. I have found the authorization object S_WFAR_OBJ for the ArchiveLink u2013 object which is already maintained. But I haven´t found anything for above mentioned objects.
    Could anybody help me? Do you know which authorization objects are necessary?
    Thank you very much in advance!
    Kristin

    Explained in [ wiki|http://wiki.sdn.sap.com/wiki/display/SI/FrequentlyaskedquestionsaboutGenericObjectServices+(GOS)]
    Hope it helps

  • Problem creating attachments

    I use both Firefox and Safari browsers for my Mac, and have a Hotmail account. Normally I can create attachments. Tonight, using Firefox, when I click the attachments link, nothing opens, but when I switched to my Safari browser it did, so it would seem like it is a problem with Firefox as it relates to Hotmail.

    hi janager ,
              exactly you are right. I  have my own transaction called  /tmw/tmw. In this tcode i need same functionality of me23n(i.e create attachment) . I created one attachment from my desktop. how can i copy the presentation server(desktop) file in to application server. application files can see by all users .

  • Creating attachments UDM_BD_CREATE_ATTACHMENT

    Hi,
    I want to use FM UDM_BD_CREATE_ATTACHMENT to create attachments to disputes from an external system, do you have any experience using this?
    M.

    check out the following link
    FSCM - Dispute Manager - External DB & ArchiveLink

  • Creating attachments in FB03 transaction

    Hi all,
    I tried to create attachments in FB03 transaction but its giving message as 'Folder does not exist'. 
    Please suggest me how to achieve this functionality.
    Regards,
    Srilatha

    Hi,
    You can go through below explanation
    File attachment not available on CALL TRANSACTION
    Re: Save Attachments of Activity also on the Customer?

  • How to create a transport background for an applet ?

    HI can any one tell me the solution for this ...
    How to create a transport background for an applet ?
    please help
    -seenu_ch

    what does it mean to have a transparent background to an applet? transparent means you can "look through" it.
    What do you want to "look thorough" an applet.
    Sorry, I am still not understanding :(
    Please let me know what this means.
    regards,
    Sangeetha

  • I am getting ready to sell a Mac app and I want to know what the specs are to create a custom background for my Mac App?

    I am getting ready to sell a Mac app and I want to know what the specs are to create a custom background for my Mac App?
    Here is a good example of what I am talking about: https://docs.google.com/file/d/0B28kNqQ8gmifRjRHam9wVnlrWG8/edit?usp=sharing

    You need to post your question in the Apple Developer Forums

Maybe you are looking for

  • Error 720 when establishing VPN connection to RRAS server in Windows 8.1

    Hi, I am unable to establish a VPN connection to my Windows Server 2008 R2 RRAS server. I have tried all protocols, but always getting the same error: "Error 720: A connection to the remote computer could not be established. You might need to change

  • Profit center wise not updated

    Dear Sapguys, In production transaction data its not updated with profit center and business area now i want updated, please guide me Hpw to update Regards Hanuman

  • Custom button with action listener - will not invoke action listener

    Hi For whatever reason, I cannot find a concise example of a simple custom component that can invoke an action listener. The tutorials I've read so far either ignore this fundamental topic or only make the slightest make reference to it. The best I h

  • P2 Import - Nothing in Transfer Window

    I have been importing data from P2 cards and a Firestore 100 for 18 months on this MBP with no real issues. Tonight I can't get any of the files to come up in the Log and Transfer window. I've tried P2 and Firestore folders (and yes, I did organize t

  • Pipeline Processing

    If I have a file to file Scenario, what are all the steps involved in the Pipeline processing. (When the file is picked up by Adapter first, then it enters into the Pipeline until that point I am clear I hope) Thanks