How to clear the picture from custom container

Hi All
I am uploading the employee image into custom container . for that i have used the below fn modules
CALL FUNCTION 'HR_IMAGE_EXISTS'
EXPORTING
p_pernr = pernr
* P_TCLAS = 'A'
* P_BEGDA = '18000101'
* P_ENDDA = '99991231'
IMPORTING
* P_EXISTS =
p_connect_info = g_connect_info
EXCEPTIONS
error_connectiontable = 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.
else.
CALL FUNCTION 'SCMS_DOC_URL_READ'
EXPORTING
* MANDT = SY-MANDT
stor_cat = space
crep_id = g_connect_info-archiv_id
doc_id = g_connect_info-arc_doc_id
* PHIO_ID =
comp_id = 'DATA'
* SIGNATURE = 'X'
* SECURITY = ' '
* USE_LOCATION = 'A'
* LOCATION = ' '
* HTTP_URL_ONLY = ' '
dp_url_only = 'X'
* LIFETIME = ' '
* NO_CACHE = ' '
* EXPIRATION =
* PDF_MODE = ' '
* URL_EXTENTION = ' '
* FORCE_GET = ' '
IMPORTING
url = g_url
EXCEPTIONS
error_config = 1
error_parameter = 2
error_signature = 3
http_not_supported = 4
docget_not_supported = 5
not_accessable = 6
data_provider_error = 7
tree_not_supported = 8
not_supported = 9
OTHERS = 10
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
after getting the url for uploading the picture
I used load_picture_from_url
the image is uploaded, but when i try to clear the image from control using picture->clear_picture
it is not clearing the image
Please help me how to clear the image.
Thanks
Rama

Hi,
" Request an URL from the data provider by exporting the pic_data.
CLEAR url.
PERFORM load_pic_from_db CHANGING url.
" load picture
CALL METHOD cl_gui_picture_1->load_picture_from_url
  EXPORTING
    url = url.
CLEAR url.
url = 'file://C:\sap-logo.gif'.
CALL METHOD cl_gui_picture_2->load_picture_from_url
  EXPORTING
    url = url.
CLEAR url.
url = 'http://www.sap-press.com/images/logo_books_online_162_50.gif'.
CALL METHOD cl_gui_picture_3->load_picture_from_url
  EXPORTING
    url = url.
init = 'X'.
CALL METHOD cl_gui_cfw=>flush
  EXCEPTIONS
    cntl_system_error = 1
    cntl_error = 2.
ENDIF.
Its helpful.
Regards,
Raj.

