<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Work Flow n Business Objects in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/work-flow-n-business-objects/m-p/889777#M53186</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alvaro,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I noticed something strange.When u define a virtual attribute i think its type C by default.Thats why my value of type VBAP-NETWR was not getting assigned to the attribute.&lt;/P&gt;&lt;P&gt;So u can see in the code that i have declared a variable of type VBAP-NETWR.&lt;/P&gt;&lt;P&gt;nd i have used it in swc_get_property macro.I have never assigned the attribute with the value of the query output,&lt;/P&gt;&lt;P&gt;So i need to assign the attribute&lt;/P&gt;&lt;P&gt;OBJECT-NET_PRICE = price, where the attribute is of type C and price is of type VBAP-NETWR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How cud this be done ???I think this can be solved if we can do this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;Mayank.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 07 Feb 2005 11:52:56 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-02-07T11:52:56Z</dc:date>
    <item>
      <title>Work Flow n Business Objects</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/work-flow-n-business-objects/m-p/889775#M53184</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I m working on creating a test Business Object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The attribute's value is getting filled and in Test mode  i can see the value of attribute.My attribute is a virtual attribute ,,,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when i m trying to get it in my method i m unable to.&lt;/P&gt;&lt;P&gt;I am using the macro swc_get property.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am quite new to workflow if anybody can ,please help.&lt;/P&gt;&lt;P&gt;Below is the code,,,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BEGIN_METHOD ZMAYDISPLAY CHANGING CONTAINER.&lt;/P&gt;&lt;P&gt;data : text(30) type c,&lt;/P&gt;&lt;P&gt;       &lt;/P&gt;&lt;P&gt;       price type vbap-netwr, price1 type i .&lt;/P&gt;&lt;P&gt;       swc_get_property self 'Net_price' price1.&lt;/P&gt;&lt;P&gt;       move  price1 to text.&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'POPUP_TO_CONFIRM'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;   TITLEBAR                    = 'TestProgram'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  DIAGNOSE_OBJECT             = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    text_question               = text&lt;/P&gt;&lt;P&gt;   TEXT_BUTTON_1               = 'yes'&lt;/P&gt;&lt;P&gt;   ICON_BUTTON_1               = 'ICON_OKAY '&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  TEXT_BUTTON_2               = 'cancel'(002)&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; ICON_BUTTON_2               = 'ICON_CANCEL'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   DEFAULT_BUTTON              = '1'&lt;/P&gt;&lt;P&gt; DISPLAY_CANCEL_BUTTON       = 'X'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  USERDEFINED_F1_HELP         = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   START_COLUMN                = 25&lt;/P&gt;&lt;P&gt;   START_ROW                   = 6&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  POPUP_TYPE                  =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  ANSWER                      =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  PARAMETER                   =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  TEXT_NOT_FOUND              = 1&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  OTHERS                      = 2&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;END_METHOD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance.&lt;/P&gt;&lt;P&gt;Mayank&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Feb 2005 11:09:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/work-flow-n-business-objects/m-p/889775#M53184</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-02-04T11:09:32Z</dc:date>
    </item>
    <item>
      <title>Re: Work Flow n Business Objects</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/work-flow-n-business-objects/m-p/889776#M53185</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mayank,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in order to retrieve values of another attribute, I normally use sentence &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SWC_GET_ELEMENT CONTAINER...&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Moreover, as far as I can see, I think you should include a last sentence that "stores" the value into the object. That is, to include the sentence &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SWC_CREATE_OBJECT...&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; and then &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SWC_SET_ELEMENT...&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let us know if it works. Best regards,&lt;/P&gt;&lt;P&gt;Alvaro&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Feb 2005 12:16:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/work-flow-n-business-objects/m-p/889776#M53185</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-02-04T12:16:30Z</dc:date>
    </item>
    <item>
      <title>Re: Work Flow n Business Objects</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/work-flow-n-business-objects/m-p/889777#M53186</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alvaro,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I noticed something strange.When u define a virtual attribute i think its type C by default.Thats why my value of type VBAP-NETWR was not getting assigned to the attribute.&lt;/P&gt;&lt;P&gt;So u can see in the code that i have declared a variable of type VBAP-NETWR.&lt;/P&gt;&lt;P&gt;nd i have used it in swc_get_property macro.I have never assigned the attribute with the value of the query output,&lt;/P&gt;&lt;P&gt;So i need to assign the attribute&lt;/P&gt;&lt;P&gt;OBJECT-NET_PRICE = price, where the attribute is of type C and price is of type VBAP-NETWR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How cud this be done ???I think this can be solved if we can do this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;Mayank.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Feb 2005 11:52:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/work-flow-n-business-objects/m-p/889777#M53186</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-02-07T11:52:56Z</dc:date>
    </item>
    <item>
      <title>Re: Work Flow n Business Objects</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/work-flow-n-business-objects/m-p/889778#M53187</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;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". &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BEGIN_DATA OBJECT. " Do not change.. DATA is generated&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;only private members may be inserted into structure private&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;DATA:                                                  &lt;/P&gt;&lt;P&gt;" begin of private,                                    &lt;/P&gt;&lt;P&gt;"   to declare private attributes remove comments and  &lt;/P&gt;&lt;P&gt;"   insert private attributes here ...                 &lt;/P&gt;&lt;P&gt;" end of private,                                      &lt;/P&gt;&lt;P&gt;  BEGIN OF KEY,                                        &lt;/P&gt;&lt;P&gt;      NOTIFICATION LIKE QMSM-QMNUM,                    &lt;/P&gt;&lt;P&gt;      NUMBER LIKE QMSM-MANUM,                          &lt;/P&gt;&lt;P&gt;  END OF KEY,     &lt;/P&gt;&lt;P&gt;      STATUSOBJNUMBER TYPE ONR00-OBJNR,                &lt;/P&gt;&lt;P&gt;      _VIQMEL LIKE VIQMEL,                             &lt;/P&gt;&lt;P&gt;END_DATA OBJECT. " Do not change.. DATA is generated   &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now to use the virtual attribute in your method it as simple as using the correct variable name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;statusnumb = object-statusobjnumber.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Its that simple.  To reference a key field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;key = object-key-notification.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To reference a virtual attribute from table viqmel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;field = object-_viqmel-qmnum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;Jerrod&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Feb 2005 14:48:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/work-flow-n-business-objects/m-p/889778#M53187</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-02-07T14:48:56Z</dc:date>
    </item>
    <item>
      <title>Re: Work Flow n Business Objects</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/work-flow-n-business-objects/m-p/889779#M53188</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Jerrod.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These are the thumb rules it seems...Anyways thanks for the help...I will be working more often on the Business objects from now onwards...so prepare urself for more disturbance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To sum up with these postings, I would like to tell all u newcomer people like me, &lt;/P&gt;&lt;P&gt;Keep following points in mind always with the developments of Business objects:-&lt;/P&gt;&lt;P&gt;i)  To refer to a virtual attribute in a method :&lt;/P&gt;&lt;P&gt;    OBJECT-&amp;lt;Virtual Attribute Name&amp;gt;.With this notation  &lt;/P&gt;&lt;P&gt;    we can refer the V.A anywhere in method.&lt;/P&gt;&lt;P&gt;ii) To refer a Key Field.&lt;/P&gt;&lt;P&gt;    OBJECT-KEY-&amp;lt;Key Field Name&amp;gt;&lt;/P&gt;&lt;P&gt;iii)To refer a Database field Attribute.&lt;/P&gt;&lt;P&gt;    OBJECT-_&amp;lt;Attribute Name&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards &lt;/P&gt;&lt;P&gt;Mayank&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Feb 2005 07:58:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/work-flow-n-business-objects/m-p/889779#M53188</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-02-08T07:58:56Z</dc:date>
    </item>
  </channel>
</rss>

