SAP R/3 форум ABAP консультантов
Russian ABAP Developer's Club

Home - FAQ - Search - Memberlist - Usergroups - Profile - Log in to check your private messages - Register - Log in - English
Blogs - Weblogs News

BAPI_INCOMINGINVOICE_PARK



 
Post new topic   Reply to topic    Russian ABAP Developer's Club Forum Index -> Interfaces | Интерфейсы -> BAPI
View previous topic :: View next topic  
Author Message
admin
Администратор
Администратор



Joined: 01 Sep 2007
Posts: 1640

PostPosted: Sat Apr 12, 2008 6:29 pm    Post subject: BAPI_INCOMINGINVOICE_PARK Reply with quote

BAPI_INCOMINGINVOICE_PARK - Invoice Verification: Park Invoice

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.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Russian ABAP Developer's Club Forum Index -> Interfaces | Интерфейсы -> BAPI All times are GMT + 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


All product names are trademarks of their respective companies. SAPNET.RU websites are in no way affiliated with SAP AG.
SAP, SAP R/3, R/3 software, mySAP, ABAP, BAPI, xApps, SAP NetWeaver and any other are registered trademarks of SAP AG.
Every effort is made to ensure content integrity. Use information on this site at your own risk.