Friday, June 22, 2018

Create incoming vendor invoice (MIRO) using BAPI BAPI_INCOMINGINVOICE_CREATE IN SAP ABAP..

Create incoming vendor invoice (MIRO) using  BAPI BAPI_INCOMINGINVOICE_CREATE.

*&---------------------------------------------------------------------*
*& Report  ZSW_BAPI_INC_INV_CREATE
*&
*&---------------------------------------------------------------------*
*&
*&
*&---------------------------------------------------------------------*

REPORT  ZSW_BAPI_INC_INV_CREATE.

DATAwa_header LIKE bapi_incinv_create_header.

DATAit_item TYPE STANDARD TABLE OF bapi_incinv_create_item,
      wa_item TYPE bapi_incinv_create_item.

DATAit_ret LIKE bapiret2 OCCURS WITH HEADER LINE.

DATAg_invno LIKE bapi_incinv_fld-inv_doc_no,
      g_fyear LIKE bapi_incinv_fld-fisc_year.

********************************************
****<<<<<<<<<<<<DATA DECLARE>>>>>>>>>>>>****
********************************************

wa_header-invoice_ind 'X'.
wa_header-doc_date '20120131'.     "Document date
wa_header-pstng_date '20120201'.   "Posting date
wa_header-ref_doc_no 'Test'.       "Ref doc. No.
wa_header-comp_code '3101'.        "Company Code
wa_header-gross_amount '5908.11'.  "Gross amount(aft. tax) for the invoice
wa_header-calc_tax_ind 'X'.
wa_header-currency 'USD'.          "Currency Field

wa_item-invoice_doc_item '000011'.
wa_item-po_number '4590038151'.    "PO number
wa_item-po_item '00121'.           "PO item number
wa_item-ref_doc '5007548571'.      "GR number
wa_item-ref_doc_year '2018'.       "GR fiscal year
wa_item-ref_doc_it '0011'.         "GR item number
wa_item-tax_code 'V7'.             "Tax code applicable
wa_item-item_amount '5521.61'.     "Item amount
wa_item-quantity '3381'.           "Invoice quantity
wa_item-po_unit 'EA'.              "UoM
APPEND wa_item TO it_item.

*********************************************************
*<<<<<<<<<CALL BAPI fOR INCOMINGINVOICE_CREATE>>>>>>>>>>*
*********************************************************
CALL FUNCTION 'BAPI_INCOMINGINVOICE_CREATE'
  EXPORTING
    headerdata                wa_header
*   ADDRESSDATA               =
 IMPORTING
   invoicedocnumber          g_invno
   fiscalyear                g_fyear
  TABLES
    itemdata                  it_item
*   ACCOUNTINGDATA            =
*   GLACCOUNTDATA             =
*   MATERIALDATA              =
*   TAXDATA                   =
*   WITHTAXDATA               =
*   VENDORITEMSPLITDATA       =
    return                    it_ret
*   EXTENSIONIN               =
          .
*********************************************************
******<<<<<<<<<<<<Bapi Commit section start.>>>>>>>>>>***
*********************************************************
IF g_invno IS NOT INITIAL.
  CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
*   EXPORTING
*     WAIT          =
*   IMPORTING
*     RETURN        =
            .
ENDIF.
*********************************************************
******<<<<<<<<<<<<Bapi Commit section End.>>>>>>>>>>***
*********************************************************
WRITE:/1 g_invnog_fyear.

LOOP AT it_ret.
  WRITE:/1 it_ret-message.
ENDLOOP.
*****************<<<<<<<<<<<<END>>>>>>>>>>>>*************

Monday, June 4, 2018

SAP-ABAP ALL T-CODE LIST



