How to handle business trip advance elements

Hello everyone, I have an element called business trip loan.
here's how it works.
when an employee goes on a business trip, he gets an amount of money (say 1000 dollars) which is spun off as an earnings element.
After his trip he has to show receipts for expense incurred during his trip. After this, he returns whatever amount is left over in cash to the company. So first we have the earning of 1000, we have a deduction of 1000 (since this is a loan, effective on a certain date), we have total approved expenses incurred during the trip (say $750), then we have cash returned (say $250).
My question is, what element classification should be used for the expenses and cash returned to keep everything in balance considering that the 1000 dollars will be deducted from the employee?

Hi,
Treat this as an Advance element
1. when employee travels, process the advance element - So that its treated as advance and has no impact on Income tax calculation, If you use an earning element it will impact income tax
2. When the employee returns you adjust the advance element which can be by virtue of an information element which knock off the balance of advance paid.
Thanks,
Sanjay

Similar Messages

  • How to handle xml CDATA string element when OSB calling a webservice

    Hi
    Right, I'm new to OSB so bear with me.
    The following is a response from am operation in a webservice.
    As you can see there is a CDATA string in "<m:return>" element. I want to transform the CDATA string to XML.
    I have searched the forum and found a couple of similar queries and tried following the answers and this is what I'm getting.
    Please advise as to where I have gone wrong and how I can correct it.
    <env:Body xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
         <m:ReservationCancelResponse xmlns:m="http://domain/jws">
              <m:return>
                   <![CDATA[<?xml version="1.0" encoding="UTF-8"?><ReservationCancelNegativeAck><MessageId>HGv2OWS6hq</MessageId><ReservationNum>1234</ReservationNum><CsrId></CsrId><ErrorCode>02</ErrorCode><ErrorMessage>Reservation '1234' does not exist.</ErrorMessage></ReservationCancelNegativeAck>]]>
              </m:return>
         </m:ReservationCancelResponse>
    </env:Body>
    In my response pipeline I have an Assign and Replace action.
    My Assign is:
    Expression: fn-bea:inlinedXML($body)
    Variable: reservationCancelReponse
    When I log $reservationCancelReponseI get... so this bit is OK.
    <ReservationCancelNegativeAck>
    <MessageId>HGv2OWS6hq</MessageId>
    <ReservationNum>1234</ReservationNum>
    <CsrId/>
    <ErrorCode>02</ErrorCode>
    <ErrorMessage>Reservation '1234' does not exist.</ErrorMessage>
    </ReservationCancelNegativeAck>
    My Replace
    XPath: executeResponse/executeReturn/text()
    In Variable: body
    Expression: responseTransform.xq (binding with $reservationCancelReponse)
    Replace Node Contents is checked
    When I test the operation using the proxy service I get the following:
    <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
    <env:Header/>
    <env:Body>
    <m:ReservationCancelResponse xmlns:m="http://com/ventyx/abws/jws">
    <m:return>
    &lt;?xml version="1.0" encoding="UTF-8"?>&lt;ReservationCancelNegativeAck>&lt;MessageId>HGv2OWS6hq&lt;/MessageId>&lt;ReservationNum>1234&lt;/ReservationNum>&lt;CsrId>&lt;/CsrId>&lt;ErrorCode>02&lt;/ErrorCode>&lt;ErrorMessage>Reservation &amp;apos;1234&amp;apos; does not exist.&lt;/ErrorMessage>&lt;/ReservationCancelNegativeAck>
    </m:return>
    </m:ReservationCancelResponse>
    </env:Body>
    </env:Envelope>
    The CDATA string hasn't been transformed.
    Please help. What I have I missed.
    Thanks in advance.
    MI

    OK
    I have made some amendments to the original process and made some progress but still isn't quite right.
    I have created a schema:
    <complexType name="ReservationCancelNegativeAckType">
         <sequence>
                   <element name="MessageId" minOccurs="0">
                        <annotation>
                             <documentation>
                             </documentation>
                        </annotation>
                        <simpleType>
                             <restriction base="string" />
                        </simpleType>
                   </element>
                   <element name="ReservationNum" minOccurs="0">
                        <annotation>
                             <documentation>
                             </documentation>
                        </annotation>
                        <simpleType>
                             <restriction base="string" />
                        </simpleType>
                   </element>
                   <element name="CsrID" minOccurs="0">
                        <annotation>
                             <documentation>
                             </documentation>
                        </annotation>
                        <simpleType>
                             <restriction base="string" />
                        </simpleType>
                   </element>
                   <element name="ErrorCode" minOccurs="0">
                        <annotation>
                             <documentation>
                             </documentation>
                        </annotation>
                        <simpleType>
                             <restriction base="string" />
                        </simpleType>
                   </element>
                   <element name="ErrorDescription" minOccurs="0">
                        <annotation>
                             <documentation>
                             </documentation>
                        </annotation>
                        <simpleType>
                             <restriction base="string" />
                        </simpleType>
                   </element>
         </sequence>
    </complexType>
    <element name="ReservationCancelNegativeAckType"
         type="tns:ReservationCancelNegativeAckType">
    </element>
    I have amended the earlier Assign action to use an XQ to extract the CDATA string into the schema
    My Assign is:
    Expression: responseToSchema.xq
    Variable: reservationCancelReponse
    When I log $reservationCancelReponse variable I get... so this bit is OK.
    <ReservationCancelNegativeAck>
    <MessageId>HGv2OWS6hq</MessageId>
    <ReservationNum>1234</ReservationNum>
    <CsrId/>
    <ErrorCode>02</ErrorCode>
    <ErrorMessage>Reservation '1234' does not exist.</ErrorMessage>
    </ReservationCancelNegativeAck>
    I have also changed my Replace, this time I am using an XQ which will map the schema to the XSD WSDL "ReservationCancelResponse"operation.
    XPath: .
    In Variable: body
    Expression: responseFromSchemaToService.xq (binding with $reservationCancelReponse)
    Replace Node Contents is checked
    XSD WSDL is:
    <xsd:element name="ReservationCancelResponse"
         type="tns:ReservationCancelResponseType">
    </xsd:element>
    <xsd:complexType name="ReservationCancelResponseType">
         <xsd:sequence>
              <xsd:element name="ResponseCode"
                   type="xsd:string">
              </xsd:element>
              <xsd:element name="ResponseDescription"
                   type="xsd:string">
              </xsd:element>
              <xsd:element name="MessageID" type="xsd:string">
              </xsd:element>
              <xsd:element name="ReservationNum" type="xsd:string">
              </xsd:element>
              <xsd:element name="CsrId" type="xsd:string">
              </xsd:element>
              <xsd:element name="ErrorCode" type="xsd:string"
                   minOccurs="0">
              </xsd:element>
              <xsd:element name="ErrorDescription" type="xsd:string" minOccurs="0"></xsd:element>
         </xsd:sequence>
    </xsd:complexType>
    This time the response is better but not right.
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
    <env:Header xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"/>
    <env:Body xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
    <app:ReservationCancelResponse xmlns:app="http://www.example.org/AppointmentService/">
    <ResponseCode>0</ResponseCode>
    <ResponseDescription/>
    <MessageID/>
    <ReservationNum/>
    <CsrId/>
    </app:ReservationCancelResponse>
    </env:Body>
    </soapenv:Envelope>
    As you can see the tags are empty. (For info: The "ResponseCode" and "ResponseDescription" are constants)
    Where have I gone wrong?

  • How to Handle Business Object event in ABAP class

    Hello Everybody,
    I wanted to know if it was possible to reference BOR objects in ABAP class and handle BOR events in ABAP Objects.
    Thanks in advance.

    Hi,
    Catch the et_VALIDATE event, when InnerEvent = False and ItemChanged = True.
                If pVal.EventType = BoEventTypes.et_VALIDATE Then
                    If pVal.InnerEvent = False And pVal.ItemChanged Then
                        'TODO Your code here...
                    End If
                End If
    Regards,
    Vítor Vieira

  • How to handle Business faults

    Hi All,
    I have a question. I would like to use a Throw activity in my BPEL process using Oracle SOA suite 11g. The fault that I want to through is a custom business fault. Is it possible to capture the thrown fault in the fault policies configured in the same SCA composite from where the fault is thrown? I would like to call a custom Java class. I am able to do this with the out-of-the box faults in BPEL (without using the throw activity).
    If this is possible I would appreciate an example.
    Thanks
    SR

    Nagakiran-
    As long as the fault is thrown by external service, you could handle the same ways as system fault.
    Below URL could show some example:
    http://www.it-eye.nl/weblog/2009/02/14/oracle-bpel-fault-policy-framework-handling-custom-business-faults/
    -Sridhar

  • How to handle tree view control in business one ui sdk

    Hi,
    Can any guide me on how to handle tree view control in business one ui sdk?
    Thanking in advance.
    With Regards,
    Ram.

    Hi Ram,
    Nowadays there are some trouble with the treeview controls in Windows XP SP2 as you can see here:
    It is said that SAP will publish a treeview control in 2005 SP1.
    Hope helps,
    Ibai Peñ

  • How to use series in business graphic ui element

    Hi All,
    How to use the series in business graphic ui element? my requirement is i have to display the sales in selected months in graph(these values dont know at design time).
    Regards
    Srikanth

    Hi,
    Use the dynamic node  and bind this node to the BG source node and series nodes.
    Create a node and bind this node to the BG source and the value that you want to shown in series has to be bound to that attribute of the node and similarly with the category.
    Check out for the dynamic node creation and bind this node to the BG.
    Regards,
    Lekha.

  • How to handle common system crashes in SAP Business One until you upgrade to SAP Business One 9.1?

    SAP Business One 9.1 is about to release in this year with many feature enhancements in various areas, such as in Business Logic and Localization, Reporting and Analytics, Lifecycle Management and Support, SDK Features for extensibility, Infrastructure and Architecture, etc. , with this upgrade every organization using SAP Business One is also expecting that some previous System Crash problems associated with SAP Business One 8.8 or 9.0, will also be resolved with the advent of 9.1.
    But until 9.1 is available in GA, we have to know and follow some procedures to avoid this situation. Through this blog we have addressed ‘How to handle common system crashes in SAP Business One until you upgrade to SAP Business One 9.1’. In below link you can have a look that what common system crash issues been reported and what solution given by the community members:
    common system crashes in SAP Business One

    Hi,
    Thanks for sharing valuable information with us. You may repost this discussion as "Document" or Blog type.
    Thanks & Regards,
    Nagarajan

  • How to handle abstract XML elements with XMLBeans

    Hello,
    I have an xsd that uses abstract elements, and i wanted to ask you how can i create new XML Documents with XMLBeans? My problems is that i don't know how to handle abstaction with XMLBeans.
    Let me show you a very simple example to make you understand my problem :
    Suppose we have the following schema :
    <xsd:schema targetNamespace="http://www.example.org" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.example.org">
         <xsd:element name="Customer" type="CustomerType" />
         <xsd:complexType name="CustomerType" abstract="true" />
         <xsd:complexType name="PremiumCustomerType">
              <xsd:complexContent>
                   <xsd:extension base="CustomerType">
                        <xsd:sequence>
                             <xsd:element name="CreditCard" type="xsd:string" />
                        </xsd:sequence>
                   </xsd:extension>
              </xsd:complexContent>
         </xsd:complexType>
    </xsd:schema>I use XMLBeans to create a jar with java classes according the xsd above. Then, in order to create a new xml document i use the following code :
    CustomerDocument cd = CustomerDocument.Factory.newInstance();
    CustomerType ct = cd.addNewCustomer();
    PremiumCustomerType pct = PremiumCustomerType.Factory.newInstance();
    ct.changeType(pct.schemaType());With this code i get an XML Document like the following :
    <Customer type="PremiumCustomerType" />But after that, i cannot add an element CreditCard into this Customer element. Can anyone help me?

    In Indesign there is no way you can directly work on the XML-IN footnote, since indesign won't support XML tags in footnote stream.
    To achive that you need to have XSLT/Perl/Indesign Scripting.
    This task is achievable, you can create a auto footnote for XML workflow projects.
    1. Create an XSLT to transform the footnote to the respective places
    2. Change all the "<" ">" to some standard names, since indesign won't accept XML tags in the footnote stream.
    3. Import it in indesign and using script convert it to autofootnote.
    Shaji

  • I bought a cd with Lightroom 5. After installation and registration I am not able to use 'help' function and I cannot update the software. I anyone able to give me a hint how to handle it? Thank you ind advance Karl

    I bought a cd with Lightroom 5. After installation and registration I am not able to use 'help' function and I cannot update the software. Is anyone able to give me a hint how to handle it?
    Thank you in advance
    arl

    Hi Keith, sorry for my late reply.
    Surely I am able to connect to the help function when Icontact the website
    of AdobeLR5.The problem is as follows,
    When I open LR5 on my computer and work with it and try to open the help
    function in the software, I don't get it.
    When I bought the CD I was naiv enough to believe that I get an independent
    working software. I learned in the meantime, that the seller does not allow
    to work with, without being connected to them.
    I don't believe that I am paranoid, but I like to buy something and use it
    without to inform the supplier that I do it. Otherwise I could have bought
    the license fpr LR5 via internet.
    Best regards
    Karl
    2015-01-02 13:42 GMT+01:00 kglad <[email protected]>:
        I bought a cd with Lightroom 5. After installation and registration I
    am not able to use 'help' function and I cannot update the software. I
    anyone able to give me a hint how to handle it? Thank you ind advance Karl
    kglad <https://forums.adobe.com/people/kglad?et=watches.email.outcome>
    marked Keith_Reeder
    <https://forums.adobe.com/people/Keith_Reeder?et=watches.email.outcome>'s
    reply on I bought a cd with Lightroom 5. After installation and
    registration I am not able to use 'help' function and I cannot update the
    software. I anyone able to give me a hint how to handle it? Thank you ind
    advance Karl
    <https://forums.adobe.com/thread/1669640?et=watches.email.outcome> as
    helpful. View the full reply
    <https://forums.adobe.com/message/7059196?et=watches.email.outcome#7059196>

  • How are *Credit Card*--Cash Advances handled?

    How are *Credit Card*--Cash Advances handled? Can employees add that to their Expense report?
    Example: If the employee takes a $100 cash advance and reconciles the transaction in SAP Expense, we are expected to pay
    Credit Card Provider $100.
    However, how does the employee account for underutilizing that $100 (e.g. $20 remaining in their pocket).
    Does the individual create and link the $80 of expenses to that $100 cash advance and receive a $20 debit to their employee vendor?
    Also, we know that currently there is no MCC Code Mapping in the system for Cash Advance.
    Is there a work around this.

    Hi Rahul,
    I had a customer which had this situation. We solved this issue with a BAdI implementation in ERP.
    The traveler adds this withdrawal as a normal expense item which is assigned to special account alias code. The BAdI implementation recongnizes this alias code and removes the expenses and charges this costs to the employee.
    Example:
    Withdrawal        100 USD
    Taxi                     80 USD
    Bus                        5 USD
    Unused                15 USD
    Standard posting to FI:
    Taxi Costs                           80,00
    Bus Costs                            5,00
    Withdrawal                          100,00
    Employee Vendor                                85,00
    Credit Card Account                          100,00
    The correct  posting would be:
    Taxi Costs                           80,00
    Bus Costs                           5,00
    Employee                           15,00
    Credit Card Account                         100,00
    To achieve this posting it is required to
    map the withdrawal expense type to a special account alias code (in the coding
    example below: ADV)  and  to implement the following coding in BAdI
    BADI_DCFL_FIN_IDOC_DATA_TV:
      DATA: lr_item               TYPE REF TO dcfls_preproc_it.
      DATA: lr_vendor_item         TYPE REF TO dcfls_preproc_it.
    FIELD-SYMBOLS: <tv_item_adv>  TYPE dcfls_runtime_tv_item.
    FIELD-SYMBOLS: <tv_item_emp>  TYPE dcfls_runtime_tv_item.
    FIELD-SYMBOLS: <tv_header>    TYPE dcfls_runtime_tv_root.
      DATA: lt_string              TYPE TABLE OF string.
      DATA: ls_string              TYPE string.
      LOOP AT cs_preproc-item REFERENCE INTO lr_item.
        ASSIGN lr_item->bo_specific_item->* TO <tv_item_adv>.
        IF  <tv_item_adv>-tv_category = '03'  "Expense Item
        AND lr_item->ksymb = 'ADV'.
          CLEAR lr_vendor_item.
          LOOP AT cs_preproc-item REFERENCE INTO lr_vendor_item WHERE rtkey_it <> lr_item->rtkey_it.
            ASSIGN lr_vendor_item->bo_specific_item->* TO <tv_item_emp>.
            IF  <tv_item_emp>-tv_category = '01'  "Due Item
            AND <tv_item_emp>-pernr_d IS NOT INITIAL.
              EXIT.
            ELSE.
              UNASSIGN <tv_item_emp>.
            ENDIF.
          ENDLOOP.
          IF <tv_item_emp> IS ASSIGNED.
            <tv_item_emp>-wrbtr = <tv_item_emp>-wrbtr - <tv_item_adv>-wrbtr.
            DELETE cs_preproc-item WHERE rtkey_it = lr_item->rtkey_it.
          ELSE.
            "Create Vendor Item with negative amount
            <tv_item_adv>-tv_category = '01'.
            ASSIGN cs_preproc-bo_specific_root->* TO <tv_header>.
            SPLIT <tv_header>-note AT '/' INTO TABLE lt_string.
            READ TABLE lt_string INTO ls_string INDEX 4.
            IF sy-subrc = 0.
              <tv_item_adv>-pernr_d = ls_string.
            ENDIF.
            CLEAR: lr_item->ksymb,
                   <tv_item_adv>-note,
                   <tv_item_adv>-zuonr.
            <tv_item_adv>-wrbtr = <tv_item_adv>-wrbtr * -1.
          ENDIF.
        ENDIF.
      ENDLOOP.
      IF  <tv_item_emp> IS ASSIGNED
      and <tv_item_emp>-wrbtr IS INITIAL.
        DELETE cs_preproc-item WHERE rtkey_it = lr_vendor_item->rtkey_it.
      ENDIF.

  • HT204370 I had purchased a movie on my ipad while on a business trip and now I'm home on my IMac and wish to watch the movie I didn't finish on my iPad.  How can I continue to watch on my IMac if I purchased and started on my iPad ?

    I had purchased a movie on my ipad while on a business trip and now I'm home on my IMac and wish to watch the movie I didn't finish on my iPad.  How can I continue to watch on my IMac if I purchased and started on my iPad ?

    Open itunes, connect ipad, click File>Devices>Transfer Purchases

  • Currently on a business trip in China. How can I replace my iphone 5's battery?

    Currently I'm on a business trip in China. How can I replace my iphone 5's battery? My phone is eligible to the battery replacement program.

    This can only be done in the country where you bought the phone originally. But you can call Apple Support to register for that program.

  • How to handle blank root element in xml source file

    Hi There,
    I have a dataflow which using xml source file. The job keep failing and I guess it might be caused by one of the root element which is blank. Can anyone advise me how to handle it?
    The xml file look like this:
    -<orderinfo>
    --<orderdetail>
    ---<orderid>1</orderid>
    ---<orderdate>20110101</orderdate>
    --</orderdetail>
    --<abc />
    -</orderinfo>
    element <abc> is blank
    Thanks and Regards,
    BL

    Hi Suneer,
    The issue is DS cannot validate the source file at all. It returns error message when I try to preview the source file in the dataflow. Is there any work around I can implement other than request the source team to change the file layout?
    Thanks,
    BL

  • How OSB handling null element?

    hi Guys,
    I having question about how to handling a null node during trasnfortation and mapping using oracle workshop for OSB 10g.
    Well i have a consumer that not sending the element into the proxy, so during the proxy i will need to transform it into null element to the provider. what's in my mind is transform the element tag into something like this
    { if (fn:nilled($getAssetAttribReqParam1/RequestHdr/ns1:RequestId)) then
    <ns1:RequestId xsi:null = "true"/>
    else
    (<ns1:RequestId>{ data($getAssetAttribReqParam1/RequestHdr/ns1:RequestId) }</ns1:RequestId>)
    but when i doing testing it still showing this
    <ns1:RequestId></ns1:RequestId>
    i will need to sent the element something like this to the provider. because if this element is date format it will fail in the validation if i sending *<ns1:RequestId></ns1:RequestId>*
    <ns1:RequestId xsi:null = "true"/>

    I think your case should be addressed like -
    if ($getAssetAttribReqParam1/RequestHdr/ns1:RequestId) then
    <ns1:RequestId>{ fn:data($getAssetAttribReqParam1/RequestHdr/ns1:RequestId) }</ns1:RequestId>
    else
    <ns1:RequestId/>
    Regards,
    Anuj

  • How to handle the call transaction in method of a custom business object

    Hello all,
    There is a custom report " RPTCORAPP" for approving leaves . As per my requirement i have develop a copy of leave workflow and for approval process i have call  "RPTCORAPP" in Custom method of custom object. i have made a transaction for this custom report for approving attendances. I am calling this method though call transaction statement within method.
    Problem: while approving the attendance workitem is not disappearing from the portal. Problem is due to call transaction statement.
                   once workitem come to the user, user click on it. control goes to the report, which display all the leave to approve on
                   the portal.
                   If after approving/ rejecting attendance user close the screen.workflow remain in the "process" status.Control wont come  back after call transaction statement in the method.
                 At the same time if user clicks on back button inspite of closing the screen. it is working fine. workitem disappears from the portal.
    How to handle the scenarion. if after approving/rejecting, i want the control to come back to the NEXT STATEMENT after call transactionstatement in my method.
    Please help it out........:)

    Hi swami,
    thanks for reply. but i am not using BDC in my method. iam just calling a custom transaction thriugh statement
    Call transaction 'ZHR_APPROVE_CLINOUT'. This transaction directly run the report RPTCORAPP and display all the request.

Maybe you are looking for