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

Similar Messages

  • 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

  • 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

  • BOR object for Displaying the Spool

    I am trying to create work item that will display spool output.I have thought of using FM "SWW_WI_START_SIMPLE"  to create a work item and will take to the display of the spool file .Can any body suggest the BOR object which I can use for displaying the spool output??
    (Background of the issue-I am executing a report in background and taking out put of that on spool. After executing this I want to send that spool number in the work item to the user and from that work item a link should be generated that will take the user to the spool display.)

    Hi raz
    i think it will help you
    Firstly go to Transaction of event trace SWE4 on the event trace
    Secondly go to your transaction create one invoce
    then  go to SWEL it will display the BOR Triggered during the Invoice creation
    In case of any issue please revert back
    Donot forgot to reward points
    Regards
    hitesh

  • BOR object cannot use function module as method

    Hi All,
    I have a function module with an import parameter referring to data element DE_ABC. BOR indicates that it doesn't support this data type. However, if I define a DB table with a field whose type is DE_ABC and use that field as reference in FM interface definition, that FM can be used by the BOR object. Does anybody have any idea about this issue?
    Best Regards
    Jerome

    Hello,
    Please always mention version. It may help if you told us what data type, but to give a theoretical answer I'd say this would be correct behaviour.
    BOR is old, it was created to bring some kind of OO to then procedural ABAP. It has also not changed much, therefore doesn't support some of the newer data types. On the other hand it doesn't look at the components of a structure, so placing an unsupported element into a structure is a perfect workaround.
    Be careful however when using deep structures or one of the variable length types such as STRING. As I use classes most of the time I have no idea how they would behave but a quick test should verify whether it works.
    Hope that helps,
    Mike

  • Could not see link to BOR object in attachment section of a dialog WI

    Hi,
        I have built a custom approval and a dialog WI (decision step) is sent to the approver for approval.
    In the preview, earlier I user to see a link to the BOR object in the 'Objects and attachments' section and when I hit that link the BOR's  default method (which is display in my case) is executed.
    For some reason, I could not see the link now. I think it was showing some months ago (not sure)
    Need your help in sorting this issue.
    Thanks,
    Amit Jain

    Hi,
    Please check the binding between the workflow and decision step. Make sure that there is an element in the task container of the BO type and the binding is perfectly present.
    Hope this will help.
    Thanks,
    Samson

  • 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

  • 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.

  • Send Archived BOR Object as an Email Attachment

    Hi,
    I am sending an email with Attachments. There are some archived documents which are scanned and stored as pdf files.
    I need to send these  documents attached together with the email as attachment.
    *I have retrieved the BOR keys of the files to be sent. However, I am unable to physically attach these to the email. *
    I have written the following code.
    * Get attached BOR objects
      call method gr_case->bor_objects_get
        receiving
          re_bor_objects = lt_attachmnt
        exceptions
          failed         = 1
          others         = 2.
    * Build list of attachments
      loop at lt_attachmnt into ls_attachmnt.
        lv_object-describe = c_object_desc.
        lv_object-objtype  = ls_attachmnt-bor_type.
        lv_object-objkey   = ls_attachmnt-bor_key.
    *   Write Packing List (Attachments)
        ls_objpack-head_start = 1.
        ls_objpack-head_num   = 1.
        ls_objpack-body_start = 0.
        ls_objpack-body_num   = 0.
        ls_objpack-doc_type   = 'OBJ'.
        ls_objpack-obj_name   = ls_attachmnt-bor_type.
        ls_objpack-obj_descr  = ls_attachmnt-bor_key.
        append ls_objpack to lt_objpack.
      endloop.
    * send mail
      call function 'SO_NEW_DOCUMENT_ATT_SEND_API1'
        exporting
          document_data              = ls_doc_change
          put_in_outbox              = 'X'
          commit_work                = 'X'
        tables
          packing_list               = lt_objpack   " 1. row for document, following rows for each attachment
          object_header              = lt_objheader " e.g. for the filename
          contents_txt               = gt_text_tab  " content of ASCII data
          receivers                  = lt_receiver  " recipient
        exceptions
          too_many_receivers         = 1
          document_not_sent          = 2
          document_type_not_exist    = 3
          operation_no_authorization = 4
          parameter_error            = 5
          x_error                    = 6
          enqueue_error              = 7
          others                     = 8.
    This code sends some text files as attachments with the description of the BOR objects.
    Can someone please help?
    Best regards,
    Abhinava

    Is there a technical name? Something like BUS1234.
    Any way, from the code snippet you show above, I think there might be some confusion. The way I understand it is that you attach BOR objects to Cases (whatever case means). This is where the method BOR_OBJECTS_GET comes. If you want to attach PDF files, then, you will need a means to extract these files as binary internal tables. Your code below does not seem to do that. So, the BOR object attached to the case is different than the actual attached PDF file.
    If your BOR object provides a method to display a PDF file, then, you might want to look into that method's code and see how the PDF is extracted.

  • How to attach a smartform in BOR object

    Hi,
    I want to know how to attach a z smartform to BOR object? I tried to search out here but not able to have the result.
    Kindly provide the guidelines for it....
    Regards,
    Rickky

    Hi,
    In the BOR object, create a method say display_SF. Now in the ABAP properties for that method give "OTHER" option.
    Now in the BOR object, you can find the program which is used. Inside that program, You need to write the code to fetch the required data (ONLY BASIC REQUIRED DATA WILL BE ENOUGH) and call the smartform by passing all the print parameters and all the required data for that smartform.
    Now inside the smartform, with imported required data, you can write all the logic and data fetch etc for the printouts.
    The following sysntax can be used to fetch the required data into the method and can use to pass the same while calling the smartform.
    SWC_GET_ELEMENT CONTAINER 'Plant' PLANT.
    Regards,
    Harish

  • In what table are stored information about BOR objects

    Hi Gurus,
    I have to find all objects like classes, function modules, reports and other related to BOR objects. Let say that I have BOR object type. With this information where can I find information about it? In which table this information are storred?
    Best regards
    Marcin Cholewczuk

    Hi ,
    SWOTDI      Definition Interfaces
    TOJTB       Business object repository: Basic data
    u  can use search  help  in SE11 with  table name equal  to  TOJ*

Maybe you are looking for