Work Flow n Business Objects

I m working on creating a test Business Object.
The attribute's value is getting filled and in Test mode  i can see the value of attribute.My attribute is a virtual attribute ,,,
But when i m trying to get it in my method i m unable to.
I am using the macro swc_get property.
I am quite new to workflow if anybody can ,please help.
Below is the code,,,
BEGIN_METHOD ZMAYDISPLAY CHANGING CONTAINER.
data : text(30) type c,
       price type vbap-netwr, price1 type i .
       swc_get_property self 'Net_price' price1.
       move  price1 to text.
CALL FUNCTION 'POPUP_TO_CONFIRM'
  EXPORTING
   TITLEBAR                    = 'TestProgram'
  DIAGNOSE_OBJECT             = ' '
    text_question               = text
   TEXT_BUTTON_1               = 'yes'
   ICON_BUTTON_1               = 'ICON_OKAY '
  TEXT_BUTTON_2               = 'cancel'(002)
ICON_BUTTON_2               = 'ICON_CANCEL'
   DEFAULT_BUTTON              = '1'
DISPLAY_CANCEL_BUTTON       = 'X'
  USERDEFINED_F1_HELP         = ' '
   START_COLUMN                = 25
   START_ROW                   = 6
  POPUP_TYPE                  =
IMPORTING
  ANSWER                      =
TABLES
  PARAMETER                   =
EXCEPTIONS
  TEXT_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.
END_METHOD.
Thanks in Advance.
Mayank

You do not have to use the macro "swc_get_property".  The value of the virtual attribute is available just like the object key.  At the top of the program there is always a "BEGIN_DATA  OBJECT" section.  This is how the business object key is defined and it will also define all of your business object's attributes. In the example below, I have a virtual attribute "STATUSOBJNUMBER".
BEGIN_DATA OBJECT. " Do not change.. DATA is generated
only private members may be inserted into structure private
DATA:                                                 
" begin of private,                                   
"   to declare private attributes remove comments and 
"   insert private attributes here ...                
" end of private,                                     
  BEGIN OF KEY,                                       
      NOTIFICATION LIKE QMSM-QMNUM,                   
      NUMBER LIKE QMSM-MANUM,                         
  END OF KEY,    
      STATUSOBJNUMBER TYPE ONR00-OBJNR,               
      _VIQMEL LIKE VIQMEL,                            
END_DATA OBJECT. " Do not change.. DATA is generated  
Now to use the virtual attribute in your method it as simple as using the correct variable name.
statusnumb = object-statusobjnumber.
Its that simple.  To reference a key field.
key = object-key-notification.
To reference a virtual attribute from table viqmel.
field = object-_viqmel-qmnum.
Hope this helps.
Jerrod

