Reg : BAPI For FB60

Hi All,
Can Any one Tell me which bapi should i use for fb60 transaction i have tried BAPI_INCOMINGINVOICE_PARK but it is asking PO as mandatory field but i don't have po for this scenario.
i have tried BAPI_ACC_DOCUMENT_POST but its not having a export parameter to give the invoice number.
So can anyone suggest me which bapi i have to go without referring the po.
Regards,
Karthik.

Hi Sudharshan,
Thanks For your quick response could you provide any sample program for this type of scenario so that it is easy to understand .I have tried BAPI_ACC_DOCUMENT_POST but in the ACCOUNTTAX  tables its asking me to fill the posting date but its not there ,so can you provide any sample program.

Similar Messages

  • BAPI for  FB60 park vendor invoice

    Hi SAP Gurus,
    Please let me know what is the BAPI for Park Vendor invoice in FB60.
    Thanks in advance
    Vinod
    Edited by: Vinod Malagi on Dec 9, 2008 7:21 AM
    Message was edited by: Jürgen L.

    Hi Preethi,
    I ahev checked this BApi this is for With PO and i need for without refernce to PO.
    only Vendor number, GL account numbers, amount, date and other details.
    Please suggest.
    Thanks in advance
    Vinod

  • "Change" BAPI for FB60

    Is there a BAPI for changing/updating documents that were created by FB60?

    BAPI_INCOMINGINVOICE*,  package MRM, object IncomingInvoice,  are linked to transacton MIRO; not FB60 which is "pure" FI and not MM.
    Look for FI BAPI via objects like AcctngInvoiceReceipt, package ACID, with BAPI BAPI_ACC_PYMNTBLK_UPDATE_POST or BAPI_ACC_INVOICE_REV_POST and BAPI_ACC_INVOICE_RECEIPT_POST.
    Regards

  • Reg bapi for xd01 txn

    Dear Freinds,
    Pls let me know the BAPI for XD01 appl ( customer master)
    Regards,
    Manoj

    Tnx for reply...
    But i am having 258 fields to upload fm flat file and all the fields are not in the BAPI function modules ..
    How to get remaining fields which are not in the BAPI FM.
    PLs help

  • BAPI for FB60 Posting

    Hi,
    I would like to do the Invoice posting by modifying the tax base amount and tax amount(as against system computing on its own) through FB60 transaction code. Is there any suitable bapi I can use to achieve this scenario. I am not sure whether we can use the  BAPI_ACC_DOCUMENT_POST to solve this.Please suggest.
    Thanks,
    Ram

    Hi,
    Yes. You can use the BAPI BAPI_ACC_DOCUMENT_POST to post the vendor Invoices. Use the below tables parameter structures of BAPI.
    ACCOUNTGL                    LIKE    BAPIACGL09    G/L account item
    ACCOUNTRECEIVABLE    LIKE    BAPIACAR09    Customer Item
    ACCOUNTPAYABLE          LIKE    BAPIACAP09    Vendor Item
    ACCOUNTTAX                   LIKE    BAPIACTX09    Tax item
    CURRENCYAMOUNT        LIKE     BAPIACCR09    Currency Items
    Fill the corresponding structures for line items and call this BAPI.
    Regards
    Gangadhar

  • Reg:Bapi for mass creation of production order/confirmation

    Dear Experts,
    I wanted to know with the following BAPI is it possible to create Multiple production orders for different semifinshed Materials along with material availability check and other functions similar to CO01 transaction.
    I knew there are standard transactions for mass confirmation for production orders. But i need a confirmation on this BAPI . As i am planning to go-ahed with ,mass creation of production order creation / Order confirmation in single custom transaction.Need back flush activity even supported.
    BAPI_PRODORD_CREATE to create the orders.
    BAPI_PRODORD_RELEASE to release the orders.
    BAPI_PRODORDCONF_GET_TT_PROP to get the default data for the confirmation.
    BAPI_PRODORDCONF_CREATE_TT to ost the confirmation of production order.
    Along with this BAPI do i need to commit any other BAPI to carry out back flush for components.
    Need your suggestions to take it further.
    Regards,
    Daya.

    Dear SAP Daya
    If the issue has been solved, please close this thread.
    You have already mentioned that the issue has been resolved, thefore, you should not ask for help on another thread before closing this one, as it looks like you are trying to force people to answer your threads.
    Users are always trying to answer as many threads as possible on good will we don't need this kind of "incentive".
    Please read carefully the The SCN Rules of Engagement, especially point 8:
    Be responsive. If an SCN member has answered your question, please mark the answer as "helpful” or “correct”. Mark the discussion as “answered,” so that other members can find the answers more easily
    Also, I checked your old threads and I could observe that there is only one closed. Please review your old threads and close those already solved.
    BR
    Caetano

  • Reg bapi for creation of purchase order

    hai to all,
    i have to upload purchase orders from  legacy file to R/3 system
    certain order having more than 50 line items
    so please any one send me <b>stardard bapi program or bdc program for me21n</b> transaction which will suitable for my senario.
    please send asap
    regards
    vijay

    hai
    i am trying to create po using bapi
    the following code explains
    constants : c_x value 'X'.
      data: del_date type sy-datum.
      data: pohead  type bapimepoheader.
      data: poheadx type bapimepoheaderx.
      data: exp_head type bapimepoheader.
      data: t_return_out  type table of bapiret2 with header line,
            wa_return_out  TYPE bapiret2.
      data: poitem  type table of bapimepoitem with header line.
      data: poitemx type table of bapimepoitemx with header line.
      data: posched  type table of bapimeposchedule with header line.
      data: poschedx type table of bapimeposchedulx with header line.
      data: ex_po_number type bapimepoheader-po_number.
    Header Level Data
      pohead-comp_code = '1011'.
      pohead-doc_type   = 'NB'     .
      pohead-creat_date = sy-datum   .
      pohead-vendor = 'A1138'.
      pohead-purch_org = 'DOMS'.
      pohead-pur_group = 'MFR'.
      pohead-langu      = sy-langu   .
      pohead-doc_date   = sy-datum.
      poheadx-comp_code  = c_x.
      poheadx-doc_type   = c_x.
      poheadx-creat_date = c_x.
      poheadx-vendor     = c_x.
      poheadx-langu      = c_x.
      poheadx-purch_org  = c_x.
      poheadx-pur_group  = c_x.
      poheadx-doc_date   = c_x.
    Item Level Data
      poitem-po_item  = 1.
      poitem-material = '000000000100001079'.
      poitem-plant    = 'HO01'.
    poitem-stge_loc = ''.
      poitem-quantity = 1.
      append poitem.
      poitemx-po_item    = 1.
      poitemx-po_itemx   = c_x.
      poitemx-material   = c_x.
      poitemx-plant      = c_x .
      poitemx-stge_loc   = c_x .
      poitemx-quantity   = c_x .
      poitemx-tax_code   = c_x .
      poitemx-item_cat   = c_x .
      poitemx-acctasscat = c_x .
      append poitemx.
    Schedule Line Level Data
    posched-po_item        = 1.
    posched-sched_line     = 1.
    posched-del_datcat_ext = 'D'.
    del_date = sy-datum + 1.
    write del_date to posched-delivery_date.
    posched-deliv_time     = '000001'.
    posched-quantity       = 1.
    append posched.
    poschedx-po_item        = 1.
    poschedx-sched_line     = 1.
    poschedx-po_itemx       = c_x.
    poschedx-sched_linex    = c_x.
    poschedx-del_datcat_ext = c_x.
    poschedx-delivery_date  = c_x.
    poschedx-quantity       = c_x.
    append poschedx.
      call function 'BAPI_PO_CREATE1'
           EXPORTING
                poheader         = pohead
                poheaderx        = poheadx
                testrun          = ' '
           IMPORTING
                exppurchaseorder = ex_po_number
                expheader        = exp_head
           TABLES
                return           = t_return_out
                poitem           = poitem
                poitemx          = poitemx.
               poschedule       = posched
               poschedulex      = poschedx.
    call function 'BAPI_TRANSACTION_COMMIT'
          EXPORTING
               wait = 'X'.
    if not ex_po_number is initial.
       call function 'DEQUEUE_ALL'.
    else.
       call function 'DEQUEUE_ALL'.
       message i036.
    endif.
    **endform. " create_po
    IF ex_po_number IS NOT INITIAL.
          CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
          PERFORM show_result.
    ELSE.
          CALL FUNCTION 'BAPI_TRANSACTION_ROLLBACK'.
          PERFORM show_result.
        ENDIF.
    *&      Form  show_result
          text
    -->  p1        text
    <--  p2        text
    FORM show_result .
      LOOP AT t_return_out INTO wa_return_out.
        write : ex_po_number.
        WRITE : / wa_return_out-type,
                / wa_return_out-id,
                / wa_return_out-number,
                / wa_return_out-message,
                / wa_return_out-log_no,
                / wa_return_out-log_msg_no,
                / wa_return_out-message_v1,
                / wa_return_out-message_v2,
                / wa_return_out-message_v3,
                / wa_return_out-message_v4,
                / wa_return_out-parameter,
                / wa_return_out-row,
                / wa_return_out-field,
                / wa_return_out-system.
      ENDLOOP.
    <b>iam geting the error such that</b>
    E                                                                            
    BAPI                                                                         
    001                                                                          
    No instance of object type PurchaseOrder has been created. External reference:
    000000                                                                       
    PurchaseOrder                                                                
    POHEADER                                                                     
            1                                                                 
    E                                                                         
    ME                                                                        
    062                                                                       
    Account assignment mandatory for material 100001079 (enter acc. ***. cat.)
    000000                                                                    
    100001079                                                                 
    POITEM                                                                    
    <b>how to correct this error</b>
    regards
    vijay

  • Reg: BAPI for HR

    Hi Experts,
    Please help me onthis.
    To which InfoType does it belong (both HR US and HR INT.)
    Which BAPI is used or available to read the information? (both HR US and HR INT.)
    Which BAPI is used or available to write the e-mail address? (both HR US and HR INT.)
    Which BAPI is used or available to write the different phone numbers (telephone, telex, pager, mobile, fax) (HR INT. only)
    Is it correct the default BAPI will only return objects that are ACTIVE? Is there a BAPI available that will return person objects, independent of their status? (this is needed to be able to provision the AD account in a disabled state right after the HR record creation. This way HP has the time to finish the configuration of that AD account and mailbox BEFORE the person starts working for SaraLee) A BAPI is needed that returns objects whether or not the object are ACTIVE.
    I am waiting for ur reply
    Thanks & Regards,
    ABAP

    Hi,
    you can check with this function module.
    BAPI_HRMASTER_SAVE_REPL_MULT,
    RH_CALL_BAPI_HRMD_APPL.
    Regards,
    Shamma

  • Bapi for FB60 - Park an invoice

    Hi gurus,
    Im trying to park an invoice in transaction FB60. i allready tried an batch inout but it's giving me an error, that i can't park an invoice using a batch input in transaction FB60... Don't know why, if someone can explain me why i cant park using an batch input i'll be appreciated..
    Anyway , is it any bapi that i can use to park an invoice to transaction FB60??
    Thanks in advance,
    Best Regards

    I worked with the FV60 transaction and able to park the invoice successfully by batch input method. I am pasting the sample code. Try with the below code::
    Populating the Header Details
      PERFORM bdc_dynpro   USING 'SAPMF05A'  '1100'.
      PERFORM bdc_field  USING 'BDC_OKCODE'  '/ECCDE'.
      PERFORM bdc_field   USING 'INVFO-ACCNT'  pv_vendor.
      MOVE pv_invoice_date TO lw_date.
      WRITE lw_date TO lw_fdate.
      PERFORM bdc_field  USING 'INVFO-BLDAT'  lw_fdate.
      PERFORM bdc_field  USING 'INVFO-XBLNR'  vendor_invoice.
      IF pr_posting_date IS INITIAL.
        MOVE sy-datum TO pr_posting_date.
      ENDIF.                           
      CLEAR: lw_date, lw_fdate.
      MOVE pr_posting_date TO lw_date.
      WRITE lw_date TO lw_fdate.
      PERFORM bdc_field USING 'INVFO-BUDAT'  lw_fdate.
      PERFORM bdc_field USING 'INVFO-SGTXT'   pv_text.
      PERFORM bdc_dynpro  USING 'SAPLACHD'  '1000'.
      PERFORM bdc_field  USING 'BDC_OKCODE'  '=ENTR'.
      PERFORM bdc_field  USING 'BKPF-BUKRS'  pv_bukrs.
    Populating the Item Details
      LOOP AT pr_item_details INTO fs_item_details.
        IF sy-tabix NE 1.
          PERFORM bdc_dynpro USING 'SAPMF05A' '1100'.
          PERFORM bdc_field  USING 'BDC_OKCODE'  '=0005'.
          PERFORM bdc_field  USING 'ACGL_ITEM-MARKSP(01)'  'X'.
        ENDIF.                             " If sy-tabix...
        PERFORM bdc_dynpro   USING 'SAPMF05A'   '1100'.
        PERFORM bdc_field  USING 'BDC_OKCODE'  '/00'.
        PERFORM bdc_field  USING 'ACGL_ITEM-HKONT(01)'
                                              fs_item_details-expense.
        PERFORM bdc_field  USING 'ACGL_ITEM-WRBTR(01)'   lw_amount.
          PERFORM bdc_field  USING 'ACGL_ITEM-MWSKZ(01)'   pv_tax.
        PERFORM bdc_field    USING 'ACGL_ITEM-KOSTL(01)'   pv_costcenter.
        PERFORM bdc_field    USING 'ACGL_ITEM-SGTXT(01)'
                                              fs_item_details-item_text.
        lw_totamount = lw_totamount + lw_amount.
      ENDLOOP.                          
      lw_totamount = lw_totamount + lw_taxamount.
      PERFORM bdc_dynpro USING 'SAPMF05A'  '1100'.
      PERFORM bdc_field  USING 'BDC_OKCODE'  '=PBBP'.
      PERFORM bdc_field  USING 'INVFO-WRBTR'         lw_totamount.
      PERFORM bdc_field USING 'INVFO-WMWST'         lw_taxamount.
      CALL TRANSACTION 'FV60' USING    t_bdc_data
                              MODE     lw_mode
                              UPDATE   c_update
                              MESSAGES INTO t_bdcmsgcoll.
    **ignore the variable used
    Regards,
    Kiran Bobbala

  • Reg:bapis for abap-hr

    Hi Gurus,
    Cna iget the bapis used for the HR module in abap-hr
    programming ....
    Thanks & Regards
    Suman

    Hi,
    Goto Txcode-BAPI->in the left side of the screen click on Alphabetical tab -> Scroll down you will get lot of BAPIs regarding employee, HR master data replication and all.
    Cheers!!
    VEnk@

  • Reg: BAPI for FB02

    Hi ABAP Gurus,
    Could you please let me know of whether there is a bapi defined for the transaction FB02.
    Thanks,
    Kishore

    Hi Mukesh,
    I need to change the Reference key and the reason code using the transaction FB02.
    I can do the same using the BDC but screen numbers keep changing based on the company code.
    I need to know whether it is possible to do same using the bapi.
    Thanks,
    Kishore

  • Reg:BAPI for updation of Progress parameter and status profile

    Hi,
    Can anybody suggest name of BAPI used for updating "progress parameter" & "Status Profile" in actvity.
    With Regards
    Rohit Prakash

    Hi Ammar,
    I have checked both BAPI but BAPI are not working as per our requirement.
    Firstly we wanted to update progress parameter like measurement method(progress version,method plan,method actual) & POC weight into activity but as per BAPI given by you there is no any field available related to measurement method(progress version,method plan,method actual).
    And secondly we wanted to update status profile residing in Activity tab not in network header or WBS.
    Waiting for some more input related to  query.
    With Regards
    Rohit Prakash

  • Reg:BAPI for sales order creation

    Dear All,
    I am not able to populate  Order Quantity in Sales Oder
    from bapi BAPI_SALESORDER_CREATEFROMDAT2
    in which structure the order quantity field will be there.
    In the structure BAPISDITM there is a field TARGET_QTY but it is not  populeting in Cumulative Order Quantity in Sales Units.
    In the structure BAPISCHDL there is a field REQ_QTY
    is it Cumulative Order Quantity in Sales Units.
    please can you tell me which is the field for Order Quantity througn bapi in BAPI_SALESORDER_CREATEFROMDAT2.
    thanks
    mars

    Pass the quantity in ORDER_SCHEDULES_IN-REQ_QTY.  Also update the field ORDER_SCHEDULES_INX-REQ_QTY with value 'X'.
    Regards
    Vinod

  • BAPI for FB60

    Hi all,
    I need to park a document using FB60 tansaction. I need to use BAPI to do the job. Which BAPI can i use to park the document?
    When the document is park, how do i know the status? Which database table stored the information that is pass via BAPI?
    Please Advice. Thanks
    Regards,
    Rayden

    Use BAPI_INCOMINGINVOICE_PARK
    Import parameters HEADERDATA is mandatory in BAPI_INCOMINGINVOICE_PARK .
    Also tables ITEMDATA and RETURN are mandatory.
    Check the following sample code
    LOOP AT i_ekbe INTO wa_ekbe.
    CLEAR: wa_invoice_header,
    i_invoice_item,
    i_return,
    v_inv_doc_no,
    v_fisc_year,
    wa_return.
    REFRESH: i_invoice_item,
    i_return.
    Appending Invoice header Work Area
    wa_invoice_header-invoice_ind = c_x.
    wa_invoice_header-doc_date = sy-datum.
    wa_invoice_header-pstng_date = wa_ekbe-budat.
    wa_invoice_header-comp_code = c_100.
    wa_invoice_header-gross_amount =
    wa_invoice_header-currency = c_usd.
    wa_invoice_header-calc_tax_ind = c_x.
    Appending Invoice item data
    i_invoice_item-invoice_doc_item = '0001'.
    i_invoice_item-po_number = wa_ekbe-ebeln.
    i_invoice_item-po_item = wa_ekbe-ebelp.
    i_invoice_item-tax_code = ' '.
    i_invoice_item-item_amount = '20.00'.
    i_invoice_item-quantity = '10.000'.
    i_invoice_item-ref_doc = '5600000634'.
    i_invoice_item-ref_doc_year = '2006'.
    i_invoice_item-ref_doc_it = '10'.
    i_invoice_item-po_unit = 'EA'.
    i_invoice_item-COND_TYPE = 'VPRS'.
    APPEND i_invoice_item.
    Calling module BAPI_INCOMINGINVOICE_PARK
    CALL FUNCTION 'BAPI_INCOMINGINVOICE_PARK'
    EXPORTING
    headerdata = wa_invoice_header
    ADDRESSDATA =
    IMPORTING
    invoicedocnumber = v_inv_doc_no
    fiscalyear = v_fisc_year
    TABLES
    itemdata = i_invoice_item
    NFMETALLITMS =
    ACCOUNTINGDATA =
    GLACCOUNTDATA = i_gla
    MATERIALDATA = i_mat
    TAXDATA =
    WITHTAXDATA =
    VENDORITEMSPLITDATA =
    return = i_return.
    READ TABLE i_return INTO wa_return
    WITH KEY type = c_e.
    IF sy-subrc EQ 0.
    ENDIF.
    ENDLOOP.
    Hope this helps
    Vinodh Balakrishnan

  • Need Bapi for posting docuemtn through - FB60

    Hi Friends..
    I need a Bapi for Transaction FB60.I tried with lot of option including BAPI_INCOMINGINVOICE_CREATE.But I didn't get a proper one.
    No Bapi have a Vendor input field.Plz help me to identify the right Bapi for FB60.
    Thanks
    Gowrishankar

    Hi,
      Check the link given: ["Change" BAPI for FB60]
    Regards,
    Naveen M.

