How To Line Items - activate/deactivate functionality

In the How To paper on "Line Items in BPS", fields such as user & date can be stamped on each delta record.  This is done through the characteristic relationships exit function. 
To limit which types of activities are tracked at this level, the paper makes reference to the ability to "program a mechanism to activate and deactivate the functionality" in order to only stamp the date (for example) on manual changes, and not on automatic functions or batch activities. 
Does anyone have an example of how they've done this?  I could code the FM to only execute if the user id is not one of our batch ids, but that wouldn't take care of automatically executing functions that are attached to a layout. 
Thanks.

Hello Astine,
quite often you want to track changes for specific data for example accounts only. To accomplish this you can use account as a source field for the derivation and then check the account number in the "line item" exit.
If you want to track only manual changes and not batch processing, then a simple if sy-batch = 'X' will do the trick in your exit.
Regards,
Marc
SAP NetWeaver RIG

Similar Messages

  • "How to Line Items" - User Name giving RFC_ERROR_SYSTEM_FAILURE

    I have implemented the "How to Line Items" paper using Date and User Name.  When I created the function I just had 0DATE, created a planning modeler test scenario... Voila ... perfect.  I then when back and added 0UNAME to my cube, added the piece of code back into the class for user name, ran back through my planning modeler and now I am getting "Field symbol has not yet been assigned., error key: RFC_ERROR_SYSTEM_FAILURE"
    The short dump is occurring at "<l_chavl> = sy-uname" and says the following:
    This error may occur if
    - You address a typed field symbol before it has been set wit
      ASSIGN
    - You address a field symbol that pointed to the line of an
      internal table that was deleted
    - You address a field symbol that was previously reset using
      UNASSIGN or that pointed to a local field that no
      longer exists
    I looked in notes and 2 seemed to apply:  1057548 which seemed to follow my steps in creation, be we have implemented SP 15.  and 919850. 
    Could it be because the planning modeler has a fixed ABAP user entered in the BI_MODELDATA JCO destination and I am logging into the planning modeler with a different user ID so there is a conflict?  The short dump and the planning modeler created by shows XCOV775 but my login in XCOV673 for instance.
    Any help would be greatly appreciated.
    Cherie

    I don't understand what you are saying.  I used the How to Line Items code and just commented out some items.  This is what I have:
    FIELD-SYMBOLS: <l_chavl> TYPE ANY.
    fill ID
    ASSIGN COMPONENT 'BBP_OBGUID' OF STRUCTURE c_s_chas
                                    TO <l_chavl>.
    CALL FUNCTION 'GUID_CREATE'
    *IMPORTING
    ev_guid_32 = <l_chavl>.
    fill user - need to uncomment the bottom after adding in name.
    ASSIGN COMPONENT 'USERNAME' OF STRUCTURE c_s_chas
              TO <l_chavl>.
    <l_chavl> = sy-uname.
    fill date
    ASSIGN COMPONENT 'DATE0' OF STRUCTURE c_s_chas
                TO <l_chavl>.
    <l_chavl> = sy-datlo.
    fill time
    ASSIGN COMPONENT 'TIME' OF STRUCTURE c_s_chas
              TO <l_chavl>.
    get time field <l_chavl>.
    Edited by: Cherie Murphy on Feb 21, 2008 11:45 PM

  • MM: Purchase requisition line Items - How many line items can we use

    Hi all,
    1. Purchase requisition Line items  (How many line items can we use?), is there any restrictions.
    2. While creating PO with only one tax code for the related PR to input Tax code (without selecting  line Items).
    Regards,
    Sudheer

    Hi
    There is no limitation for number of items in PR.
    Tax code is always applicable for individual item only.It cannot be selected form the whole PO.
    Regards
    Dev

  • Need FM/BAPI to get how many line items per given FI document...

    Hello Experts,
    IS there an available FM or BAPI to get how many line items there is for a given
    FI document? We are avoinding BSEG because of the performance.
    Hope you can help me guys. Thank you and take care!

    Hi,
    Not sure if there is a specific FMs or BAPIs whose specific purpose is to just count FI document lines. But you can use a number of FMs to read an FI document.
    i.e. FI_DOCUMENT_READ - pass the document keys (BUKRS, BELNR, GJAHR) and retrieve the T_BSEG table to get the document lines. Then you can just use DESCRIBE statement to get the number of lines in T_BSEG.
    Also, based on experience, I never had any problems with BSEG as long as I am providing the complete keys for an FI document (BUKRS, BELNR, GJAHR). But if you are trying to avoid BSEG, you can use the secondary index tables like BSIS , BSAS, BSAD, BSID, BSIK, BSAK to improve performance.
    Regards,
    Oscean Tortona

  • How many line item dimensions can a fact table have?

    Hi,
    How many line item dimensions can a fact table have? Is it tht Max of 16 dimensions(13+3) .Does the 16 dimensions include line items dimensions as well .
    Pls reply.
    Thanks
    Praveen

    It includes all dimensios, including line item dimensions.
    If you have line item dimension, pl note you cant assign any other characteristic to that dimension.
    Ravi Thothadri

  • How many line items can be entered in sales order(maximum)

    hi,
    how many line items can be entered in sales order(maximum)
    SRK

    Hi SRK,
    The maximum number of line items in a SO or Invoice is 9999.
    Please close the thread if answered.
    regards
    Param

  • How is line item split during doc splitting

    Hi Everyone,
    during doc spitting where is the percentage of split  done
    eg: 2 line itmes are split (40 /100.........1st line  itme) & (60 / 100........2nd line itme)
    Regards

    Hi,
    PLease check the Below informaition. We will not specify the Percentage's. Its taken by system as per our postings. for mor information go throw the below information and Examples.
    Information on Document Splitting
        You can use the document splitting procedure to split up line items for
        selected dimensions (such as receivable lines by profit center) or to
        effect a zero balance setting in the document for selected dimensions
        (such as segment). This generates additional clearing lines in the
        document. Using the document splitting procedure is the prerequisite for
        as well as an essential tool for drawing up complete financial
        statements for the selected dimensions at any time.
        You can choose between displaying the document with the generated
        clearing lines either in its original form in the entry view or from the
        perspective of a ledger in the general ledger view.
        For document splitting to be possible, the individual document items and
        the documents must be classified. Each classification corresponds to a
        rule in which it is specified how document splitting is to occur and for
        which line items.
        SAP delivers a set of standard rules that should usually prove
        sufficient. If not, you can define your own set of rules and adapt these
        according to your needs.
        Example
        Example 1: Invoice
        Suppose a vendor invoice containing the following items is entered:
        Posting Key Account     Segment     Amount
        31          Payables                -100
        40          Expense     0001                      40
        40          Expense     0002          60
        Document splitting then creates the following Ledger view:
        Posting Key Account     Segment     Amount
        31          Payables    0001          -40
        31          Payables    0002          -60
        40          Expense     0001          40
        40          Expense     0002          60
        Example 2: Payment
       The payment for the above vendor invoice then contains the following
       items when entered:
       Posting Key Account     Segment     Amount
       50          Bank                    -95
       25          Payables                100
       50          Cash Discount Received  -5
       Document splitting then creates the following document in the General
       Ledger view:
       Posting Key Account     Segment     Amount
       50          Bank        0001          -38
       50          Bank        0002          -57
       25          Payables    0001          40
       25          Payables    0002          60
       50          Cash Discount Received  0001        -2
       50          Cash Discount Received  0002        -3     
    Thanks
    Goutam

  • Activate/deactivate functions in an add-on as per client's requirements

    Is it possible to create an add-on with differents functionalities that could be activated or deactivated depending on the need of each client? We could activate certain functions in the code and create a different installer depending on what the client is interested in.
    Let me give you an example.
    We have an add-on that has a function of importing journal entries into SAP's database and another function is updating our own database when changes are made into the SAP's employes table (OHEM). These two functions are not related or complementary. Now, not all clients would be interested in getting these two functionalities, they might need either one of them or both. Can we deactivate certain functions in the code and make an installer for the add-on based on what different clients require?
    The idea behind this is to avoid making many add-ons for clients where only one add-on would be required.
    Thanks for your help.
    Pierre

    Hi,
    Actually what ur asking is very much possible, have a cofiguration screen in ur addon where the user can select the features required for that client... Then when executing the function u can have a check if that functionality is required or not..
    Hope it helps,
    Vasu Natari.

  • Assigning different line items to different function(order component spec)

    Hi,
    I am facing a problem. Could you please help me out?
    Say order line is following
    <osm7dd:OrderLine>
    <osm7dd:line1>line1</osm7dd:line1>
    <osm7dd:line2>Motorola 200</osm7dd:line2>
    <osm7dd:line3>MOT200</osm7dd:line3>
    <osm7dd:line4>Mobile</osm7dd:line4>
    <osm7dd:line5>07760613421</osm7dd:line5>
    <osm7dd:line6>O3</osm7dd:line6>
    <osm7dd:line7>00</osm7dd:line7>
    </osm7dd:OrderLine>
    And say I have 2 functions(order component secifications)
    Is there any way so that
    only line1, line2 and line3 are assigned to function1
    and line3,line4, line5, line6 and line7 are assigned to function2?
    Regards,

    Hi Tarini,
    Thanks for reply.
    Could you please tell me what is the difference between OrderLine and OrderItem?
    However say the request is following:
    In this case say I have two functions: function1 and function2
    And I want 'MobileNum' to be assigned with function1 only; and not with function2.
    I have different roles for function1 and function2 users
    And I don't want to show the 'MobileNum' to function2 users.
    Could you please tell me how can I do that?
    <ord:CreateOrder xmlns:ord="http://xmlns.oracle.com/communications/ordermanagement" >
    <osm7dd:ServicesOrder xmlns:osm7dd="http://www.example.org/osm7Order1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <osm7dd:orderId>orderId-1000</osm7dd:orderId>
    <osm7dd:OrderLine>
    <osm7dd:productName>MOTO-200</osm7dd:productName>
    <osm7dd:productDesc>Motorola 200</osm7dd:productDesc>
    <osm7dd:productCode>MOT200</osm7dd:productCode>
    <osm7dd:class>Mobile</osm7dd:class>
    <osm7dd:MobileNum>07760613421</osm7dd:MobileNum>
    <osm7dd:lineID>O3</osm7dd:lineID>
    <osm7dd:BundleID>00</osm7dd:BundleID>
    </osm7dd:OrderLine>
    <osm7dd:OrderLine>
    <osm7dd:productName>SAMS-TOCO</osm7dd:productName>
    <osm7dd:productDesc>Samsung Toco</osm7dd:productDesc>
    <osm7dd:productCode>SAMTOC</osm7dd:productCode>
    <osm7dd:class>Mobile</osm7dd:class>
    <osm7dd:MobileNum>07760613422</osm7dd:MobileNum>
    <osm7dd:lineID>O4</osm7dd:lineID>
    <osm7dd:BundleID>00</osm7dd:BundleID>
    </osm7dd:OrderLine>
    </osm7dd:ServicesOrder>
    </ord:CreateOrder>
    Regards,

  • How often can I Activate / Deactivate the Creative Suite

    Hello Support Forum Folks,
    I am using Creative Suite at 2 pcs. I want to use it at my stationary pc when i am at home and when i am traveling at my laptop. I would like to solve this by activating / deactivating it on the systems. Will there be any problem when i deactivate / activate it every weekend?
    with kindest regards
    Adrian

    Sorry, hit send too often. You can keep it activated on the two machines
    with no problem at all. The EULA allows for two machines as long as you
    are the primary user and both machines are not used at the same time.
    Bob

  • How to read long text in Document line item

    Hi,
    How to read long text in FI Document line item.

    Use Read_text function module.
    you need to pass
    ID
    LANGUAGE
    NAME
    OBJECT   to the function moduel
    To find the Text id name language and object these are the following steps. Example: FB02
    1. goto FB02, Enter Document number
    2. from menuselect Goto>Header-->header Text..... New window will be displayed 
    3. select the Header Text. here you can see all the text. 
    4. click on the TEXT (which you want to know the Text id) , then press log ICON (you can find in bottom right of the text window) it looks like a rolled paper. 
    5. in the Next window you will find Text Name. Text ID, Language. etc...
    Regards,
    Lalit Mohan Gupta.

  • Function module for reading service line items of a po

    function module for reading service line items of a po.............I want to read data from eslh and esll tables to getthe service line details.....
    My requirement is if the item category is 9 I need to print the service line items. So I wan to read the data of service line items from a function module. I am not able to find a fm which fetches both elsh and esll data...

    Hi oskchaitanya ,
    use bapi BAPI_PO_GETDETAIL1.
    Regards
    REA

  • How can find number of line item?

    HI All.
    I have one internal table it has PO number ,line item and quantity.
    Each PO number have number of Line item ,
    now i want find how many line item per Po number .I need find for line item for all Po number.please help me
    Thanks.
    Jay

    see the below code and i tested and it is working well.
    data : begin of i_ekpo occurs 0,
           ebeln like ekpo-ebeln,
           ebelp like ekpo-ebelp,
           end of i_ekpo.
    data v_count type i.
    start-of-selection.
    select ebeln ebelp from ekpo into table i_ekpo.
    loop at i_ekpo.
    v_count = v_count + 1.
    at end of ebeln.
    write:/ i_ekpo-ebeln,v_count.
    clear : v_count.
    endat.
    endloop.
    Reward points if it is helpful
    Thanks
    Seshu

  • How to create horizontal line dynamically after evry line item

    Hi all,
    I have to redesign the sapscript.
    For a invoice for every new material a horizontal line will be drawen.After that for that material all new line item will be displayed than again a horizontal line should drawn.
    In dynamic how i can know how many line item will be there for the particular material.
    Guranted points will be rewarded .
    Regards
    raj

    Hi
    1st u draw a table and in that u mention all the line items. You can change the size from there it self
        The Code is here for drawing the Box for Total in last page (where there is no next page)
        /:   IF &NEXTPAGE& = 0
        /:   BOX FRAME 10 TW
        /:   BOX HEIGHT ‘0.8&#8242; CM FRAME 10 TW
        /:   BOX HEIGHT ‘1.9&#8242; CM FRAME 10 TW
        /:   BOX XPOS ‘2.5&#8242; CM YPOS ‘0.8&#8242; CM WIDTH ‘1.1&#8242; CM HEIGHT ‘1.9&#8242; CM FRAME 10  >
    Now some help from help.sap.com to understand the code better
    1. /: BOX [XPOS] [YPOS] [WIDTH] [HEIGHT] [FRAME] [INTENSITY]
    Reward all helpfull  answers
    Regards
    Pavan

  • Dynamic Counter in BEx Report to count the drilldown line item.

    Hi,
    I have a requirement to show the count of different parts in a report. For example the report,
    Part Number            Costs
    100                    200 $
    and if you drill down from the part number to line item details, you will get,
    Item Number            Costs
    10                      50 $
    20                      50 $
    30                      50 $
    40                      50 $
    So basically Part Number 100 is consists of 4 Item numbers. Now I want to show original report like this,
    Part Number            Costs               Counter
    100                    200 $               4
    Is there any way I can catch that counter, like how many line item is there per Part Number ?
    I am thinking of 2 ways, Virtual key Figure to calculate this or in alternate if possible use the Classification extractor (not sure if it possible to count the number of items per classification extractor though).
    Is there any better or simpler way to deal this without changing the cube structure ?
    Thanks for your time spent on this,
    Kind Regards,
    Arpan

    Hi,
    You can get this functionality with Virtual Key figures.
    You will have the complete dataset in the RSR00002 Enhancement in CMOD.
    Thank you
    Arun

Maybe you are looking for