BAPI/RFC for Sales Order or Warehouse Order that retrives VBAK,VBAP,VBEP

Hi,
   Is there any BAPI/RFC for Sales Order or Warehouse Order that retrives VBAK,VBAP,VBEP and VBPA tables for specified inputs.
   The BAPI or RFC should return the Sales Order details with tables VBAK,VBAP,VBEP and VBPA.
   Rewards if useful.
Thanks,
Mich

Try creating an RFC calling FM: SD_SALES_DOCUMENT_PREFETCH with required details for Header, Item, Schedule and Partners.
Below code can give you idea in handling the FM.
PARAMETERS: p_vbeln TYPE vbeln_vl OBLIGATORY.
CONSTANTS: c_x TYPE char01 VALUE 'X'.
DATA: st_view TYPE order_view,
      i_vbak_key TYPE TABLE OF sales_key,
      i_vbak TYPE TABLE OF vbak,
      i_vbap TYPE TABLE OF vbapvb,
      i_vbep TYPE TABLE OF vbepvb,
      i_vbpa TYPE TABLE OF vbpavb.
START-OF-SELECTION.
  MOVE c_x TO : st_view-header,
                st_view-item,
                st_view-sdschedule,
                st_view-partner.
  APPEND p_vbeln TO i_vbak_key.
  CALL FUNCTION 'SD_SALES_DOCUMENT_PREFETCH'
    EXPORTING
      i_sales_view  = st_view
      i_memory_read = 'A'
    TABLES
      i_vbak_keytab = i_vbak_key " List of Sales Orders to extract
      fxvbak        = i_vbak     " Header
      fxvbap        = i_vbap     " Item
      fxvbep        = i_vbep     " Schedule Lines
      fxvbpa        = i_vbpa.    " Partners

