BAPI/FM for WA01, WA02 and WA07

Hi,
Would anyone know if there's any existing bapi/fm for the ff. transactions in 4.6C?
a. WA01 - creation of allocation table
b. WA02 - creation of follow on documents (vendor PO)
c. WA07 - generation of follow on documents from allocation table (warehouse orders)
Any help would be greatly appreciated (and awarded ). Thanks!

Hi,
The said modules do not behave like a BAPI. What I needed was a single module for each that will be able to mimic the tcodes' behaviors.
i.e. For WA01, WAUF_ALLOCATION_TABLE_CREATE does not entirely accomplish the job. It requires calling other FMs such as WALL_NUMBER_GET_NEXT to generate the allocation table number.
Any inputs? Thanks.

Similar Messages

  • Screen level enhancment in wa01,wa02 and wa03

    Hi ,
          How to enhance the WA01,WA02 and WA03 tcodes for adding a new tab at header level.I searched for BADI for that screen enhancement.I am not finding any BADI or Enhancment points for adding a tab at header level.
    Regards,
      Aditya.

    Here is a list of all the Badis and the userexits for the WA01 transaction. 
    Enhancement/ Business Add-in Description
    Enhancement
    WAUFT007 User Exit Article Selection
    WAUFT006 Allocation Table Number Determination
    WAUFT005 Del. Phase Per Article and Ship-To Party or DC Determination
    WAUFT004 User exit for recipient determination for DCs
    WAUFT003 Determination of DC order quantity (reduced order quantity)
    WAUFT002 Check: Automatically adopt requested qty as confirmed qty
    WAUFT001 User Exit Allocations
    Business Add-in
    WRF_X_AT_SYNC_I AT - APC Confirmation
    WRF_X_AT_POHF_OTB_I Use Fashion Purchasing FM to Generate VO with OTB Check
    WRF_X_AT_LIST_LOC_E Change End Date of Listing in Allocation Table
    WRF_X_AT_DET_EADAT_I Access to Add-On Data for Allocation Table
    WRF_X_AT_CREATE_I Create Allocation Table
    WRF_X_AT_CHECK_E (Incompleteness) Checks in Allocation Table
    WRF_X_AT_ARTH_I Determine the Article Hierarchy for an Allocation Table Item
    WRF_X_AT_AH_SCREEN_I Subscreen for Article Hierarchy/Purchasing List Number
    WAUF_X_STORE_CONSTRA Alloc. Table - Restriction of Recipients with Fast Changes
    WAUF_X_AT_FCODES_I FCodes Allocation Table
    WALL_DETERMINE_DC Supply Source Determination for Customers (W/O Plant Ref.)
    RAT_PROCUREMENT_TYPE Procurement Document Determination (PO/Sales Order)
    AT_CONS_PROCESSING Consignment Processing in Allocation Table
    I think the screen cannot be enhanced, so will have to get a sap key to change this or find another way to do this.

  • Provide the BAPI names for Transactions- IW52 and IW32

    Hi Friends,
    Please provide me with the BAPI Names for the transaction codes: (1) To create the Serivce Order through IW52(by entering the service notification number and (2)  To change the Service order through IW32.
    Thanks a lot in advance.
    Venkat,

    Hi Raghu,
    May I Know if this BAPI is to create the Service order from IW52(through Service notification) or from IW34? Becoz I need the one from IW52 only.
    Thank you very much.
    Regards.
    Venkat

  • Which BAPI is for reading Header and Item for BOM.

    Hi All,
    I am using BAPI named 'CSAP_MAT_BOM_READ' to read Material type BOM header and Item.
    1. Is there any BAPI available to read Equipment Header and Item  ?
    2. Is there any BAPI available to read Functional Loc Header and Item  ?
    3. Any BAPI to Write into Database table from my internal table (Header and Item) ?
    Edited by: amit soni on Aug 26, 2011 11:25 AM

    1. BAPI_EQUI_GETDETAIL
    2. BAPI_FUNCLOC_GETDETAIL
    3. BAPI_EQUI_CREATE, BAPI_FUNCLOC_CREATE for equipment, and functional location respectively.
    Have you browse in BAPI transactions?

  • BAPI's for Batch Split and Update Picking Quantity

    HI All,
    I have the delivery details(along with batch number, MATNR etc), now i need to split the batch for picking.
    and then i need to sum the batch quantity and update this total quantity to the picking quantity and then update the delivery.
    I tried to use this BAPI function module BAPI_INB_DELIVERY_CHANGE.
    But i am unable to find the picking quantity field in this BAPI.
    Any idea about how to split the batches using BAPI's??
    and how to update the picking quantity using BAPI's?
    Thanks in advance.
    Vijay

    Hi,
    Can you share the solution for the above issue/
    Regards

  • BAPI FM FOR READING EMAIL AND GIVING PARTNER INFO

    Hello All,
    As I am new to SAP,
    As per my requirement, I need to check my partner through email. User will give email and then I should get related partner details, here I cannot use  table. So i need FM for fetching partner by giving email and (  text ).
    Regards,
    Mithuunn.

    Try BAPI_BUPA_SEARCH_2.  According to the documentation:
    This function module enables you to search for business partners.
    You can enter the telephone and fax number, the e-mail address and the address attributes 'country', 'region', 'city' and 'postal code' as search criteria. The business partner role and central business partner data, such as business partner number and the match code fields MC_NAME1 and MC_NAME2 constitute additional search criteria.
    While the e-mail address and the URI address have to be entered in full, the address attributes and central data may contain wildcards (in the form of '*'). However, bear in mind that you must enter the country when using a wildcard to search for the telephone number, otherwise an error message is issued.
    Read the Function Module Documentation for more...
    Hope this helps!

  • PS: BAPI For Planned Progress and Actual Progress

    Dear All,
                  Is there any BAPI available for Planned Progress and Actual Progress for PS Project.
    Regards,
    Sohail

    Hi,
    Try using this report s_alr_87013532.
    Also for planned and actual progress the table is rpsqt. Could not find any bapi for the progress
    Regards
    Hiren K.Chitalia

  • Need for separate BAPI Structure for import parameters

    Hi All,
    I have a doubt regarding the logic behind declaring a separate BAPI structure for import paramters and use it.
    Let me explain you clearly,
    Whenever we pass an import parameter(like vendor number/sales order number) to an normal function module we declare it using either like/type referring to an existing dictionary structure field. but when the number of import parameters increase we may think of creating a single structure with all and use it for simplicity.
    But when it is the case with a BAPI, it is suggested that we create a structure even when we have single import parameter.
    for example.
    supposing that we create a normal function module to get the details of a given Vendor, then we declare the import parameter as below
    VENDORNO LIKE LFA1-LIFNR
    But <b>if we observe the BAPI_VENDOR_DISPLAY, We find that declaration for the same as
    VENDORNO like BAPIVENDOR_ID-VENDOR_NO,
    where BAPIVENDOR_ID is a separate BAPI sturcture created and assocaited only with Business object "Vendor".</b>
    I tried it by declaring as for a normal FM, even then it work fine.
    Now my question is,
    If SAP Suggests that we have a separate structure for all import parameters starting with name BAPI and use only those fields to reference with,
    what is the logic/reason behind asking so.
    I had created a BAPI with paramters referring to standard database fields like
    VENDORNO like LFA1-LIFNR and it is still working
    <b>I had also written interface programs using VB/ .NET to access the data from my own BAPI and standard BAPI's and both were working alike.</b>
    so anyone <b>please give me the reason/logic behind declaring a separate BAPI stuture for all the import parameters to be used in a method</b>.
    Thanks in advance,
    Lakshmi

    I would say that it really comes down to simplicity.   Think of it this way,  you are not an ABAPer, you must right a VB or a java program to call this BAPI from outside the system, you know nothing about R/3 or its data structures/tables.    Now that said,  think of what it would be like if all of the fields in the BAPI signature were like we find in the standard tables,  LIFNR, etc.  What is LIFNR, right?    Since we are ABAPers we know that it is Vendor, but for others,  they may not know.  This is why you will find the signature of a BAPI very descriptive, notice that all of the fields describe the field in english.  This is good for non-ABAPers.   To organize all of these fields that may be used in the BAPI interface,  it is good to put all of them in one defined structure,   that way they are all in one place, and can be referenced as such.    Again,  BAPIs are designed to be used by ABAPers and non-ABAPers, so simplicity is important.
    Regards,
    Rich Heilman

  • BAPI for create IR and GR

    Hi All,
    I would like to use the BAPI to create the IR and GR.
    But i don't know which BAPI is use for create the IR and GR . Could you mind give any information about this?
    Regards,
    Luke

    Hi Luke,
    The function module "BAPI_GOODSMVT_CREATE " would perform the task.  Please refer to the following link.
    http://www.sap-img.com/abap/bapi-goodsmvt-create-to-post-goods-movement.htm
    Regards.

  • BAPI error for mvmt types 201 and 202

    Hi all,
      I'm using a bapi BAPI_GOODSMVT_CREATE for the movement type 201 and 202 with the gm_code = '03' for the transaction mb11- Goods movement. But it returns an error u201D Account 400000 requires an assignment to a CO object u201D...I'm unable to resolve this one....I have attached the code below. Please help me in fixing this issue...
    if sy-subrc = 0.
      loop at it_mchb into wa_mchb.
        if wa_mchb-clabs gt 0.
          clear wa_header.
          wa_header-pstng_date = sy-datum.          " fill header data
          wa_header-doc_date   = sy-datum.
          wa_code-gm_code      = '03'.              "fill code data
          clear wa_item.
          wa_item-material     = wa_mchb-matnr.     " fillitem data
          wa_item-plant        = wa_mchb-werks.
          wa_item-stge_loc     = wa_mchb-lgort.
          wa_item-batch        = wa_mchb-charg.
          wa_item-entry_qnt    = wa_mchb-clabs.
          wa_item-move_type    = '201'.
                       wa_item-entry_uom    = wa_mchb-meins.
          append wa_item to it_item.
        elseif wa_mchb-clabs lt 0.
          clear wa_header.
          wa_header-pstng_date = sy-datum.          " fill header data
          wa_header-doc_date   = sy-datum.
          wa_code-gm_code      = '03'.              "fill code data
          clear wa_item.
          wa_item-material     = wa_mchb-matnr.     " fillitem data
          wa_item-plant        = wa_mchb-werks.
          wa_item-stge_loc     = wa_mchb-lgort.
          wa_item-batch        = wa_mchb-charg.
          wa_item-entry_qnt    = wa_mchb-clabs.
          wa_item-move_type    = '202'.
                       wa_item-entry_uom    = wa_mchb-meins.
          append wa_item to it_item.
        endif.
      endloop.
      clear lv_lin.
      describe table it_item lines lv_lin.
      if lv_lin = 0.
        write : / 'No records found'.
      endif.
      call function 'BAPI_GOODSMVT_CREATE'
        exporting
          goodsmvt_header  = wa_header
          goodsmvt_code    = wa_code
        importing
          materialdocument = lv_matdoc
        tables
          goodsmvt_item    = it_item
          return           = it_return.
      if it_return is initial.        " if record created successfully
        call function 'BAPI_TRANSACTION_COMMIT'. " commit work
        write : / lv_matdoc, 'IS CREATED SUCCESSFULLY' color 5.
        loop at it_item into wa_item.
          write : / 'Mat :', wa_item-material,'bat :', wa_item-batch.
        endloop.
      else.                           " if record is not created successfylly
        loop at it_return into wa_return.
          write : / wa_return-message color 6.
        endloop.
        uline.
      endif.
    else.
      write : / 'No Records found' color 7.
    endif. " gt_s035 is not initial
    Edited by: Arunmozhi_06 on May 30, 2011 12:48 PM

    Hi,
       Did you passing the leading 0's in the cost center field?
    and check the below coding..
    * Structures for BAPI
      data: gm_header  type bapi2017_gm_head_01.
      data: gm_code    type bapi2017_gm_code.
      data: gm_headret type bapi2017_gm_head_ret.
      data: gm_item    type table of
                       bapi2017_gm_item_create with header line.
      data: gm_return  type bapiret2 occurs 0.
      data: gm_retmtd  type bapi2017_gm_head_ret-mat_doc.
      clear: gm_return, gm_retmtd. refresh gm_return.
      perform show_status using 'Scrapping(551) Material'.
    * Setup BAPI header data.
      gm_header-pstng_date = sy-datum.
      gm_header-doc_date   = sy-datum.
      gm_code-gm_code      = '06'.                              " MB11
    * Write 551 movement to table
      clear gm_item.
      move '551'        to gm_item-move_type     .
      move xresb-matnr  to gm_item-material.
      move p_bdmng      to gm_item-entry_qnt.
      move xresb-meins  to gm_item-entry_uom.
      move xresb-werks  to gm_item-plant.
      move xresb-lgort  to gm_item-stge_loc.
      move p_grund      to gm_item-move_reas.
    * Determine cost center per plant
      case xresb-werks.
        when '0004'.
          move '0000041430' to gm_item-costcenter."pass leading zero's in the cost center field
        when '0006'.
          move '0000041630' to gm_item-costcenter.
        when '0007'.
          move '0000041731' to gm_item-costcenter.
        when '0008'.
          move '0000041830' to gm_item-costcenter.
      endcase.
      append gm_item.
    * Call goods movement BAPI
      call function 'BAPI_GOODSMVT_CREATE'
           EXPORTING
                goodsmvt_header  = gm_header
                goodsmvt_code    = gm_code
           IMPORTING
                goodsmvt_headret = gm_headret
                materialdocument = gm_retmtd
           TABLES
                goodsmvt_item    = gm_item
                return           = gm_return.
    Maybe there is some config missing for your cost center, or maybe something missing in your code. check above.
    Regards,
    Dhina,..
    Edited by: Dhina DMD on May 31, 2011 8:02 AM

  • BAPIs fpr T-Codes FV70 and FV-75 for creation of Customer Invoices

    Hi all,
    Can any1 tell me Validation BAPIs for T-Codes FV70 and FV75.
    Please bear the following points
    1. The BAPI should NOT create Parked Customer Invoices, they should just validate that the data to create the customer invoice.
    2. The Transaction are used for CUSTOMER invoices NOt Vendor.
    3. I've searched SDN and I got the follwing BAPIs 
                  a. BAPI_INCOMINGINVOICE_PARK
                  b. MRM_INVOICE_PARK
                  c. MRM_PARKED_INVOICE_ACCDATA
    But they are all for Vendor Invoices and CREATE parking invoices, Both the things I do not want.
    If someone knows the name of the BAPI please forward to me at the earliest.
    Cheers
    Abhishek

    Hi Eric,
    Many thanks, I'll check the BAPI out, meanwhile can u also tell me whether there is a BAPI for creating Parking documents, i.e. BAPIs for T-Codes for FV70 and FV75.
    I've tried to find a lot about this, but they say that BAPIs are there for only posting, not parking the Customer Invoices.
    Cheers
    Abhishek

  • BAPI KPF6 POST PLAN COST FOR INTERNAL ORDER AND COST ELEMENT

    Hi all gurus,
    I would like to use in a custom report a BAPI/Function Module that help me to simulate KPF6 in order to post planning costs for internal order and cost element (layout 1-401).
    So the input should be:
    1) Version
    2) period from
    3) periodo to
    4) year
    5) internal order n.
    6) cost element n.
    7) value
    I found a lot of BAPI but don't know the correct one and how to use it (example how to fill the input value).
    Can anyone help me on that?
    Kind Regards

    In additio  to the previous I found the BAPI_COSTACTPLN_POSTPRIMCOST but don't know if it's the correct one and how to use it (some example fitting the my case will be very appreciated).
    If the quoted BAPI is correct.
    I tested it filling all fields as following:
    HEADERINFO:
    CO_AREA=FFCA
    FISC_YEAR=2008
    PERIOD_FROM=001
    PERIOD_TO=012
    DOC_HDR_TX='blank'
    INDEXSTRUCTURE:
    OBJECT_INDEX=000001
    VALUE_INDEX=000004 (hope this point at Interna Order)
    ATTRIB_INDEX=000000
    COOBJECT:
    OBJECT_INDEX=000001
    ORDERID=ZO53-08IMZ
    TOTVALUE:
    VALUE_INDEX=000004
    COST_ELEM=3224048
    FIX_VALUE= 200,0000
    DIST_KEY_FIX_VAL=2
    The Return table is set to 0. Nothing happens.....I suspect something related to indexstructure or index is wrong..
    Could anyone help me on that?
    Kind Regards

  • Transaction Codes and BAPIs for Mobile Time And Travel

    Hi All,
    Please can anyone give me the "Transaction Codes" and "BAPIs" that are needed and used for developing an application for Mobile Time and Travel.?
    Please help me out.
    Cheers,
    Anu.
    Message was edited by:
            Anuradha Yandamuri

    Hi Anu
    Below are the Functional Modules used in the standard MTT application.
    <u><b>RFC's for Time Sheet (MTS)</b></u>
    CATS_MY_GET_MASTER_DATA      
    CATS_MY_GET_PICKLIST_FIELDS  
    CATS_MY_GET_REJECTION_REASONS
    CATS_MY_GET_TEXT_ELEMENTS    
    CATS_MY_GET_TIME_DATA        
    CATS_MY_GET_BOOTSTRAP      
    CATS_MY_GET_CUSTOMIZING_DATA
    TT_GET_PICKLIST
    <u><b>RFC's for Travel Expenses (MTR)</b></u>
    WAF_TRIP_ADD_RECEIPT          
    WAF_TRIP_CHANGE_RECEIPT       
    WAF_TRIP_CREATE               
    WAF_TRIP_DELETE_RECEIPT       
    WAF_TRIP_GET                  
    WAF_TRIP_GET_CREDIT_CARD_ITEMS
    WAF_TRIP_GET_CUSTOMIZING      
    WAF_TRIP_GET_DELETED_LIST     
    WAF_TRIP_GET_LIST             
    WAF_TRIP_MODIFY               
    WAF_TRIP_PROCESS_RECEIPT      
    WAF_TRIP_RESULTS              
    Hope this helps
    Thanks
    Raj

  • 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.

  • Validation for BAPI for transaction FV70 and FV75

    Hi all,
    Can any1 tell me Validation BAPIs for T-Codes FV70 and FV75.
    Please bear the following points
    1. The BAPI should NOT create Parked Customer Invoices, they should just validate that the data to create the customer invoice.
    2. The Transaction are used for CUSTOMER invoices NOt Vendor.
    3. I've searched SDN and I got the follwing BAPIs 
                  a. BAPI_INCOMINGINVOICE_PARK
                  b. MRM_INVOICE_PARK
                  c. MRM_PARKED_INVOICE_ACCDATA
    But they are all for Vendor Invoices and CREATE parking invoices, Both the things I do not want.
    If someone knows the name of the BAPI please forward to me at the earliest.
    Cheers
    Abhishek

    BAPI-step by step procedure
    http://www.sapgenie.com/abap/bapi/example.htm
    list of all BAPI's
    http://www.planetsap.com/LIST_ALL_BAPIs.htm

Maybe you are looking for