Workitem

hi all
i want to send a sap transaction link in the workflow mail how should i go abt it
regards
navjot

Hi Navjot,
You can call your transaction in method program of your Business object.
In method creation in ABAP tab take the transaction radio button and enter your transaction over there.
For Example:
CALL TRANSACTION 'ZHRLAF3' AND SKIP FIRST SCREEN.
Thanks and Regards,
PRabhakar Dharmala

Similar Messages

  • Error while opening a workitem in UWL

    Dear All,
    There is a leave application in webdynpro abap and workflow, in which when the initiator apply for the leave the request is generated and the work item is send to the UWL but when the approver clicks on the workitem id in his UWL it is not opening and just getting deleted from the worklist.
    Any help will be highly appreciated
    Thanks
    Mustafa

    Dear Koti,
    It is giving the same error in the backend also.when i click the workitem it is giving the "error while executing the workflow Close Window".
    Is there a problem with the workflow template or the UWL Configuration.
    Regards
    Mustafa

  • Rule with SELFITEM-SENDTASKDESCRITION task's workitem goes error

    Dear all,
               I have created a workflow with an activity step that uses business object SELFITEM and method SENDTASKDESCRIPTION  with rule AC00000168.
              On executing the WF, the workitem successfully goes to right agent.
              But, when the agent executes the workitem, it goes to error state.
              In the workflow log, I get the error message as "Exception occurred Error handling for work item 000000968991 eeom division 09.07.2010 - 11:28:52 " with exception 0,error type 1 and message 0.
              Following is binding details between workflow and task container.
    &MANAGER&      ->     &ADDRESSSTRINGS&
    &_ATTACH_OBJECTS&      ->     &ATTACHMENTS&
    &ATTENDANCEINSTANCE&     ->   &ATTENDANCE&
    &EXPRESS&     ->     &EXPRESS&
    &LANGUAGE& ->     &LANGUAGE&
    &LINEWIDTH&     ->     &LINEWIDTH&
    &TYPEID&     ->     &TYPEID&
    &SELFITEM&     ->     &_WI_OBJECT_ID&
            In the above binding parameter,MANAGER. is a workflow container of ABAP data dictionary type WFSYST-AGENT where the rule's agent is collected.
    Please suggest why the work item at agent inbox on execution goes error for which I will be grateful.
    Thanks and regards,
    S.Suresh

    Hello Rick !
            Thank you so much for your fruitful solution.
            Also, I am deeply sorry for delayed reply.
           I used the function module 'SWX_GET_MANAGER' in the custom method  as you suggested.
    BEGIN_METHOD FINDMANAGER CHANGING CONTAINER.
    DATA:
          EXTENDEDOBJECTID TYPE OBJEC-REALO,
          addresstype like soxna-type,
          RECIPIENTADDRESS TYPE SOXNA-FULLNAME.
    DATA:
          ac_container like swcont occurs 0 with
          addressstrings like soxna-fullname occu
      SWC_GET_ELEMENT CONTAINER 'ExtendedObjectID
    addresstype = 'G'.
    ac_container-element = 'OBJID'.
    ac_container-tab_index = '000001'.
    ac_container-elemlength = '008'.
    ac_container-type = 'N'.
    ac_container-value = EXTENDEDOBJECTID.
    append ac_container.
    ac_container-element = 'OTYPE'.
    ac_container-tab_index = '000001'.
    ac_container-elemlength = '002'.
    ac_container-type = 'C'.
    ac_container-value = 'P '.
    append ac_container.
      CALL FUNCTION 'SWX_GET_MANAGER'
        TABLES
          ACTOR_TAB = addressstrings
          AC_CONTAINER = ac_container
        EXCEPTIONS
          NOBODY_FOUND = 01
          OTHERS = 02.
      CASE SY-SUBRC.
       WHEN 0.            " OK
       WHEN 01.    " to be implemented
        WHEN OTHERS.       " to be implemented
      ENDCASE.
      loop at addressstrings.
      if addressstrings(2) = 'P '.
      delete addressstrings.
      endif.
      endloop.
    move addressstrings to recipientaddress.
      SWC_SET_ELEMENT CONTAINER 'RecipientAddress' RECIPIENTADDRESS.
    END_METHOD.
    Therafter, the values accumulated at RECIPIENTADDRESS is passed to the workflow container(SOXNA-FULLNAME) of SENDMAIL step.
    Also, I thank every one who contributed fruitful suggestions to solve my problem.
    Thanks and regards,
    S.Suresh

  • Workitems are not getting displayed in UWL

    Hi All,
             We have deployed ESS/MSS Business packages in our system. Also configured UWL to display workitems in portal. But when testing leave request, leave request workitems are not getting displayed in portal as UWL. Any help on this will be appreciated.
    Thanks,
    Krish.

    Hello,
    have created some new users and done with the leave request, it comes to backend inbox, but not
    visible in portal. Re-configured UWL, but still the task not coming( leave request). For other users it is > coming?
    Where have you created these users? Many times it is not enough to create new users in a backend system. You will have to create them in the data source which is used by the UME of your portal or to map this data source with the system where you have created your new users
    You can see what data source your portal is using by going to
    Portal --> System Administration --> System Configuration --> UME Configuration --> Data Source
    If this Data Source doesn´t contain your new users, then UWL wouldn´t be able to show their items.
    Here you can check if your user is contained in the data source:
    Portal --> User Administration --> choose the right data source --> put in the username --> search
    Please check if your users are correctly created.
    Regards,
    Iris

  • Reg : Advancing With Workitems

    Hi All,
    I am working in 4.6 with Purchase Requisition Workflow (Overall Release - BUS2105).
    The requirement is when the user rejects & saves the PR in ME54 I'm supposed to give a pop-up screen to enter rejection text.
    I tried various options like using SOFM-COMPOSE, calling text editor function modules via methods/reports/transaction codes etc.
    But everytime the user rejects the PR and saves it, he is taken to his inbox where that new workitem is present. Then he has to execute it seperately. I don't want the user to go back to his inbox to execute the workitem again. I want to advance with the workitems without going back to inbox.
    How can i achieve this?
    Thanks & Regards,
    Raj

    why dont you call the text editor FM in some of the userexits or badi before save.
    There check for the condition..if PR is rejected....then call the FM and get the rejection reason

  • How to get workitem ID parameter in BSP application in UWL?

    Hello All,
    okay, it's been a long day and i stuck with this seemingly simple problem - how to get a workitem id in my BSP application when calling from UWL.
    Points are guaranteed to all who post an answer.
    i got MVC BSP iview is configured to be called for my task in SWFVISU, all re-registered and seem fine. Correct BSP is being called when i execute the workitem from UWL, but wi_id is not passed there.
    What am i missing?
    Thanks!

    Hi Serge
    How you solved it .I have same issue  please let me know.
    Thanks

  • Workitem remains in inbox even after execution

    Hi all,
    I am facing a problem with the removal of workitem from the inbox. I have searched the net and found that this problem has been faced before by people but I could not get any solution to this.
    I have a workitem in the inbox. I click it and execute it. After completion when I return to the inbox, the workitem is still displayed there. A single refresh of the inbox also doesn't work. I need to log off and log on again to the portal in order to see the refreshed list in my inbox.
    But the workitem doesn't get removed from the inbox as soon as it is completed. I can even click the same workitem second time and see the same screen again - but this is not reauired as the work is already done.
    It seems to be due to some time delay between the synchronization of the ESS and the database.
    If anyone has solved this issue before please tell me how I can remove the workitem from my UWL inbox as soon as it is completed.
    Points are sure to be awarded for good answers.

    Hi Sanghamitra,
    Please apply the note 1501377.
    Thanks!
    Swarnaprakash

  • Viewing the users inbox for pending workitems..

    Hi all,
    I have a situation where in the management has asked me to look into a person's business workplace and report the number of pending workitems.Any suggestions...
    Regards,
    Sukumar.

    Hi Sukumar
    You can use transaction code SWI5. Here what you need to give is user number. After that you have to select workitem that has to be processed. Choose US as user object. then execute it. after execution of it you can see the all workitem that user's in-box contains in technical form.
    After that you can report as you have to report. You can also check logs of all workitem.
    Thanks
    Pritam

  • Any Function modules or tables to find workitem in ready status for user

    Hi all,
    Is there any way i can find the possible workitems which is in ready state in a users inbox.
    Thanks,
    Neslin.

    Hi Neslin
    You can use this FM RH_LOCAL_INBOX_GET which gives all the details of the work item for the particulaer user. In this FM goto table tab WI_LIST willl give all the details WI_LIST-WI_STAT give the status of the work item.
    Regards
    vijay

  • Workitem should be in  IC Agent Inbox but not in SBWP

    Hi,
         I have a scenario in which i am creating a workitem through program. This is creating a workitem and sending a mail to the user through ERMS. Now, this workitem is present both in the agent inbox (i.e ERMS) and also in SBWP.
    Once the ERMS rule is executed a mail is sent to the user. But this mail is present at both agents inbox and in SBWP. If the user clicks it in sbwp , the workitem refreshs and disappear in SBWP and it is setting the status completed in the ERMS. I need this to be seen only in agents inbox.
    Kindly can you suggest
    Thanks

    Hi,
      What workflow you are using.
    I think the the workitem status completed in ERMS because of some terminating event trigger after you click on SBWP.

  • Can we set "IN PROCESSu201D status for multiple users for a single workitem?

    Hi,
    As per my client current scenario every work item will be sent to 3 useru2019s (One is the supervisor of the other two users). If any one of the user executes the work item it will automatically call a Ztransaction and displays the screen. When the user without taking any action, he presses the BACK button (in Ztransaction) and comes out of the transaction. Then the workitems for the rest of the users will disappear from there inboxes.
    But my client requirement is such that, whenever the user click on back button the workitem should be "IN PROCESS" status for two users(One is the supervisor and one who executes the workitem) out of  3 users possessing the workitems.
    Please provide me any advice to the above requirement.
    Thanks in advance,
    Ranganadh

    I think this can be done either by putting a check whether the user does anything. If he does a flag should be set which can be used in the Codition Tab of the Activity step that will prevent the workitem from completion.
    Thanks
    Arghadip

  • How to stop workitem complete or how to keep work item in inbox based on conditions even if it completed

    Hi,
    my requirement is to call webdyn pro screen from workflow..
    i am calling webdynpro screen by using FM :CALL_BROWSER from workflow.
    when webdyn pro screen is called user will enter some values . if user closed webdyn pro screen with out entering any values we need show this workitem in his inbox. so that user can again open it and enter values in the webdyn pro screen.
    Please help how to stop work item complete based on conditions.
    Thanks,
    phani

    Hi,
    As per my understanding, this is not a proper approach toy call web dynpro using FM CALL_BROWSER. is the web dynpro screen being called when user clicks on the work item from portal UWL OR from SAP SBWP ?
    if you are calling web dynpro screen from portal UWL when user clicks on work item link, better you achieve it using SWFVISU tcode. in SWFVISU tcode you can maintain which web dynpro. application to call when particualr work item task come in user's inbox. in your web dynpro code, then you can write your buisiness logic when user clicks for example SUBMIT/SAVE button. on action submit/save button you can use FM SAP_WAPI_WORKITEM_COMPLETE to complete the worktiem once the user clicks on final submit/save button. in this way the workitem will get removed from user inbox only upon clicking on submit/save button.
    You can refer below link for web dynpro for workitem:
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/70648e99-4cc1-2c10-879d-9c61003c69d6?QuickLink=index&…

  • Displaying workitem/task execution online rather than in SAP inbox

    Hi All,
    I am using the workflow WS01000045 when implementing the ESS scenario - Employment and Salary Verification.
    The user has the option of printing or faxing these details.
    When the user clicks PRINT the step 81(Print Employment and Salary Verification,Task TS01000076) creates a workitem in the user's SAP inbox.The user can print the details by executing the workitem from the SAP inbox.My requirement is to actually execute the workitem online and show the print preview screen to the user instead of going to SAPinbox(logical because all the employees in a company can't have dialog access to SAP system).
    We are on SAP 4.7(WAS 620) : SAP_BASIS SAPKB62059
                        SAP_HR    SAPKE47055
                        EA-HR     SAPKGPHA55
    ESS is implemented on EP6.0
    Pls advice how to avoid the SAP inbox.
    Regards,
    Kiran.

    Hi Kiran,
    We have a similar requirement. Have you found a solution to your problem?
    Thanks
    Renaud

  • Cannot view Rejected workitem in BBPAPPROVAL? (HTM format)

    Hi there,
    When a shopping cart is rejected it creates a workitem in HTM format and is available to the user via the SRM web interface by viewing the "messages" tab within the "approval" option.
    So the user may see something like this:
    Mail: Shopping cart 1000919418 was Rejected
    The text above is obvioulsy a LINK / URL and when the user clicks this I get another LINK at the bottom of the page saying:
    Transfer Document Contents (5K)
    Clicking on this I see the following message:
    This e-mail was generated automatically.
    Please do not reply.
    Shopping cart number 1000919418 was From Rejected by Lynton Grice.
    Information on shopping cart:
    Created on: 18.08.2009
    Changed on: 18.08.2009
    Requester: Tom Green
    You can view the document directly. Choose the following link :
    Login
    When I click on the login link above it just takes me to the normal SRM start / logon screen....
    If I look at the URL that it wants to go to it is something like:
    http://<server>:<port>/sap/bc/gui/sap/its/bbpstart/BBPSC20/!?client=400&sap-client=400&language=EN&sap-language=EN&HEADER_GUID=DE8BF7F002ED75F1A0F400215E2FDB8E&OBJECT_ID=1000919418
    If I paste that into the browser nothing happens....
    But in my logic the URL above is wrong anyway.....the "BBPSTART" should not be in the URL....it should be something like:
    http://<server>:<port>/sap/bc/gui/sap/its/BBPSC20/!?client=400&sap-client=400&language=EN&sap-language=EN&HEADER_GUID=DE8BF7F002ED75F1A0F400215E2FDB8E&OBJECT_ID=1000919418
    That then brings up the document.
    But my question is what is the standard functionality when vieiwing a workitem with HTM as the format within SRM? Should I be seeing things like Transfer Document Contents (5K) ? Surely it should just take me straight into the document?
    Perhaps I am missing something in SPRO?
    BTW: We are using SAP SRM 5.00
    Any ideas?
    Many thanks
    Lynton

    Thanks Jasmin,
    My submit buttons are set to submit XML only but when I examine the recorded data in Workbench I see a range of unwanted application data tags.  The size of the application data approximately doubles with each save of the form data until eventually Tomcat crashes because the rendered form is too huge.
    There are further details of the problem here:
    http://forums.adobe.com/thread/790107?tstart=0
    If you can help with this I'd be very grateful :-)
    Cheers,
    Kieran

  • Using work managers to process WorkItems in a message driven bean

    Hi, I'm trying to get to grips with using a work manager (in 10.3) to process WorkItems concurrently, with the whole process being triggered by a JMS message. I've got everything working using the default work manager but I'm having problems switching over to using a work manager that I've created myself, using annotations to provide the resource ref.
    My current setup, using the default work manager, is (roughly) this:
    @MessageDriven(mappedName = "jms/tsrd.DependencyWorker", activationConfig = {
            @ActivationConfigProperty(propertyName = "connectionFactoryJndiName", propertyValue = "jms/connectionFactory"),
            @ActivationConfigProperty(propertyName = "ejbName", propertyValue = "tsrd.DependencyWorker"),
            @ActivationConfigProperty(propertyName = "destinationJndiName", propertyValue = "jms/tsrd.DependencyWorker"),
            @ActivationConfigProperty(propertyName = "destinationType", propertyValue = "javax.jms.Queue") })
    @Interceptors(SpringBeanAutowiringInterceptor.class)
    public class DependencyWorker implements MessageListener {
        private WorkManager workManager;
        @Required
        @Resource(name = "taskExecutor")
        public void setWorkManager(final WorkManager workManager) {
            this.workManager = workManager;
        public void doOperation(final WorkflowControlMessage msg) throws Exception {
             Work myWork = new ...
             workManager.schedule(myWork, listener);
    }With my spring config including this bean:
    <bean id="taskExecutor" class="org.springframework.scheduling.commonj.WorkManagerTaskExecutor">
        <property name="workManagerName" value="wm/default"/>
        <property name="resourceRef" value="true"/>
    </bean>And this works fine: when the JMS message is received I send a load of WorkItems to the default work manager and they get processed.
    Now what I'd like to do is change the spring config to this:
    <bean id="taskExecutor" class="org.springframework.scheduling.commonj.WorkManagerTaskExecutor">
        <property name="workManagerName" value="wm/MyWorkManager"/>
        <property name="resourceRef" value="true"/>
    </bean>Where I've already created MyWorkManager as a global work manager for the server, and it's visible on the admin server for the deployment.
    From the examples I've seen I know I need to add a resource ref for the MDB so that it can lookup the work manager using JNDI. We mainly use annotations, so I'd like to just be able to add this line to the MDB:
    @Resource(name = "MyWorkManager", type = commonj.work.WorkManager.class, authenticationType = Resource.AuthenticationType.CONTAINER, shareable = true)But when I try that my server refuses to start:
    Unable to deploy EJB: DependencyWorker from tsrd-mdb.jar:
    [EJB:011026]The EJB container failed while creating the java:/comp/env namespace for this EJB deployment.
    weblogic.deployment.EnvironmentException: [EJB:010176]The resource-env-ref 'MyWorkManager' declared in the ejb-jar.xml descriptor or annotation has no JNDI name mapped to it. The resource-ref must be mapped to a JNDI name using the resource-description element of the weblogic-ejb-jar.xml descriptor or corresponding annotation.So is there a way to fully configure my work manager just using the @Resource annotation, or do I need to add a weblogic-ejb.jar.xml file and put some specific config in there? Presumably if I do need to add an xml file then I'd need to put something like this in it?
    <wls:weblogic-enterprise-bean>
        <wls:ejb-name>DependencyWorker</wls:ejb-name>
        <wls:resource-description>
            <wls:res-ref-name>MyWorkManager</wls:res-ref-name>
            <wls:jndi-name>wm/MyWorkManager</wls:jndi-name>
        </wls:resource-description>
    </wls:weblogic-enterprise-bean>Am I also right in thinking that I don't need to add a dispatch policy to the MDB specifying MyWorkManager, because I don't actually want to dispatch the MDB to that manager, I just want the manager to be available to the MDB.
    Thanks.

    Hi, so I've added a weblogic-ejb.jar.xml file with a reference to the JNDI name of the work manager:
    <?xml version="1.0" encoding="UTF-8"?>
    <wls:weblogic-ejb-jar xmlns:wls="http://xmlns.oracle.com/weblogic/weblogic-ejb-jar" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd http://xmlns.oracle.com/weblogic/weblogic-ejb-jar http://xmlns.oracle.com/weblogic/weblogic-ejb-jar/1.0/weblogic-ejb-jar.xsd">
        <wls:weblogic-enterprise-bean>
            <wls:ejb-name>DependencyWorker</wls:ejb-name>
            <wls:resource-description>
                <wls:res-ref-name>MyWorkManager</wls:res-ref-name>
                <wls:jndi-name>wm/MyWorkManager</wls:jndi-name>
            </wls:resource-description>
        </wls:weblogic-enterprise-bean>
    </wls:weblogic-ejb-jar>But I still get exactly the same error when I try to start my server. The example you referred to kind of cryptically suggests that adding a plan.xml suddenly fixed everything, but what am I missing here that actually hooks the work manager up to JNDI? am I getting these problems because I'm using annotations, or are people not supposed to access work managers in this way?
    Thanks,
    Edited by: 806682 on 05-Nov-2010 08:57

  • Want to attach smartform as workitem but it doesn't work.

    Dear Experts,
    I want attach 'SMARTFROMS' or PWB Forms as workitem attachment but i couild not able to do .My method code is as follows...
    function zbi_bill_revision_v1.
    ""Local Interface:
    *"  IMPORTING
    *"     REFERENCE(WID) TYPE  SWW_WIID
    *"     REFERENCE(L_DOCNO) TYPE  E_PRINTDOC
    *"  EXPORTING
    *"     REFERENCE(L_WID) TYPE  SWW_WIID
    data: l_wid type SWW_WIID.
      include <cntn01>.
      types : begin of ty_i_tline,
               i_tline  type tline,
              end of ty_i_tline.
      data: ls_control_parameters type ssfctrlop,
            w_compop         type ssfcompop,
            w_return         type ssfcrescl,
            v_len_in         type so_obj_len,
            it_i_otf         type itcoo occurs 0 with header line,
            it_i_tline       type table of ty_i_tline,
         it_zbillasses    TYPE zbill_assessment,
            out_opt          type ssfctrlop,
            fm_name          like rs38l-name,
            test_flag        type sysubrc,
            message_lines    type standard table of  swr_messag,
            message_struct   type standard table of swr_mstruc,
            att_head         type swr_att_header,
            it_solix_tab     type tsfixml,
           wid              TYPE sww_wiid,
            att_id           type swr_att_id,
            l_c              type efg_strn_printdata,
           wa_assesment     type zbill_assessment,
            wa_bill_ht       type zbill_invoice_ht.
         w_compop         type ssfcompop.
    CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
       EXPORTING
         formname                 = 'ZFORMBI_HIGH_TENSION_EMAIL'
      VARIANT                  = ' '
      DIRECT_CALL              = ' '
      IMPORTING
        fm_name                   = fm_name
      EXCEPTIONS
        no_form                   = 1
        no_function_module        = 2
        OTHERS                    = 3
    IF sy-subrc <> 0.
    ENDIF.
    CALL FUNCTION 'SSF_GET_DEVICE_TYPE'
       EXPORTING
         i_language             = sy-langu
       IMPORTING
         e_devtype              = w_compop-tdprinter
       EXCEPTIONS
         no_language            = 1
         language_not_installed = 2
         no_devtype_found       = 3
         system_error           = 4
         OTHERS                 = 5.
    IF sy-subrc <> 0.
    ENDIF.
    w_compop-tdnoprev               = 'X'.
    ls_control_parameters-getotf    = 'X'.
    ls_control_parameters-no_dialog = 'X'.
    DATA: it_isu_bi_bill_s_doc_header TYPE isu_bi_bill_s_doc_header.
    CALL FUNCTION '/1BCDWB/SF00000426'
       EXPORTING
      ARCHIVE_INDEX              =
      ARCHIVE_INDEX_TAB          =
      ARCHIVE_PARAMETERS         =
        control_parameters         = ls_control_parameters
      MAIL_APPL_OBJ              =
      MAIL_RECIPIENT             =
      MAIL_SENDER                =
        output_options             = w_compop
        user_settings              = 'X'
         pwb_data                   = it_isu_bi_bill_s_doc_header
         c                          = l_c
         wa_bill_ht                 = wa_bill_ht
      IMPORTING
      DOCUMENT_OUTPUT_INFO       =
        job_output_info            = w_return
      JOB_OUTPUT_OPTIONS         =
      EXCEPTIONS
        formatting_error           = 1
        internal_error             = 2
        send_error                 = 3
        user_canceled              = 4
        OTHERS                     = 5
    IF sy-subrc <> 0.
    ENDIF.
    it_i_otf[] = w_return-otfdata[].
    CLEAR w_return-otfdata[].
      data: x_printparams   type eprintparams,
              it_ranges     type standard table of efg_ranges,
              wa_ranges     type efg_ranges,
              c_fclass(12)  type c value 'IS_U_BI_BILL',
              lt_itcoo      type standard table of itcoo,
              g_docno       type erdk-opbel.
    clear: wa_erdk.
      select single *
        from erdk
          into wa_erdk
            where opbel = l_docno.
      x_printparams-formkey   = wa_erdk-formkey.
      x_printparams-tdnoprev  = 'X'.
      x_printparams-tdnoprint  = 'X'.
    x_printparams-NO_OPEN_FORM = 'X'.
    x_printparams-NO_CLOSE_FORM = 'X'.
      x_printparams-tdgetotf = 'X'.
      x_printparams-formclass = c_fclass.
      wa_ranges-low           = wa_erdk-opbel.
      append wa_ranges to it_ranges.
    data : x_header  type  rfgen-header.
      call function 'EFG_PRINT'
        exporting
        X_HEADER                    = X_HEADER
          x_printparams               = x_printparams
        X_ARCHIVE_INDEX             =
        X_ARCHIVE_PARAMS            =
         x_dialog                    = ' '
        X_RECIPIENT                 =
        X_SENDER                    =
        X_STRN_COLLINFO             =
        X_TABN_SEL_PER_FCLASS       =
        REF_LOG                     = CL_EFG_LOG_NULL=>S
        I_FLG_EMSG                  = '+'
      IMPORTING
        Y_ITCPP                     =
        Y_RDI_RESULT                =
        Y_PRINTPARAMS               =
        Y_SF_RESULT                 =
        Y_TAB_GENDATA               =
        Y_TABN_SEL_PER_FCLASS       =
        Y_PDF_RESULT                =
        tables
          xt_ranges                   = it_ranges
        XT_RANGES1                  =
        XT_RANGES2                  =
        XT_RANGES3                  =
        XT_RANGES4                  =
        XT_RANGES5                  =
        XT_RANGES6                  =
        XT_RANGES7                  =
        XT_RANGES8                  =
        XT_RANGES9                  =
         yt_otf_data                  = lt_itcoo
       exceptions
         not_qualified               = 1
         formclass_not_found         = 2
         form_not_found              = 3
         formclass_invalid           = 4
         print_failed                = 5
         form_invalid                = 6
         cancelled                   = 7
         func_invalid                = 8
         not_authorized              = 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.
      data: pdf_bin type xstring,
            l_size type i.
      call function 'CONVERT_OTF'
        exporting
          format                = 'PDF'
          max_linewidth         = 132
        importing
          bin_filesize          = l_size
          bin_file              = pdf_bin
        tables
          otf                   = lt_itcoo[]
          lines                 = it_i_tline
        exceptions
          err_max_linewidth     = 1
          err_format            = 2
          err_conv_not_possible = 3
          err_bad_otf           = 4.
      call function 'SCMS_XSTRING_TO_BINARY'
        exporting
          buffer                = pdf_bin
      APPEND_TO_TABLE       = ' '
       importing
         output_length          = l_size
        tables
          binary_tab            = it_solix_tab
      att_head-file_type = 'B'.
      att_head-file_name = 'Billing Revision'.
      att_head-file_extension = 'PDF'.
      att_head-language = 'EN'.
    l_wid = wid + 2.
      call function 'SAP_WAPI_ATTACHMENT_ADD'
      exporting
        workitem_id          = wid
        att_header           = att_head
        att_txt              = 'Bill Assessment'
        att_bin              = pdf_bin
       document_owner       = sy-uname
       language             = sy-langu
      DO_COMMIT            = 'X'
    importing
       return_code          = test_flag
       att_id               = att_id
    tables
       message_lines        = message_lines
       message_struct       = message_struct.
    endfunction.
    when execute code it shows attachment successfully created but it does'nt show in attachment.
    Edited by: GURPRIT BHATIA on Jun 18, 2010 8:46 AM

    Hi,
    Pls explain it.
    I am also facing problem.
    Thanks
    Ragaven

Maybe you are looking for

  • Ms access  and ms excel to oracle

    Hi, The client has some excel files and ms access.i don't have proper idea about that. 1,how to convert from these to oracle using oracle migration workbench or covert the migration by plsql procedures? 2,which method is best method extract the data

  • In IE website submenus scroll/drop down in Firefox submenu does not scroll down

    In Firefox when I click on a website sub-menu such as credit card info, date, or choose from list no drop down of choices occurs I do not have this problem in IE ..... for example below this box is a question "This happened" with an open box and arro

  • Cannot buy app in purchase

    when I buy app in app store or strickers in line app. it's will be have... [ Your purchase wasn't completed successfully. Please check your (MY ORDERS) page. If you see an item you don't recognize, please contact the help] and... Your purchase Could

  • Problems Connecting Acer Iconia W510 Wirelessly to...

    Because my daughter has a disability. She has been given an Acer Iconia W510 by her school for her work in school and so she can do her homework at home. I have tried everything but I cannot get it to connect wirelessly to my BT Infinity Broadband. T

  • Audio track mapping problem

    I am trying to set up my audio tracks so the left channel is on audio track 1 and the right channel is on track 2. I have tried, mono, stereo and adaptive tracks and they always put both channels on only one track. How do I change this?