Workflow-method

i have a leave request workflow and i need to check the employee existence before i send the mails
now i inserted the BOR bus1065 and the method existence check in task and
added to step i have done a binding from method to task to workflow for return variable  this nethod uses pernr as the object-key
Do i also need to send this pernr from workflow to the method in this case ?

Hi Kittu,
There is no point in passing the PERNR to the method. It doesnot have PERNR as import parameter. You can do one thing.
1. Create a subtype for BUS1065.
2. Create a method with import parameter as person number (PERNR) and export parameter as RETURN.
3. copy the code from the method 'Existancecheck' into your method.
4. Implement the method and then implement the subtype.
This will for for sure. If you have any questions reply back.
I am not sure if you can change the existance check method and add an import parameter to it.
Regards
Gautham

Similar Messages

  • Flash  workflow method

    I have a few questions about Adobe Flash and i'm hoping you
    guys could help me
    out.
    One of my assignments is to find a better way to develop and
    structurize Flash applications
    (animations/motion graphics/ websites).
    I'd like to know if there is a way to give more structure in
    a Flash project (kind of a like a workflow method)? That both
    designers and developers can work faster on a single flash project,
    making flash documents/projects better organised (in the library as
    well as the timeline/layers and the names of movie clips, buttons
    and graphics). I searched on the Adobe site, lots of blogs and
    forums. I have found a lot of information so far, but i'm still not
    certain
    about some things, so that's why i posted this.
    Thanks in advance for any info!
    greetings

    Hi,
    There currently isn't a generally available way to extend Builder's design view.  It is something that we've considered adding as a feature, though, so I'd be glad to hear more about how you would use this.  Drop me a note directly and we can discuss.  It's buntel at adobe dot com.
    Thanks!
    Tim

  • Calling report program to my workflow method

    hi friends
        I have writen the logic to find the email id for travel admin now i want to call this  REPORT program to my workflow method. How can i do that. I know how to do that in function module but i want to try with report program. How to get the import and export parameter in the report program. I know there is some thing called memory id export but i dont no how to do that. Can any one show with sample code.
    Regards
    vijay

    Hi Vijay,
    You can make use of the following sample code.
    BEGIN_METHOD ' ' CHANGING CONTAINER.
    export itab to memory id 'PQR'.
    submit zMM_R_BUDJETDISP AND RETURN."exporting list to memory and return.
    END_METHOD.
    In your program you can use
    import itab from memory ID 'PQR'.
    Here Itab is a internal table.
    Similarly you can define single data elements as well.
    you can use this syntax to import, export parameters.
    let me know if you have any queries.
    Regards,
    Raj

  • Getting "SYSTEM ERROR" while generating a PDF in a Workflow method.

    Dear All,
    I'm getting a "SYSTEM ERROR" when I'm calling the below function module in a Workflow BO Method.
    CALL FUNCTION wa_funcnm
       EXPORTING
         /1bcdwb/docparams  = fp_docparams
         invoice                     = invoice
       IMPORTING
         /1bcdwb/formoutput = fp_formoutput
       EXCEPTIONS
         usage_error        = 1
         system_error       = 2
         internal_error     = 3
         OTHERS             = 4.
    The aim is to generate the PDF and store it in DMS. Please let me know, if I'm going wrong somewhere. Any kind of inputs would be sincerely appreciated.
    Regards,
    Tushar.

    Hi Tushar
    You need to the following parameters when calling FM. Background WF process cannot handle dailog.
    fp_outputparams-nodialog = 'X'.
    fp_outputparams-getpdf   = 'X'.
    Refer to Thread below
    Creating Attachments to Work Items or to User Decisions in Workflows
    CALL FUNCTION 'FP_FUNCTION_MODULE_NAME'
        EXPORTING
    i_name     = l_formname
        IMPORTING
    e_funcname = l_fm_name.
    *   E_INTERFACE_TYPE           =
    fp_outputparams-nodialog = 'X'.
    fp_outputparams-getpdf   = 'X'.
      CALL FUNCTION 'FP_JOB_OPEN'
        CHANGING
    ie_outputparams = fp_outputparams
    EXCEPTIONS
    cancel          = 1
    usage_error     = 2
          system_error    = 3
    internal_error  = 4
    OTHERS          = 5.
      IF sy-subrc <> 0.
        CASE sy-subrc.
          WHEN OTHERS.
    ENDCASE. " CASE sy-subrc
      ENDIF.
    fp_docparams-langu = 'X'.
    fp_docparams-country = 'US'.
      fp_docparams-fillable = 'X'.
      CALL FUNCTION l_fm_name
        EXPORTING
    /1bcdwb/docparams  = fp_docparams
    emp_info           = fs_per_info
        IMPORTING
    /1BCDWB/FORMOUTPUT = FP_FORMOUTPUT
    EXCEPTIONS
    usage_error        = 1
          system_error       = 2
    internal_error     = 3
    OTHERS             = 4.
      IF sy-subrc <> 0.
        CASE sy-subrc.
          WHEN OTHERS.
    ENDCASE. " CASE sy-subrc
      ENDIF.                               " IF sy-subrc <> 0
      CALL FUNCTION 'FP_JOB_CLOSE'
    *   IMPORTING
    * E_RESULT             = result
       EXCEPTIONS
    usage_error          = 1
    system_error         = 2
    internal_error       = 3
    OTHERS               = 4
      IF sy-subrc <> 0.
        CASE sy-subrc.
          WHEN OTHERS.
    ENDCASE. " CASE sy-subrc
      ENDIF.                               " IF sy-subrc <> 0.
    ENDFORM.                    " GET_FUNCTION_MODULE
    *& Form  CONVERT_PDF_BINARY
    FORM CONVERT_PDF_BINARY .
      CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
        EXPORTING
    BUFFER                = FP_FORMOUTPUT-pdf
    *   APPEND_TO_TABLE       = ' '
    * IMPORTING
    * OUTPUT_LENGTH         =
        TABLES
    BINARY_TAB            = t_att_content_hex .
    ENDFORM.                    " CONVERT_PDF_BINARY
    Regards
    Sandy

  • Workflow method problem`

    Hi,
      In my workflow i want to call one report in bor object i want to create method can any body tell me what are the attributes of method that i have to create or any other solutions

    am getting the error when object type ->
    Implemented ----"
    Object type components have higher release level than object type"
    First you have to Implement the Objectype Components , I mean you have to first come from Bottom to TOP 
    EDIT->Change Release Status> Object Type Components ---> To be Implmented (from Bottom to Top) Except the Object type
    Now Click on the Business Object and the again
    EDIT->Change Release Status> Object Type---> To Be IMplemented
    Now once you have IMplemented every thing you  need to Release them
    From Top to BOttom
    Click on the Business Object and the again
    EDIT->Change Release Status> Object Type---> To Be Released
    On Key fields and methods
    EDIT->Change Release Status> Object Type Components ---> To be Released
    And after this you have to generate
    this is how you have to implement and release and GEnerate the BO

  • Another asynchronous workflow method question

    Hi all.
    Your previous post on this topic was great people!!
    Right now I have a problem with an asynchronous method, on concrete words, is the method from object BUS2081, method EDIT.
    I've created a task based on that method and I have put some terminating events on that task but looking at the WF log on runtime, the task is only waiting for some of the events and ignoring just the ones i need. I don't know what the problem is because i have configured the events exactly on the same way....any idea of what is happening?
    I've solved this incidence including some parallel branches awaitiing for the events, so I'm "faking" in some way the "asynchronous" task, but this is a cheap trick...
    Thank you and best regards.
    Ismael

    Hi Ismael,
    I have a quick question regarding the BUS2081 - EDIT method.
    I'm using the Edit method with terminating events as POST, Delete, Park and Complete.
    Assume I have workflowed the invoice for GR missing scenario once its is done I will try and Post the Invoice document if it still has errors (say Price mismatch)then I want to Repark the document using the ' Save park document' icon.
    As there will be errors I can't do 'Save as Completed'. 
    Here I can't Repark the document until I Complete it.....:( I don't know how to handle this situtation.
    Any advice is helpful.
    Thank you,
    Renu.

  • Workflow method attributes

    Hi
       In my workflow i have created one task inside the task i should  refer to method in BOR  can any body tell me what are the attributes we have to refer to method in my method i will pass matnr as input parameter and inside the method i will update some values to mara table i.e the logic inside the method going to do. so i want to make attributes of method as synchronus or what and all the attributes should be set for method .

    Hi,
       Provide Material Number as your key field and If you are updating Table MARA then you can have ersda, ernam, laeda, aenam, mtart, matkl, ean11 can be given in the Attributes which needs to modified. Before writing a method or creating a ZMETHOD search if there ar eany standard method to do the same.
        If you are not satisfied please let us know what table you need to update or your process eloboratly.
    Thanks and Regards,
    Prashanth

  • Workflow method where used

    Hi All,
    I have a Business object ISUSMORDER and in this business object i have a method
    ZISUSMORDER.GetStreetLightInfo
    i want to know in which workflow this method is getting used .
    I tried SWETYPV but i am not able to find it .
    i s there is nay way to find out the where used list of thisworkflow method .
    Thanks in advance
    Anit gautam

    For that object method, you can go to table HRS1201then fill in SWOTP, SWMTD(Object and method).
    Then you will get Standard Task OTYPE = 'TS'.
    then use those tasks in table SWDSSTEPS, you will get workflow number and version. Or you can use it one-by-one in transaction PFTC and click where used list.
    Cheers,
    Chaiphon

  • Workflow/Method/Plugin for clients to rate images

    I was wondering if anyone uses a web module method or workflow or plugin that would allow clients/visitors to rate images, and also allow them to be able to change/update the ratings they may have previously given image(s).
    Example, would be much like the LR1+2 allows us to rate images and then group, view, etc images based on ratings.
    I'm sure there are tons of html/php scripts that can do this... but I was hoping to apply this directly within LR2 and my workflow as some kind of output.
    I'm thinking because of the need to allow clients/visitors to be able to alter/update rating numbers, I would ned to implement a database or maybe an updatable XML file listing the images.
    The closest thing I can find is TTG Client Response Gallery, but that doesn't provide for what I really need (for visitor to be able to return and update rating).
    Anybody have any clues?

    LrViewer can be downloaded from http://basepath.com/ImageIngester/LRViewer-info.php

  • Help with a workflow / method please.

    Hi,
    I'm new to this forum and a three month novice, so please bear with me.
    What I’m trying to do is create a “photo album” where the 3D camera moves from photo to photo and as it reaches each photo, the video there plays, then stops, then we move on to the next photo.
    I have created an animatic to show the idea:
    Link: [http://reels.creativecow.net/film/animatic]
    I’m happy that I understand how to use framing and hold frame behaviors to get the movements and the video segments to play.
    But, here’s the question:
    Each video is an edited piece, maybe an interview, of about two to three minutes in length.
    So,how best to assemble this?
    Do it all in Motion, bring in all the 2/3 minute videos and then render, or,
    Create the camera motion and then render out and composite the video segments in FCP.
    ( I do want to keep the perspective views of the video segments as shown, not bring the video to full frame )
    Or is there another method / way to do this more easily?
    All suggestions will be gratefully received.
    Regards, Euan.

    Hi Adam & Christina,
    Thank you both for your help.
    Sorry for the delay in answering, but I've been putting your thoughts to the test.
    Adam, I hadn't made the connection that I could put the motion project back into FCP without rendering it first.
    That helps a great deal.
    Perhaps you could explain more about that still frame and how it would be of help?
    Christina, yes, templates make sense. However the insert video segments to go in the drop zones would be of varying lengths. As far as I know, I can't alter the duration of the template within FCP?
    I have thought of a variation on the above thoughts.
    A) make the main Motion camera animation with drop zones, save as template.
    B) make another template where I have removed all objects except the drop zones.
    C) bring both templates into FCP, where I can slice and extend template A to suit the length of the videos put into template B.
    I am proposing putting template A on V1 and B on V2.
    I am hoping this will give me timing flexibility, without having to go back and forwards to Motion from FCP.
    Do you think this is feasible?
    Many thanks, Euan.

  • Background method in workflow hangs

    Hi All,
    I have a background method in workflow which calles a report. Actually the report calles smartforms and I am storing OTF data on application server. I am not displaying the print preview. I am just stroring the OTF data on application server.
    When I explicitely execute the report from SE38 in background (using F9) file is getting generated on application server. But when I call this report from method of a workflow, method execution remains in process. And file is not generated.
    I have used the RETURN statement while calling it from workflow method. What could be the reason for this??
    Thandks in advance,
    Neha Yeralkar.

    Hi,
    Calling transaction and Submit programs are usually reserved for dialog methods, where essentially all the workflow needs to do is take the agent to the transaction or program where the user can complete the business activity. For background methods usually call function modules or BAPIs are used where the business activity is performed automatically without any user involvement. Moreover it will help you in handling exceptions returned from Function modules. Also define the method exception explicitly based on the exceptions of FM, inorder to track it down if it occurs.
    Regards, Saud

  • Running Workflow step in Background & code inside doing Foreground proceing

    Hi all,
    I am extracting an attachment (file) from DMS (document management services: txn: CV02N) to the presentation server in Background Mode.  Again my Function Module is uploading the file in the forground Mode and at this point workflow is giving error about the presentation server. 
    Please can anyone help me if what am doing is wrong, and if yes then what would be the proper solution.
    Thanx in advance.  Points will be provided for sure
    Anand

    Hi Mike,
    Thank you so much for your help. 
    I will try to explain you the problem.
    The problem is I need to extract the contents of file attached to DMS, which is available only as a link, so using the BAPI_*CHECKOUTVIEW I need to download it on the presentation server so that file / attachment will be available on presentation server and then I can upload the file / attachment in SAP and will read its content in internal table.
    Now the problem is I am using above FM in a Workflow method.  Workflow is doing the processing via WF-BATCH which is a background user by default.  Now the question is
    1) How can i get the file / attachement from the link in the DMS in the background mode and again upload it in SAP in the background mode??  (I tried it but the only BAPI i found is given above, which is creating a local file based on the link in DMS)
                                                   OR
    2) How can I run / test the workflow in foreground mode(by default WF-BATCH (system) is running the workflow in background mode).  But then it is always advisable to run the workflow in background mode until an agent assignment (user interaction) is necessary.  And I guess whosoever will run workflow , it will run by system user only, which is background user.
                                                   OR
    Any other solution you can think of.

  • BPM or Abap Workflow

    Hi Experts
    I have to implement a Sales Order process for my client.
    Overview of the process which needs to be implemented:
    A company sells xyz product. So the customer places an offer for abc product at some price. The request goes to the sales department's manager who checks the customer demands and accepts/rejects/edits the request according to some rules like mkt price. If he accepts the offer, it becomes the contract for which sales order is created and invoicing is done.
    Company can edit the request, updated the price and sends back to customer. If customer is happy it becomes a contract again for which sales order can be created.
    I need to implement the scenario using webdynpro for abap or java.
    My Question:
    I have implemented such scenarios using UWL and SAP Abap workflows. I am new to CE 7.3 version and BPM concept.
    Experts please guide me which would be the best way to implement such scenario. Should I stick to normal abap workflow method or can I do it through BPM? What would be the challenges if I go by BPM approach.
    Thanks and Regards
    Sonal

    Hi Sonal,
      You didn't specify all the systems involved in this process - i.e. is it one central ERP, multiple SAP and non-SAP? The primary use case for SAP NetWeaver BPM is to orchestrate processes across multiples systems, presenting the user with one central location to conduct their work (UWL) and a consistent user intercace (Web Dynpro).
      If your process only uses one central ERP system for all backend tasks I would (not knowing more details) probably favor a WDA and business workflow based solution. Going outside of the ERP system to implement it wouldn't gain you very much if anything could make your landscape more complicated and create more work. On the other hand, if multiple backend systems are involved this would probably be a good candidate for a SAP NetWeaver BPM based process. Rough generalities, for sure, but you asked :-).
    O.

  • Task Description Long Text in Workflow

    Hi,
    I need to display a very long URL in an e-mail notification but cannot get the URL to stay in one line, that is, it wraps around.  Can anyone help?  The extended line /= command doesn't work.
    Thanks,
    Marcia

    Hi Ute,
    I'm not using RSWUWFML2, the notification is sent directly from the workflow, method SENDTASKDESCRIPTION.
    Thank you,
    Marcia

  • Workflow not move to next level approver...

    Hi Friends,
                           I have developed workflow for appraisal. Employee enter his appraisal ratings and submit  and then first,second,third level approvers enter their ratings one after another submit.
                            whenever one level approver submit,i have updated th status in our customized table and pass the status to workflow method through Set Parameter command. For example ,when employee enter his rating and once submit, i have update the status field in table with value 'Pending with First Approver' and pass the status 'pending with first approver' through Set Parameter command to workflow method. In workflow methods , I receive status value using Get Parameter command and based on tht value respective workflow item will moved to inbox of First level approver.
                      Its working fine. But  SOME TIMES status updated in table properly and workflow item keep retain in same level inbox even after submit successfully,instead of move to next level approer.
                      For example, once employee submit his appraisal rating,status 'pending with first level approver' updated in table properly. But workflow item still keep retain in employee inbox only and first level approver do not receive workflow item in his inbox.  I  tried to refresh that variable which i used in set parameter/get parameter command . but same proble continue.Could you please suggest me what will be reason for this issue?. Thank you.
    Regards,
    Hockteck..

    Hi Rick,
                           Thanks for your response. I am using Z table for reporting purpose. In Z table I update status like 'pending with employee','pending with first approver',etc. If the end users wants to know the status of apprisal for a particular employee,they can use this report and react according to the updated status.
                                               I have mentioned in this thread about  both this Z table update and pass status using set parameter id, because both these statment executed after employee or approvers submit. But Z table updated successfully and set parameter not passed successfully.
                         In my workflow I am using Loop step and this loop will continue to run  till the status become 'Completed'. when third level approver submit his appraisal details that time i pass the status 'Completed' to complete the workflow .For employee,first and second level approvers I pass the status like 'Pending with Employee','Pending with First','Pending with Second'.
                       Whenever I pass the status to workflow,using Function Module i find the next level approver based on the status. For example If the status is 'Pending with First' then in the function module I find the first level approver and pass his UserId as current agent name. Whenever this issue happen I debug and check the current agent id . But it shows only Employee ID.If the status 'Pending with First' passed to workflow properly then FM could have pass the First level approver ID. But since current agent id shows Employee Id, workflow keep exist in Employee inbox ,even after he submit successfully.
                         If 10 employees submit his apprisal ratings,for one or two employees this issue happen and for rest of the emplyess workflow completed successfully with all  approvers submissions. Any suggestions?.
    Regards,
    Hockteck.

Maybe you are looking for

  • Cant accept agreement?

    On my notebook it wont go all the way down to the accept button to agree. I really hate having to go to town to print sumthing, please help solve this problem

  • Jpeg shows up when previewing in safari, but not when viewed after uploading to browser. CS5

    Hi, I'm afraid I don't know the jargon as someone else has set this up for me and I just make new pages based on the templates. But I've just uploaded 9 new pages all with 9 small images linked to the corresponding 9 large images. All of them work ex

  • Zero is getting truncated while XI is creating a CSV file

    Hi, Scenario is IDOC to File. in the IDOC i get some Serial number as 00000007856465 in the output CSV file i need this value as 07856465 Here when i run this map in the ESR Message mapping i could see 07856465 this value fine but while posting at th

  • Closing Cockpit: Different Fiscal Year Variant in Task List

    Dear All, I want to implement the closing cockpit for several bukrs who have different fiscal year variants. I have definied one template for all bukrs. When creating a task list I only have the possibility to define one fiscal year variant for the s

  • SSRS Matrix not showing all the entry for a Column Groups

    I created a Matrix in my SSRS report and for some reason if the COLUMN GROUP has more than one entry it only shows the first one and not the second or consequent entries. I opened a question in SO and here is the link: http://stackoverflow.com/questi