BAPi or FM for adding characterstic values of an article

Hi,
Its IS-Retail ECC6.0.
I want a BAPI or a Function module to add "characterstic values" of an article against article number MATNR.
Regards,
Divya

Hi Divvya,
use this BAPI.
BAPI_MATERIAL_GETCHARMERCHHIER
It may be helpful to you.
Thanks

Similar Messages

  • Any BAPI/Function Module for adding new record with dates in PA0027

    Hi all,
    I am tryig to find is there any BAPI/Function module for updating new record with Start Date and End date for specified Personal Number in PA0027 Table.
    In PA0027 table i will be passing start date and end date for selected personal number, it needs to add new record with this details in the table checking the condition that this start date and end dates should not be between any of of start date and end dates for the specified personal number.
    thanks for ur time.
    Murali

    Hi Raj/Suresh thanks for ur answers.
    but i am having a problem,i gave this values.
    INFTY               -
                0027
    NUMBER              -
                00000010
    SUBTYPE             -
                010
    OBJECTID
    LOCKINDICATOR
    VALIDITYEND         -
                03/12/2006
    VALIDITYBEGIN       -
                03/01/2006
    RECORDNUMBER        -
                000
    RECORD              -
                P0027
    OPERATION           -
                CHK
    TCLAS               -
                A
    DIALOG_MODE         -
                0
    NOCOMMIT            -
                Y
    VIEW_IDENTIFIER
    SECONDARY_RECORD
    i am getting short dump saying that
    The source field is too short.
    The current program, "SAPLHRMM", tried to assign a field to a field symbo
    However, the field is shorter than the type of the field symbol, which
    is not allowed.
    The statement in question is in the form ASSIGN f TO <fs> CASTING or
    ASSIGN f TO <fs> with a field symbol that was created using the
    STRUCTURE addition.
    I tried  operation - Chage,Create (same thing for all inputs)
    is this correct funtion moduel for my requirment?
    what ever i am passing the start and end dates this should check in the table records with this personal number and if this start date and end dates are not between of any start and end dates then it should add new record with this dates.
    Thanks for ur time.
    Murali.

  • FM for adding a values in perticuler date

    hi All
    i want to know a FM name by which i can add some values like 10 days or 2 or 23 days(variable days value) in a given perticuler date.
    regards
    Atul

    Hi Atul
    Please use the following code snippet.
      DATA: act_date   TYPE d,
            dys        TYPE p,
            mon        TYPE p,
            yrs        TYPE p,
            ttl_yrs    TYPE p
                       VALUE 0,
            round      TYPE p
                       DECIMALS 2
                       VALUE '0.50',
            act_month(2) TYPE p,
            test_date  TYPE d,
            corr_date  TYPE d.
      act_date = date.
    LOW-DATE = 01/01/1800, HIGH-DATE = 31/12/9999 - Core assumes this
      IF ( date <> '99991231' OR
            sign = '-' ) AND
          ( date <> '18000101' OR
            sign <> '-' ).
        IF sign = '-'.
          dys = - days.
          mon = - months.
          yrs = - years.
          round = - round.
        ELSE.
          dys = days.
          mon = months.
          yrs = years.
        ENDIF.
    adding/subtracting the number of days from sy-datum or actual date
        act_date = act_date + dys.
    modifying the month accordingly
        IF mon <> 0.
          CLEAR act_month.
          act_month = act_date+4(2).
          IF mon > 11 OR
             mon < -11.
            ttl_yrs = mon / 12 - round.
            mon = mon - ttl_yrs * 12.
          ENDIF.
          mon = act_month + mon.
    if month is negative (that is if previous year)
          IF mon <= 0.
            ttl_yrs = ttl_yrs - 1.
            mon = mon + 12.
          ELSEIF mon > 12. " if next year
            ttl_yrs = ttl_yrs + 1.
            mon = mon - 12.
          ENDIF.
          UNPACK mon TO act_date+4(2).
        ENDIF.
    modify the year
        ttl_yrs = yrs + ttl_yrs.
        act_date(4) = act_date(4) + ttl_yrs.
        corr_date = act_date.
        DO.
          test_date = 1 + corr_date - 1.
          IF test_date = corr_date.
            EXIT.
          ENDIF.
          IF sign = '-'.
            corr_date6(2) = corr_date6(2) - 1.
          ELSE.
            corr_date+6(2) = '01'.
            corr_date = corr_date + 32.
            corr_date+6(2) = '01'.
          ENDIF.
        ENDDO.
        act_date = corr_date.
      ENDIF.
      calc_date = act_date.
    Regards
    Harsh

  • Reg:FMS for adding two values

    hi,
    I would like to get the addition of TaxAmount and Total(LC) at each rowlevel trough FMS.
    Please let me know the solution.

    Hi,
    Run below query in query generator and assign this query at required UDF.
    SELECT $[$38.21.number] + $[$38.82.number]
    Thanks & Regards,
    Nagarajan

  • Execute BAPI for different input values and dispaly data in a table

    Hi all,
    I have a specific problem about executing BAPI multiple times for different input values and didplay result in a table.
    I am using the code similar to the following logic.
    Bapi_Mydata_Input in = new Bapi_Mydata_Input();
    wdContext.nodeBapi_Mydata_Input().bind(in);
    String in = wdContext.currentperdataElement.getnumber();
    in.setDestination_From(10)
    wdThis.wdGetMydataComponentController().executeBapi_Mydata_Input();
    in.setDestination_From(20)
    wdThis.wdGetMydataComponentController().executeBapi_Mydata_Input();
    in.setDestination_From(30)
    wdThis.wdGetMydataComponentController().executeBapi_Mydata_Input();
    And I want to display the data in a single table. I want the result in a table for Bapi execution based on input parameters passed 10,20 30.
    But I am getting the table data only for the input parameter 30.I mean its actually display the data in table only for the last input parameter.
    So May I ask you all if you know the solution for this problem.PLease advise me with some tips .or sample code is very much appreciated.I promise to award points to the right answer/nice advises.
    Regards
    Maruti
    Thank you in advance.

    Maruti,
    It seems that WDCopyService replaces content of node, rather then adds to content.
    Try this:
    Bapi_Persdata_Getdetailedlist_Input frelan_in = new Bapi_Persdata_Getdetailedlist_Input();
    wdContext.nodeBapi_Persdata_Getdetailedlist_Input().bind(frelan_in);
    final Collection personalData = new ArrayList();
    String fr1 = wdContext.currentE_Lfa1Element().getZzpernr1();
    frelan_in.setEmployeenumber(fr1);
    wdThis.wdGetFreLanReEngCompController().executeBapi_Persdata_Getdetailedlist_Input();
    WDCopyService.copyElements(wdContext.nodePersonaldata(), wdContext.nodeNewPersonaldata());
    for (int i = 0, c = wdContext.nodePersonaldata().size(); i < c; i++)
      personalData.add( wdContext.nodePersonaldata().getElementAt(i).model() );
    String fr2=wdContext.currentE_Lfa1Element().getZzpernr2();
    frelan_in.setEmployeenumber(fr2);
    wdThis.wdGetFreLanReEngCompController().executeBapi_Persdata_Getdetailedlist_Input();
    WDCopyService.copyElements(wdContext.nodePersonaldata(), wdContext.nodeNewPersonaldata());
    for (int i = 0, c = wdContext.nodePersonaldata().size(); i < c; i++)
      personalData.add( wdContext.nodePersonaldata().getElementAt(i).model() );
    wdContext.nodeNewPersonalData().bind( personalData );
    Valery Silaev
    EPAM Systems
    http://www.NetWeaverTeam.com

  • FM for characterstic value of a function location (asset)

    Hi All,
    Can any one please tell me the FM module to be used for finding the characterstic value for a given characterisctic name of a function location in IL03 (classification).
    I have tried using BAPI_CLASS_GET_CHARACTERISTICS, but it is not yielding the desired results.
    Thanks in advance
    Deepti

    Hi,
    I don't know why you are not getting the proper reult.
    BAPI_OBJCL_GETDETAIL iis uesd to get both character and numeric values back form the classes.
    Check this:
    LV_OBJECT = I_TPLNR.
    CALL FUNCTION 'BAPI_OBJCL_GETDETAIL'
    EXPORTING
    OBJECTKEY = LV_OBJECT
    OBJECTTABLE = 'IFLOT'
    CLASSNUM = 'Z_DEPOT'
    CLASSTYPE = '003'
    TABLES
    ALLOCVALUESNUM = WT_ALLOCVALUESNUM
    ALLOCVALUESCHAR = WT_ALLOCVALUESCHAR
    ALLOCVALUESCURR = WT_ALLOCVALUESCURR
    RETURN = IT_RETURN.
    Furthermore i have a list of BAPI. [Try this link|http://www.saptechies.com/sap-bapi-list/].
    May it helps you.
    Regards.
    DS.

  • Bapi or Function for CJ42 transaction - detail values

    We have the need to import values to plan the revenues of a WBS of a Project from an Excel spreadsheet to transaction CJ42.
    After searching on the forums, I've found a solution to load TOTAL values by using function KBPP_EXTERN_UPDATE_CO (OSS note 625613).
    But we need also to load DETAIL values, having the ability to choose the Cost Element and the Period where the value is stored.
    Exists any function or Bapi that can do this?

    With transaction BDBR/DX Tools I saw that your LSMW it's linked with Bapi BAPI_ACC_REVENUES_POST, which generates a CO document. That isn't what we need.
    Adding some info on the issue:
    We made a transaction to import costs for a given WBS and Version that loads values to CJ40; on this case, the detail values are loaded with bapi BAPI_COSTACTPLN_POSTACTINPUT and total values are loaded by a BDC.
    I would like to do a similar process for the revenue values on CJ42.

  • Values Restricting and variable for single Characterstic?

    Hi,
    An info object has been already restricted with # sign in Rows.(BEX). If I added a varialble to that characterstic how does it work?
    and It allows to add the variable for that characterstic.

    Hello,
    Yes, it will allow you to add the varibale for the characteristics.
    if you have restricted the characteristic with the " #" value, it won't allow that values rest will be displayed as per the selection.
    Thanks,
    Geeta

  • How to Check Characterstic Values  assigned  for a material

    Hi ,
    My requirement is , to  check  each and every material entered in the selection screen  and characterstic values assigned to this,
    I dont need characterstic values  for a material, i have to check whether characterstic values assigned or not , if not i have to give a message..
    I used  CLAF_CLASSIFICATION_OF_OBJECTS FM  for  getting charactersic values
    it is giving NO classification found , but for tghat material classification is existing subsequently characterstic values are also there, i passed material no with leading zeros also.
    i used WMCL_MAT_READ_CHAR_VALUES FM also  , but it is giving  No charcterstic values found for that Material  but characterstic values are assigned for that Material..
    Could u please find out ,where  i am missing

    THIS MATERIAL HAS CLASSIFICATION VIEW  AND CHARACTERSTIC VALUES ALSO MAINTAINED
    DATA : MATNO TYPE AUSP-OBJEK,
          L TYPE I,
    T_CLASS TYPE STANDARD TABLE OF  SCLASS ,
    T_OBJECTDATA TYPE STANDARD TABLE OF  CLOBJDAT.
    MATNO ='631165'.
    CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
      EXPORTING
        input         = MATNO
    IMPORTING
       OUTPUT        = MATNO
    "use this function moduel...
    *Retrieve Batch class , characteristic name and values for Material
      CALL FUNCTION 'CLAF_CLASSIFICATION_OF_OBJECTS'
        EXPORTING
         class              = 'ZCA2535'
          classtype          =  '023'
         features           = 'X'
          language           = 'E'
          object             =  MATNO      "pass material number with leading zeros..
          objecttable        = 'MARA'  
        TABLES
          t_class            = t_class
          t_objectdata       = t_objectdata
        EXCEPTIONS
          no_classification  = 1
          no_classtypes      = 2
          invalid_class_type = 3
          OTHERS             = 4.
      IF sy-subrc = 0.
    ENDIF.
    BUT IT IS GIVING   NO CLASSIFICATION FOUND

  • BAPI for reading CCMS values

    Hey everyone,
    I am currently developing a small application which reads actual values from the CCMS Monitoring, but I got a small problem.
    I actual use the BAPI " BAPI_SYSTEM_MTE_GETPERFCURVAL" to read the values from the ccms environment (e.g CPU_Utilisation).
    But for some values this is not working. A collegue told me to use " BAPI_SYSTEM_MTE_GETMLCURVAL".
    But this one is also not working for all CCMS Items (eg. it is not working for CPU_Utilisation).
    Is there a BAPI which can read all CCMS values. It would be great if there is an BAPI which has the same input parameters as the ones above.
    Regards
    Markus
    PS: (Yes, I know in the near future there will be a new monitoring environment (MAI))

    Hi,
    I figured something out.
    Each CCMS Object has a type. (performance, logging, allerting)
    https://help.sap.com/saphelp_nw04/helpdata/en/6a/c7453bafc6007ce10000000a11402f/content.htm
    I know, that the BAPI " BAPI_SYSTEM_MTE_GETTIDBYNAME" Delivers me the TID for the given MTE-OBJECT-Name tupel. Inside the TID is a field which is called "MTCLASS".
    Can anybody tell me, where I can find the values for the field "MTCLASS" so that I can decide wether to use "BAPI_SYSTEM_MTE_GETPERFCURVAL" or "BAPI_SYSTEM_MTE_GETMLCURVAL"?

  • Bapi for Periodwise consumption values in MM

    HI,
    I need a bapi or funcation module for Periodwise consumption values in MM .
    Thanks,
    babu

    try this
    BAPI_MATPHYSINV_GETDETAIL
    Parameters
    PHYSINVENTORY
    FISCALYEAR
    HEAD
    ITEMS
    RETURN
    ags.

  • Material characterstic values

    Hi All,
    When the material is created via MM01, depending upon the specific class, characterstic values, the material long text is updated.
    My requirement is, is there any FM or BAPI which can give me the values of the class and characters which are in Buffer. I am using the user exit present for MM01 transaction to do this.
    Please help on how to retrive characterstic values which are in buffer.
    Reagrds,
    Shahu

    Hi,
    Check this sample code, if it helps. Also the BAPI is well documented. If you have any question regarding parameter, please have a look at the documentation.
    DATA: begin of lt_valchar OCCURS 0.
    include structure BAPI1003_ALLOC_VALUES_CHAR.
    data: end of lt_valchar.
    DATA: gt_return LIKE bapiret2 OCCURS 0 WITH HEADER LINE,
    p_matnr LIKE BAPI1003_KEY-OBJECT,
    OCCURS 0 WITH HEADER LINE.
    CALL FUNCTION 'BAPI_OBJCL_GETDETAIL'
    EXPORTING
    objectkey = p_matnr
    objecttable = 'MARA'
    classnum = 'CL000099' " Give Class number
    classtype = '001' " Give Class Type
    keydate = sy-datum
    TABLES
    allocvaluesnum = lt_valnum
    allocvalueschar = lt_valchar
    allocvaluescurr = lt_valcurr
    return = gt_return.
    Regards

  • How can I run the report for different input values at the same time?

    Reports version: Report Builder 6.0.8.13.1
    Oracle version: Oracle8i Enterprise Edition Release 8.1.7.0.0
    I want to run the same report for different input parameter values and spool each o/p to different file and ftp to a server. For this, as a first step, I am spooling different input values in to a file, reading those values through a loop and calling the report for that input values. Each report run/execution is taking 15 minutes. Total report execution is taking approximately 4 hours (assuming 16 different input values) to complete. So I have to wait 4 hours to see ALL outputs.
    I would like to run the report parallel for ALL the input values and I should be able to see the ALL outputs with in 15 or 16 minutes.
    In my shell script, I added & symbol at the end of the report call to start/run the job in the background. Due to this the control passed to the next step after the report call. At this place I have an ftp command to send the output file to a different server and it is giving error some thing like “o/p file is not available/created yet". This is due to the fact that report writer is NOT yet completely started/initiated or it is NOT completed the spooling.
    How can I run the report at the same time for all the input values and save the time?
    Thanks in advance.
    Kishore.

    Increase the number of server engines running right now it seems there is only one engine running ,increase it to 4 or 6
    and then atleast 4 or 6 reports will run simultaneously.
    For FTPing the output add to your sript to check whether it is locked and if not then only try to ftp .
    Also for more better functionality read the document (chapter 15 ) for 10g reports for its new fuinctionality.
    http://download.oracle.com/docs/cd/B14099_17/bi.1012/b14048/toc.htm
    Thanks
    Subodh

  • No data found due to cost element adding leading values in report

    Hi Experts,
    I have an issue where when the run the analyser with some values in variable screen it is displaying the output correctly in analyser tool. I am filtering the cost element with a single value for ex 4545000 and I have kept that in rows . Still the report is working fine.  But then when I go back to variable screen and change the input for ex instead of period 3 if I change it to 4 , output is null since the cost element is adding leading values to the existing value in the filter and displaying no result.  for ex 4545000 is getting added with controlling area 0050 and its searching for 00500004545000 and since this is not the cost element value its not displaying output..
    Any ideas how to rectify this or is it a analyser tool issue..
    Thanks in advance
    Kishore

    Hi,
    In my system it looks like this:
    Note that superior infoobject to 0costcenter is 0co_area
    Hope this helps,
    Leszek

  • Expression question: keep adding to value

    Hi!
    I want to animate the cameras z-position based on an audio track. I have converted the audio to keyframes, but now I'm stuck trying to figure out how to feed the audio peak values to the cameras z-position so that they keep adding to each other.
    Simply linking the camera z-position to the keyframe data will make the camera fly back and forth, but I need it to keep going forward in a pulsating motion. So when there is a peak in the audio amplitude, the camera moves more rapidly forward and when there is a flat waveform the camera stays put or moves only slightly.
    Is this possible to do?

    This Position expression should work. Adjust mult to set the sensitivity (how much it moves in response to the audio) and minVal to set how much it moves when there is no audio.
    mult = 10;
    minVal = 5;
    L = thisComp.layer("Audio Amplitude");
    aud = L.effect("Both Channels")("Slider");
    accum = 0;
    for (f = timeToFrames(inPoint); f <= timeToFrames(); f++){
      accum += Math.max(aud.valueAtTime(framesToTime(f)),minVal);
    value + [0,0,accum*mult]
    If you have separated the Camera's dimensions, change the last line to this to make it suitable for Z Position:
    value + accum*mult
    Dan

Maybe you are looking for