BAPI Funda Doubt

hi,
     If i'm developing a BAPI for any composite application which will communicate with .NET/Java application to pass data.Assume this scenario is working fine with fetching data for material 100-200 material.Now in a day i added 10,000 more material in my master.Now the performance may degrade and .net/Java application has to wait for the data to come into its environment and often it will get timeout.So how to deal with these kind of situations or What is the Error Handing Process in these types of scenario.
Thanks,
Gaurav

Hi
U have to use extension structure (EXTENSIONIN)
In the table parameter of the BAPI you can see EXTENSIONIN structurated as BAPIPAREX.
U need to do the following steps before using it:
By SE11:
- Extend the structure BAPE_VBAP and BAPE_VBAPX in order to insert the new fields
- Extend the structure VBAPKOM and VBAPKOMX (if it's necessary) in order to insert the new fields
In your report
- Transfer the value to EXTENSIONIN:
BAPE_VBAP-POSNR = <POSNR>.
BAPE_VBAP-NEW FIELD = .......
EXTENSIONIN-STRUCTURE = 'BAPE_VBAP'.
EXTENSIONIN+30        = BAPE_VBAP.
APPEND EXTENSIONIN.
BAPE_VBAPX-POSNR = <POSNR>.
BAPE_VBAPX-NEW FIELD = 'X'.
EXTENSIONIN-STRUCTURE = 'BAPE_VBAPX'.
EXTENSIONIN+30        = BAPE_VBAPX.
APPEND EXTENSIONIN.
Max

Similar Messages

  • BAPI Communication Doubt

    hi,
    If i'm developing a BAPI for any composite application which will communicate with .NET/Java application(JCo or .NET Connector) to pass data.Assume this scenario is working fine with fetching data for material 100-200 material.Now in a day i added 10,000 more material in my master.Now the performance may degrade and .net/Java application has to wait for the data to come into its environment and often it will get timeout.So how to deal with these kind of situations or What is the Error Handing Process in these types of scenario as my data is going to increase day by day.
    Thanks,
    Gaurav

    Hi ,
    im not saying u will get only 1000 Records initially .
    im saying tht .
    u can restirct the intial display no .of records in portal usually portal takes lot of time to fecth data from R/3 . so thats so first when customer hits on submit it will display 1000 records . but user wont see all the records right then u can provide one serch option to get all the records thru tht option okay so it will go to back end it will get all the records from backend .
    similar problem we face in our project so we did the same at that time k .
    try  to resrtict no of records for initial to fecth data and to overcome timeout error .
    Regards ,
    venkat

  • BAPI field doubt

    Hi Experts!
    I am using BAPI_SALESORDER_CREATEFROMDAT2 bapi to create sales orders and trying to fullfill with this a field called "Customer Material Number" in transaction VA02.
    Unfortunatelly I didn't get it with Table parameter called ORDER_ITEMS_IN, field CUST_MAT22.
    Any suggestions?
    Thansk!
    Michel Khouri

    Hi
    U have to use extension structure (EXTENSIONIN)
    In the table parameter of the BAPI you can see EXTENSIONIN structurated as BAPIPAREX.
    U need to do the following steps before using it:
    By SE11:
    - Extend the structure BAPE_VBAP and BAPE_VBAPX in order to insert the new fields
    - Extend the structure VBAPKOM and VBAPKOMX (if it's necessary) in order to insert the new fields
    In your report
    - Transfer the value to EXTENSIONIN:
    BAPE_VBAP-POSNR = <POSNR>.
    BAPE_VBAP-NEW FIELD = .......
    EXTENSIONIN-STRUCTURE = 'BAPE_VBAP'.
    EXTENSIONIN+30        = BAPE_VBAP.
    APPEND EXTENSIONIN.
    BAPE_VBAPX-POSNR = <POSNR>.
    BAPE_VBAPX-NEW FIELD = 'X'.
    EXTENSIONIN-STRUCTURE = 'BAPE_VBAPX'.
    EXTENSIONIN+30        = BAPE_VBAPX.
    APPEND EXTENSIONIN.
    Max

  • ALE funda doubt

    hi experts,
    First of all let me request you to not answer this question by linking it to some sites or threads.I want its answer written by you in short and brief.
    Why ALE is required??
    Thanks,
    Gaurav

    Hi,
    ALE allows the user to perform an SAP transaction in the sending system, after which the following steps occur:
    1. 1 or more communication IDocs (intermediate documents: container for the application data) are created in the sending system database. An ALE distribution model, that needs to have been configured, determines which systems the IDocs are to be sent
    2.These communication IDocs, that contain the relevant application data of the transaction that was performed, are then passed to the ALE communication layer
    3. This layer performs an RFC call using the port definition and RFC destination determined through the customer model
    4. The IDocs are then transferred to the respective receiving systems. These could be SAP R/3, R/2 or external systems
    5. If the receiving system is an SAP system then:
    -In the case of master data distribution the same transaction that was performed on the sending system is again performed on the receiving system with the data contained in the IDoc. This allows the data to go through the SAP checks before posting occurs
    -In the case of transaction scenarios the relevant data is passed to the respective transactions in order to load the required application document. E.g.. A PO is loaded on the sending side, yet a SO is created on the receiving system
    6. Master data has another difference:
    -It can be set up in such a way that any changes made to specific fields in master data tables can automatically trigger off the ALE distribution process for that particular master data object
    -If a master data object is created or changed on a sending system and distributed to another system the respective transaction is used to either create or change that respective master data object on the receiving system
    In general, if standard SAP can't perform the task required then neither can ALE. It doesn't add functionality, it merely decouples it and allows you to distribute it onto other remote systems.
    The Detail as described by SAP
    In the output processing one of the function modules of the application creates an IDoc, the so-called master IDoc. This IDoc is sent to the ALE layer where the following processing steps are applied:
    Outbound processing
    Receiver determination
    An IDoc is similar to a normal letter in that it has a sender and a receiver. If the receiver has not been explicitly identified by the application, then the ALE layer uses the customer distribution model to help determine the receivers for the message.
    The ALE layer can find out from the model whether any distributed systems should receive the message and, if so, then how many. The result may be that one, several or no receivers at all are found.
    For each of the distributed systems that have been ascertained to be receiver systems, the data that is specified by the filter objects in the customer distribution model is selected from the master IDoc. This data is then used to fill an IDoc, and the appropriate system is entered as receiver.
    Data selection
    Segment filtering
    Individual segments can be deleted from the IDoc before dispatch by selecting Functions for the IDoc processing -> Settings for filtering in ALE Customizing. The appropriate setting depends on the sending and receiving logical R/3 System.
    Field conversion
    Receiver-specific field conversions are defined under Functions for the IDoc processing -> Conversions.
    General rules can be specified for field conversions; these are important for converting data fields to exchange information between R/2 and R/3 Systems. For example, the field "plant" can be converted from a 2-character field to a 4-character field.
    The conversion is done using general EIS conversion tools (Executive Information System).
    Version change
    SAP ensures that ALE functions between different R/3 System releases. By changing the IDoc format you can convert message types of different R/3 releases. SAP Development use the following rules when converting existing message types:
    -Fields may be appended to a segment type;
    -Segments can be added;
    ALE Customizing keeps a record of which version of each message type is in use for each receiver. The correct version of the communication IDoc is created in the ALE output.
    The resulting IDocs (it is possible that several IDocs could be created in the receiver determination) are referred to as communication IDocs and are stored in the database. The dispatch control then decides which of these IDocs should be sent immediately. These are passed to the communications layer and are sent either using the transactional Remote Function Call (RFC) or via file interfaces (e.g. for EDI).
    If an error occurs in the ALE layer, the IDoc containing the error is stored and a workflow is created. The ALE administrator can use this workflow to process the error.
    Inbound processing
    After an IDoc has been successfully transmitted to another system, inbound processing is carried out in the receiver system, involving the following steps in the ALE layer:
    Segment filtering
    Segment filtering functions the same way in inbound processing as in outbound processing.
    Field conversion
    Specific field conversions are defined in ALE Customizing.
    The conversion itself is performed using general conversion tools from the EIS area (Executive Information System).
    Generalized rules can be defined. The ALE implementation guide describes how the conversion rules can be specified.
    One set of rules is created for each IDoc segment and rules are defined for each segment field.
    The rules for converting data fields from an R/2-specific format to an R/3 format can be defined in this way. An example of this R/2 - R/3 conversion is the conversion of the plant field from a 2 character field to a 4 character field.
    Data transfer to the application
    Input control
    When the IDocs have been written to the database, they can be imported by the receiver application.
    IDocs can be passed to the application either immediately on arrival or can follow in batch.
    You can post an inbound IDoc in three ways:
    1. by calling a function module directly: A function is called that imports the IDoc directly. An error workflow will be started only if an error occurs.
    2. by starting a SAP Business Workflow. A workflow is the sequence of steps to post an IDoc.
    3. by starting a work item A single step performs the IDoc posting.
    The standard inbound processing setting is that ALE calls a function module directly. For information about SAP Business Workflow alternatives refer to the online help for ALE programming.
    Regards

  • Doubts in funda's of XI

    Hello Gurus,
        I am some doubts in funda's of XI.  PLEASE HELP ME BY WRITING YOUR OWN IDEAS ( NOOOOOO! LINKS PLEASE   ).
    when in SLD .... you have buttons for creation of "new product" and "new software version component" ..... when SLD is set to show all the products/Software version  components automatically by SAP.... what is the need of these two buttons? 
    when my XI server is connected to R/3 systems i am not able to see this product (R/3 system) in SLD .... but i am able to import the IDOC/RFC to XI server.... why is that happening?
    Well! it also said by one of our gurus that R/3 systems should be defined in SLD of XI to be seen in SLD of XI... as your basis guy is quite busy to answer ... can some one me help to answer my curiousity?
    Cheers!
    SY

    Hi,
    >>><i>when in SLD .... you have buttons for creation of "new product" and "new software version component" ..... when SLD is set to show all the products/Software version components automatically by SAP.... what is the need of these two buttons?</i>
    SLD shows all the products and SWCV of SAP. The button you have specified allow us to create our own software component versions and products.
    One of the reasons as to why we create software component versions,is for modularity.
    Moreover, each of the namespaces under a SWCV has some commonality.
    >>><i>when my XI server is connected to R/3 systems i am not able to see this product (R/3 system) in SLD .... but i am able to import the IDOC/RFC to XI server.... why is that happening?</i>
    You will find an entry for R/3 in the technical system list.
    >>><i>Well! it also said by one of our gurus that R/3 systems should be defined in SLD of XI to be seen in SLD of XI... as your basis guy is quite busy to answer ... can some one me help to answer my curiousity?</i>
    Yes! If this is not done, how will xi know where the R/3 system is? You will have to tell xi, that r/3 is at this IP right? This is what you do in SLD.
    Regards,
    Smitha.

  • Hi guys doubt on bapi please reply

    hi,
    i have doubt on which import parameters to be used in the bapi BAPI_ACC_GL_POSTING_REV_POST we have posting date and document no with us we are confused about what import parameters to be sent as an input to this bapi...........
    reward will be given for nice reply...............

    Give any field string (variable) of type BAPIACREV
    Finally it will give these values..
    Reversal document number:
    o OBJ_TYPE Sender ID
    o OBJ_KEY Reference number of the reversal document (source
    document)
    o OBJ_SYS Logical system
    o OBJ_KEY_R Reference number of the document to be reversed.
    i gave the sender id as bkpff which i was using as obj type for posting.
    is obj_key the new unassigned document number in the row.
    obj_sys gave the specific logical system.
    obj_key_r can i give any document number generated during gl posting using bapi_acc_gl_posting_post
    i even specified the other parameters such as posting date and reversal type but no reversal is done...........need more clarification on this .....
    reward is sure..........

  • BAPI for return/supplement the funds for both overall and fiscal year.

    I have a development requirement for following and I am new to Investment ,management and Project
    Systems functionality.
    Your help will be appreciated
    The new transaction will use the upload data to create returns and/or supplements to Marketing budgets.  The following is what the transaction will do per request:
    •     Verify funds are available to shift.  The program will do this by creating an error log for items that do not meet this criteria.  The program will process all line items that have available funds (IM52).
    Q pls let me know what BAPi/FM to use to verify whether funds are vailable or not
    •     Return the funds for both overall and fiscal year (IM52).
    Q Pls tell me BAPI for same
    •     Supplement the funds for bother overall and fiscal year (IM52).
    Q BAPI for same
    •     Deactivate the availability control for the WBSE’s affected (CJBW).
    Q  How to do that and BAPI/FM for same
    •     Activate the availability control for the WBSE’s affected (CJBV).
    Q  How to do that and BAPI/FM for same
    •     Add appropriate text from the data in the upload spreadsheet (this may be a concatenation of data from the columns in the upload) (IM52).
           Not clear what user is trying to say
    •     The transaction needs to be able to handle whole dollars as well as numbers that might include up to two decimals:  e.g. .01 (IM52).

    I am answering my own question since i completed the above development by using the FM KBPV_POST_DATA .
    It will post to all the BP tables and is tested successfully.

  • Doubt in Basic Bapi function

    Hi experts,
    I have a small doubt in BAPI, Actually i want to add the vendor price only in MEK1. For that am using BAPI to add the vendor price.
    Can anyone tell where we need to write the source code? We need to write a report program? How it will trigger the particular transaction?
    Can any one explain this?
    Mohana

    Hi Mohana,
    for that you need to seacrh for the BADI or Userexit,...when ever any changes are maded in that transaction based one the situation your BADI or userexit will trigger and that will update to the data base...if you use that BAPI in that EXIT.....
    if you are using separatly the program...every time you need to execute that program for updating that field in that transaction...
    Thanks!

  • FI-FM : BAPI/RFC for Funds reservation Creation ?

    Hi,
    I was asked to web enable the creation of funds reservation (= web enable what transaction FMX1 does). I have searched for available BAPI's/RFC's for this but I didn't found one. Since I'm not familiar with FI and FI-FM I maybe didn't search well.
    Do BAPI/RFC's exist for creating Funds Reservations ?
    (My only other option is to create a BAPI myself which does a call transaction to FMX1).
    Best Regards,
    Igor Vernelen.

    the problem was an oss note for no BL on GR for EF

  • Doubt in BAPI

    Hi All I have a doubt in BAPI.
    I have created a function module which is remote enabled module. I didnu2019t create any BAPI using Tcode SWO1 or BAPI. Am using this function module in my VB code to get the data from SAP, Its working fine am getting all data from SAP database.
    My Question is since we can use sap Function module (which is remote enabled module) with out creating BAPI. Then what is the use of creating BAPI.?    
    If we click on radio button Remote enabled module is that function module act as BAPI?
    Please help me.
    Regards
    Prajwal K.

    Hi Prajwal,
    Please check this link
    RFC and BAPI Interfaces to SAP Systems
    http://help.sap.com/saphelp_45b/helpdata/en/cf/8ccab761ea11d2804a00c04fada2a1/content.htm
    BAPI's are the remote enabled Function modules which are defined in the Business Object Repository (BOR) as the methods of the business objects.I can say BAPI is the subset of RFC. RFC connects to the other system via BAPI and vice versa.
    BAPI methods 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.BAPI is having all Key fields, methods, interfaces etc.
    Best regards,
    raam

  • Bapi doubts

    Hi All ,
    I have some doubts in Bapi
    1) why we can not use exception in Bapi ?
    2)  BAPI must not execute a COMMIT-WORK command.
    3) why its necessary to released the bapi & how ?
    4) In Bapi there is a test  for Example IF 1 = 2. If the test is true a message is displayed. The condition will obviously never be true, and we will never want to display a message in a BAPI
    then why it is necessary ?
    Thanks in advance
    Rahul

    solved

  • BAPI'S to activate for Funds managment

    Hi All,
    While creating purchase order we have an error related to Funds managment.
    in the program we have the FM 'FM_ACCOUNT_DERIVE'.we have got an error like
    funds centre value as taken Current date.
    Through this FM only we got the current date value.
    SO do we need to activate any relaed BAPI's
    Could you please help me.
    Thanks.

    Hi All,
    While creating purchase order we have an error related to Funds managment.
    in the program we have the FM 'FM_ACCOUNT_DERIVE'.we have got an error like
    funds centre value as taken Current date.
    Through this FM only we got the current date value.
    SO do we need to activate any relaed BADI's to funds managment.
    Could you please help me.
    Thanks.

  • SAP BPC 10 - SP11 - Retraction to Fund Centres - any idea on BAPIs used to retract to Fund Centres?

    Hi All,
    I have a situation in which I got to retract data (both costs and revenues) to fund centres. Client is not very keen on retracting to Cost Centres. I am looking for any BAPIs available or if there are any other useful ways of achieving retraction to Fund centres.
    Regards,
    Surya.

    Hi,
    I had built that retraction with 'BAPI_0050_CREATE'. There is BAPI_0051_UPDATE too, but the first was enough for me.
    It is very simple.
    Before develop your code, understand the parameters of the by running them on SE37 on ECC.
    Good luck,
    Samuel Matioli

  • Doubt about BAPI

    Hi Experts,
    I have one doubt. I want to Attach document to the material of a particular BAPI  that have been existed in the sap r/3 system.Which BAPI wil work for this to attach a document to the material.Please let me know . Its very urgent.
    Helpful Answers wil be reward
    Regards
    Khanna

    Hi.
    Both of the listed BAPI's have no functionality/option to link a document!
    Can anyone suggest a BAPI/RFC to link a Document while creating a Material? Also, You can link a Document to a Material by "BAPI_DOCUMENT_CHANGE2".

  • 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

Maybe you are looking for

  • File extensions - can't see

    I have the option to view file extensions in my folders. However, I cannot see the file extensions. i am having some problems with some things and I want to make sure I am downloading the *exact* same file from my server (where I can see the file ext

  • Spoofer email Bounce backs create invalid account on server

    Every now and then one of those bottom feeding spoofers starts spoofing our domain name with a random account name to send out scads of spam - and of course the inevitable slew of bounce backs from the unfortunate "spamees" then flood our server. For

  • 2010 mac pro will not sleep

    2010 Mac Pro 10.6.8 recently will not go to sleep. Will awaken without reason when it is put to sleep with menue command. Tried resetting system management controller and PRAM to no avail. Any suggestions?

  • I have just purchased Photoshop Elements 13. Why am I unable to access the program?

    I have just purchased Photoshop Elements 13. I think it was installed. The title shows in my 'Downloads File'. I have tried double clicking on 'install' in the downloads file. All I get is a page of data that doesn't seem to do anything. When I purch

  • User wise change of sensitive fields

    Hi guys, We are having trouble with fields like payment term, payment block and baseline date. All user can change them as and when they want. Is there any possiblity of restricting of the change of these fields to users. I mean here,some users shoul