Similar Messages

  • How to clear the music from iPhone?

    How to clear the music from iPhone?
    Im tyring to update my music on my iPhone, although my old music is remaining on the device.
    I have tried unselecting the sync music and syncing my iPhone, to remove all the songs - didnt work. I have tried unchecking each of the artists, so that none are checked and syncing - didnt work.
    I dont know what else i can try so that the remaining music is completely removed from my device.

    If all music is not removed from your iPhone when deselecting Sync Music under the Music tab for your iPhone sync preferences with iTunes followed by a sync, something is wrong with your iPhone.
    Under the Summary tab for your iPhone sync preferences with iTunes, try selecting Manually manage music and videos. A warning message will be provided indicating doing so will remove all music - and videos - iTunes movies and tv shows from your iPhone.
    If this works, you can switch back to syncing music.
    If this doesn't work either, try restoring your iPhone with iTunes with Sync Music deselected under the Music tab before doing so.

  • HT4236 How can get the pictures from my iPod to my iPad without a computer?

    How can get the pictures from my iPod to my ipad without a computer?

    Then there is absolutely no way to get the pictures from the iPod to the iPad unless you import them to your computer and then import them inor iTunes and sync them to the iPad.
    Where did the pictures come from? Which iPod version do you have?

  • How to clear the last_line_iterator for custom search result?

    Hi Friends,
    I have one issue regarding search result of service request please help me on this issue....
    We have added some custom fields using value nodes and EEWB image field in search result of service requests....and the problem is when we click on export excel sheet button in result list for first time it is working fine data is showing in excel sheet, but after that when we done some changes in search screen and press search button for second time and press the export excel sheet...data not bound in excel sheet....
    After analysis by me....after pressing the button and modify in search screen export excel sheet for second time in ME-> Last_line_iterator is not clearing it is containing previous search value for last_line_iterator....  so it is failing to call GET_ITERATOR( ) ....so anyone suggest who face same problem in their experience ....how to clear the Last_line_iterator ...let me know if any information required .....pls it is very urgent .....
    thanks in advance....
    regards,
    kumar

    Hi Lakshman,
    Everytime user clicks on a new shop, create a session variable and set it to any value.
    userSessionData.setAttribute("NEWSHOP","true");
    Now go to history.jsp and just above this piece of code put a validation for the value of this session variable and
    if its value matches to "true" than only let the below code to execute.After the validation dont forget to remove this
    variable from session.
    <isa:iterate id="historyItem" name="<%= UpdateHistoryAction.HISTORY_LIST %>"
                 type="com.sap.isa.isacore.HistoryItem"> 
    Likewise you can work with organizer frame refresh also.Hope this helps you.
    Regards,
    Arshi

  • How to add the entries and how to delete the entries from custom Z-table?

    Hi Experts,
    My requirement is I need to add the entries from program to three custom z-tables . Assume as zabc1,zabc2,zabc3.
    Here how to add the entries from program to Z-table.???
    And one more requirement is I want to provide a deletion checkbox in selection screen . Initial it was unchecked. If I am giving tick mark then the entries should be deleted from above custom Z-tables. this all will done in backgroung job?
    Could you please guide me the logic how to crack this???
    Let me know if you need more Info
    Thanks
    Sanju

    Hi Sanjana,
    What you can do is to use the ABAP keyword INSERT or MODIFY to add or modify records to a given database table. Here are the syntax taken from SAP documentation:
    *Insert Statement
    INSERT dbtab
    Syntax
    INSERT { {INTO target VALUES source }
           | {     target FROM   source } }.
    Effect
    The INSERT statement inserts one or more rows specified in source in the database table specified in target. The two variants with INTO and VALUES or without INTO with FROM behave identically, with the exception that you cannot specify any internal tables in source after VALUES.
    System Fields
    The INSERT statement sets the values of the system fields sy-subrc and sy-dbcnt.
    sy-subrc Meaning
    0 At least one row was inserted.
    4 At least one row could not be inserted, because the database table already contains a row with the same primary key or a unique secondary index.
    The INSERT statement sets sy-dbcnt to the number of rows inserted.
    Note
    The inserted rows are finally included in the table in the next database commit. Up until this point, they can still be removed by a database rollback.
    *Modify Statement
    MODIFY dbtab
    Syntax
    MODIFY target FROM source.
    Effect
    The MODIFY statement inserts one or several lines specified in source in the database table specified in target, or overwrites existing lines.
    System fields
    The MODIFY statement sets the values of the sy-subrc and sy-dbcnt system fields.
    sy-subrc Meaning
    0 At least one line is inserted or changed.
    4 At least one line could not be processed since there is already a line with the same unique name secondary index in the database table.
    The MODIFY statement sets sy-dbcnt to the number of processed lines.
    Note
    The changes are transferred finally to the database table with the next database commit. Up to that point, they can be reversed using a database rollback.
    Hope it helps...
    P.S. Please award points if it helps...

  • How to clear the values from a Tab Screen.

    Hi,
    I have created Two Tab in my report by using the below mentioned code.
    SELECTION-SCREEN BEGIN OF SCREEN 200 AS SUBSCREEN.
    SELECTION-SCREEN BEGIN OF BLOCK BR_ACB WITH FRAME TITLE TEXT-502.
    PARAMETERS: P_VATNUM   TYPE T001-STCEG,
                 P_NAME     TYPE T001-BUTXT,
                 P_STREET   TYPE rfpdo-KQSUSTRAS,
                 P_CITY     TYPE rfpdo-KQSUPADD02,
                 P_CNTRY    TYPE rfpdo-ALLGINLD.
    SELECTION-SCREEN END OF   BLOCK BR_ACB.
    SELECTION-SCREEN END OF SCREEN 200.
    SELECTION-SCREEN BEGIN OF SCREEN 201 AS SUBSCREEN.
    SELECTION-SCREEN BEGIN OF BLOCK br4 WITH FRAME TITLE text-503.
    PARAMETERS: P_IDLU    TYPE LU_IDCODE,
                 P_VATNU   TYPE LU_VATNUM,
                 P_DESIG   TYPE LU_DESIGNATION,
                 p_telf  LIKE rfpdo-asldtelf.       "Telefonnummer
    SELECTION-SCREEN END OF BLOCK br4.
    SELECTION-SCREEN END OF SCREEN 201.
    SELECTION-SCREEN BEGIN OF TABBED BLOCK tabb1 FOR 8 LINES.
    SELECTION-SCREEN TAB (15) tabs1 USER-COMMAND ucomm1 DEFAULT SCREEN 200.
    SELECTION-SCREEN TAB (15) tabs2 USER-COMMAND ucomm2 DEFAULT SCREEN 201.
    SELECTION-SCREEN END OF BLOCK tabb1.
    INITIALIZATION.
      tabs1 = text-500.
      tabs2 = text-501.
    Problem I am facing here is when report loads the screen once and I am filling all the valuse in the Tab Screen 200 and 201 and executing the report and when I am reloading any other variant then it is not clearing the valuse present in the Tab Screen 200 and 201.
    Can any buddy help me regarding this to clear the Tab Screen 200 and 201.
    Thanks and best regards,
    Niteesh Rai

    Hi Niteesh,
    I have tested the scenario which you have mentioned above,  Its working fine for me.
    I have filled all the values in screen 200 and 201 as well and saved it as variant Test1, and again
    I have filled all the values in screen 200 and 201 as well and saved it as variant Test2.
    When I am changing the variants from Test1 to Test2 and vice versa.  I displaying their respective data as well.
    Regards,
    Md Ziauddin.

  • How to clear the cache from Mac Book Pro

    What is the simplest way to clear out the cache from my Mac Book Pro?

    I will also endorse Thomas_r's comments.  If anything, I would use OnyX, which is a well known maintenance tool.
    Beware that there is also an "onyxmac" website, which is malware and to be avoided...
    The OnyX developer is Titanium software, here:
    http://www.titanium.free.fr/downloadonyx.php

  • HT1212 how to carry the picture from the computer to iphone

    i want to download the photos from the cmputer to my iphone

    Read here:
    http://support.apple.com/kb/ht4236

  • How to delete the records from custom table???

    My requirement is,
    I have a custom table, assume as ZABC, I have updated this by my custom program, This data having table can be extracted by BI etract program(Assume ZZZ). Here I am not writing any code for extracting data from table to BI extract program, That they will do by BI extract program. But I want to write the code for
    <b>Cleanup of Z table—delete records 30 days after the BI data extractor has run.</b>
    How this is possible suggest me any method having for these???
    Thanks Sanju

    Hell Sanjana,
    Ask your basis people to do the clean up after  30 days. If you want the clean up only to be done 30 days after BI extract has been done, then u need some sort of indicator to say that BI Extract has been done , like  flag and date in a custom table which will be set as soon as extract is done. Then based on that info u need to delete a the records.
    Regards

  • How to clear the report from Cache.

    Hello all,,,
    In my project iam using crystsal report for eclipse to generate reports.
    Iam using a .jsp page to call my report.(which i got it from the examples of CRE).
    The name of my jsp page is poi.jsp
    The name of my Crystal report is Department.rpt
    My problem is this....
    when i run the report first time i can see my poi.jsp page and user can submit
    the parameter and based on the users parameter the report is generated..(ITs working absoultely fine)
    but when the user runs the report again, its not showing the parameter page (i.e user cannot see poi.jsp)
    rather its showing the old generated report.
    When i tried using session.invalidate and session.removeAttribute it was showing me the poi.jsp page
    but the problem is when the user clicks on the print icon or any icon on the report its just
    showing the poi.jsp page...
    When the user closes the report or when the clicks on the button to generate the report it should
    show the parameter page (poi.jsp).how can i solve this problem???
    the code what i am using is as follows
    try {
              String reportName = "C:/workspace/Reports/WebContent/Department.rpt";
              ReportClientDocument clientDoc = (ReportClientDocument) session.getAttribute(reportName);
              if (clientDoc == null) {
                   // Report can be opened from the relative location specified in the CRConfig.xml, or the report location
                   // tag can be removed to open the reports as Java resources or using an absolute path
                   // (absolute path not recommended for Web applications).
                   clientDoc = new ReportClientDocument();
                   clientDoc.setReportAppServer(ReportClientDocument.inprocConnectionString);
                   // Open report
                   clientDoc.open(reportName, OpenReportOptions._openAsReadOnly);
                   // ****** BEGIN SET RUNTIME DATABASE CREDENTIALS **************** 
                        String connectString = "jdbc:oracle:thin:@192.168.1.4:1521:orcl";
                        String driverName = "oracle.jdbc.driver.OracleDriver";
                        String JNDIName = "orcl";
                        String userName = "act_db";               // TODO: Fill in database user
                        String password = "act_db";          // TODO: Fill in password
                        // Switch all tables on the main report and sub reports
                        CRJavaHelper.changeDataSource(clientDoc, userName, password, connectString, driverName, JNDIName);
                        // logon to database
                        CRJavaHelper.logonDataSource(clientDoc, userName, password);
                   // ****** END SET RUNTIME DATABASE CREDENTIALS ****************           
                   // ****** BEGIN CONNECT PARAMETERS SNIPPET ****************          
                        // STRING VALUE PARAMETER. 
                        String stringValue = request.getParameter("DeptId");;     // TODO: Fill in value
                        CRJavaHelper.addDiscreteParameterValue(clientDoc, "", "DeptId", stringValue);
                   // ****** END CONNECT PARAMETERS SNIPPET ****************     
                   // Store the report document in session
                   session.setAttribute(reportName, clientDoc);
              // ****** BEGIN CONNECT CRYSTALREPORTPAGEVIEWER SNIPPET **************** 
                   // Create the CrystalReportViewer object
                   CrystalReportViewer crystalReportPageViewer = new CrystalReportViewer();
                   String reportSourceSessionKey = reportName+"ReportSource";
                   session.removeAttribute("reportSource");
                   Object reportSource = session.getAttribute(reportSourceSessionKey);
                   if (reportSource == null)
                        reportSource = clientDoc.getReportSource();
                        session.setAttribute(reportSourceSessionKey, reportSource);
                   //     set the reportsource property of the viewer
                   crystalReportPageViewer.setReportSource(reportSource);
                   crystalReportPageViewer.setDisplayGroupTree(false);
                 session.removeValue("reportSource");
                   crystalReportPageViewer.setHasRefreshButton(true);
                   // Apply the viewer preference attributes
                   // Process the report
                   crystalReportPageViewer.processHttpRequest(request, response, application, null);
              // ****** END CONNECT CRYSTALREPORTPAGEVIEWER SNIPPET ****************          
         } catch (ReportSDKExceptionBase e) {
             out.println(e);
    Thanks In advance
    Regards,
    Amol Patil

    CrystalReportViewer viewer = new CrystalReportViewer();
    viewer.setReportSource(reportSource);
         viewer.setReportSource(reportSource);
         viewer.setHasRefreshButton(true);
         viewer.setOwnPage(true);
         viewer.setOwnForm(true);
         viewer.setHasExportButton(true);
         viewer.setZoomFactor(100);
         viewer.setPrintMode(CrPrintMode.ACTIVEX);
        viewer.setParameterFields(fields);
    viewer.setEnableParameterPrompt(true); --this line will prompt

  • How to Clear the Hierarchy from hierarchy selection tab

    Hallo,
    I've loaded many hierarchies and created many hierarchies under this tab of the infopackage.
    Many of these hierarchies are not used anymore. Now, I have to search through a long list. How can I housekeep this list? I cannot seem to find a function that do this.
    Regards,
    Adette Rosenthal

    Hi Adette,
    try this path:
    RSA1-> Shift+F9
    there u have all the hierarchies that were loaded and you can delete them from there too.
    see u.
    EV.

  • How to Process a picture from a Camera to Labview

    I want to try and get a picture processed through Labview from a camera. For example I want to take a picture of a cup on a table and process it through Labview so that I can write a program for a robotic arm to pick up the cup from the table. I would like someone to advice me on how to process the picture from the camera and display it on Labview. Are there any examples in Labview, or the internet that can help put me in the right direction?  

    I would recommend starting small and have clear objectives in mind.  For example clearly define what you want your robot to do.  Do you want it to pick up "a" cup or anything that looks like a cup.   Things like learning algorithms, image processing, IMAQ, 3D motion control all come to mind.  These are subjects outside the scope of Labview but may be required in addition to understanding how to program your task in Labview.  There are dozens of examples in Labview on these subjects.  Take the task one step at a time and move from there.  It may also be helpful in the forum to give people an idea of your background.   If you are new to Labview this may be a very hard first program.  SS 

  • How Do I Download Pictures From My Samsung M320 Cell Phone

    Does anyone know how to get the pictures from the Samsung M320 cell phone into iTunes? I tried a USB cable but the computer doesn't seem to want to connect to the camera and do anything with it. I tried Bluetooth and while I seemed to be able to connect it to my iMac I couldn't really seem to do anything with it. I called the store I bought it from and they seemed to think the only way was to use the send picture feature which as far as I can tell I have to pay for and can only send one photo at a time. The phone does not seem to have any remoovable card or anything that the pictures are on.
    Any advice?

    http://datapilot.com/productdetail/89/producthl/Notempty/
    That and an actual "data cable" compatible with this phone did the trick. Previously I had a "USB charging cable" from WalMart which is apparently only good for charging not for data. With Datapilot I am able to download the pictures to my hard drive. It can also work with phonebooks and calendars to some extent but I don't need to do that yet and so can't speak as to that capability.
    Cheers!

  • Recently, when I create a new album (untitled), it immediately fills with picture either from the album above it or, if I have a Faces collection open, with the pictures from that collection. Why and how do I fix it?

    Recently, when I create a new album (untitled), it immediately fills it immediately fills with picture either from the album above it or, if I have a Faces collection open, with the pictures from that collection. Why and how do I fix it?

    When a new album is created it will fill with whatever is in the right hand window,  If you're in the Events or Photos mode it will contain all photos in the library.  Yes, strange behavior.
    OT

  • How do i delete pictures from the camera roll, but keep them in different albums?

    i have added pictures from my camera roll into different albums. but every time i try to delete the ones from the camera roll, it asks if i want to delete the picture from everywhere or cancel. how do i keep them in the other albums, but delete them from the camera roll?

    You can't because the actual photo is in camera roll.  The albums only contain links to the photos.  If you delete the photo from camera roll it will be gone from your phone and therefore also removed from any albums that contain links to it.

Maybe you are looking for