Similar Messages

  • FM/BAPI/Method for Sales Order Costing

    Hi,
    I need the FM/BAPI/Method for Sales Order Costing.
    Which is calculating at run time while process of Sales Order Costing
    Can any one please help me out.
    Thanks
    Chinni
    Edited by: Tirumula Rao Chinni on Mar 10, 2010 3:04 PM
    Edited by: Tirumula Rao Chinni on Mar 10, 2010 3:35 PM

    Vinraaj, thank you very much for your advice and the time you've spent for the ask.
    I am searching for whether there is any SAP offered FM. Therefore, I did not think to check the background (code side) of the process by debugging.
    There is not any documentation about the FM that you have offered, in the system.
    So , I can not be sure about the usage of it, too.
    Thank you very much.

  • Function module which uses both BAPI's for sales order create and change

    Please name the function module which uses both BAPI's for sales order create and change.
    BAPI_SALESORDER_CREATEFORMDAT2
    BAPI_SALESORDERCHANGE

    Yup.
    you must write a piece of code for this.
    with if else condition.first check if SO is exsist than use second FM to change it else create new SO from first FM.
    logic somethig like this.
    Amit.

  • BAPI/RFC for Service Complaints Creation in CRM 5.0

    Hi,
    We are working on the Complaints and Returns module in CRM 5.0. We have found the Transaction Code for the same. (CRMD_BUS2000120).
    Not able to find the BAPI/RFC for the same.Let us know if any. Appreciate your comments on the same.
    Thanks,
    Moorthy

    Hi,
    Thanks for the response
    I am not talking about Service Order. I have requirement to create a Service Complaint. For that the transaction is CRMD_BUS2000120. Now I need to find the function modules/RFC available for this requirement.
    Hope it clarifies .
    Even I have found function module called -CRM_COMPLAINT_API_CREATE but not sure right one
    Thanks,
    Moorthy

  • BAPI/RFC FOR MB52

    PLS PROVIDE BAPI/RFC FOR MB52.
    OR
    PLS PROVIDE BAPI/RFC TO READ MARD-LABST.
    PLS HELP I AM NEW TO SAP.
    I tried
    BAPI_MATERIAL_AVAILABILITY
    but it wont provied al stock for some material it provided error
    EAG024No checking group is maintained for product 000000002000181306, plant JGE1 in matl master.
    my requiremts is
    material/plant/sloc/batch/fr_stk kid of table
    <MOVED BY MODERATOR TO THE CORRECT FORUM>
    Edited by: Alvaro Tejada Galindo on Feb 14, 2011 5:23 PM

    Hi Gautam,
    Check the bapi  BAPI_MATERIAL_STOCK_REQ_LIST. it contains various parameters like MATERIAL
    PLANT,MRP_AREA,0PLAN_SCENARIO,SELECTION_RULE,DISPLAY_FILTER,PERIOD_INDICATOR,GET_ITEM_DETAILS
    GET_IND_LINES,GET_TOTAL_LINES,IGNORE_BUFFER,MATERIAL_EVG
    Read the documentation of this Bapi . If you wont get all parameters what you require better to go for a Zbapi. Please tell if require more help on this
    Regards,
    Madhu.

  • Finding FM/BAPI/RFC for Create Inbound Delivery(vl31n).

    Hi all,
    i need for a FM/BAPI/RFC for Create Inbound Delivery(vl31n) or ASN
    where in import Parameter i have to pass -
    *vendor no*
    *PO no*
    *External ID no*
    *Delivery date*
    *TransPlanngDate*
    *BillOfLad*
    *GR/GI Slip*
    in Export i need ASN no and in tables we can use ITEM details.
    Regards,
    Sunil sahoo.

    Hi,
    Check the below link
    [https://forums.sdn.sap.com/click.jspa?searchID=16938983&messageID=5780492]
    Regards,
    Surinder

  • Remote-Enabled BAPI/RFC for creating "Request Special Payment (SPSP)"

    Is there any Remote-Enabled BAPI/RFC for creating "Request Special Payment (SPSP)" which is one of the Personnel Change Requests under MSS ?
    Thanks.

    closing to post another question.

  • Standard BAPI/RFC for Search Knowledge Article in Knowledge Management-Interaction Center

    Hi All,
    I am not from SAP CRM, but I am using CRM Web UI to maintain Knowledge articles. Now I want to know where in the backend this data is getting saved. Which table ?
    Also as this is a standard process introduced in CRM 7.0 . I want to know, if standard bapi/ rfc is available for the same. If yes what is the name .
    Regards,
    Tejas Chouhan

    Hi Tejas Chouhan,
    In CRM Technically, Knowledge article is designed based on one order framework with business object category as BUS2000106  - CRM Knowledge Article.CRMD_ORDERADM_H table will give header details of KA (OBJECT_ID field would equal KA number).
    Knowledge Articles in SAP CRM
    Refer 
    1 CL_CRM_QKNOART_RUN_BTIL  & SEARCH method to see code how it is written (standard search for knowledge article) consider all scenario. you can keep external debugger in this method and perform search from Web UI.
    2. CL_CRM_KNOWLEDGE_ARTICLE_UTIL & SEARCH_REPORTING_FRAMEWORK method.
    Hope this is helpful.
    Regards,
    Arjun

  • BAPI/RFC for WIP values

    Hi all,
    I would like to show production order WIP values in an external system dashboard.
    Is any BAPI/RFC/IDoc available to fetch the data from SAP? If not, please let me know corresponding table to view the data in SAP?
    Thanks
    Guru

    In view COVPB you should find WIP and variance information.

  • Standard BAPI/RFC for customer specific pricing

    Hi all,
    We have a requirement for getting the customer specific pricing for a product. .We have few customers who are privelaged of procuring materials at a lesser price than others.We need a procedure or functionality that will pick this discounted price on the product that is raised by the privelaged customer.
    Please let me know if there is any Standard BAPI or RFC for this requirement
    Keerthi

    Hi,
    There is nothing called customer specific pricing in SAP and there is no BAPI to handle pricing for any specific entity.
    These things need to be configured in access sequence, condition tables, condition types etc and you have to configure  pricing in such a way that the pricing elements are common for everybody but depending on the situation, some customer will get materials for lesser price than others by creating condition records as applicable for each customer.
    You have to first configure the pricing procedure.
    Then while maintaining condition records, you have to maintain prices for specific customers where youcan maintain lesser prices. For all others you can maintain normal prices. For example for c.type PR00, you can have two tables in the access sequence. One table may be Sales org/D.C/Div/Customer/Material and the second table can be S.Org/D.C./Div/Material
    Now maintain a condition record like
    5001/00/00/CUSTOMER A/MATERIAL A  Value is 80
    5001/00/00/Material A  Value is 100
    If condition records are maintained like this, the customer A alone will get the material for Rs.80 while all others will get it for Rs.100
    Hope this helps you. If you have specific doubts, pls lemme know.

  • Standard BAPI/RFC for in-transit shipments

    All experts, I am new to SAP functional area. I am looking for a standard BAPI/RFC that will get me all in-transit shipments. Is it available and if so what is the name of the BAPI ? Or a custom one needs to be written?
    Thanks in advance for you help

    can u give us the transaction for that
    cheers
    s.janagar

  • 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

  • Is there any BAPI available for sales order creation with reference?

    Hi Experts,
    My requirement is to create sales order with reference for order type.
    Now my billing document number already contains the two items
    one is correct and another is zero quantity.
    I want to create order with reference of billing document but not with zero quantity item.
    Which BAPI I should use and what to pass to ignore zero quantity item?
    Regards,
    RH

    Hi Ronny,
    Try using BAPI_SALESORDER_CREATEFROMDAT2
    Regards,
    Shraddha

  • To create BAPI Wrapper for Sales Order Creation

    Hi Experts,
    I'm working upon MI 7.1 to create mobile application for creation of sales order.
    I've to create Sales Order BAPI Wrapper (Getlist, Get Detail & Create) using Standard BAPI's (BAPI_SALESORDER_GETLIST & BAPI_SALESORDER_CREATEFROMDAT2).
    Kindly guide me for how to proceed with the above. Which all other BAPI's do I require except above?
    PS: I was trying to call standard BAPI's but while executing the BAPI Wrapper it asks about Customer No. & Sales Org. then only I'll get the output.
    my requirement is I should get list of all the sales order's existing in the Back-end, once I execute the BAPI Wrapper.
    Romi

    Hi,
    if it comes to bapis on the backend, there are not so many changes from MI7.0 to MI7.1 as in the UI for example. So you still need the backend adapters like GETLIST/GETDETAIL/CREATE as they where necessary in 7.0.
    If you need an example on how these should look like - do you have a full blown backend available? Have a look if you can find the following BADIS in SE37 in the backend: MAM30_050_GETLIST. If you can find this one, have a look how it is working. That one should help you to get an idea on how the replication is working and how the complete stuff works. The create should be straight forward development then.
    You furthermore can have a look into the URL mentioned aboveand as well in the complete MI7.0 dokumentation if you take it just to get a general idea on how the stuff works. But the URL mentioned above should be enough in a normal case.
    Regards,
    Oliver

  • To create BAPI Wrappers for Sales Order Creation

    Hi Experts,
    I'm working upon MI 7.1 to create mobile application for creation of sales order.
    I've to create Sales Order BAPI Wrapper (Getlist, Get Detail & Create) using Standard BAPI's (BAPI_SALESORDER_GETLIST & BAPI_SALESORDER_CREATEFROMDAT2).
    Kindly guide me for how to proceed with the above. Which all other BAPI's do I require except above?
    PS: I was trying to call standard BAPI's but while executing the BAPI Wrapper it asks about Customer No. & Sales Org. then only I'll get the output.
    my requirement is I should get list of all the sales order's existing in the Back-end, once I execute the BAPI Wrapper.
    Romi

    Hi,
    if it comes to bapis on the backend, there are not so many changes from MI7.0 to MI7.1 as in the UI for example. So you still need the backend adapters like GETLIST/GETDETAIL/CREATE as they where necessary in 7.0.
    If you need an example on how these should look like - do you have a full blown backend available? Have a look if you can find the following BADIS in SE37 in the backend: MAM30_050_GETLIST. If you can find this one, have a look how it is working. That one should help you to get an idea on how the replication is working and how the complete stuff works. The create should be straight forward development then.
    You furthermore can have a look into the URL mentioned aboveand as well in the complete MI7.0 dokumentation if you take it just to get a general idea on how the stuff works. But the URL mentioned above should be enough in a normal case.
    Regards,
    Oliver

Maybe you are looking for

  • Passing value from method to Workflow

    Hi All, I am new to workflow. I am trying simple examples to understand the concepts of work flow. I have copied a std business object and I have a method in that. Now, I am trying to pass some value to this method from the work flow and get back som

  • Vendor balancess business area wise

    Dear experts      I am preparing quary for vendor balancess based on business area for this i used 0FI_AP_3 datasource in this iam geting dr/cr balancess  but i need accumulated balancess period wise to get this wht i have to take plz thanks and rega

  • Photo Slideshow editing

    I have loaded all of my photos into iMovie with the intention of creating a slideshow. I have music chosen and I have ordered the photos in the way I would like them. So now the slideshow plays, but in rough format. However, the one thing I can't see

  • Expected Download time for Mavericks?

    How long should OS X Mavericks take to download with broadband service approx. 4MB downloading to 2.4 Ghz Intel Core 2 Duo currently running OS X 10.6.8. Memory fitted is 4 GB 667 MHz DDR2 SDRAM. Internal harddrive now fitted is 1Tb.

  • Just got my N96, have some questions...

    Hi, I have just got my new Nokia N96 on Vodafone. It's a bit weird for me as I have been with Sony Ericsson for over 2 years so I need some pointers and some answers. In this first post, I'll just ask some general questions about my new phone. Is the