BAPI to read relationship.

Hi,
I want to display prospect ID for a particular relationship.
Which BAPI can be used for this?
Regards
Shilpi

hi,
You can use the function module BUPA_RELATIONSHIPS_GET to get all the relationships for a BP.
Regards
Manish

Similar Messages

  • BAPI to read and change schedule lines in APO

    Hello experts,
    We want to firm schedule lines inside the firm zone of the APO procurement scheduling agreements with a daily job. For this we are trying to use BAPI BAPI_POSRVAPS_GETLIST3 and BAPI_POSRVAPS_SAVEMULTI3. The getlist one does not return schedule lines, it returns purchase orders and purchase requisitions. Are these the right bapis to read and change schedule lines in APO? or is there anyother one we can use?
    Thanks and regards,
    Ergul

    Hi,
             You can use the below code to read the schedule lines.
    Checking a session exists
        CALL FUNCTION '/SAPAPO/RRP_SIMSESSION_GET'
          IMPORTING
            ev_simsession = gv_sims
            es_gen_params = gv_params.
    If not create a new session and read it
        IF gv_sims IS INITIAL.
          CALL FUNCTION '/SAPAPO/RRP_SIMSESSION_CREATE'
            IMPORTING
              ev_simsession = gv_sims.
          CALL FUNCTION '/SAPAPO/RRP_SIMSESSION_GET'
            IMPORTING
              ev_simsession = gv_sims
              es_gen_params = gv_params.
          g_cre_chk = 'X'.
        ENDIF.
    CALL FUNCTION '/SAPAPO/CMDS_TPSRC_GET'
        EXPORTING
          iv_ebeln                       = p_l_t_acknh_ebeln
          iv_ebelp                       = p_l_t_acknh_ebelp
        TABLES
          et_tpsrc_all                   = lt_tpsrc
        EXCEPTIONS
          matid_not_found                = 1
          locfrom_not_found              = 2
          locto_not_found                = 3
          scheduling_agreement_not_found = 4
          error_selecting_schedagreement = 5
          OTHERS                         = 6.
      IF sy-subrc = 0.
    reading the scheduling agreement records
        READ TABLE lt_tpsrc INTO ls_tpsrc INDEX 1.
        CALL FUNCTION '/SAPAPO/PWB_BZQID_GET_ORDER'
          EXPORTING
            iv_simid               = '000'
            iv_bzqid               = ls_tpsrc-bzqid
          IMPORTING
            ev_ordid               = lv_iordid
          EXCEPTIONS
            lc_connect_failed      = 1
            no_elements            = 2
            unit_conversion_failed = 3
            OTHERS                 = 4.
        IF sy-subrc = 0.
          CALL FUNCTION '/SAPAPO/PWB_GET_RELATED_ORDERS'
            EXPORTING
              iv_ordid             = lv_iordid
              iv_order_type     = '16'
              iv_simid            = '000'
            IMPORTING
              ev_ordid          = lv_eordid
            EXCEPTIONS
              order_not_found   = 1
              lc_connect_failed = 2
              no_elements       = 3
              OTHERS            = 4.
          IF sy-subrc = 0.
            APPEND lv_eordid TO lt_ordid.
            CALL FUNCTION '/SAPAPO/DM_PO_READ'
              EXPORTING
                iv_simsession     = gv_sims
                is_gen_params     = gv_params
                it_ordid          = lt_ordid
              IMPORTING
                et_schedule       = p_lt_sched
              EXCEPTIONS
                lc_connect_failed = 1
                lc_com_error      = 2
                lc_appl_error     = 3
                OTHERS            = 4.
          ENDIF.
        ENDIF.
      ENDIF.
    Use '/SAPAPO/CMDS_SNP_MM_ORD_MODIFY' function module to change the schedule lines (Pass '16' to iv_order_type parameter).
    Let me know if u have any issues.
    Regards,
    Siva.

  • Bapi to read production order network

    Hi all
    I am searching a bapi to read entire network of a production order. I tried searching on forum but did not find anything.
    Can anybody help me please?
    regards
    Gabriele

    Hi Montoro,
    You can use FM      BAPI_PRODORD_COMPLETE_TECH       to read production order network..
    Thanks,
    Ravi

  • BAPI to read classification of Material Variant

    Hi experts,
    In our customer we are using material with a reference product KMAT (Material Variant), and we need a BAPI to read the configuration of the materials.
    Does anyone knows which BAPI can we use to read the configuration of the material variant?
    We tried to use the BAPI_PRDSRVAPS_GETCLASSES, but for material variant it didn't work, just to products that doesn't have a KMAT related.
    Thanks in advanced
    Thiago Cyrillo

    Thiago,
    Why dont you use a class like /SAPAPO/CL_MC01_CCV and method like GET_SINGLE_CHARVAL?
    Kedar

  • BAPI for read FI documents in material document

    Hi all,
    with transaction ME23N i can display Material Document and in the tab 'Doc. info' i can display FI Documents if i click on the button. I'm looking for a BAPI to read this FI documents from the material document.
    Thanks for your help.
    Cheers

    If you mean that you need to know what BAPI's a particular transaction uses, which I can only assume that's what you mean, then you should access the code behind the transaction and search for 'CALL'. That normally is the standard method that think that most people use. 
    Suppose you want to find the bapi for creating a sales order, you usually use transaction VA01 for this. 
    1. Find out the package of the transaction. 
    Start Va01 go to system --> status. 
    Double click on transaction 
    Package is VA 
    Open this package in SE80 
    Open business engineering-->Business object types 
    Find the BO which sounds the most appropriate 
    I would suggest BUS2032 Sales Order 
    Double click. 
    Open methods. 
    Find the released method with from data or something similar in the name 
    , Createfromdat2 
    Position the cursor in it and click the program button 
    Scroll down to find the bapi used in this method 
    With this way you can also find out programs and FM's 
    2. Start va01 go to system-->status 
    Double click transaction VA01 
    Double click on package 
    Read the application component. (this is SD-SLS Sales) 
    Then open the transaction BAPI 
    Sales and distribution>Sales>sales order 
    createfromdat2

  • CRM - Bapi for creating relationship between BPs with sales area data

    Hi
    I am looking for BAPI for creating relationship between business partners with sales area data in CRM 5.0.
    Example - I would like to create relationship type CRMH03.
    Bapi BUPR_RELATIONSHIP_CREATE does not allow for maintaining sales area data (Sales org, distribution channel, division).
    Does anybody know such a bapi?
    Regards
    Radek

    Hey Radek,
    I am actually looking for the same functionality. Were you able to find a solution although no one replied to your question in this thread? If so, it would be very helpful for me to know. Maybe you have to combine more BAPIs in order to add the organization information to the relationship. But I have no idea how.
    Best Regards
    Mirko

  • FM / Bapi to read capacity utilization

    Hi,
    Is there a BAPI to read capacity utilization for a product-location combo? Or do we have any other means?
    regards,
    shan

    if what you mean is the Capacity utilization of the resources...
    you can see the utilization in the planning book 9ASNP94 capacity view
    you can extract this using the BAPI for Planning book
    there are other ways of extracting this too :
    You can also use /SAPAPO/CDPS_REPT - Order and Resource Reporting
    or in the planning board by choosing the Evaluation >> Resources
    sure of a BAPI but some of these reports might give you a clue about the FM used

  • BAPI to read R/3 messages

    Hi,
    Are there any standard bapis to read r/3 messages (internal/customer) from abap code?
    Thanks
    Paul

    Hi Eugeny,
    I have used the SAP Connector Framework to connect to R/3, get data from a BAPI and then display the data in a HTMLB tableview.
    Have a look at the link below to get information about how to connect to a BAPI from a Java iview.
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sapportals.km.docs/documents/a1-8-4/using sap adapter for connector framework
    Cheers
    Richard

  • BAPI to read inspection lot ATPCAT 'BU'

    Hello All,
    I need a BAPI or FM to read inspection lot in APO.
    The ATPCAT for the same is 'BU'.
    I have tried following BAPIs but of no use as of now:
    1. BAPI_MOSRVAPS_GETLIST2
    2. BAPI_STSRVAPS_GETLIST2
    3. BAPI_POSRVAPS_GETLIST3
    second bapi is for stock so i am almost sure it is of no use.
    I guess first or third should work but it is giving no results.
    in both the BAPIs i am passing product,location,location type and atp category as well.
    Please let me know if there is any other FM/BAPI to look into for reading ATPCAT 'BU' .
    Regards,
    Mukesh Pandey

    Hi Mukesh,
    Contrary to your thoughts, if any BAPI could be relevant, it might be the stock BAPI. Did you already try using it?
    I do not have inspection lot in APO, but can you try the following (I am assuming that you did not try this stock BAPI till now)?:
    Try using the BAPI BAPI_STSRVAPS_GETLIST2 with the selection in STOCK_TYPE_SELECTION  as "14" (This stands for "Stock in Quality Inspection (Relevant to Planning)').
    Other selection that you have to maintain is:
    PRODUCT_SELECTION + LOCATION_SELECTION + LOCTYPE_SELECTION (optional)
    or
    PRODUCT_LOCATION_KEYS
    You were already using these, so this should not be an issue. Try using product, location and Stock_type as selection.
    Alternatively, see if this FM is useful - /SAPAPO/DM_STOCK_GET.
    Before using this, run the FM /SAPAPO/RRP_SIMSESSION_CREATE, and pass on the SIMID and SIMSESSION to the FM /SAPAPO/DM_STOCK_GET.
    Thanks - Pawan

  • Bapi to read customer's partners

    Hi,
    I have to read a customer's ship-to partners with Bapis. Which Bapi should I use?
    Thanks
    Krisztian

    Hi,
    U can try using FM SD_PARTNER_READ. But is is not a RFC enabled FM. If u want BAPI, I think no FM is there. We need to do a small work around using BAPI_SALESORDER_CHANGE. We can just process this without updating any data of SO. Then at return all the SO data will be stored in appropriate tables of FM. U can use that...
    Hope it helps u...
    Sreedhar

  • BAPI to read cube data

    Hi friends !
    Could you please give me the std BAPI names to read data from an infocube (that returns a list of all records, or as a DB aggregation in some way, contained in a cube) ?
    Bye,
    Roberto

    Dirk,
    I think I'll use RSDRI_INFOPROV_READ_RFC FM...but (as I was afraid of) all parameters descriptions are in german and it's a real difficult undertaking to understand something...
    however, I wonder if there is some way to test the output of this FM, considering that:
    - at this moment I'm not able to create the RFC connection...
    - ...so, I think it's not possible to download the output on local on my machine
    - I can use RSDRI_INFOPROV_READ for this purpose...
    - ...but it isn't possible to run this FM on test mode (by SE37)
    Could you please give me some suggestion (insert RSDRI_INFOPROV_READ in an ABAP pgm to see the result of the extraction ?) and some explanation on parameters that I have to use (especially about tables section) ?
    Dirk, do what you can and thanks in advance !
    Grateful,
    Roberto

  • BAPI for reading capacity of a workplace/work center?

    Hi,
    I'm looking for a BAPI/RFC using SAP MII to read the capacity of a workplace/work center in a given time period (eg. one or more days/weeks/...). I would like to use the import parameters plant ( WERKS ), date from, date to, workplace/work center (eg. CRHD-ARBPL ) and capacity category (eg. KAKO-KAPAR ). As output I would like to get a list of (planed/used) capacities as the working time for the given time period at the specified workplace/work center.
    In theory the BAPI CBP_EXC_WC_CAPACITY_REQUEST nearly does what I want. The only drawback is, that it outputs the "wrong" time.
    Let me give an example: The work center uses at a given day a capacity from 6 to 22 clock, including one hour break. This gives us a working time of 15 hours for this workplace and day. And "15h" is the time I need. But as there are working 5 worker at this work center the BAPI CBP_EXC_WC_CAPACITY_REQUEST returns 75 hours (which is 5 * 15). But the result "75" is useless for me as long as I don't additonal get the number of workers.
    I've searched in our SAP system and in this forum, but wasn't able to find another BAPI that gives me the correct time. As an alternative I would need another BAPI to get me the number of workers for a workplace/work center at a given time. But I also was out of luck finding one.
    Looking out for help,
    Simon

    Thanks for your fast reply!
    I have looked to both functions before. Beside that they are both not remote enabled (which is not such a big problem as I could copy them or build a custom BAPI around them) I'm not quite sure how they could solve my problem.
    If I got it right, I would first use CR_CAPACITIES_OF_WORKCENTER to get the KAPID and using it as input for CLOI_WC_CAPACITY_READ. But I have problems to understand the output of CLOI_WC_CAPACITY_READ. The data type of the capacity is a float ( FLTP ) and the number seems to be to big, eg. 9.800000000000000E+01= 98h for one day.
    Could you try to explain your solution once again?
    Thanks,
    Simon

  • BAPI to read and create Identifications numbers in CRM bp screen

    Hello.
    I'm on the hunt for a bapi to update the table 'Identification Numbers' you can view in the bp screen under the 'Identification' tab.
    I'm in the process of writing code that updates everything to do with a contact person bp and am stumped on this.
    I've done a search on 'BAPI_BUPA*' in se37 and looked through them all with no luck.
    Anyone know much about this?
    Thanks

    HI Kieran,
    Did you try using the following report : AI_SDK_USER_BP_GEN
    Also you could refer the following SAP Help link regarding the same
    http://help.sap.com/saphelp_smehp1/helpdata/en/85/390f6e3c534892b18f5ec4212d0571/content.htm
    And LINK2:
    http://help.sap.com/saphelp_crm40/helpdata/en/8b/0c7d4dc8dcd847abf1dd5b314e2703/content.htm
    Best Regards,
    Manthan.

  • BAPI for reading CCMS values

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

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

  • Need BAPIs to read Marketting plan and its Campaigns under it as childs

    Hi All,
    As we aware of under Marketing plan there are multiple campaigns,
    so I need to read those hierarchy using any BAPI or class,
    Please let me know.
    Thnaking you.
    Regards,
    VjmHud

    Hi Shaik Shavali,
         is it possible to get all levels of items i.e. from parent to all childrens vice verse,
         i.e from Marketting plan to all lower level campagins....
        how we can do this?
    Thanking you.

Maybe you are looking for

  • My MacBook Air won't connect to Apple TV.

    Home Sharing is turned on on both the Apple TV and the MacBook Air, using the same apple ID.  Apple TV does not see the computer, and no "push" icon shows in the apps on the MacBook Air.  Using my MacBook Pro and signing on hte same way, I am able to

  • HT4623 problem when update

    please advice, we can't update iOS by messsage "Can't Install update, error in installing iOS 7.0."

  • Can't Get Apple Authorization to Play Purchased iTunes Songs

    I purchased over 200 songs from iTunes on another computer and Apple ID. When I moved and got another PowerMac, I let my .Mac account expire and later I opened another .Mac account with the different Apple ID (the one I am currently using). When I tr

  • 10.2.1 many issues

    I have down loaded version 10.2.1.2122. There seem to be a done of issues 1). Video recording freezes while recording. 2). You can send pictures if you begin a normal text and attach it, but if you are looking and a picture and select share and then

  • Mac unathorizing Win 7 files.

    Im trying to work on a windows 7 and mac network. We are using photoshop and saving a the JPGS on a MAC. Erery time a win 7 user saves files the mac it sets restricted permissions to that file. And windows computers cant open them util the new permis