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.

Similar Messages

  • How to link bor object to Archive object

    I would like to convert normal file to Archive file using ARCHIV_CREATE_DIALOG_META it is giving
    error there is no link  between bor object and Archive object .

    Based on your other questions I assume you mean either in the workflow or in a method. First of all you should read the FAQ and the guidelines for the forums.
    Converting the object from a subtype to its parent type in a method is achievable by using some of the macros. You can even make a generic solution for this (e.g. a function module).
    Use SWC_GET_OBJECT_KEY to get the object key.
    The attribute OjectType of your object is itself an object. It has an attribute Parent which references another object. The key of this object is the name of the object type.
    Thus you have everything you need to create a new object reference with a type that is the parent object type of your current object; you have the key (which must be identical as this is a subtype) and the object type.

  • Creation of Generic business Object for a standard transaction

    Hi,
    We have a requirement where we are depreciating the assets (standard transaction ABAA) using a custom BDC program. We need to maintain a history (called audit trail) for the particular asset that has been depreciated using this program. For this audit train we have been asked to use "Generic Business Object" in transaction code ABAA.
    Unfortunately, Generic object services are not available in this transaction code. Can you please suggest me how to create "Generic Business Object" for a particular standard transaction code. Also, we have show the details of custom workflow that follows the approval process in order to depreciate the asset. how to show this workflow details using Generic Business Object. This is a very critical issue, any help will be very help ful.
    Please let me know should you require more information on this topic.
    Thanks,
    Ashish

    this is already answered in the forum, and also explained in the sap library

  • 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

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

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

  • Change documnet name for BOR object DEVICE.

    Hi expert,
                        Could You please tell me Change document object name of BOR object DEVICE for creating new entries in SWEC transaction.

    It does not look like there is one. How to find out?
    1- Find the actual table of the BOR object
    2- Go to transaction SWED to find out if this table is linked to a change document object

  • How to use BOR object?

    Hello,
    We have never used a BOR object. We want use FIPP object. How can we do it? How can we call the Post method?
    Thanks a lot.
    Edited by: LM on Sep 8, 2008 11:07 AM

    Hi
    Refer to the links,
    Probel with POST method of FIPP
    FIPP Workflow
    Regards
    Sumit Agarwal

  • About create instance of a BOR Object

    hi expert
    I do hope any one can help me out of trouble...
    when I want to use a method of a BOR Object, I find the method is an instance dependent method, so I have to create an instance for the BOR Object to initialize the key field, right ? but I do not know how to create , how to use a instance-dependent method.....
    can any one heple me ????

    Hi
    Goto SWO1 Tcode
    enter the main Object (say BUS2032 -sales order)
    press subtype button
    enter ZBus2032 and program(some Z), name, description, application (V) etc
    save ,  activate
    If you want you can create your own method  or event by keeping the cursor on the events or methods
    generate the program, says errors go to the program and generate
    implement the object method and object and release it.
    Now it is available
    Do the delegation type for this object by replacing this Z object in the place of Std object, so that all the methods of std are transferred to the copied one.
    Now creata a Task and use this Object and its method.
    define the triggereing event and define Binding etc and use
    Regards
    Anji

Maybe you are looking for

  • Assign dynamic statement in declare block or begin block

    Hi all, For below code, if I assign the select statement in the declare section for corresponding variable, will it improve the performance. For cust_veh_id we have another cursor in declare block, only partial code is provided. What I meant. declare

  • Need help to find the correct .MIB-file

    Hi. We are using some Nexus 7009 chassis on my work and a program called "SNMPc" that receives traps from our Nexus devices. The program do not have the new Nexus 7000 MIBs so we are only getting "pure text" from Nexus. We need to download the right

  • 13 MacBook pro motherboard

    Have others had issues with the motherboard in a 13" MacBook pro? I am finding it difficult to find information.

  • IPhone 5 slidind on or off glitch

    Hi I have an iphone5 with os 6.1.4 and I see a very weird issue with the settings, especially over top right corner of the screen. Everytime when I go to settings to turn anything on or off I have to tap or slide 10 to 20 times, this is more prominen

  • URGENT:userid and passowrd is not being authenticated

    Hi All, Please help me urgently. In my application which is in weblogic portal 10.2 and database is oracle 10 g. Problem is : All userid and passowrd is being unauthenticated suddenly. We did no chnages. We restarted the server, still the problem is