Similar Messages

  • Work flow container Business OBject resetting ?

    Hi Folks,
    Work flow is triggered with the business object BUS2054001, In initial checking stage value are appearing for the instance of variables and after one step work flow container custom variables are set through the custom task.  The problem is the new values are set and all the old values are getting cleared. Cross checked twice that no old values are passed back.
    Refered to note : 847122 / Workflow container loses values. All the changes are already updated by sap since the sytem we are working on is SAP ECC 6.0 with BASIS 700 // level17 .
    Any solution or similar error faced  kindly reply ASAP.
    Thanks in advance for the help.
    Krishna Mukthineni

    Hi,
    after one step work flow container custom variables are set through the custom task
    See that Task step and check right variable are assigned in binding.
    Regards,
    Surjith

  • Additional plug ins not displaying when working with ERBI Business Objects.

    when working with ERBI Business Objects I am attempting to edit a report which requires Java. When I click on edit I get a bar at the top of the screen that say "Additional plugins are required to display all the media on this page". I click install missing plugins and receive a page that says no suitable plugins were found. I click finish and thus it still won't allow me to edit a report.
    Please help

    Please go to Java's website in this case to download Java.

  • Search spec not working for Multiple Business Object in Siebel

    Hi,
    In Siebel Applicaiton Specified Search spec in Administration - BI Reports->Standard Templates-> integtion Object. the Specified Search spec is not returning particular record. It's seems returning all records. below we are using search spec as [Row Id] = [Quote.BillingaccountId].
    for testing purpose specified how code value : [Row Id]='1-wXR8'(some BillingaccountId in our application from Quote Object).
    Does anybody worked on Searchspec for MultipleBusienssObjects and is the search spec syntax is correct.
    Thanks
    -Chakri

    Hi Ravi..
    thanks for replay. with SR you provided getting no search results. If you have already can you please email me at [email protected]
    And also mention format as IO1.Field1=IO2.Field2. Need to give IO.fieldname i.e Integration Object Name .Field name or IC.Fieldname.. Can you please correct.
    Thanks
    -Chakri

  • Work Flow Task and Object

    Please let me know how to find the workflow object with help of the task

    Hi Prakash,
    You can use the above method if you want to find the workflow template where the task is being used. If it is the object type (and method) that is being used in a task that you want to find out, then go to pftc, give the task numaber (8 digit) and in the next screen, under Basic data tab, u will find a section 'Object Method'. You will find the object type and method here. You can navigate to the object by double clicking or by specifying the object name in tcode swo1.
    Hope this helps.
    Thanks,
    Leena

  • How to trigger my work flow for particular object.

    hi
    if i create application for particular object like va01(sales order)
    whenever sales order is created, my workflow also triggered.i want trigger my workflow only by me!
    is it possible?
    thanks in advance
    manosh.

    Hi,
    Yes,
    In swetypv you can add function modules to event type linkage.
    You could add a check function module to the event, in that module you can check if the user who created the event is you, if not raise an exception, this way the event will not result in a workitem.
    Reward points if found helpful....
    Cheers,
    Chandra Sekhar.

  • How do I deal with problems during business object construction?

    Hi Everyone.
    I'm wondering about best practices for program control flow when business objects can't be constructed properly.
    In my servlet I want to create a new Transaction business object based on the parameters of the HttpServletRequest.
    transaction = new Transaction( request );The Transaction, in turn, has a Customer business object representing the Customer doing the transaction. The Customer is also constructed based on request parameters. So I have in the Transaction constructor,
    public Transaction( HttpServletRequest request ) {
        customer = new Customer( request );
    }In the Customer constructor I want to do some validation. For example, I want to check that the requested Customer exists in the database.
    If the validation fails, should I throw an exception, which could then eventually be caught by the Servlet which would send back an "Invalid Customer" message to the end user?
    But it seems to me like this violates the "never use exceptions for flow control" rule (as described for example at http://onjava.com/pub/a/onjava/2003/11/19/exceptions.html?page=2).
    It is a normal function of my application to deny a transaction to a non-valid customer... so it seems like I shouldn't need to bring in the exception handling overhead for this normal business process.
    OK, so I guess put "is_valid" flags in the business objects and set them on constructor errors then check them??
    public Transaction( HttpServletRequest request ) {
        customer = new Customer( request );  // customer.is_valid flagged false
        if ( !customer.get_is_valid( ) ) {
            this.is_valid = false; // transaction.is_valid is also false now because its Customer is not valid
        } else { // customer is valid
            // finish the rest of the Transaction construction business logic
            // of course this will turn into a mess of deeply nested "else valid" clauses
            // if there are many validation checks...
    }...and then in the servlet...
    transaction = new Transaction( request );
    if ( !transaction.get_is_valid( ) ) {
        // Send back error message to user.
    } else {
        // Finally do some business logic.  Maybe after another mess of nested "else valid" clauses.
    }This gets so hard to read it seems like the throwing Exceptions as part of normal control flow option is preferble.
    Is there third option I am missing?
    What are your opinions?
    Thanks,
    Bishop

    Build your Transaction and Customer objects based on the data in the request. Then validate the customer, since an invalid customer is "normal" for you.
    I'd consider using some sort of factory-like method for creating these objects from the request, since you're tying (sort of) your business stuff to the fact you're currently using a webby (servlet-based) front end...but that's more an aside.
    So, in pseudo-ish code:
    Transaction t = createTransaction(request);
    if (t.validCustomer()) do work;
    else return to wherever;This is only a first-pass idea, and other requirements might knock it for six, but it's a startpoint.

  • Data/Work Flow in SAP

    Hi All,
    Plz. explain the Data/Work Flow in SAP
    Is there any difference between this if so explain,
    and kindly tell me the process.
    thank you,
    Narender

    Hii..
    Work Flow- SAP Business Workflow
    Purpose
    SAP Business Workflow can be used to define business processes that are not yet mapped in the R/3 System. These may be simple release or approval procedures, or more complex business processes such as creating a material master and the associated coordination of the departments involved. SAP Business Workflow is particularly suitable for situations in which work processes have to be run through repeatedly, or situations in which the business process requires the involvement of a large number of agents in a specific sequence.
    You can also use SAP Business Workflow to respond to errors and exceptions in other, existing business processes. You can start a workflow when predefined events occur, for example an event can be triggered if particular errors are found during an automatic check.
    SAP provides several workflows that map predefined business processes. These workflows do not require much implementation. For an overview of these SAP workflows, refer to Workflow Scenarios in Applications.
    Integration
    SAP Business Workflow uses the existing transactions and functions of the R/3 System and does not change the functions. You can combine the existing functions of the R/3 System to form new business processes with SAP Business Workflow. The workflow system takes over control of the business processes. If you are already using SAP Organizational Management, you can use the organizational structure created there to have the relevant agents carry out the individual activities. It is possible to have an activity carried out by a position. This ensures that the respective occupiers of the position can carry out the individual activities during execution of the workflow. This means that personnel changes in your organization are taken into account immediately in the execution of a workflow.
    Features
    SAP Business Workflow provides a number of tools for defining and analyzing workflows as well as for monitoring operation.
    The Workflow Builder is for displaying and making changes to workflows. You can make small extensions directly to the original workflows supplied by SAP, such as carrying out your own agent assignments or changing deadline monitoring.
    There are several Workflow Wizards to support you in the definition of workflows, with which you can create specific parts of a workflow. The Workflow Wizard Explorer gives you an overview of the existing Workflow Wizards.
    In order to make the functions of the R/3 Systems available to a workflow, you use business objects, which you can define and analyze in the Business Object Builder. These business objects are made available to the workflow in reusable tasks. The Business Wizard Explorer gives you an overview of all existing tasks.
    The end user receives information about the activities they are to carry out in their Business Workplace. This provides them with a central overview of all the activities that they are authorized to carry out. They can commence the activities from here.
    Several tools are available to the workflow system administrator, with which they can control and analyze the current workflows. The workflow system administrator is notified of problems automatically by the system.
    DATAFLOW-Data flow means flow of data from one module to another within a sap system.
    Regards,
    Aakash

  • Creating work flow

    Hi  all,
    i am new to Work flow,
    can any body tell me how can i trigger the work flow from my abap program, and how can i send the required details from the program to W/F ?
    kumar

    hi Narin,
    i am new to WF,
    it was not clear, actually i want to integrate the work flow with BPM in PI (Process Integration 7.0.
    i am trying to create WF part in the SAP R/3, for the the Aproval part, because PI 7.0 doesnt have the feature User decision. So i am trying to push the data of Leave details to the WF and trigger the WF in the R/3 through a proxy program.
    For creating Work flow, is Bussiness Object needed? What is the use of it, but i dont have any Business object for my Leave details, What to do?
    My actual thought is,
    1. create srcreen in SAP R/3, which has all the relevent fields of Leave details like emp_id, start date, end date, leave balance. i will put user commands(push buttons) like Approve, Reject, change.
       In Wf this screen should apear with the leve fields with the corresponding values and push buttons.
    once the manager or aprover clicks any the push buttons, in the next step the corresponding action should be done.
    in this, is it possible to put the logic to capture the status of the WF like approved or Rejected? and send it back to the program in which this WF called?
    Is it possible? or is there any alternative solution?
    here in this i have query, how can i proceed? and what are the pre requisits to create WF?( like Busines Objects, triggring events, sep sequences, contaner elements, data base tables and structures etc.) and how do i create it?
    can you give me the code? and Tcodes, to maitain events, etc....
    can anybody help me?
    thanks,
    kumar

  • Transaction KB16N business-object type and key for GOS

    When attachments (notes, PC documents etc) are made to a manual cost allocation in transaction KB16N using GOS (generic object services):
      what is the business-object type?
      how is the business-object key constructed?
    I suspect that the business-object type is BUS6036.
    I suspect that the business-object key is the concatenation of the controlling area and the document number (using internal values).
    Is that correct?
    The reason for my question is that I have a program to display attached notes (and allow drill-down to attached PC documents) that works for various business objects (billing documents, purchasing documents and some FI documents), but I cannot get it to work for manual cost allocations.
    John

    Hi Michele 
    The transaction you are looking for should be SWO1
    Then put the ex "BUS2000116" into the Object/Interface type and ...
    Guess it will help you
    Best Regards
    Daniel

  • Business Objects XI 4.0 client tools vs Business Objects XI 3.1 client tools

    Hello experts,
    I have to reset my computer where I have installed : Windows Vista / Office 2003 / Business Objects XI 3.1 client tools ( in the server I have installed Business Objects XI 3.1 SP 4).
    In the new computer, I will have a Windows 7, but the problem is that I can't install  the Business Objects XI 3.1 version that I have in the old computer. Because It need office 2003  or office xp
    My question is that  if the Business Objects XI 4.0 client tools supported all the objects that I had created with the Business Objects XI 3.1. And If it will be a problem in the future with the other persons who is working with the Business Objects XI 3.1.
    Thank you very much,

    Hi Mark,
    1. Your desired configuration should be supported, please read appropriate PAM (Product Availability Matrix).
    2. Your Client tools 4.0 cannot log on to older version CMS (3.1).
    3. My config is Windows 7, MS Office 2010, BO Client tools 3.1 (SP6), BO Client tools 4.1 and more tools like Crystal, Dashboards, Lumira, Live Office...
    All tools run OK.
    Regards,
    Jiri

  • Production Order Work Flow

    Hi..
    I want to trigger the workflow to release the Production order .
    So we want to creat the WOrk Flow using Standard Object BUS2005  when Order get created .
    . With the help of ABAPER we are able to trigger the Workflow but by manullay creating the Event.
    Is there any customization from PP side need to do for automatic creation of Workflow.
    Please let me know.

    Dear ,
    As far as I know , in OPL8-Order Type depdent Paramater -Implementation tab -You have option Workflow -Workflo for purcahse order change .If it is relevent  in this context , then you need mark the chek box.
    refer this : http://help.sap.com/printdocu/core/print46c/en/data/pdf/BCBMTWFMPP/BCBMTWFMPP.pdf
    Regards
    JH

  • Corresponding Business Object in CRM as like BUS2032 in ECC

    Hi,
    In ECC system I am able to work with BUS2032 business object-> Create for sales order creatrion where I am able to link my custom task. But now I want to create sales order in CRM system. That is done through CRMD_ORDER but is there any business object like bus2032 in CRM system where I can link my task as like ECC or can you give me any idea where I can link my task which will be executed after sales order creation in CRM?
    Thanks
    Biplab

    Every One Order you create in CRM have a Transaction Type .  The Transaction Type config ( SPRO -> CRM -> Transactions -> Basic Settings -> Transaction Type ) will tell you which Transaction Categoty/Business Objects it is assigned to under   ' Assignment of Business Transaction Categories' .
    Also after creating the Transactional Document , check the Table Entry in CRMD_ORDERADM_H , where OBJECT_ID = Transaction Number ,   OBJECT_TYPE should tell you the Business Object

  • Issue regarding [Work Flow] Business Object Event Raise in ABAP Program

    Hi All,
    I have one issue regarding [Work Flow] Business Object Event Raise in ABAP Program.
    Actual TDS is as below:
    If E message type written, raise Business object BUS2005 (Production order) Event PickShortage for production order passing warehouse, transfer request
    (BUS2065 Object key) in event container. Also include table of text version of error
    messages for this set of Transfer
    Request.
    Can anybody tell me how can i write it technically in ABAP Code.
    Can anybody solve this issue!
    Thanks in advance.
    Thanks,
    Deep.

    Hi,
    Can anybody solve above posted issue!
    Thanks,
    Deep.

  • Regarding [Work Flow] Business Object Event  Raise in ABAP Program

    Hi All,
    I have one issue regarding [Work Flow] Business Object Event Raise in ABAP Program.
    Actual TDS is as below:
    If E message type written, raise Business object BUS2005 (Production order) Event PickShortage for production order passing warehouse, transfer request
    (BUS2065 Object key) in event container.  Also include table of text version of error
    messages for this set of Transfer
    Request.
    Can anybody tell me how can i write it technically in ABAP Code.
    Can anybody solve this issue!
    Thanks in advance.
    Thanks,
    Deep.

    Hi,
    Can anybody solve above posted issue!
    Thanks,
    Deep.

Maybe you are looking for

  • What the hell is going on with CC interfaces?

    This is boggling. Having just bought a new MacBook Pro Retina and signing up for Adobe CC (after being a steady Adobe customer since before InDesign 1) I can't believe what a mess the interface handling is on Retina displays. The applications I use m

  • How to upgrade iWeb 2.0.4 to 3.x

    Hi, I bought a MacBook 2008 early. This MacBook include iWeb 2.x. Last month I upgraded some iLife '08 application to '11 but I couldn't upgrade iWeb '08 to newer. Last iWeb version is 3.0.4. How can I upgrade iWeb 2.x to 3.x? Please help me! Thx! Ba

  • Sp;. Procurement Field in Material Master

    Hello I just wanted to know the  relevance of Special Proc field in MRP 2 View of the Material Master. What is the impact of it if we mark it as 20 in case of a Consignment stock material ?? How a Consignment material is treated with this ?

  • Username and Password problem when trying to conne...

    I decided to try and connect to a BT Wifi hotspot for the first time the other day, but when i enter my primary bt usename and password it says that the username and/or password is incorrect. I know they are the correct ones as i can log into the bt

  • HP dv9000 not starting.....need help

    Hi, I have an Hp Pavilion dv9000 notebook and whenever I press the Power switch to start, board lights up but laptop doesn't start.The LED lights do not stay on and computer does not boot up or start. I hear the fan briefly and thats about it.Can any