Problem in zmethod of bor object?

hi all,
I have developed a workflow in which i have created one step to call a zmethod.
and one function module is called inside this method with input parameters doctype,docyear and fyear.but the WF goes into error at this step.
In log it is showing the message as
'Application method has processed message 'E'.'
In log input parameters are passing properly and
when i am trying to esxecute method thruogh zobject it is working fine.
Regards,
Arpita

I have done all the things mentioned..
the error that i am geting in log is:
Application method has processed message 'E'; see long text
Message no. SWF_RUN669
Diagnosis
The workflow runtime system has called an application method in a tRFC or background context. A message was processed within this application method. This results in work item processing being terminated in this context.
The processed message has the following parameters:
ID: ZFI0
Type: E
Number: 034
System Response
The workflow runtime system has recognized this status and has caught the message. The status of the active work item is set to 'ERROR'.
Procedure
Identify the message statement in the application method and replace it with the command "Message....Raising". If the method is part of the standard shipment, create an OSS message for the relevant application component.
Procedure for System Administration
Once you have corrected the method, restart the workflow instance concerned by using Workflow administration.
I am not but loks like authorization issue.
Kindly help.
Thanks,
Arpita

Similar Messages

  • Problem testing Standard BOR object : CATS

    Hey SAPians,
    I have issue with one of the standard BOR objects in SAP.
    BOR Object: CATS
    1. When i try to test the object, it gives a program dump, both in Development and Production environment.
    2. The dump contains the following text: "ASSIGN_LENGTH_0"
    This occurs in program SWO_DIALOG_OBJECT_KEY_EDIT". A sample screenshot of the dump location is given below:
    The Error occurs at LINE NO 68
        65   SORT info BY editorder.                                  
        66   LOOP AT info.                                            
        67     MOVE-CORRESPONDING info TO objid.                   
        68     ASSIGN old_id+objid-offset(objid-ddlength) TO <obj_id>.
        69     IF objid-outlength > width.                            
        70       width = objid-outlength.                             
        71     ENDIF.                                                 
        72     IF objid-memoryid NE space AND                         
        73        <obj_id> = space AND                                
        74        objid_control-display = false.                      
        75       GET PARAMETER ID objid-memoryid FIELD <obj_id>.      
        76     ENDIF.                                                 
        77     objid-value = <obj_id>.                                
        78     APPEND objid.                                          
        79     ADD 1 TO height.                                       
        80   ENDLOOP.
    The problem according to me is in the field "DDLENGTH" which holds value '000000'. If this field value is changed at runtime, then everything works perfect.
    Now, the question is from where his value gets populated ??
    Further debugging led me to a Function module : "SWO_QUERY_VERBS"
    which exports a internal table with values that match exactly to the values in internal table "INFO" in the above code on whom the loop is executed.
    Ppl, please guide me on this function module or the source of the function module contents...
    Is it any config issue ?? If yes, what needs to be done ??
    If not, then how it needs to be resolved ???
    Thanks in advance.
    Shashank Shirali

    Hey Mates, thanks for your valuable suggestions. However, the problem was solved. I regenerated the BOR object "CATS". This is the only thing i did. This may be due to inconsistencies during upgrade....
    Thanks
    Shashank

  • How to create an inbox item with attached BOR object?

    Dear Colleagues,
    Does anyone of you know a simple way to create inbox items for a user?
    I would like to use the inbox for notifying users and attach a BOR object to the message as attachment. Is there a good and plain way to do that?
    It would also be good, to be able to do the determination of the receiver by a customizable responsibility or something similar, so that it is not hard-linked to SAP user accounts.
    Does anyone of you know a solution for this, that is not too complicated?
    Also I read that in the future notifications should be usable in the UWL (Universal Work List).
    I did not find anything but marketing material on UWL and I would not be terribly happy to set up a portal just for sending simple notifications/work items to people. Does anyone have a clue on how to accomplish this?
    That would be wonderful, thank you.
    Regards
    Christian

    Dear Scott,
    Thank you for this hint, the function looks promising.
    Is there a way to specify a receiver group and a text for the text part of the message?
    There is a Parameter called RECTYPE, which is expected to contain a "task id". The text seems to be derived in some way from the object type. Do you know any documentation or sample where this is used?
    How do I specify the recipient and the message subject and text?
    Concerning a single-step workflow: I don't know what the advantages/disadvantages are. The system receives a message or discovers a problem and wants to inform the related user.
    A simple workflow should be possible, but I have no idea what that means in terms of complexity for implementation and customizing.
    Sorry for so many questions and thank you.
    Christian

  • Function module parameters declare BOR Object

    I dont know if this is even logical...
    I need to create a function module which will be used in my  program..
    Can I create an object of BOR object type say 'Sales Order'  and pass it as an export parameter in Function Module..
    i.e i will pass the obj key and obj type as import..
    I want to instantiate that Sales Order.. and pass the whole Sales oRder as export/tables  parameter..
    I know swc_object_create is supposed to create an object but as i can see it only has the handle.. and it is of type swc_object..
    But i want to export  the whole Instance .. so that i can call the methods of the object  in my original program..
    Regards,
    krishna

    Hi Ravi ,
    I simplified my requirement but my actual requirement is with workflows...
    I have a scenario in workflow where,
    1.Activity step to fill internal table with sales order numbers
    2.loop at sales order numbers internal table
    3.Activity Step to Instantiate  based on order numbers
    4. Activity Step to Edit these sales orders
    5.end the loop
    For the above logic in workflows i have separate Activity step for instantiation..What I am thinking of is to instantiate the sales orders and fill the instances in the internal table in Step 1 instead of just order numbers..In the BOR method/F.M  of Step 1 I need to export the Instance of the Sales Orders (this is my actual question/problem, how do i instantiate while coding??swc_object_create, creates only a ref to object ...If I am able to create the object what should the type be in export /tables parameter)
    This way i can remove the loop and offer parallel processing (from miscellaneous tab in activity step) and send multiple Edit workitems to user  at Once instead of one after the other..
    Please let me also know how you would handle the above situation, i am very new to workflows and BOR.

  • Delegation of a BOR-Object not working

    Hi Experts,
    in order to implement some cutomer-specific workflows in HCM Performance Management, I would like to create the corresponding events.
    Therefor I did the following:
    1. I created an Object YAPPR_DOC as a subtype of APPR_DOC (ObjName: YAppraisalDocument; Programm: YRAPPR_DOC; Komponent: H).
    2. I created a new event in YAPPR_DOC.
    3. I set the new event as well as the BOR-Object itself to "implemented" and hit the "Genrerate"-Button.
    4. I set up a delegation for BOR APPR_DOC to YAPPR_DOC in SWO6.
    I think at this point I should see the new event in YAPPR_DOC when viewing the original BOR APPR_DOC, right? Unfortunately the new event isn't shown, altough the header data proves the existance of a delegation from APPR_DOC to YAPPR_DOC.
    Did I miss something?
    Anny hints?
    Thanks a lot in advance
    Chris

    Hi Suresh,
    the problem is, that the event cannt been seen in the appraisal definition's status flow as well.
    I added a customizing entry for events in phap_catalog, which has the same technical name as the event I added to YAPPR_DOC.
    In the status flow I can only see an empty row. It looks like the event cannot be found in APPR_DOC and so no discription is read.
    Nevertheless in SWDD I am able to select the new event as the starter for a workflow.
    Regards
    Chris

  • Bindings between two bor objects

    Hello
    I have the following:
    I have created a workflow template(ws) that uses a bor object in its container (given by SAP). I have then created an activity in the workflow builder where a Task(TS) is created and assigned. The Task uses a copy of the bor object used in the workflow template. My problem is that I cannot find out to get the campaign Id, from the ws into the task. I know it has to be done in the binding  - but how??
    Thanks for your  help
    Claus

    Thanks for the answer
    When I do the bindings I get the followings error.
    The object types '[BO.BUS2010022]' (source) and '[BO.ZUS2010022]' (target) are not compatible
    The two objects are the copies of each other the only different is that in the new object the US2010022 I have created a new method.
    Help please
    Thanks
    Claus

  • BOR object issue

    Hi,
    I have added a method to an existing BOR object but I made its release status to obsolete accidentally.
    Now I want to make some changes to the method added.
    I may have to delete it as per our requirements.
    Please suggest. Its too urgent.
    regards,
    Binay.

    hi,
    deleting it and creating it anew is the fastest solution to your problem.
    alternatively you could check which tables the method is stored and then hack that table, but this will eventually take more time than deleting and creating.
    Regards, Rob

  • Problems starting tcode from swo1-object via gos (so_sendobj)

    Hi,
    working with gos around some swo1-object, i got the problem to start a transaction which is called from an object method: the transaction starts but the wished details of that item do not appear as expected.
    When I start the test environment within tcode SWO1, and at first, I create an instance from this object giving it the right key (for the wished item) then i succeed in starting the bespoken transaction from within that method showing me the details for that item.
    In the last days, I have read and learned a lot about the possibilities and interdependences of the gos mechanism using many of the hints and advices which were given here in the forum in the past. But I'am not able to achieve the wished effect via gos (send object with note) from within our application.
    My guess, we need to start an instance of the object before we can show details for the wished item. In the normal case, the application shows at the left windows with containers/trees for search filters and items and within the main window on the right the details for that item. Starting this transaction a popup-window appears (showing the standard filter) where you can give the wished item no.
    As I remarked, starting all these things from within the swo1 environment everything is functioning as expected...
    Is there anybody who has made a similar experience and can give me some advice what we have to do to succeed in?? Is there any function module of kind SWU..., SWE... SWO... or something else which is to be called in front of that task???
    I forgot to mention that within our application, there is the correct? built up of the gos-object via class cl_gos_manager constructing the needed object and the needed key, so when calling the gos-action, the bypassed sap user finds the link in the inbound position and will be directed to the correct transaction with the side effects described before.
    Wish you all together a happy new year.
    Kind regards
    Christian

    My freind  ,
    in the   Bussiness Objects  migatration there is  no select-options  like   
    sending  range of data  or the multiple selections.
    for this we need separate   loop structure   where in we can send the multiple   data  and everytime it calls the  BAPI Obect  evertime  individaully ,
    if you want the  you have to  define  one  new   BOR  object  (Custom bapi)...then  rignt  one  function module for   select-options and  attach it to  you method  in the BAPI   .
    So that   your  BAPI calls  in the SAP  function Module   for  range of data .
    Reward  points if it is  usefull ....
    Girish

  • BOR Objects in ABAP OO class

    Hi
              I am using a BOR objects, but in one of my activity I am trying to use a Z class. In the method of the Z class I want to get some of the attributes of the BOR class.
    I have followed the same approach ( Defining constant ) as mentioned in the blog by Jocelyn Dart.
    I am able to get the Binding in the workflow but not able to get the attribute value or instantiated object in the method.
    How do I get those attributes or the instance of the BOR object in the method. Am I missing something?
    Thanks
    Dhaval

    Hi
               Well I wanted to achieve something as follows:
    1) The workflow was getting triggered from an Event of the BOR. So the binding was from the event to the workflow
    2) Now the second step in the workflow was a method of a Zclass in the workflow. Somehow I was not getting the key of the BOR to the class so that the class can be instiated. ( Say the PR number or PO number which triggered the event)
    I am able to do it using static attribute of the class to instiate the class. I do know whether the approach is right, but somehow it resolved my issue.
    1) I declared a static attribute in the class.
    2) Defined a container and hold the value in the container from the event object id. ( This holds the PO number which triggered the workflow )
    3) In the binding between the workflow and the task where my class was used, I passed the container to the static attribute of the class.
    4) In the class method  FIND_BY_LPOR, I used the static attirbue instead of LPOR-INSTID to create the object.
    Thanks for you help.
    Regards
    Dhaval

  • Ps CS6 Problem: Transform applied to Smart Object fails to transform an attached Smart Filters Mask

    Ps CS6
    OSX 10.6.8
    Problem: Transform applied to Smart Object fails to transform an attached Smart Filters Mask.
    I mean a Transform, including Free Transform, as found in the Edit menu.  A simple move by the Move Tool is OK.
    A workaround until this bug is squashed is to encapsulate the Smart Object + Smart Filters + Filter Mask inside another Smart Object and transform that.
    However, that will not be a satisfactory solution in some cases. If a filter has size parameter(s), e.g. Gaussian Blur radius, a scaling or warping/distorting transform applied after the filter will obviously differ from the filter applied after the transform.
    In any case, the workaround is inconvenient to subsequent editing and experimenting with filters and masks.

    R_Kelly wrote:
    I don't think that's a bug since the implementation seems to be purposely done.
    It's been that way since photoshop cs3.
    If its been like that since CS3 then I think it's a bug which remains because nobody (or not enough people) has complained before.

  • BOR Object and ABAP Class

    Hi,
        Can anybody say when to use BOR object and Abap class in the task with an example.
    Thanks,
    Mugundhan

    There is no any specific condition or rule that for this purpose you need to use BOR and Class , it depends on your requirement. not only the requirement but also the new techniques to make classes not just as simple way to create objects but when you use classes in the Workflows they are not simple classes but they are BUSINESS CLASSES which makes a lot of difference.
    Check the blogs of [Jocelyn Dart|https://www.sdn.sap.com/irj/scn/wiki?path=/pages/viewpage.action%3fpageid=55566]

  • BOR Object or ABAP Class

    Hi Experts,
    We are implementing the Leave Request WF using WS12300111. The user raises a leave request from the portal.
    As per the functional point of contact, they have said that this WF can be set up in the configuration in SPRO to be triggered when a leave request is raised.
    When we saw the standard SAP provided WF, the steps in it are based on ABAP class. I just want to know if the approach has to be only using ABAP classes or can BOR objects be used.
    We require some customizations in the sense, we need to add some custom logic to retrieve some data from some custom tables and also display the same.
    Kindly let me know if we need to use ABAP classes or we can use a BOR Object.
    Cheers,
    Belinda Clarke

    Hi Karri,
    Thanks a lot for your response.
    I was actually evaluating the possibilities of the same as our WF consultant is currently on leave. I was just seeing a scenario where they have used BOR Object for Travel and Expenses module. When i saw the standard WF for Leave Request WS12300111, I was seeing mainly ABAP Objects and there was no BOR objects used.
    I just wanted to confirm whether we could create a BOR Object or go on with the ABAP Classes. Does the ABAP Classes involve a lot of effort? We need to actually send email notifications and add some new steps etc...so was just thinking as to which would involve more effort.
    We need to actually retrieve data from table PTREQ_ATTABS and send the email notification to the concerned user whenever the leave request is approved/rejected/cancelled as shown below :
    Your leave request has been approved/rejected
    Name : abcde
    Emp No : 123456
    Type of Leave : Annual Leave
    Date : 7th July to 11th July
    No. of Days : 3 days
    So do u imply that all of this can be done with an ABAP Class
    Could you kindly guide us.

  • BOR Objects and ABAP

    Guys,
    Not even sure if this is possible...
    How do I find BOR calls in an ABAP program.
    Example: BUS2088 or BUS2008 in program SAPLCOIH - for PM/CS orders).
    PeteA

    Hi Peter,
    Specify your business object and the method of the BOR object in the BASIC data tab in PFTC transaction.
    If you want to trigger the Workflow through and event then you will have to first link your event of the Business Object to the WorkFlow Task in Workflow Builder (TCODE PFTC) and then you can do the following :
    Please refer the code below to for your information.
    Data for workflow trigger
    DATA: objtype LIKE swetypecou-objtype,
    objkey LIKE sweinstcou-objkey,
    event LIKE swetypecou-event,
    event_container LIKE swcont OCCURS 0 WITH HEADER LINE.
    objtype = 'ZBUS1001'. "Material [sub object of BUS1001]
    MOVE v_wfmatnr TO objkey. "V_WFMATNR is material number
    event = 'CreatePLMMaterial'."Custom Event defined in
    ZBUS1001 [Tcode SWO1]
    REFRESH event_container.
    *Following are the Event parameters required in the *Workflow
    swc_set_element event_container 'Attachment' v_wfattachment.
    swc_set_element event_container 'Material' v_wfmatnr.
    swc_set_element event_container 'TisGroup' v_wftisgroup.
    swc_set_element event_container 'SchDate' v_schdate.
    CALL FUNCTION 'SWE_EVENT_CREATE'
    EXPORTING
    objtype = objtype
    objkey = objkey
    event = event
    TABLES
    event_container = event_container
    EXCEPTIONS
    objtype_not_found = 1
    OTHERS = 2.
    IF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    COMMIT WORK.
    Please reward some points if it helps you.
    Regards,
    Amit M. Mishra

  • How to include the ordinary program in the BOR object type program

    Hi Guys, while i am trying to include a program in the BOR object type program. It is showing the following error:
    "Statement 'INCLUDE Z_ERC_SEARCH_VALOFACT_MACRO .' is not permitted in BOR".
    then, i tried to add  "<" and ">" to enclose it, but it wants the access key to create it.   anyone knows how to add the ordinary program in the BOR object type program.

    It's correct that we CAN'T insert our INCLUDES in BOR program. We CAN only use TYPE-POOLS there. So you can create Type Group with TYPES, CONSTANTS and DEFINE statements, and then use them in BOR programs.
    Using DEFINE you can construct MACROs with parameters and call your code there. It's limited, and not the easiest way, but some things can be achieved this way. Also forget about using Code Patterns while editing Type Group.
    Note: Use TYPE-POOLS statement after INCLUDE statement in BOR program .
    Best regards,
    Tomas.

  • Generic BOR Object - TSTC

    Hi all,
    Can anyone let me know how the generic BOR object 'TSTC' can be used to call transactions from CRM4.0(SIE) to backend R/3 systems in a transaction launcher. Basically, i will be interested in knowing
    - how one can pass the transaction code
    - any customizing settings required for this
    Regards
    Hem

    Hemchandra,
    You can launch R/3 Transactions into IC WebClient using Transaction Launcher wizrd.
    Important points to be followed
    1. ITS should be configured properly
    2. Use the Tx Launcher Wizard and select transaction  type as BOR and choose TSTS_PAR in the next screen
    and select the process type parameter from list box and enter the R/3 Tx Code as value parameter.
    3. You can see the transaction code,process type parameters in the method PREPARE_DATA_FLOW of Action Handler class
    ex:
      bdc ?=
        gv_view_controller->get_custom_controller( 'CuCoBDC' ). "#EC NOTEXT
    <b>        TRANSACTIONCODE =
      'VA01'. "#EC NOTEXT</b>
      me->set_data( iv_name = gc_TRANSACTIONCODE
                    iv_value = TRANSACTIONCODE ).
          SALESDOCUMENTTYPE =
      'OR'. "#EC NOTEXT
    Hope this helps.
    Thirumal.

