Error in mapping the BAPI to the model in vc

Hi all,
I am new to the visual composer.
I have created the new model, i am trying to map the bapi to the model. iam  getting the followin error when tried to select the avialable bapi in the VC
error :  Failed to fetch the meta data
This selected  element can not be added to the New model
Can any body guess what is this error.
Regards
Vijay

Hi Vishal,
This error is coming because you are trying to map the bapi to the model itself. You can only map a bapi to an iView.
Go to <b>Compose Model</b> tab on the right, and select an iView from the Components given. Double click or drag to add it to your model. When you go inside your iView, you will be able to map your bapi now.
Go to page 34 in the following doc:
<a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/63f2052e-0c01-0010-b9a2-e1f7457a7fbe">https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/63f2052e-0c01-0010-b9a2-e1f7457a7fbe</a>
Bye
Ankur
Reward points if it helps!!

Similar Messages

  • Create a Purchase order using the BAPI using the data in the XML file.

    Hello Gurus,
    here is the scenario can anyone help me how to proceed explaining the procedure?
    Create a Purchase order using the BAPI using the data in the XML file.
    comprehensive explanations are appreciated.
    thanks in advance.

    hi,
      first use fm "bapi_po_create".
      then use fm "BAPI_ACC_GL_POSTING_POST"
    The demo environment was made with real business scenario in mind, but following subjects need to be addressed in a live implementation:
    •     No exceptions and error handling is implemented, except the order rejection (e.g. partly delivery);
    •     In Navision both XML Ports and the XML DOM has been used to integrate with SAP XI, because XML ports has some drawbacks regarding to Namespaces in XML Documents (mandatory in SAP XI);
    •     A minimum of SAP and Navision customization is required to implement this solution. (e.g. user exit in SAP, Navision XML DOM).

  • Call the BAPI from the program..

    Hey guys,
    can we  call the BAPI from the program..
    if yes how can  we  can show sales orders being loaded..
    thanks its urgent

    Nishant,
    yes easily you can call bapi from program.
    for getting all sales order use:
    BAPI_SALESORDER_GETLIST
    also am providing a program so that you can see how bapi has to call in program.
    CALL FUNCTION 'BAPI_SALESORDER_GETLIST'
                 EXPORTING
                      customer_number    = lf_customernumber
                      sales_organization = if_sales_organization
                      document_date      = lf_document_date_from
                      document_date_to   = lf_document_date_to
    *              PURCHASE_ORDER     = IF_PURCH_ORDER
                      material           = lf_matno
                 IMPORTING
                      return             = ls_return
                 TABLES
                      sales_orders       = sales_orders.
    Am afraid to say you that above solution you get about bapi it is not for showing the list of SO these are for creating SO.
    Edited by: Amit Gujargoud on Jul 3, 2008 3:12 PM

  • Replacing the bapi with the new bapi for purchase order creation

    Hi,
       In the customised code call is there for the bapi function module  'BAPII_PO_CREATE'.
       Iam trying to replace the call with the code that calls function module 'BAPI_PO_CREATE1'.
       Please help me about what changes I needed to do in the code . As there is much mismatch in the import and export parameters
    and tables in both the function modules.
       Thanks in advance.
    Edited by: anwar.indya on Mar 25, 2011 2:18 PM
    Edited by: anwar.indya on Mar 25, 2011 2:19 PM

    Hi,
    As per  u r requirement
    you can use  : BAPI =>    BAPI_PO_CREATE  with suitable Document  Type ( Stock trasnfert : STO )
    IF  u want to auto po must be created after each delivry in this case you need to use BADI
    'MB_MIGO_BADI; In This BAPI  There is method : POST_DOCUMENT
    In this method u can write code for Auto PO Creation by using BAPI .
    Hope This will Resolve u r query.
    Thanks and Regads
    Santosh

  • Display of Error messages returned in BAPI in the logon language?

    Hi Experts ,
                          I  have a requirement where in I need to display the error messages returned in the return table of BAPI_BILLINGDOC_CREATEMULTIPLE in the logon language..Is there any function module to convert text in the return table to the logon language?..Any pointers on achieving this functionality would be of great help..Thankz in advance

    >
    Shawn Sunny wrote:
    > Hi Experts ,
    >                       I  have a requirement where in I need to display the error messages returned in the return table of BAPI_BILLINGDOC_CREATEMULTIPLE in the logon language..Is there any function module to convert text in the return table to the logon language?..Any pointers on achieving this functionality would be of great help..Thankz in advance
    Hello Shawn,
    Messages are always displayed in the logon language so what's the big deal in it?
    May be the translation is not maintained for this message in the logon language, hence the issue.
    You maintain the translation from SE91.
    Get the message details from the RETURN table --> Trxn SE91 --> Select the Message to translate --> From the menu bar : Goto --> Translation
    BR,
    Suhas

  • Objects_objref_not_assigned  - error ( while executing the bapi) - urgent

    Hi,
    i designed a bapi  which is internally calling a transaction (i.e. TRIP ), and returning the status.
    when i call this in back end(abap) side it is giving the desired results correctly.  but when i call the bapi from the front end side , i am getting the error : objects_objref_not_assigned.
    what could be the reasons.
    for your information : we have provided the correct user name and password to execute this tcode.
    regards
    giri

    hi,
    thx for your response, but in the front end side they are calling the rfc using the JCO connection.
    for  your information other bapi's are all working the way which we call.
    regards
    giri
    since it's very urgent if you give your phone no or email .id , it would be helpful.
    thx

  • BAPI - Locking the Material

    Hi Guru's,
    I'm using the BAPI_GOODSMVT_CREATE to do the Movement types 101.
    The problem is updating perfectly, but if i process the number of records at the same time with the same material number, it is giving the error as
    "The XXXX Data is locked by the user XXXX". I know this error is coming because the BAPI is still working on updating the material data for the previous movement, at the same time the program is trying to do the movement type.
    My question is hoe to check whether the BAPI is updating the Table or not???
    Thanks,
    Adi.

    write a select single to check if the bapi updated the table
    or in the bapi_transaction_commit use wait = 'X'.
    check [this discussion on SAP Fans|http://www.sapfans.com/forums/viewtopic.php?f=13&t=309992]
    MM BAPI Commit - Lock Issues

  • Need to upload mass excel sheet using the bapi bapi_acc_document_post.

    I am assigned with an object, where I need to post the records from a mass excel sheet in to ECC or/and BW basing the dimensions using the bapi bapi_acc_document_post.the excel sheet has header and Item data. I am pretty much new to this bapi's
    please do the need ful

    Check report "ACC_BAPI_TEST_INVOICE_RECEIPT",
    this report calls BAPI "BAPI_ACC_INVOICE_RECEIPT_POST",
    but the parameters are nearly the same.
    Best Regards, Dirk

  • Using the bapi BAPI_INSPECTIONPLAN_CREATE

    Hi ,
      I am using the bapi BAPI_INSPECTIONPLAN_CREATE to create inspection plans.
      Here I am facing one issue, as a part of this creation in inspection characteristics, I am not able to
      handle all the control indicators.
      In this control indicators under Results confirmation block I dont see fields in the BAPI to handle   
      radiobuttons for 1. Required Char  2. Optional Char 3. After Accep. 4 After Rejection
    If anybody is familiar with this BAPI, please help me.
    Thanks,
    Ravi

    Hi Neha,
       Sorry to say this, It does not answers my question. I am having the program created by someone else. The issue is the program is not able to populate the control indicators as specified in the file. Because the programmer has not populated those values in the BAPI, even the program you had given is not having those fields. Also I am not able to find the correct fields to populate the values into the BAPI. If you know this specific thing please help me out.
    Thanks,
    Ravi.
    Edited by: ravi itekala on Dec 4, 2008 1:51 PM

  • Unable to find BAPI in the explorer

    Hi Guys,
      This maybe a common issue. But i was unable to find the solution. I am using ECC6.0.
    I have released the business object and the method successfully.
    I could also test the method. After that i generated the Business Object successfully. But i do not find it in the BAPI explorer.
    I heard mandatory documentation is needed. I am trying to reverse the release and document. It asks for a modification, and i document. Still when i release and generate, it does not come in the explorer.
    If i try to document the Business Object, i get this message Message no. TK103. 'This syntax cannot be used for an object name'.
    Any help will be appreciated.
    Best Regards!
    Sandip
    Edited by: Sandip Roy on Apr 11, 2011 9:21 PM

    Hello Sandip,
    If you're checking in the "Hierarchial" tab, check under the corres. BO application area(you must have maintained it in SWO1).
    If you are checking in the "Alphabetical" tab in the BAPI explorer the custom BOs will be towards the end of the list!
    BR,
    Suhas

  • Time value not at all or in the wrong way send to the BAPI Trip Create From

    Hi @ all,
    I try to call a BAPI by sending besides a couple of other parameters, which are working fine, two times values. Those times are required for creating a (Business-) Trip within SAP. This BAPI requests the time values in the format time (E).
    But it seems not possible for me to send the time values to the BAPI. If I look into the Flash-Debugger I see that the values are empty or including Dates. For sure I'd a look on the right formattings this meens the Input-Fields are declared as Time (E) and connected in the right way.
    If I test the BAPI with the function "Test Data Service" the time values are sent in the right way. So this means to me that there must be a problem within VC by transporting the Input values to the BAPI. Also if I try to send the system time by using the TNOW() function the flash-debugger shows that VC is sending a Date like 31.12.1989 or 20.01.2009. It also makes no difference if I change the Formatting of the input field I alredy tried the most of them.
    I'm really sure that the input fields are declared as Time (E).
    I'm thankfull for any advice...

    This means you're still using Flex 1.5 as your runtime. SAP has introduced Flex 2 RT on SP14 patch 1 onwards. There were a lot of bug fixes and also several new functionality introduced there. I suggest you consider upgrading to the latest SP. Note that you can upgrade VC apart from the portal (only 3 SCAs to deploy) so this means you don't impact the portal itself and continue to have an up-to-date version of VC.
    If you want to solve your problem, I suggest you open a support ticket at SAP and once they see this, they'll let you have those SCAs.
    Regards,
    Natty

  • Unable to calculate the price using the bapi  BAPI_SALESDOCU_CREATEFROMDATA

    hi guys,
    i am   able to create  a  sales order using the bapi BAPI_SALESDOCU_CREATEFROMDATA1' .
    the problem is that we are unable to calculate the price the amount column in the sales order is showing 00000 even though the condition has been taken from condition master.
    thanks.
    Edited by: nishant patel on Jul 21, 2008 9:59 AM
    Edited by: nishant patel on Jul 21, 2008 10:00 AM

    Hi,
    You need not pass the condition records for filling the pricing records in the sales order. The functional consultant will maintain all the necessary pricing procedure and the condition records and it will flow from there.
    May the pricing procedure is not correctly defined for that particular soldto party in the system, once that is maitained then everything will flow correctly.
    Thanks,
    Mahesh.

  • Doubt about How to test the BAPI

    Hi Experts,
    I have one doubt. How to test one BAPI. I have BAPI_DOCUMENT_SAVEOBJECTLINKS
    I am using this BAPI to attach the document to the material. I opened se37 .Here how to test the BAPI wether the BAPI is Suitable to attach the document  or not. Please let me know . Its very urent.
    Helpful answers may be reward points
    Regards
    Khanna

    Hi,
    First you have to create a new document using CV01N tcode. Here leave the document field as blank, document type value can be choosen from F4 help and document part and document version can be given as 0. Press enter and add the necessary values and save. It will then create a new document. Using that document go to SE37 and execute the BAPI. In the BAPI also you need to give the document no that is generated, and document type, document part and document version of the newly generated document. In the OBJECTLINKS table of the BAPI give the material number and other details. Please see the function module documentation of this BAPI also.
    Please reward points if it helps.
    Regards
    Vimal

  • What is badi&bapi  whats the use for both

    plz send me reply

    Hi Rajyalakshmi,
    <b>BADI</b>
    Business add-ins are enhancements to the standard version of the system.
    Business Add-In is a new SAP enhancement technique based on ABAP Objects.
    They can be inserted into the SAP system based on specific user requirements.
    Each Business Add-In has:
    • at least one Business Add-In definition
    • a Business Add-In interface
    • a Business Add-In class that implements the interface
    In order to enhance a program, a Business Add-In must first be defined
    Subsequently two classes are automatically generated:
    • An interface with ‘IF_EX_’ inserted between the first and second characters of the BADI name.
    • An adapter class with ‘CL_EX_’ inserted between the first and second characters of the BADI name.
    The Application developer creates an interface for this Add-In.
    There are multiple ways of searching for BADI.
    • Finding BADI Using CL_EXITHANDLER=>GET_INSTANCE
    • Finding BADI Using SQL Trace (TCODE-ST05).
    • Finding BADI Using Repository Information System (TCODE- SE84).
    1. Go to the Transaction, for which we want to find the BADI, take the example of Transaction VD02. Click on System->Status. Double click on the program name. Once inside the program search for ‘CL_EXITHANDLER=>GET_INSTANCE’.
    Make sure the radio button “In main program” is checked. A list of all the programs with call to the BADI’s will be listed.
    The export parameter ‘EXIT_NAME’ for the method GET_INSTANCE of class CL_EXITHANDLER will have the user exit assigned to it. The changing parameter ‘INSTANCE’ will have the interface assigned to it. Double click on the method to enter the source code.Definition of Instance would give you the Interface name.
    2. Start transaction ST05 (Performance Analysis).
    Set flag field "Buffer trace"
    Remark: We need to trace also the buffer calls, because BADI database tables are buffered. (Especially view V_EXT_IMP and V_EXT_ACT)
    Push the button "Activate Trace". Start transaction VA02 in a new GUI session. Go back to the Performance trace session.
    Push the button "Deactivate Trace".
    Push the button "Display Trace".
    The popup screen "Set Restrictions for Displaying Trace" appears.
    Now, filter the trace on Objects:
    • V_EXT_IMP
    • V_EXT_ACT
    Push button "Multiple selections" button behind field Objects
    Fill: V_EXT_IMP and V_EXT_ACT
    All the interface class names of view V_EXT_IMP start with IF_EX_. This is the standard SAP prefix for BADI class interfaces. The BADI name is after the IF_EX_.
    So the BADI name of IF_EX_CUSTOMER_ADD_DATA is CUSTOMER_ADD_DATA
    3. Go to “Maintain Transaction” (TCODE- SE93).
    Enter the Transaction VD02 for which you want to find BADI.
    Click on the Display push buttons.
    Get the Package Name. (Package VS in this case)
    Go to TCode: SE84->Enhancements->Business Add-inns->Definition
    Enter the Package Name and Execute.
    Here you get a list of all the Enhancement BADI’s for the given package MB.
    Have a look at http://help.sap.com/saphelp_nw04/helpdata/en/04/f3683c05ea4464e10000000a114084/content.htm
    http://help.sap.com/saphelp_erp2005/helpdata/en/73/7e7941601b1d09e10000000a155106/frameset.htm
    http://support.sas.com/rnd/papers/sugi30/SAP.ppt
    http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/abapindx.htm
    http://members.aol.com/_ht_a/skarkada/sap/
    http://www.ct-software.com/reportpool_frame.htm
    http://www.saphelp.com/SAP_Technical.htm
    http://www.kabai.com/abaps/q.htm
    http://www.guidancetech.com/people/holland/sap/abap/
    http://www.planetsap.com/download_abap_programs.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/c8/1975cc43b111d1896f0000e8322d00/content.htm
    <b>BAPI</b>
    BAPI stands for Business API(Application Program Interface).
    I have answered this question before..
    A BAPI is remotely enabled function module ie it can be invoked from remote programs like standalone JAVA programs, web interface etc..
    You can make your function module remotely enabled in attributes of Function module but
    A BAPI are standard SAP function modules provided by SAP for remote access. Also they are part of Businees Objest Repository(BOR).
    BAPI are RFC enabled function modules. the difference between RFc and BAPI are business objects. You create business objects and those are then registered in your BOR (Business Object Repository) which can be accessed outside the SAP system by using some other applications (Non-SAP) such as VB or JAVA. in this case u only specify the business object and its method from external system in BAPI there is no direct system call. while RFC are direct system call Some BAPIs provide basic functions and can be used for most SAP business object types. These BAPIs should be implemented the same for all business object types. Standardized BAPIs are easier to use and prevent users having to deal with a number of different BAPIs. Whenever possible, a standardized BAPI must be used in preference to an individual BAPI.
    The following standardized BAPIs are provided:
    Reading instances of SAP business objects
    GetList ( ) With the BAPI GetList you can select a range of object key values, for example, company codes and material numbers.
    The BAPI GetList() is a class method.
    GetDetail() With the BAPI GetDetail() the details of an instance of a business object type are retrieved and returned to the calling program. The instance is identified via its key. The BAPI GetDetail() is an instance method. BAPIs that can create, change or delete instances of a business object type
    The following BAPIs of the same object type have to be programmed so that they can be called several times within one transaction. For example, if, after sales order 1 has been created, a second sales order 2 is created in the same transaction, the second BAPI call must not affect the consistency of the sales order 2. After completing the transaction with a COMMIT WORK, both the orders are saved consistently in the database.
    Create( ) and CreateFromData! ( )
    The BAPIs Create() and CreateFromData() create an instance of an SAP business object type, for example, a purchase order. These BAPIs are class methods.
    Change( )
    The BAPI Change() changes an existing instance of an SAP business object type, for example, a purchase order. The BAPI Change () is an instance method.
    Delete( ) and Undelete( ) The BAPI Delete() deletes an instance of an SAP business object type from the database or sets a deletion flag.
    The BAPI Undelete() removes a deletion flag. These BAPIs are instance methods.
    Cancel ( ) Unlike the BAPI Delete(), the BAPI Cancel() cancels an instance of a business object type. The instance to be cancelled remains in the database and an additional instance is created and this is the one that is actually canceled. The Cancel() BAPI is an instance method.
    Add<subobject> ( ) and Remove<subobject> ( ) The BAPI Add<subobject> adds a subobject to an existing object inst! ance and the BAPI and Remove<subobject> removes a subobject from an object instance. These BAPIs are instance methods.
    Example Code
    U need to give the step_nr, item_nr, cond_count and cond_type so the correct conditon will be updated. If no condition exists for the given parameters, a new condition will be created.
    U can find these parameters for a particular condition type in table KONV.
    *& Form saveTransactionJOCR
    text
    --> p1 text
    <-- p2 text
    FORM saveTransactionJOCR .
    data: salesdocument like BAPIVBELN-VBELN,
    order_header_inx like bapisdh1x,
    order_header_in like bapisdh1,
    return type standard table of bapiret2 with header line,
    conditions_in type standard table of bapicond with header line,
    conditions_inx type standard table of bapicondx with header line,
    logic_switch like BAPISDLS,
    step_nr like conditions_in-cond_st_no,
    item_nr like conditions_in-itm_number,
    cond_count like conditions_in-cond_count,
    cond_type like conditions_in-cond_type.
    salesdocument = wa_order_information-VBELN.
    LOGIC_SWITCH-COND_HANDL = 'X'.
    order_header_inx-updateflag = 'U'.
    conditions
    clear conditions_in[].
    clear conditions_inx[].
    clear: step_nr,
    item_nr,
    cond_count,
    cond_type.
    step_nr = '710'.
    item_nr = '000000'.
    cond_count = '01'.
    cond_type = 'ZCP2'.
    CONDITIONS_IN-ITM_NUMBER = item_nr.
    conditions_in-cond_st_no = step_nr.
    CONDITIONS_IN-COND_COUNT = cond_count.
    CONDITIONS_IN-COND_TYPE = cond_type.
    CONDITIONS_IN-COND_VALUE = 666.
    CONDITIONS_IN-CURRENCY = 'EUR'.
    append conditions_in.
    CONDITIONS_INX-ITM_NUMBER = item_nr.
    conditions_inx-cond_st_no = step_nr.
    CONDITIONS_INX-COND_COUNT = cond_count.
    CONDITIONS_INX-COND_TYPE = cond_type.
    CONDITIONS_INX-UPDATEFLAG = 'U'.
    CONDITIONS_INX-COND_VALUE = 'X'.
    CONDITIONS_INX-CURRENCY = 'X'.
    append conditions_inx.
    CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
    EXPORTING
    SALESDOCUMENT = salesdocument
    ORDER_HEADER_IN = order_header_in
    ORDER_HEADER_INX = order_header_inx
    LOGIC_SWITCH = logic_switch
    TABLES
    RETURN = return
    CONDITIONS_IN = conditions_in
    CONDITIONS_INX = conditions_inx
    if return-type ne 'E'.
    commit work and wait.
    endif.
    ENDFORM. " saveTransactionJOCR
    BAPI-step by step
    http://www.sapgenie.com/abap/bapi/example.htm
    list of all bapis
    http://www.planetsap.com/LIST_ALL_BAPIs.htm
    BAPI Links :
    http://searchsap.techtarget.com/ateQuestionNResponse/0,289625,sid21_cid558752_tax293481,00.html
    http://www.sap-img.com/abap/interview-question-on-bapi-rfc-abap-objects-tables.htm
    http://www.sap-img.com/fu033.htm
    http://www.sap-img.com/abap/ale-bapi.htm
    Re: bapi
    www.planetsap.com/Bapi_main_page.htm
    www.sapgenie.com/abap/bapi/index.htm
    http://searchsap.techtarget.com/originalContent/0,289142,sid21_gci948835,00.html
    Hope this resolves your query.
    Reward all the helpful answers.
    Regards

  • BAPI for the Tcode Xk03

    Hi
    What is the BAPI for the Tcode XK03
    Regards
    saba

    Hi  All
    Thanks .
    In Xk03 transaction the screen field vendor has input help. If  I choose vendor by material tab in input help and enter material id then i get vendor id automatically ...
    I need BAPI for that..
    In short I need BAPI that takes input material id and returns vendor details
    Regards
    Saba

Maybe you are looking for