SAP-ABAP  T-CODE LIST DETAILS
  • OSS1 SAP Online Service System
  • OY19 Compare Tables
  • S001 ABAP Development Workbench
  • S002 System Administration.
  • SA38 Execute a program.
  • SCAT Computer Aided Test Tool
  • SCU0 Compare Tables
  • SE01 Old Transport & Corrections screen
  • SE09 Workbench Organizer
  • SE10 Customizing Organizer
  • SE10 Customizing organizer – requests for user (To release for transport –
    enter user name, press Enter. Select changed object and select ReleaseSE10 New
    Transport & Correction screen
  • SE11 ABAP/4 Dictionary Maintenance SE12 ABAP/4 Dictionary Display SE13
    Maintain Technical Settings (Tables)
  • SE11 ABAP/4 Dictionary.
  • SE12 Dictionary: Initial Screen – enter object name
  • SE13 Access tables in ABAP/4 Dictionary.
  • SE14 ABAP/4 Dictionary: Database Utility.
  • SE14 Utilities for Dictionary Tables
  • SE15 ABAP/4 Repository Information System
  • SE16 Data Browser
  • SE16 Data Browser: Initial Screen.
  • SE16 Display table contents
  • SE17 General Table Display
  • SE30 ABAP/4 Runtime Analysis
  • SE30 ABAP/4 Runtime Analysis: Initial Screen.
  • SE30 Run Time Analysis (press Tips and Tricks button for good stuff)
  • SE32 ABAP/4 Text Element Maintenance
  • SE35 ABAP/4 Dialog Modules
  • SE36 ABAP/4: Logical Databases
  • SE37 ABAP/4 Function Library.
  • SE37 ABAP/4 Function Modules
  • SE38 ABAP Editor
  • SE38 ABAP/4 Program Development
  • SE39 Splitscreen Editor: Program Compare
  • SE41 Menu Painter
  • SE43 Maintain Area Menu
  • SE51 Screen Painter
  • SE51 Screen Painter: Initial Screen.
  • SE54 Generate View Maintenance Module
  • SE61 R/3 Documentation
  • SE62 Industry utilities
  • SE63 Translate Short/Long Text.
  • SE63 Translation
  • SE64 Terminology
  • SE65 R/3 documents. Short text statistics SE66 R/3 Documentation Statistics
    (Test!)
  • SE68 Translation Administration
  • SE71 SAPscript layout set
  • SE71 SAPscript Layouts Create/Change
  • SE72 SAPscript styles
  • SE73 SAPscript font maintenance (revised)
  • SE74 SAPscript format conversion
  • SE75 SAPscript Settings
  • SE76 SAPscript Translation Layout Sets
  • SE77 SAPscript Translation Styles
  • SE80 ABAP/4 Development Workbench
  • SE80 Repository Browser: Initial Screen.
  • SE81 SAP Application Hierarchy
  • SE82 Customer Application Hierarchy
  • SE84 ABAP/4 Repository Information System
  • SE85 ABAP/4 Dictionary Information System
  • SE86 ABAP/4 Repository Information System
  • SE87 Data Modeler Information System
  • SE88 Development Coordination Info System
  • SE91 Maintain Messages
  • SE92 Maintain system log messages
  • SE93 Maintain Transaction Codes
  • SE93 Maintain Transaction.
  • SEU Object Browser
  • SMARTFORMS






T-CODES OF  SD
VA01 - Create Sales Order
VA02 - Change Sales Order
VA03 - Display Sales Order

T-CODES OF MM 
MM01 - Create MATERIAL Order
MM02 - Change MATERIAL Order
MM03 - Display MATERIAL Order



T-CODES OF PURCHASE 
ME21N - Create PURCHASE Order
ME22N - Change PURCHASE Order
ME23N - Display PURCHASE Order


T-CODES OF VENDOR 
XK01 - Create VENDOR Order
XK02 - Change VENDOR Order
XK03 - Display VENDOR Order

T-CODES OF CUSTOMER 
XD01 - Create CUSTOMER Order
XD02 - Change CUSTOMER Order
XD03 - Display CUSTOMER Order










T-CODES OF  SD
VA01 - Create Sales Order
VA02 - Change Sales Order
VA03 - Display Sales Order

VOV8 - Document Type Maintenance
VA05 - List of Sales Orders
VOV7 - Maintain Item Categories
VA21 - Create Quotation
VA41 - Create Contract
V_V2 - Updating Sales Documents by Material
VA00 - Initial Sales Menu
VOV4 - Table TVEPZ Assign  Sched.Line Cat.
VA11 - Create Inquiry
VA22 - Change Quotation
VOV6 - Maintain Schedule Line Categories
VF05 - List Billing Documents
..... - ..................................



 TCODES OF  SD-BILLING
VF01 - Create Billing Document
VF02 - Change Billing Document
VF04 - Maintain Billing Due List
VF03 - Display Billing Document
VTFL - Delivery to bill copying control
VF11 - Cancel Billing Document
VTFA - Order to bill copying control
VFX3 - List Blocked Billing Documents
VTAA - Order to order copying control
VTLA - Order to delivery copying control
VTAF - Bill. doc. to order copying control
VF06 - Batch billing
VF21 - Create Invoice List
VF44 - Revenue Recognition: Worklist
VTFF - Bill to bill copying control
..... - ..................................


TCODES SD- BASIC FUNCTIONS
NACE - WFMC: Initial Customizing Screen
VBKD - Bonus Buy: Condition Types
VOFM - Configuration for Reqs, Formulae
VARA - Archiving
OVA8 - Automatic Credit Checks
VKM3 - Sales Documents
CO09 - Availability Overview
VKM1 - Blocked SD Documents
VORA - Archiving Control for Sales Doc.
VF31 - Output from Billing Documents
OVZ9 - SD Cust. Control Availability Check
VKM4 - SD Documents
CO06 - Backorder Processing
VV31 - Create Output : Billing
VOTXN - Maintain Text Customizing
..... - ..................................








Inventory Management tcodes MM-IM
MIGO - Goods Movement
MB1B - Transfer Posting
MB51 - Material Doc. List
MB1A - Goods Withdrawal
MB1C - Other Goods Receipts
MB5B - Stocks for Posting Date
MB52 - List of Warehouse Stocks on Hand
MB01 - Post Goods Receipt for PO
MB31 - Goods Receipt for Production Order
OMJJ - Customizing: New Movement Types
MB21 - Create Reservation
MBST - Cancel Material Document
MB90 - Output Processing for Mat. Documents
MB5L - List of Stock Values: Balances
MB5T - Stock in transit CC
..... - ..................................


Purchasing tcodes MM-PUR
ME21N - Create Purchase Order
ME22N - Change Purchase Order
ME23N - Display Purchase Order
ME51N - Create Purchase Requisition
ME21 - Create Purchase Order
ME2N - Purchase Orders by PO Number
ME2O - SC Stock Monitoring (Vendor)
ME11 - Create Purchasing Info Record
ME52N - Change Purchase Requisition
ME9F - Message Output: Purchase Orders
ME59N - Automatic generation of POs
ME29N - Release purchase order
ME28 - Release Purchase Order
ME22 - Change Purchase Order
ME59 - Automatic Generation of POs
..... - ..................................

Invoice Verification tcodes MM-IV
MIRO - Enter Incoming Invoice
MR21 - Price Change
MIR7 - Park Invoice
MRKO - Settle Consignment/Pipeline Liabs.
MR8M - Cancel Invoice Document
MRBR - Release Blocked Invoices
OMRI - C MM-IV Item Amount Check Parameters
MRRL - Evaluated Receipt Settlement
MIR4 - Call MIRO - Change Status
MIRA - Fast Invoice Entry
MIR6 - Invoice Overview
OMR6 - Tolerance limits: Inv.Verification
MRIS - Settle Invoicing Plan
MIR5 - Display List of Invoice Documents
MR22 - Material Debit/Credit
..... - ..................................

External Services tcodes MM-SRV
ML81N - Service Entry Sheet
AC03 - Service Master
AC10 - Class Hierarchy with Services
AC01 - Service Master
ML81 - Maintain Service Entry Sheet
ML85 - Collective Release of Entry Sheets
ME2S - Services per Purchase Order
ML84 - List of Service Entry Sheets
AC06 - List Display: Service Master
ML33 - Create Vendor Conditions
ML83 - Message Processing: Service Entry
AC02 - Service Master
ML45 - Display Service Conditions
ML91 - Stand. Values f. Ext.Services Mgmt.
ML10 - Create Model Service Specifications
..... - ..................................

Consumption-Based Planning (See Also PP-MRP) tcodes MM-CBP
WRP1 - Replenishment: Procurement
MPR1 - Forecast Adopted from External Data
OWD1 - Maintain rounding profiles
MPR2 - Deletion of Forecast Data
WFCS01 - Run Sales Forecast
WVM2 - Transfer stock/sales figures
WR60 - Replenishment: Parameter Overview
WVM3 - Display material data transferred
WAHD2 - Change Alternative Historical Data
WVM7 - Assignment of PO Data to Vendor
WFCS02 - Delete Sales Forecast
WVM1 - Execute customer replenishment
WRMO - Replenishment monitor
WAHD3 - Display Alternative Historical Data
WVM4 - Display PROACT data received
..... - ..................................

Electronic Data Interchange tcodes MM-EDI
PRICAT - PRICAT: Maintain mat. as per catalog
PRICATCUS1 - Pricat: Customizing for V_pricat_001
PRICATCUS2 - Pricat: Customizing for V_pricat_002
PRICATCUS3 - Pricat: Customizing for V_Pricat_003
PRICATLOG - PRICAT: Display application log

MM General tcodes
MIGO - Goods Movement
MIRO - Enter Incoming Invoice
ME21N - Create Purchase Order
ME22N - Change Purchase Order
MB1B - Transfer Posting
MB51 - Material Doc. List
ME23N - Display Purchase Order
MB1A - Goods Withdrawal
MB1C - Other Goods Receipts
ME51N - Create Purchase Requisition
MB5B - Stocks for Posting Date
MR21 - Price Change
ML81N - Service Entry Sheet
MB52 - List of Warehouse Stocks on Hand
MB01 - Post Goods Receipt for PO
..... - ..................................
Full list of SAP MM General tcodes

Additional Material Functions tcodes SD-MD-MM-CS
MATERIAL_INFO - Material Information
WSD_CBP - Close-By Plants Application
WSD_KEYWORD - Keyword maintenance