To Create a Classification View by using  Bapi

Dear All,
I want to create Classification view in Material Master using Bapi. I am using the bapi called  BAPI_OBJCL_CREATE.
In that I am getting the valid output. But the problem is, the view is not created in the material master for the particular material.
Is it any authorization object is required to create the classification view in material master using this bapi.Please help me on that.  
Let me know any other bapi is creating Classification view for the given material.

After the calling of BAPI BAPI_OBJCL_CREATE, read the RETURN table field TYPE = 'S'
Then call the BAPI_TRANSACTION_COMMIT.
This BAPI will update the records in Tables
Syntax
READ TABLE it_return INTO wa_return WITH KEY type = 'S'.
IF sy-subrc = 0.
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
    LOOP AT it_return INTO wa_return WHERE type <> 'S'.
      WRITE :/ wa_return-message_id,wa_return-type,wa_return-message.
    ENDLOOP.
ENDIF.
Regards
Bala Krishna
Edited by: Bala Krishna on Oct 4, 2008 11:56 AM
Edited by: Bala Krishna on Oct 4, 2008 11:57 AM

Similar Messages

  • Create a classification view over bapi

    Hello,
    i start a vb Programm to create a material in sap.
    I get all views with material_savedata but the classification view is missing.
    Does anybody know if there exist a special bapi to create a classification view
    over the .net connector ?
    thanks for any help

    Hello , thanks a lot for the answers. I am using a vb programm with the proxy connector.
    In this connector i have defined:
            Dim oClassnum As String
            Dim oClasstype As String
            Dim oKeydatum As String
            Dim oLanguage As String
            Dim oObjectkey As String
            Dim oObjecttable As String
            Dim oUnvaluated_char As String
            Dim oStandardklasse As String
            Dim oStatus As String
            Dim oAllocvaluechar As New BAPI1003_ALLOC_VALUES_CHARTable
            Dim oAllocvaluecurr As New BAPI1003_ALLOC_VALUES_CURRTable
            Dim oAllocvaluesnum As New BAPI1003_ALLOC_VALUES_NUMTable
            Dim oReturn0 As New BAPIRET2Table
    Try
                oProxy.Bapi_Objcl_Getdetail(oClassnum, oClasstype, oKeydatum, _
                oLanguage, _
                oObjectkey, oObjecttable, oUnvaluated_char, oStandardklasse, _
                oStatus, oAllocvaluechar, _
                oAllocvaluecurr, oAllocvaluesnum, oReturn0)
                MsgBox(oReturn0.Item(0).Message.ToString)
            Catch ex As Exception
                MsgBox(ex.ToString)
            End Try
    When i start the programm i get the error:
    The function  OBJECT_CHECK_ does not exist. 
    WHY ??
    I have also tried to use 
    Bapi_Charact_Getdetail
    to test, if something works but i really do'nt know what the meaning of
    the parameters are . Perhaps somebody can explain them to me.
    I have tried with charactername and used a  *  but the result is always 0.
    Has somebody a documentation of the fields and tables that are
    needed or filled or a little example of the us of the classification.
    thanks a lot

  • How to create the classification view to the customer ?

    Hi All ,
    I need to create a classification view  (Xd03->extras->classification) to the customer in the customer master programmatically. I.e. for an existing customer , I need to  assign the class and corresponding characteristic  values  based on a condition .
    1) Is there a BAPI or FM that assigns the class and characteristics to the customer ?.
    2)When  there is no classification data for a customer , Xd03-extras-> classifications   will give  a message that Class is not assigned . How SAP Is reading this data?
    3)What is the table that I can see the  link B/w Customer  and class ?
    It is urgent , Please help Me .
    Thanks in advance ,
    Dharma .

    Hi Dharma,
    i've got the same problem.
    On my search through DDIC I found table KSSK with key: CLINT and OBJEK (customer number).
    Perhaps it helps
    I solved the prob with the FMs BAPI_OBJCL_CREATE and BAPI_TRANSACTION_COMMIT.
    Kind Regards
    Markus
    Edited by: Markus Pawlinka on May 30, 2008 9:32 AM

  • Delivery cost not created during GRN of PO using BAPI

    I have a customized program which use BAPI - BAPI_PO_CREATE1 to create PO, PO was created successully.
    then program will use BAPI - BAPI_PO_CHANGE to update condition pricing, which is also executed succesfully. all condition pricing (KONV) updated correctly.
    Lastly, the program will use BAPI - BAPI_GOODSMVT_CREATE to create GRN and update delivery cost. However in my case, the delivery cost is not update, EKBZ table record is not created, as well as GRN item line table MSEG table is not updated with delivery cost.
    Anyone face this type of problem before?What is the possible causes?
    Any help and suggestion is greatly appreciated.

    Lai,
    you should try asking this on ABAP forum thread. You will get a response. May be there is another BAPI u should use or may be you the usage of BAPI is incomplete. Pl confirm with ABAP forum.
    Rgds

  • How create animated power view reports using sharepoint list as a data source in sharepoint 2010?

    Hi All,
    I got a client requirement to create reports using SharePoint List as data source. The report should show reflection depends on values changed (I mean animation).
    I have heard about the power view/power pivot which does this kind of animations in reports.
    Can someone please guide me on creating reports which shows animations
    In power view/power pivot using SharePoint List as data source in SharePoint 2010.
    Thanks in advance.
    MercuryMan

    Hi MercuryMan,
    Yes, Power View, a feature of SQL Server 2012 Reporting Services Add-in for Microsoft SharePoint Server 2010 or SharePoint 2013 Enterprise Edition, is an interactive data exploration, visualization, and presentation experience.
    It provides multiple views featuring tiles, slicers, a chart filter, and a number of visualizations, including cards, small multiples, and a bubble chart. So, we can use Power View to do intuitive ad-hoc reporting for business users such as data analysts, business
    decision makers, and information workers.
    Currently, Power View report only supports two types of data models: PowerPivot Worksheet, and data models based on Analysis Services Tabular Model or Multidimensional Cube.
    In your scenario, you can create PowerPivot worksheets using SharePoint List as data source, deploy the PowerPivot worksheet to a SharePoint Library or PowerPivot Gallery, and then generate Power View reports based on the PowerPivot worksheets on the SharePoint
    site.
    To use SharePoint List as data source in Excel PowerPivot, you can refer to the following resource:
    http://blogs.technet.com/b/excel_services__powerpivot_for_sharepoint_support_blog/archive/2013/07/11/excel-services-using-a-sharepoint-list-as-a-data-source.aspx 
    http://technet.microsoft.com/en-us/library/hh230322.aspx 
    To create a Power View report based on PowerPivot model, you can refer to the following links:
    http://technet.microsoft.com/en-us/library/hh231522.aspx 
    http://technet.microsoft.com/en-us/library/hh759325.aspx 
    Regards,
    Mike Yin
    If you have any feedback on our support, please click
    here
    Mike Yin
    TechNet Community Support

  • Exception while creating the Search view by using ZBOL

    Hi,
    I created a ZBOL by using
    http://blogs.moovar.com/sap/sap-crm-create-a-custom-bol-for-web-ic/
    It is working fine.
    I created ZBOL_K.
    Now based on this I want create a Search and Search Result.
    http://blogs.moovar.com/sap/sap-crm-web-ic-create-a-new-search-view-and-result-view/
    In this when I create a Search View I getting the Exception like this.
    I went step by step. But in the third page I write like this.
    <%@page language="abap" %>
    <%@extension name="htmlb" prefix="htmlb" %>
    <%@extension name="xhtmlb" prefix="xhtmlb" %>
    <%@extension name="crm_bsp_ic" prefix="crmic" %>
    <%@extension name="thtmlb" prefix="thtmlb" %>
    <%@extension name="chtmlb" prefix="chtmlb" %>
    <%@extension name="bsp" prefix="bsp" %>
    <%
      DATA: LV_XML TYPE STRING.
      lv_xml = controller->CONFIGURATION_DESCR->GET_CONFIG_DATA( ).
    %>
    <chtmlb:config xml  = "<%= lv_xml %>"
                   mode = "RUNTIME" />
    <thtmlb:advancedSearch id                = "advsO"
                           fieldMetadata     = "<%= controller->get_dquery_definitions( ) %>"
                           header            = "<%= TESTSEARCH->get_param_struct_name( ) %>"
                           fieldNames        = "<%= controller->get_possible_fields( ) %>"
                           maxHits           = "//TESTSEARCH/max_hits"
                           values            = "//TESTSEARCH/PARAMETERS"
                           onEnter           = "SEARCH"
                           ajaxDeltaHandling = "false" />
    Save and Activate the view.
    But when I go to the config tab. It is showing the Error.
    An exception occurred in inbound plug IP_DEFAULT of target view BSP_DLC_CONF/AdvSearchConfig
    An exception has occurred Exception Class  CX_SY_CREATE_OBJECT_ERROR - The object could not be created: The class does not exist. 
    Method:  CL_BSP_MODEL=>CREATE_STANDALONE_MODEL 
    Source Text Row:  10
    And aslo in available Search Criteria  I did not get fields.
    So, then how I can solve this problem.
    Please tell me any solution.
    Regards,
    B.Krishna.

    Hi,
    I created a ZBOL by using
    http://blogs.moovar.com/sap/sap-crm-create-a-custom-bol-for-web-ic/
    It is working fine.
    I created ZBOL_K.
    Now based on this I want create a Search and Search Result.
    http://blogs.moovar.com/sap/sap-crm-web-ic-create-a-new-search-view-and-result-view/
    In this when I create a Search View I getting the Exception like this.
    I went step by step. But in the third page I write like this.
    <%@page language="abap" %>
    <%@extension name="htmlb" prefix="htmlb" %>
    <%@extension name="xhtmlb" prefix="xhtmlb" %>
    <%@extension name="crm_bsp_ic" prefix="crmic" %>
    <%@extension name="thtmlb" prefix="thtmlb" %>
    <%@extension name="chtmlb" prefix="chtmlb" %>
    <%@extension name="bsp" prefix="bsp" %>
    <%
      DATA: LV_XML TYPE STRING.
      lv_xml = controller->CONFIGURATION_DESCR->GET_CONFIG_DATA( ).
    %>
    <chtmlb:config xml  = "<%= lv_xml %>"
                   mode = "RUNTIME" />
    <thtmlb:advancedSearch id                = "advsO"
                           fieldMetadata     = "<%= controller->get_dquery_definitions( ) %>"
                           header            = "<%= TESTSEARCH->get_param_struct_name( ) %>"
                           fieldNames        = "<%= controller->get_possible_fields( ) %>"
                           maxHits           = "//TESTSEARCH/max_hits"
                           values            = "//TESTSEARCH/PARAMETERS"
                           onEnter           = "SEARCH"
                           ajaxDeltaHandling = "false" />
    Save and Activate the view.
    But when I go to the config tab. It is showing the Error.
    An exception occurred in inbound plug IP_DEFAULT of target view BSP_DLC_CONF/AdvSearchConfig
    An exception has occurred Exception Class  CX_SY_CREATE_OBJECT_ERROR - The object could not be created: The class does not exist. 
    Method:  CL_BSP_MODEL=>CREATE_STANDALONE_MODEL 
    Source Text Row:  10
    And aslo in available Search Criteria  I did not get fields.
    So, then how I can solve this problem.
    Please tell me any solution.
    Regards,
    B.Krishna.

  • Creating/confirming transfer order (WM) using bapi/function modules

    Hi,
    I usually use BDC to create transfer orders or other documents in WM, but i've been told that using BAPI is more correct. I'm new to this concept, so could you please tell me how i can find the apropriate BAPI/function modules available for this purpose in 46C ?
    I thank you in advance,
    Bruno

    Hi Gisk,
    i am trying ot create a TO based on a material document and year. Same function as transaction LB12. Do you know which function module i can use for this.
    I am trying to use the function module L_TO_CREATE_SINGLE, i fill in the T_LTAK-MBLNR and T_LTAK-MJAHR. But do not know which fields to fill in.
    Hope you can help me.
    Grtz
    Coeno

  • Creating contract reference with Quotation - using bapi or fm

    Hi Friends
    Currently I am creating contract using function module sd_saleorder_create function module.But as per new requirement we have to create contract referenced with quotation number.
    Please suggest the suitable bapi or function module.if you suggest some thing ..kindly let me know?
    how to create contract referenced with particular line item in the quotation.
    where I need to pass the referenced line items...if you need any inputs..will reply by tomorrow...
    thanks
    Gowrishankar

    gowrishankar p wrote:
    Hi Friends
    >
    > Currently I am creating contract using function module sd_saleorder_create function module.But as per new requirement we have to create contract referenced with quotation number.
    >
    > Please suggest the suitable bapi or function module.if you suggest some thing ..kindly let me know?
    >
    > how to create contract referenced with particular line item in the quotation.
    >
    > where I need to pass the referenced line items...if you need any inputs..will reply by tomorrow...
    >
    > thanks
    > Gowrishankar
    is it really SD_SALEORDER_CREATE? if yes, which version are you in?
    Have you thought about 'BAPI_CONTRACT_CREATEFROMDATA'. Documentation available for this bapi.
    If not, just an FYI, REF_DOC field in (BAPISDHD1) -Contract_header_in structure can be used to pass the ref document and check for the type. You will also need to pass the type for this ref_doc.
    Assuming you have the configuration in place already.
    Search forum for this BAPI to get the sample code.

  • Create GR with with RG23D using BAPI or FM

    Hi,
      We are using the 'BAPI_GOODSMVT_CREATE' to create the GR with this, the GR is created properly, I want to know along with creating the GR can we capture the excise inovice with BAPI, for depot plant. there si one BAPI 'BAPI_EXCINV_CREATE_FROMDATA'  can you give the link how this can be use to create the excise inovice some field ECESS and AT1 not there in this BAPI.
    regards,
    zafar

    Hi,
        Thanks for your reply.
        My requirement is we want to upload the initial stock in depot plant. as the plant is depot we want to upload the excise invoice of the material along with material as the qunaity of invoces are more around 3000 with 30 to 40 ietms in each invoice for making a GR with movement type 561 I have made the BDC now for each GR i want to capture the excise inovice with J1IG as there is no BAPI or FM for J1IG  so which method can be use for this wihout BDC, BDC is one method but it will be difficult as some invoice have the AED, some inovices doest not have also it required to press the tab button.
    regards,
    zafar

  • Create a 3D view like used by Imax

    Hello, I'd like to know how to convert a 2D video I've created into a 3D film which needs to be watched through the original Red/blue glasses. Is there any way of doing this or does it require 2 cameras side-by-side filming simultaneously? Which program needs to be used for this? Premiere Pro or After Effects?
    Thanks
    Arran

    Settings??? Do you mean how do you rotoscope?
    There's the rotobrush tool - Check the help files for the basics
    There's the mask tools - Check the help files
    If your internet access is limited go to a public library and use the internet there and do a Google search or use the links posted above. The process is too complicated to put in a post but the basics for creating a mask is as follows.
    Press the G key to select the pen tool.
    Click and drag to create a mask.
    Press the M key twice mm
    Click the stopwatch next to mask path
    Press the V key to select the Direct selection tool
    Move down the timeline
    Select a vertex and move it which will create a keyframe
    Repeat until your mask follows the action.

  • ERROR - 16016 - FOR FORM CREATED ON A VIEW AND USING INSTEAD OF TRIGGER

    I have created a form based on a view. The view has instead of Trigger on it.
    When I try to update the form I get the following error:
    Error: An unexpected error occurred: ORA-22816: unsupported feature with RETURNING clause (WWV-16016)
    Can anyone tell what the problem is?
    Thanks
    null

    THANKS A LOT IT WORKED.
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Rene' Castle ([email protected]):
    This is a bug with views. If you can edit the PL/SQL code that is generated, you can remove the RETURNING clause and it will work.
    NOTE: This will have to be done every time you edit the form.
    <HR></BLOCKQUOTE>
    null

  • Problem with BOM Quant while creating Sales order with reference using BAPI

    Dear All,
    I am facing problem with creating a slaes order with reference to other sales order by using BAPI_SALESORDER_CREATEFROMDAT2 .
    Sales order is getting created but
    1. It exploding the BOM means the line items which are not there in the reference SO also coming in the new SO ( all BOM items are coming )
    2. Schedule line for BOM header item is getting copied to all sub items of BOM.
    Can any one help me out to prevent the above deviations in creating Sales order with reference by using BAPI_SALESORDER_CREATEFROMDAT2.
    Note: while passing the parameters to BAPI_SALESORDER_CREATEFROMDAT2
    all the data related to items is exactly the same as in the original Sales Order.
    Thanks in advnace.
    Regards,
    John

    Hi All,
    Can any one help me !!!!!!!!!!
    please

  • Create classification view with inbound MATMAS_BAPI iDoc

    Hi there,
    We receive material master data from our customers and create them in our SAP system using a MATMAS_BAPI mssage type.
    Now we should also create the classification view of the materials with a certain classification type and value.
    The MATMAS_BAPI message type does not have segments to create the classification view.
    Doe anybody know what the standard procedure is to achieve this?
    Thank you very much in advance.
    Kind regards,
    Tim

    classification is transported with CLFMAS IDOC.
    Classification is in general independend master data, that has its own area in the SAP menu and IMG.
    It is just an embedded functionality in manual material master maintenance.
    For data transfers it is an extra step and not included in MATMAS IDOC and BAPI.

  • Error:While creation of Classification view using-'BAPI_OBJCL_CREATE'

    Hi all,
    I am using function module -
    CALL FUNCTION 'BAPI_OBJCL_CREATE'
      EXPORTING
        OBJECTKEYNEW            = OBJECTKEYNEW1
        OBJECTTABLENEW          = 'MARA'
        CLASSNUMNEW             = CLASSNUMNEW1
        CLASSTYPENEW            = CLASSTYPENEW1
      STATUS                  = '1'
      STANDARDCLASS           =
      CHANGENUMBER            =
      KEYDATE                 = SY-DATUM
      NO_DEFAULT_VALUES       = ' '
    IMPORTING
      CLASSIF_STATUS          =
      TABLES
      ALLOCVALUESNUM          =
        ALLOCVALUESCHAR         = ALLOCVALUESCHAR1
      ALLOCVALUESCURR         =
        RETURN                  = RETURN1
    for creation of classification of material.But it gives me afollowin errors -
    1)Assignment does not exist or is not valid on
    2)Table   not supported for class type
    3)Assignment was not created
    in return table.
    Thanks.

    Hi,
      Please follow the below steps.
    Creating the Classification View using the Function module 'BAPI_OBJCL_CREATE'.
    Check the Class Type and Class Number which you are passing.
    Generally it will be Class type - 001 (Material Class) and Number will be ENGINEERING.
    It depends.
    But, what you can do is, Check material which has classification data filled.
    And just use the same class Type and Class Number Details.
    Try this way.It should work.
    To know the Available Class Types refer to table TCLA.
    Please let me know, if you want further help.
    Thanks & Regards,
    Vamsi.

  • Creating classification view for the material

    hi friends,
    i need to create a material with various views (as in MM03) based on the material type.
    i am using BAPI_MATERIAL_SAVEDATA for it.
    i am able to create almost all the views except the the classification view for the material.
    can anyone help me with code (i need to write) to create a classification view for the material?
    thanks in advance.

    Hi Karthik,
    Select klart from AUSP into table t_ausp where OBJEK = wa_final-matnr.
      LOOP AT t_ausp.
        w_classtype = t_ausp-klart.
        CALL FUNCTION 'CLAF_CLASSIFICATION_OF_OBJECTS'
          EXPORTING
            classtext            = 'X'
            classtype            = w_classtype
            language             = sy-langu
            object               = w_object
            objecttable          = 'MARA'
    *         no_value_descript    = w_no_value_descript
            change_service_clf   = 'X'
            inherited_char       = ' '
            change_number        = ' '
          TABLES
            t_class              = t_class
            t_objectdata         = t_objectdata
            i_sel_characteristic = i_sel_characteristic
            t_no_auth_charact    = t_no_auth_charact
          EXCEPTIONS
            no_classification    = 1
            no_classtypes        = 2
            invalid_class_type   = 3
            OTHERS               = 4.
        IF sy-subrc <> 0.
        ENDIF.
        LOOP AT t_class WHERE class IN s_class.
          CLEAR : t_allocvaluesnum,t_allocvalueschar,t_allocvaluescurr,
                  t_lreturn.
          REFRESH : t_allocvaluesnum,t_allocvalueschar,t_allocvaluescurr,
                    t_lreturn.
          w_classnum = t_class-class.
    *       Getting the reference tables and values----------------
          CALL FUNCTION 'BAPI_OBJCL_GETDETAIL'
            EXPORTING
              objectkey        = w_objectkey                      "Old reference Material
              objecttable      = 'MARA'
              classnum         = w_classnum
              classtype        = w_classtype
    *          unvaluated_chars = 'X'
            TABLES
              allocvaluesnum   = t_allocvaluesnum
              allocvalueschar  = t_allocvalueschar
              allocvaluescurr  = t_allocvaluescurr
              return           = t_lreturn.
    *     Create with reference-----------------------
          w_objectkeynew = wa_inputfile-to_matnr.
          CALL FUNCTION 'BAPI_OBJCL_CREATE'
            EXPORTING
              objectkeynew    = w_objectkeynew                "New Material
              objecttablenew  = 'MARA'
              classnumnew     = w_classnum
              classtypenew    = w_classtype
            TABLES
              allocvaluesnum  = t_allocvaluesnum
              allocvalueschar = t_allocvalueschar
              allocvaluescurr = t_allocvaluescurr
              return          = t_lreturn.
        ENDLOOP.
      ENDLOOP.
    Prabhudas

Maybe you are looking for

  • Getting error in ADF Login security

    Hi Team, I am making security login mechanism. I referred - Oracle ADF 11g Security - Custom ADF Login Form - Part 1 (High) and part 2 video from youtube. I am not getting any error in my log but after entering username and password its giving me err

  • Email reverts to gmail

    Hi, My itunes account was originally linked to my gmail address. I since added my @me account to it. I use the @me account to log in, but once I log in it then displays my gmail address as the logged in account. How do I desociate this account with m

  • Changing a list's icon's size and position

    Hi there! I have been trying to follow this tutorial to add social media icons to my site: http://www.webtutorialplus.com/elegant-social-media-menu-with-css/ I have managed to do this, however am now trying to rearrange it (I think its in a list form

  • Raw converter for Nikon D610

    I am using PSE 11. I just purchased a Nikon D610. I cannot open nef files. Help and TYIA

  • What happens with dead powerbooks? i need to replace aluminum components

    Does anyone know where to look for (possibly used) replacement aluminum components for my 15" power book. The bottom pan assembly. The rear display housing. and even the top case track pad assembly. I love her dearly but she needs attention, fell out