Maybe you are looking for

  • WHT - No unpaid tax lines exist for the given selection criteria

    Before going to execute Create remittance challan J!INCHLN , i entered all the mentioned  parameters and  try to save but  i got error message  as follows No unpaid tax lines exist for the given selection criteria. Message no. 8I702 Diagnosis The cor

  • Getting list of possible child nodes

    I'm trying to find an automated way to get a list of all the possible child nodes for a given element based on a schema. How does one go about doing that in Java? The closest match I could find was the class ElementEditAS, but it's deprecated with no

  • Nco 3.0 and VB2010 problem (system.web)

    Hello, I get this error when compiling a prgram in VB2010 usin NCo 3.0 ...: The referenced assembly "sapnco" could not be resolved because it has a dependency on "System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" which is

  • BW 3.5 Upgrade to 7.0 ( ABAP OO upgrade required ? )

    We are planning to upgrade from BW 3.5 to 7.0. Are we required to upgrade/modify all our ABAP code in the start routines/update rules/transfer rules to the new ABAP Object Oriented code ? Would it be possible to migrate all the 3.5 BW objects to 7.0

  • What is the icon difference in MAX

    Hi all, I have one question regarding for PXI 5600. On the below image, you can see there is 2 different icon between PXI5600 in 2 different chassis . I wander why is like  this and how to make the icon same as icon as chassis 1?