Concatenate characters to characteristic value enetered

Hi,
We need to concatenate some characters with the Cost Center data entered by users and populate the resultant data in another characteristic, for the same transaction record - this needs to be done before data is written to the cube.
Some topics in the forum suggested using exit functions for similar problems. But how do we pass cost center (or for that matter any characteristic value)from the buffer to the function and pass the concatenated (or massaged) data back to the same record in the buffer.
If not exit, what are the other options?
Looking forward to advice and suggestions.
Thanks in advance
Krishna
<b>RESOLVED</b>
Message was edited by: krishna

Hi Srini,
Thanks for the quick response.
The concatenation I mentioned is required in BPS while writing data into transactional infocube. The user would be entering the cost center data along with other planning information. We need to pick up the costcenter entered by the user and derive another characteristic.
Since I cant have update rules, I'm left with the option of writing some exists.
The new data will be in a Z info object - not linked to Cost Center in any way.
Thanks again
Krishna

Similar Messages

  • How to get Characteristic Values assigned to the line item of Sales Order?

    Hi,
    I want to get the Characteristic Values( Variant Configuration )assigned to First Line Item of Sales Order.
    I was using the Fn. Mod.: VC_I_GET_CONFIGURATION_IBASE,
    this fn. mod. giving all the Characters but not the assigned characteristic values.
    Is there any other way to find characteristic values of sales order.
    Thanks,
    vinayak.
    Message was edited by: vinayaga sundaram

    For example, please see this example program.
    It lists the characteristic names, the values, and the description of the values which are tied to a sales document.
    report zrich_0001.
    * Internal Table for Characteristic Data
    data: begin of i_char occurs 0.
            include structure comw.
    data: end of i_char.
    data: xcabn type cabn.
    data: begin of xcawn,
          atwtb type cawnt-atwtb,
          end of xcawn.
    data: xvbap type vbap.
    parameters: p_vbeln type vbap-vbeln,
                p_posnr type vbap-posnr.
    start-of-selection.
      select single * from vbap into xvbap
                 where vbeln = p_vbeln
                   and posnr = p_posnr.
      clear i_char.  refresh i_char.
    * Retrieve Characteristics.
      call function 'CUD0_GET_VAL_FROM_INSTANCE'
           exporting
                instance           = xvbap-cuobj
           tables
                attributes         = i_char
           exceptions
                instance_not_found = 1.
      loop at i_char.
        clear xcabn.
        select single * from cabn into xcabn
                 where atinn = i_char-atinn.
        clear xcawn.
        select single cawnt~atwtb into xcawn
                   from cawn
                     inner join cawnt
                       on cawn~atinn = cawnt~atinn
                      and cawn~atzhl = cawnt~atzhl
                          where cawn~atinn = i_char-atinn
                            and cawn~atwrt = i_char-atwrt.
        write:/ xcabn-atnam, i_char-atwrt, xcawn-atwtb.
      endloop.
    Regards,
    RIch Heilman

  • Issue in Custome FM of Characteristic Value

    Hi All,
    I have created Custom FM for possible values of  Characteristic.
    Its working fine in all transaction except CU60.
    In Cu60 Transaction if user click on F4 for characteristic value My custom help popup is coming.  when user select any of the value its populating in table maintenance. But Issue the issue is when user is saving those value those value are not saving in table maintenance.
    Please tell me if I need to do any addition stuff.
    I have created FM using below SAP Doc.
    Function Module for Checking Values
    In this field, you can enter the name of a function module for checking characteristic values entered by the user. The function module can be created in any function group.
    The following restrictions apply:
    The function module must use the standardized interface.
    The function module name cannot have more than 27 characters.
    This allows names to be inferred for further function modules: for the possible entries on the value assignment screen, and for copying language-dependent value descriptions:
    Function module for possible entries
    <function module for value check> + suffix "_F4"
    Function module for language-dependent value descriptions
    <function module for value check> + suffix "_DC"
    Interface for Function Module for Checking Values
    Import Parameters:
    CHARACT_NO LIKE CABN-ATINN  Internal characteristic number
    CHARACT LIKE CABN-ATNAM  Characteristic name
    VALUE LIKE CAWN-ATWRT  Value to be checked
    Exceptions:
    NOT_FOUND   Value not found
    Interface for Function Module for Possible Entries
    Import Parameters:
    CHARACT_NO LIKE CABN-ATINN  Internal characteristic number
    CHARACT LIKE CABN-ATNAM  Characteristic name
    DISPLAY   Display values only,
       if DISPLAY = 'X'
    ADDITIONAL_VALUES LIKE CABN-ATSON Additional values allowed
       if ADDITIONAL_VALUES = 'X'
       (if you want the possible
       entries dialog box to contain an
       additional line for entry)
    MULTIPLE_VALUES LIKE RCTMV-ATLIS Multiple values allowed
    LANGUAGE LIKE SY-LANGU  Language indicator
    DISPLAY_WITH_LANGUAGE   Display value with description
    Tables
    VALUES LIKE RCTVALUES  Selected values
       When you call this table, it
       contains existing values.
       Deleted values have status 'D'
       in the table.
       New values have status 'I'
       in the table.
    The function module must also let you display and select values using the possible entries pushbutton. To display possible entries, you can use function modules in function group SHL3, such as HELP_VALUES_GET_WITH_TABLE_EXT. The content is described in the function module documentation.
    Interface for Function Module for Language-Dependent Value Descriptions
    Import parameters
    CHARACT_NO LIKE CABN-ATINN  Internal characteristic number
    CHARACT LIKE CABN-ATNAM  Characteristic name
    VALUE LIKE CAWN-ATWRT  Value to be checked
    LANGUAGE LIKE SY-LANGU  System language
    Exceptions
    NOT_FOUND   Value not found
    If you use this function module after the function module for checking values, the language-dependent description of the value is copied to the value assignment screen.
    Note
    Please note that the program code must be based on the predefined interfaces. If your program is not based on these interfaces, the program may terminate with a short dump.
    Please note also that the function module cannot take into account any restrictions on allowed values that are due to inheritance or object dependencies, because the function can only read data that is already saved to database tables. The function cannot read current user entries.

    I  have Created two FM Function Module for Checking Values  and Function Module for Possible Entries

  • Characteristic values as hyperlinks in a web report

    Hi All
    I have a web report with only one characteristic and some key figures. And the number of values for that characteristics are 5 and they are always fixed (structure). In my report I need to make each of that characteristic value a hyper link. I have 5 separate reports which should  be linked to these 5 characteristic values.
    I think this can be achieved by using a table interface. If yes, could any one please provide me with the code for the method CHARACTERISTIC_CELL in the ABAP class?
    Or, is there any other better solution?
    Points will be assigned!
    Thank you

    Its very simple! Check this out
    [http://sap.ittoolbox.com/groups/technical-functional/sap-bw/web-based-reporting-jump-target-to-another-query-by-one-click-489775]
    Regarding modifying the existing methods, in the 'Methods' tab select a method you want to redefine and click on the 'Redefine' button. And then double click on the method name, it takes you to the editor screen where you write your code.
    [Screen shot!|http://img139.imageshack.us/img139/5796/tableinterfacexc8.jpg]
    Use the 'CHARACTERISITC_CELL' method to adjust the contents of cells containing values for characteristics.
    'STRUCTURE_CELL'  to adjust the contents of structural components. i.e. if you are using a structure in your query.
    'DATA_CELL' to adjust the contents of data cells (cells where key figure values are displayed).
    Sample code:
    method CHARACTERISTIC_CELL.
    *CALL METHOD SUPER->CHARACTERISTIC_CELL
    *  EXPORTING
    *    I_X              =
    *    I_Y              =
    *    I_IOBJNM         =
    *    I_AXIS           =
    *    I_CHAVL_EXT      =
    *    I_CHAVL          =
    *    I_NODE_IOBJNM    =
    *    I_TEXT           =
    *    I_HRY_ACTIVE     =
    *    I_DRILLSTATE     =
    *    I_DISPLAY_LEVEL  =
    *    I_USE_TEXT       =
    *    I_IS_SUM         =
    *    I_IS_REPETITION  =
    **    I_FIRST_CELL     = RS_C_FALSE
    **    I_LAST_CELL      = RS_C_FALSE
    *    I_CELLSPAN       =
    *    I_CELLSPAN_ORT   =
    *  CHANGING
    *    C_CELL_ID        =
    *    C_CELL_CONTENT   =
    *    C_CELL_STYLE     =
    *    C_CELL_TD_EXTEND =
    * URL to another web template
    if I_IOBJNM = '0PLANT'.
    if I_USE_TEXT = 'X'.
    concatenate
    '<A href='
    'BEx?sap-language=EN'
    '&CMD=LDOC'
    '&TEMPLATE_ID=Technical name of Your TARGET Template'
    '>' I_TEXT '</a>'
    INTO c_cell_content.
    endif.
    * URL to another web template with variable passing:
    if I_USE_TEXT = 'X'.
    concatenate
    '<A href='
    'BEx?sap-language=EN'
    '&CMD=LDOC'
    '&TEMPLATE_ID=Your TARGET Template'
    '&CMD=PROCESS_VARIABLES'
    '&REQUEST_NO=0'
    '&CMD=PROCESS_VARIABLES'
    '&SUBCMD=VAR_SUBMIT'
    '&VAR_NAME_1=Variable in the query of your Target template'
    '&VAR_VALUE_EXT_1='
    I_CHAVL
    '>' I_TEXT '</a>'
    INTO c_cell_content.
    endif.
    end method.
    method STRUCTURE_CELL.
    *CALL METHOD SUPER->STRUCTURE_CELL
    *  EXPORTING
    *    I_X                 =
    *    I_Y                 =
    *    I_IOBJNM            =
    *    I_AXIS              =
    *    I_STRUCTUR_MEMBER   =
    *    I_STRUCTUR_MEMBER_2 =
    *    I_TEXT              =
    *    I_IS_SUM            =
    *    I_IS_REPETITION     =
    *    I_CELLSPAN          =
    *    I_CELLSPAN_ORT      =
    *    I_HRY_ACTIVE        =
    *    I_DRILLSTATE        =
    *    I_DISPLAY_LEVEL     =
    *  CHANGING
    *    C_CELL_ID           =
    *    C_CELL_CONTENT      =
    *    C_CELL_STYLE        =
    *    C_CELL_TD_EXTEND    =
    IF I_IOBJNM = '3AG5XBEXL78XSSA311CAJHVFD'. "UID of your structure
    CASE I_TEXT.
    WHEN 'Display Text of a selection in your structure' .
    concatenate
    '<A href='
    'BEx?sap-language=EN'
    '&CMD=LDOC'
    '&TEMPLATE_ID=Z************'
    '&SET_DATA_PROVIDER_1=DP1'
    '&INFOCUBE_1=Z******'
    '&QUERY_1=Z************'
    '&SET_DATA_PROVIDER_2=DP2'
    '&INFOCUBE_2=Z***********'
    '&QUERY_2=Z***************'
    '>' I_text '</a>'
    INTO c_cell_content.
    WHEN...
    END CASE.
    ENDIF.
    end method.
    method DATA_CELL.
    *CALL METHOD SUPER->DATA_CELL
    *  EXPORTING
    *    I_X                   =
    *    I_Y                   =
    *    I_VALUE               =
    *    I_DISPLAY_VALUE       =
    *    I_NUMERICAL_SCALE     =
    *    I_NUMERICAL_PRECISION =
    *    I_CURRENCY            =
    *    I_UNIT                =
    *    I_ALERTLEVEL          =
    *    I_IS_SUM              =
    *  CHANGING
    *    C_CELL_ID             =
    *    C_CELL_CONTENT        =
    *    C_CELL_STYLE          =
    *    C_CELL_TD_EXTEND      =
    *Make data in 8th Column as Hyperlink with Variable Passing
    if i_x = 8.
    concatenate
    '<A href='
    'BEx?sap-language=EN'
    '&CMD=LDOC'
    '&TEMPLATE_ID=Z*********'
    '&CMD=PROCESS_VARIABLES'
    '&REQUEST_NO=0'
    '&CMD=PROCESS_VARIABLES'
    '&SUBCMD=VAR_SUBMIT'
    '&var_name_1=Z***************'
    '&var_operator_1=BT'
    '&var_sign_1=I'
    '&var_value_low_ext_1='
    c_cell_content
    '&var_value_high_ext_1='
    end_date
    '&VAR_NAME_2=Z**********'
    '&VAR_VALUE_EXT_2='
    filter
    '>'
    c_cell_content
    '</a>'
    INTO c_cell_content.
    endif.
    endmethod.
    Also check this out... this link has a whole bunch of information about table interfaces..
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/49dfeb90-0201-0010-a1a2-9d7a7ca1a238
    Hope this helps!
    Thanks

  • How to display characteristic values in X achsis in chart web item

    Hello,
    I have a chart web item which has to display key figure (Y achsis) with three characteristics T, A and B.
    The first characteristic T has two values T1 and T2 which are represented through two columns in the graphic area.
    The second characteristic A has three values and the second B has 7 values.
    The  characteristic values have to be listed as below in the graphic:
    Y
    ^
    |
    |   T1T2  T1T2  T1T2 T1T2  T1T2 T1T2 T1T2  T1T2  T1T2 T1T2  T1T2 T1T2
    |.......................................................................................................................................................> X
    0__A1__A2___A3__A1__ A2__A3___A1___A2__A3__A1__ A2     A3
    _______B1________B2_______B3______B4_______B5__________..........
    The third characterisitic with the two values T1T2 will be represented in the graphic with two chart colors which will be explained by the legend.
    How can i  set the chart item so that the characteristics values (for example 5 characters for each values) can be displayed for example vertically in the X achsis as drawed above.
    Thanks for helping
    Arnaud
    Edited by: Arnaud on Aug 5, 2009 5:50 PM
    Edited by: Arnaud on Aug 6, 2009 10:47 AM

    Hi,
    check the help.sap:
    Formatting Axes and Gridlines
    http://help.sap.com/saphelp_nw04s/helpdata/en/eb/2e373be72b2f48e10000000a11402f/frameset.htm
    Chart
    http://help.sap.com/saphelp_nw04s/helpdata/en/33/489d39d342de00e10000000a11402f/frameset.htm
    Regards
    Andreas

  • Help search Characteristic value

    Hi gurus,
    I need one help search for all existing characteristic values in the system.  I have a chareacteristic name, lets say XPTO and i want to show all existing values in the system that XPTO has in the AUSP.
    Can someone help?
    Thk,
    Regards

    Hi  friend there  is  no serach help  for your  characteristic value and the characteris  name ....
    so  one thing  you have to  create a serach help  it and  attach to there  data element  ....
    if you want  you  see  it by pressing in the F4 help ..  it wont work     because  there is no seaarch help  ......
    Girish

  • Conversion of Characteristic Values to SIDs is taking long time

    Hi Experts,
        Cube load is taking more than 7 hrs to complete for 6 million records. Max time is at Conversion of Characteristic Values to SIDs. Cube consists of 500 fields. Load is from DSO to Cube. DSO has 10 fileds with no SID flag check for activation. Remaining fields in the CUBE are pouplated looking in to other DSO's. Start and End routines are executing very fast. How to fasten Conversion of Characteristic Values to SIDs step.  I need to load 15 million records daily as part of delta. any suggestions.
    Thanks
    Sunil

    Hi Sunil,
    Go through the below link, it will be useful
    http://aq33.com/business-warehouse/Articles-05269.html
    Regards,
    Marasa.

  • Get batch characteristic value

    Hi Experts,
    I need to get the characteristic value of a batch if I provide with batch number and characteristic name as parameters.
    Is there any standard function module for this?
    Regards
    Thanks in advance
    Prathib

    Dear,
    BAPI_CLASS_SELECT_OBJECTS gets objects for a class. If you want to retrieve the characteristics, try using BAPI_CLASS_GET_CHARACTERISTICS.
    or check FM CLFM_SELECT_AUSP
    Regards,
    R.Brahmankar

  • Populate Batch characteristic values in create sales order BAPI

    Can anybody help me in populating the batch characteristic values using BAPI_SALESORDER_CREATEFROMDAT2?
    I have checked the related notes provided by SAP, like, 567348 but it will be great if someone can send some code snippet on this.

      Subramanian, Brad and Raja.
      Thanks for your suggestions its were useful, with
      these i can resolve my problem.
       !!! Best Regards !!!
    Raja
      I used the se37 to test bapis, is more easy and fast !!
      and you can save data like variant, and you can simulate the real execution without write any code abap,
    and re-process the times that you need,
    when you know what fields you need you write your abap code faster.
       Thanks !!!
    Message was edited by: Noemi Huerta

  • Performance - Conversion of characteristic values to SID

    Greetings:
    Yesterday I load 556.000 record into an infocube.
    No transformations of any kind. Direct assign for every infoobject. Very simple
    It lasted 1 h 30m to complete the loading.
    It started loading  7 datapackage of 50.000 records each.
    I realized that 3 of those datapackage (#2, #4 and #7) lasted from 41:47min to 41:59min in the "Conversion of characteristic values to SID" task. The other 5 lasted ... seconds.
    Any idea of that could be going on during this conversion?
    I don't understant why some datapackages last so long and other don't.
    Does anybody has any idea about this?
    Thanks in regards.
    Guillermo

    Hi Daniel,
    The SID generation is based upon the Dimension Table and Master data.
    If you see the dimension table can be build with different types like:
    one to many
    many to one
    many to many
    one to one
    So, if the dimension's for that datapacket data is many to many then it has to get all the relations and then it has to assign an SID.
    If it is one to one then there will be no more work to be done by the system to assign the SID's
    Hope you understood the back-end process.
    With Regards,
    Ravi Kanth.

  • Slow dataload into Infocube- Conversion of Characteristic values to SIDs

    Hi All,
    we are facing a slow delta load issue when loading from a DSO into an InfoCube ( approx 150,000 recs).
    After checking the monitor found that
    - The Conversion of Characteristic values to SIDs is taking time
    - The Start Routine time is real quick ( in secs)
    The underlying DSO is hugh and there is no SIDs Generation upon Activation flag set for it
    Master data is loaded first and than we are loading the transaction data.
    i've tried refreshing the stats of the Cube, Reduce the size of the data package,
    Deletion of Indexes than Loading and recreation of Indexes, no joy at all.
    Any comments and recommendations are much appreciated.
    Thanks,
    Natalie

    Hi Natalie,
    The problem for your slow delta load from DSO to cube is because the SIDs Generation upon Activation flag is unchecked at DSO level .
    Becasue of which your activation is faster but your loading from DSO to cube will be slower as you only mentioned that SIDs are being generated .
    One recommendation will be to switch on the property of the DSO SIDs Generation upon Activation flag .
    Are there any secondary indexes also in DSO ?
    You can try deleting them also during loading the data from DSO to cube .
    I guess your change log table is also huge in this case . If possible we can think of deleting the log table also . Then for the new records let it get filled .
    Hope the above reply was helpful.
    Regards,
    Ashutosh Singh .
    Edited by: DEADLOCKS on Apr 21, 2011 5:08 PM

  • Conversion of Characteristic Values to SIDs. Load Very slow

    Hi Experts,
                     We have a slow load issue when loading from a Write-Optimized DSO into an InfoCube. 8 millon recs in 10 hours.
    We check the start, end, and rules routines and every is ok but for all the package the load was very slow in the Conversion of Characteristic Values to SIDs.
    Can any help me with this?
    Thanks a lot,
    Alejandro

    Hi,
    It is because the SIDs Generation upon Activation flag is unchecked at DSO level .
    One recommendation will be to switch on the property of the DSO SIDs Generation upon Activation flag .
    Are there any secondary indexes also in DSO ?
    You can try deleting them also during loading the data from DSO to cube .
    Also load your master data first and activate it before loading it to cube.
    Thanks,

  • BI-IP: Change of characteristic value in ABAP EXIT planning function

    Hi
    I have created a planning function of the type EXIT with reference data without blocks. In method IF_RSPLFA_SRVTYPE_IMP_EXEC_REF~EXECUTE I am going to implement my code.
    Now, one of the purposes is to update the VALIDTO of an existing record. Is it possible to modify the characteristic values directly in C_TH_DATA (thus allowing me to just update the date directly on the record) or can I only append records?
    Cheers!
    /Karsten

    Hi Larse,
    Yes you can change directly your value in a record withou appending a new one,but still it will create 2 records in the delta buffer ready to be save to the cube.
    Reagrds,
    Eitan.

  • BI-IP change characteristic value in FOX

    Hello Guys,
    i want to change the characteristic value in FOX.
    Therefore the FOX runs through all char combinations to identify the highest
    number for the char test.
    This step works fine, but i cant write the value for maxloop in the cube.
    If i try, only the old row is deleted, but i dont get a new row with the calculated value for maxloop.
    the code looks like this:
    DATA LOOP TYPE test.
    DATA MINLOOP TYPE test.
    DATA MAXLOOP TYPE test.
    MINLOOP = 00000.
    MAXLOOP = 00000.
    FOREACH LOOP.
    MINLOOP = LOOP.
    IF MINLOOP > MAXLOOP.
    MAXLOOP = MINLOOP.
    ENDIF.
    ENDFOR.
    MAXLOOP = MAXLOOP + 00001.
    {Amount, EUR, #, #, 00200, 00000000, #, 2007, #, #, #, #, #, #, #} =
    {Amount, EUR, #, #, maxloop, 00000000, #, 2007, #, #, #, #, #, #, #}.
    Any suggestions what is wrong here?
    Regards
    T. Mekler

    Hi,
    You have written
    {Amount, EUR, #, #, 00200, 00000000, #, 2007, #, #, #, #, #, #, #} =
    {Amount, EUR, #, #, maxloop, 00000000, #, 2007, #, #, #, #, #, #, #}.
    But as per the statement  MAXLOOP = MAXLOOP + 00001 the MAXLOOP conatins a new figure. Obviously there will not be any record in the cube for this value of MAXLOOP.
    You are assigning this to the record with MAXLOOP = 00200, so system is assigning zero to  0AMOUNT for the record that is having MAXLOOP=00200 value.
    Make the below corrections and test again:
    DATA NEWLOOP type test.
    NEWLOOP = MAXLOOP + 00001.
    {Amount, EUR, #, #, NEWLOOP, 00000000, #, 2007, #, #, #, #, #, #, #} =
    {Amount, EUR, #, #, MAXLOOP, 00000000, #, 2007, #, #, #, #, #, #, #}.
    Regards,
    Deepti

  • How To get Characteristic values for an Equipment in a particular Class ?

    Hi All,
    How i will get  Characteristic values for an Equipment in a particular Class ?
    Any table or FM ?
    Thanks in advance
    Srikanta Gope

    Hi,
    You can use the FM BAPI_OBJCL_GETDETAIL to fetch the characteristic values for an equipment from the table parameters ALLOCVALUESNUM; ALLOCVALUESCHAR; ALLOCVALUESCURR.
    Or u can use the tables EQUI, KLAH, KSSK, AUSP, CABN
    Regards,
    Aditya

Maybe you are looking for

  • CSS layout - two questions on sidebar

    So I'm having trouble with my sidebar: site 1. I want to get it to stretch to the bottom of the div it's in, with a 10 px margin on the bottom, basically, stretch exactly the same distance down as the main content div. I get the impression this is to

  • Messages in deliver queue

    Hello everybody: Is there any way to get the list of the messages that are in que deliver queue for a domain? With hoststatus I can know the number of active recipients, but it would be useful sometimes to get the MIDs of the messages to process them

  • MAC driver for HP Pholtosmart C4200

    How do I get a download from Apple to allow HP Photosmart C4200 for my Snow Leapard

  • Differences between SPA51x and Yealink t22p

    I have a partner who is moving towards TR-069 towards the end of the year. He has been using the SPA303's but these don't support TR-069, the only SPA's that do support this are SPA51x and 525 but these are more costly. Due to this he is going to be

  • Google product listing ad campaigns are not opening with Firefox

    I have a Google Adwords account with Product Listing Ads. Everything was working fine on 10/31, however today, 11/3, the Product Listing ad campaigns are no longer openings and the cursor just spins. I have contacted Google regarding this problem and