Maybe you are looking for

  • Installing old wireless keyboard drivers on a new bootcamp?

    I wanted to share an experience of keyboard problems with windows 7 and bootcamp, and then ask a question about bootcamp on my soon-to-arrive shiny new iMac. Current machine: Core 2 duo 24" iMac mid 2007; Mavericks; bootcamp created with version 3.0,

  • Flow chart

    Hi I am Prepariing for my CLD Exam... I want to know what is the process to start a program... whether we need to read the document and go to programming directly or first read the document then draw a flow diagram and then proceed to programmming ..

  • 1Z0-560 Unified Business Process Management Suite Implementation Specialist

    Hi I am a BPM 11g/10gr3 developer based in Mumbai,India and wanted to know the pattern of the exam so that I could prepare accordingly. Is the exam 1Z0-560 a multiple choice question exam similar to the BPM Boot camp assesment exam? Regards, Ritu Sin

  • Camera File Generator Won't Run with MAX + PCIe-1433

    Hi, I am a camera developer and am trying to integrate a couple of new cameralink cameras with the PCIe-1433 NI frame grabber.  I have installed NI MAX 14.0 and version 3.0.0 of the Camera File Generator. I am trying to build a new Camera File for ou

  • 4507R+E Installation with SUP8-E

    Hi guys, I am about to install a 4507R+E system with a single SUP8-E. (Second SUP coming in few months). I tried to search but there are so many older SUPs documentation it's so confusing. Is there any installation steps that I can use?  What is the