Bapi's Dependency

Hi Experts
Can one bapi dependent on another bapi?
Scenario:
Suppose in one bapi some fields are there, at the time of using second bapi, second bapi requires some fields from the first bapi...in this situations how the bapis can be handled..please any one can explain with some code..
Thanks in Advance
DS.

Thanks Ganaga,
Can u tell me how the one BAPI can call another BAPI......atleast some syntax....
Regards
DS

Similar Messages

  • How we can find BAPI Release dependent OR Release indipendent

    Hi Every one,
    I want to find some BAPIs which are release dependent or release independent
    ->how we can find BAPI Release dependent OR Release indipendent
    Regards,
    Kmr.

    Hello,
    Maybe the following link can help you :
    [http://help.sap.com/saphelp_46c/helpdata/en/d2/42f955cafe11d1ad0c080009b0fb56/content.htm|http://help.sap.com/saphelp_46c/helpdata/en/d2/42f955cafe11d1ad0c080009b0fb56/content.htm]
    Also take a look at the SAP Notes and related SAP Notes of obsolete BAPIs in the link.
    Success.
    Wim

  • Calling Multiple BAPI's - LUW problem

    Hi All,
    I am calling multiple BAPI's in a program. After Executing First BAPI - the database is updated after the commit work . but for the second BAPI the database is not commited.
    Any Suggestions.
    Thanks in Update.
    Rk.

    Hi,
    1) Are you getting any error messages after the second call?
    2) Are you calling the COMMIT WORK BAPI after each call, or just once after calling the BAPI twice?
    3) Is the second BAPI call dependent on the first BAPI call in terms of data?
    Provide more info on the BAPI you are calling and a code snippet of the program structure, the more information you provide, the more information you will get back from the forum.
    Regards,
    Chen

  • FM ABAP - XI - BAPI

    Hi.
    Have a function mudule in ABAP that's calling a standard bapi.
    Depending on configuration we get back it calls the bapi localy or by calling XI to get information from an other system.
    Calling localy = no problem.
    But how do i setup the configuration in in XI when I perform the following in the functin module?
    CALL FUNCTION 'BAPI_****' DESTINATION dest
    dest = XI
    What do i need to do in XI to get this to work?
    BR
    Kalle

    hi,
    you need to create a whole flow in XI
    BAPI.request - XI - BAPI.response
    if you need to make it synchronous
    you need to develop all objects in ID and IR
    there is no other way
    Regards,
    Michal Krawczyk
    http://mypigenie.com XI/PI FAQ

  • Line item pricing based on total value of the order

    Hi,
    We need to charge as a separate line item (material) 'Insurance' as a % based on the total value of the order less one line item. Our orders are created on the web and posted via a BAPI.
    (a) depending on where the customer is located, we charge a certain added shipping cost.
    (b)  the customer has the choice to ask for insurance or not.
    The actual order may be 10 lines totaling $1,000 and due to location, the BAPI slaps on an added line item of $100. If the customer chose the insurance option, the BAPI needs to slap on another line item whose value would be, say 2% of the total order, i.e. 2% of 1000 (instead of on 1000+100). Of course, if the customer doesn't choose this option he is not charges this extra line and further if the customer is not in the particular region, the 100 charge may also not be there.
    The 2% can vary time to time so needs to be driven by a condition record based on %.
    How can we achieve this in the pricing procedure? The logic of how the BAPI will function is clear to us, we are stuck on the pricing procedure configuration.
    Glad to answer any further questions you may need for clarifications.
    Many thanks!

    Ideally insurance would be levied on end customer based on Inco Terms like CIF, DDU etc.,
    So you can have an access sequence for which you can make use of tables like 033 & 034 in V/07.  In VK11, for this combination, maintain the required insurance percent.
    In condition type V/06, for this condition type, maintain "C" for Manual entries, since you have indicated that customer has the choice.  Otherwise, this can be populated automatically in sale order.
    Similarly, for shipment cost also, you can have the Inco2 as one of the combination so that based on region, this condition type will be populated in sale order.  If you have shipment cost configured, then this can be achieved.
    In your pricing procedure, you have to assign the shipment cost condition type next to insurance and assign the From-To step accordingly.
    thanks
    G. Lakshmipathi

  • Regarding ALV Tuning

    I want to create an ALV report to display the Purchase Order Details, the data will  come from 4 Database tables,I am extracting the data in 4 internal tables and then clubbing them to one final internal table,but the performance of my program is very bad,please suggest me some way.

    hi,
    first avoid occurs o etc.
    delcare internal tables using types for structure and data with header line.
    check for sy-subrc =0. for select statements ,use delete adjacent duplicates.
    if there is large amount of data ise LIST display instead of grid.
    for further performance issues chaeck below links.
    BAP performance depends upon various factors and in devicded in three parts:
    1. Database
    2. ABAP
    3. System
    Run Any program using SE30 (performance analys) to improve performance refer to tips and trics section of SE30, Always remember that ABAP perfirmance is improved when there is least load on Database.
    u can get an interactive grap in SE30 regarding this with a file.
    also if u find runtime of parts of codes then use :
    Switch on RTA Dynamically within ABAP Code
    *To turn runtim analysis on within ABAP code insert the following code
    SET RUN TIME ANALYZER ON.
    *To turn runtim analysis off within ABAP code insert the following code
    SET RUN TIME ANALYZER OFF.
    Always check the driver internal tables is not empty, while using FOR ALL ENTRIES
    Avoid for all entries in JOINS
    Try to avoid joins and use FOR ALL ENTRIES.
    Try to restrict the joins to 1 level only ie only for tables
    Avoid using Select *.
    Avoid having multiple Selects from the same table in the same object.
    Try to minimize the number of variables to save memory.
    The sequence of fields in 'where clause' must be as per primary/secondary index ( if any)
    Avoid creation of index as far as possible
    Avoid operators like <>, > , < & like % in where clause conditions
    Avoid select/select single statements in loops.
    Try to use 'binary search' in READ internal table. Ensure table is sorted before using BINARY SEARCH.
    Avoid using aggregate functions (SUM, MAX etc) in selects ( GROUP BY , HAVING,)
    Avoid using ORDER BY in selects
    Avoid Nested Selects
    Avoid Nested Loops of Internal Tables
    Try to use FIELD SYMBOLS.
    Try to avoid into Corresponding Fields of
    Avoid using Select Distinct, Use DELETE ADJACENT
    Go through the following Document
    Check the following Links
    Re: performance tuning
    Re: Performance tuning of program
    http://www.sapgenie.com/abap/performance.htm
    http://www.thespot4sap.com/Articles/SAPABAPPerformanceTuning_PerformanceAnalysisTools.asp
    check the below link
    http://www.sap-img.com/abap/performance-tuning-for-data-selection-statement.htm
    See the following link if it's any help:
    http://www.thespot4sap.com/Articles/SAPABAPPerformanceTuning_PerformanceAnalysisTools.asp
    Check also http://service.sap.com/performance
    and
    books like
    http://www.sap-press.com/product.cfm?account=&product=H951
    http://www.sap-press.com/product.cfm?account=&product=H973
    http://www.sap-img.com/abap/more-than-100-abap-interview-faqs.htm
    http://www.thespot4sap.com/Articles/SAPABAPPerformanceTuning_PerformanceAnalysisTools.asp
    Performance tuning for Data Selection Statement
    http://www.sap-img.com/abap/performance-tuning-for-data-selection-statement.htm
    Run Time Analyser
    http://help.sap.com/saphelp_47x200/helpdata/en/c6/617cafe68c11d2b2ab080009b43351/content.htm
    SQL trace
    http://help.sap.com/saphelp_47x200/helpdata/en/d1/801f7c454211d189710000e8322d00/content.htm
    CATT - Computer Aided Testing Too
    http://help.sap.com/saphelp_47x200/helpdata/en/b3/410b37233f7c6fe10000009b38f936/frameset.htm
    Test Workbench
    http://help.sap.com/saphelp_47x200/helpdata/en/a8/157235d0fa8742e10000009b38f889/frameset.htm
    Coverage Analyser
    http://help.sap.com/saphelp_47x200/helpdata/en/c7/af9a79061a11d4b3d4080009b43351/content.htm
    Runtime Monitor
    http://help.sap.com/saphelp_47x200/helpdata/en/b5/fa121cc15911d5993d00508b6b8b11/content.htm
    Memory Inspector
    http://help.sap.com/saphelp_47x200/helpdata/en/a2/e5fc84cc87964cb2c29f584152d74e/content.htm
    ECATT - Extended Computer Aided testing tool.
    http://help.sap.com/saphelp_47x200/helpdata/en/20/e81c3b84e65e7be10000000a11402f/frameset.htm
    Just refer to these links...
    performance
    Performance
    Performance Guide
    performance issues...
    Performance Tuning
    Performance issues
    performance tuning
    performance tuning

  • SAP Implementation

    Hi gurus,
    Can you please share your implementation experience with me please.
    I want to know When we start implementation,project preparation and AS IS-TO BE is fine.
    But when we start realization stage from where should we start configuration first?
    Can anybody provide me step by step configuration that is to be started in this stage.
    Means from where from actually we have to start?
    Any help will be awarded........as this is very precious for me and others also......

    Hi,
      the First step in implementation will be to study the biz process i.e AS-IS.
    from there we will write what will be the TO-BE process moving forward in sap.
    this is called Blue print phase. we will indentify what are the gaps in the processes. GAP means that which cannot be handled in SAP. then there will be document to address the GAPS. some can be handled through work around solution or some will remain outside SAP. One example of gap is delivery costs cannot be handled in consignment process.
    the documents of this phase are- ESD(Enterprise struccture document, BP, development list, gap list.
    In realisation phase, we prepare the functional specs for ABAP development, KDS(Key data structure) document like Purchase organisation data, Purchase group data, pricing procedure etc, etc.
    we also prepare the baseline config document.
    it is always better in the realisation phase to start preparing and filling the master template like for material master, vendor master. the users have sufficient time to wet the data. all the authorisation identification should start, otherwise in the end it becomes a big challemage.
    in realisation phase then config are done. before that the system landscape is decided. accordingly the transports will move.
    next is the ITG phase where the consultants check the configs and do testing.
    after tha UAT phase will be there, where users test the system. you have to prepare the test scripts and cases along with the users.
    the training of end users will be conducted depending on the model of training.
    next is the migration phase, the strategy will be prepared for cut over and cut over objects will be identified.
    like open POs, contracts, PIR, etc, etc.
    the template filled by the users will be uploaded in the system with eithere BDC, LSMW, BAPI's depending upon the objects size and volume.
    last is the GO-live  on the date fixed , the users will start performing the transactions.
    Regards
    Rajesh

  • FB01 and BAPI_ACC_DOCUMENT_POST

    Hello,
    I'm using BAPI_ACC_DOCUMENT_POST to simulate FB01.
    Someone has used this BAPI to simulate FB01??
    I cant find the Posting Key (BSEG-BSCHL) in this BAPI, and i really need that.
    Can anyone tell me if i should use this BAPI to simulate FB01 or exists another one.
    And can someone help me to find the Posting Key in this BAPI?
    Thanks in advance
    Best regards.

    Hi,
    The posting key is decided automatically by the BAPI, it depends on the sign you have assigned to the amounts.
    In this case I suppose the BAPI'll use the postig key 40/50:
    - 40 if the amount is greater than 0,
    - 50 if the amount is less than 0,
    So you can have some problem only if you need to use some keys different from 40/50.
    In this case I believe you have to use the BAPI BAPI_ACC_DOCUMENT_POST, here you can choose which posting keys to be used in order to transaction key (<b>KOTSL).</b>
    See the table T030B
    If I could make a suggestion why dont you use <b>LSMW</b> for the same
    The standard object is 0100.
    It uses the standard program RFBIBL00 itself. But you should be able to format it easily
    Here is a document on how you can use the tool.
    http://sapabap.iespana.es/sapabap/manuales/pdf/lsmw.pdf
    <b>Or you can Do BDC</b>
    Look at the below threads, these threads have the sameple code also
    BDC For FB01
    BDC  for FB01  Transaction.
    Suggest you to Search in SDN with key - FB01
    Will get few more useful related Posts.
    Reward points if this Helps.
    Manish
    Message was edited by:
            Manish Kumar

  • Lock table overflow: MC 603

    Hi,
    I hav the lock error MC603 in my program.
    The program makes phone number inserts using
    BAPI_BUPA_CENTRAL_CHANGE
    running in parallel.
    The migration files have unique BP numbers. No duplicate BP numbers.
    Actually I assume the BAPI locks only the BP that it is updating.
    Since no BPs are duplicate in migration files...how can we have lock errors?
    WHo knows?
    Thanks in advance!
    Thomas

    I don't have much knowledge of this BAPI or BP but a simple question would be that what error message you are getting ?
    &(%%^^(*&)&) is locked ?? So that you could know that what field is getting locked by SAP and then can go into its details.
    Also, do use rollback and commit BAPI's after your BAPI call depending on the state, to release the locks in time if not already doing so.
    BR
    Diwakar

  • Change costcenters - userdefined fields

    Hi ABAPers,
    We use enhancement COOMKS01 to add our own fields to the cost center master data. This works fine.
    Is there an FM/BAPI/.. to change the masterdata of costcenters. In particular to change the values of the  userdefined fields?
    Hope you can help me.
    Bert

    Hi Bert,
         Actually, depending on what version/hotpack of SAP you are on, you can update the user defined fields on the cost center via the BAPI extension in structure EXTENSIONIN. Please read the standard SAP documentation on BAPIs regarding and how to use the EXTENSIONIN structure with your user defined fields.
    Also you can look at BADI (Business Add On) definition "K_CCA_CUSTOMER_FIELD" via SE18 to see the BADI for the user define fields on the Cost Center Master for the BAPI. Depending on what version of SAP you are on, you might have to implement this BADI. (4.7 we had to implement the BADI where as pre 4.7, I don't think you need to implement the BADI, just use the extensionin structure)
    I hope this helps.
    Mike V.

  • Could not open the ICU common library or RFC DLL not found

    Hello all,
    I'm using SAP .NET Connector for integration between .NET application and SAP System. (SAP ERP2005 (SAP ECC 6.0) SP11 installed on Microsoft Windows Server 2003 R2 Standard x64 Edition; I use MS WinXP SP3 and SAP .NET Connector2.0, SAPGUI 7.1)
    One of the following errors appears when I try to call document checkin/checkout BAPI (it depends on which set of ICU libraries we use):
    u2022      u201CCould not open the ICU common libraryu201D in case when I use ICU dll from our basis first set
    Could not open the ICU common library.
    The following files must be in the path described by
    the environment variable "PATH":
    icuuc30.dll, icudt30.dll, icuin30.dll
    u2022      u201CRFC DLL not foundu201D in case when I use ICU dll from from http://icu-project.org/
    Please, help if you know how to solve this issue.
    Regards,
    Alex
    Edited by: Alexey120 on Feb 5, 2010 11:20 AM

    I solved the problem with ICU dll by means of reinstall SAPGUI 7.1. But now I call BAPI checkin/checkout and don't get any result. Can anybody to provide an C# example how call BAPI like checkin/checkout?

  • Bapi for sfg dependent dem,snp planned order qty, and ppds planned orde qty

    Hi Gurus,
    I am not much familiar with APO, so please help me,
    Input details:
    Field                         Value     
    Planning Version     000     
    Source Location *     1001     Single/Multi Value
    Product *                          1000061     Single/Multi Value
    Production Planner *     PRC     Single/Multi Value
    Start Date *          
    End Date *          
    o/p:
    Source Location     Date     Semi-Finished Material     Material Description     SFG Dependent Demand     SNP Planned Orders qty     PPDS Planned order Qty     Total SFG Variance due to Lot size     Total SFG Variance reference to dependent demand
    1001     15-Jul-10     1000041PP     PRIMARY FF MILK  3% FAT     340     412     420     8     80
    1001     15-Jul-10     1000041PP     PRIMARY FF MILK  3% FAT                         
    1001     15-Jul-10     1000041PP     PRIMARY FF MILK  3% FAT                         
    Is there any bapi to fetch the data as shown in o/p.
    Thanks

    Hi Phani,
    Tryout the below BAPIs
    IF10503 (object)
    BUS10503
    Regards
    R. Senthil Mareeswaran.

  • FM or BAPI for Group Dependency

    hi experts,
    i need to create Dependency with Dependency group through Report program.
    T-Code CU01.
    please help me to find out any BAPI or FM for the same.
    Thanks in advance,
    Amol

    Hi,
    use BAPI_PO_CREATE, po_header-doc_type = 'UB'
    Thanks,
    Reward If Helpful.

  • BAPI- To Pick DEpendent Demand  in APO

    Hi All,
           I am working in APO-ABAP.I Am Using a Bapi to Get The Dependent demand for a Product.Bapi is BAPI_MOSRVAPS_GETLIST2.But this is not picking the same for ATPCAT-AU,AV,AX,EL,AY,AZ.Does anyone know any other BAPI to pick the same.Urgent
    regards
    Ahasan

    Dear Ashok
    Your requirement can be met using DP BOM. I am not sure about parent child CVC's , but DP - BOM should work.
    You need to first create and activate PPM/ PDS for DP with usage D (BOM Demand Planning).
    Assign it to model and create a  planning object structure with DP BOM relevant.
    Create the master and CVC based on MPOS
    Create a PA with 2 different KF( one for finished product, another for dependent BOM). Initilize the PA and version.
    Config the forecast settings for PA.
    Pl see through the below link
    [http://help.sap.com/saphelp_scm50/helpdata/en/e8/d47139f5a04c61e10000000a114084/frameset.htm]
    Rewards points if it helps
    Regards
    Nav

  • BAPI for Characteristic Dependency

    Hi Friends,
    We need to maintain the Characteristics & their dependency in each client as it is Master data. As per my knowledge we can use to create them  through Mass upload like LSMW, BDC or BAPI. Since the data is very huge, is there any way to do.
    When I was checking u201CBAPI_CHARACT_CREATEu201D , I couldnu2019t  find there is option for Dependency upload. Is there any other BAPI for this.
    Regards,
    Sai Krishna

    Hi Sai,
    For each characteristic you need to assign dependancy separately and also if a charactistic is having multiple values, there also you need to assign dependancies separately. This is standrad behaviour.
    As on date there is no BAPI or any other method to assign single dependacy to multiple characteristics or values at a time.
    but this can be achived without using dependancy editor. Write a z-program for additional data so that only those fields can be displayed which are required after one single field( single characteristic). It will be out of dependancy editor and separate program. for this you may use function module BAPI_DOCUMENT_GETDETAIL2.
    Hope this will help.
    Regards,
    Ravindra

Maybe you are looking for