Sunday, August 5, 2018

IDOC in sap ABAP.


                                                                 IDOC Short Note Details.

IDOC Short Note:
T-CODE:--WE30.

IDOC use for “simply a data container” that is used to exchange information between any two systems or process.
  • This is use for store the data in database.
  • Data store in the database table.
  • This is use for sending and receiving data independently.


Segment creating T-code details:-
  •  Creating Segment T-CODE:- WE31
  •  Creating message type. T-CODE:- we81
  •  Assigning message type to IDOC type T-CODE:- we82


IDOC has 2 processes.
1.       Outbound Process.
2.       Inbound Process.

Outbound process:-When a data send from out of the system. This process called outbound process.
Inbound process:-When a data send from in the system. This process also called  inbound process.
IDOC contains the following three types of records...

1. One Control Record.
2. One or many Data Record
3. One or many Status record. 

MM Module Table & Flow Details In SAP.





MM Module Table & Flow Details

MM T-code  With Flow details.
1...Purchase Requisition --- T.code ---ME51
2...Source List -----T.code-----ME41
3...Request for Quation (RFQ)---T.code--ME21N  (To Vendor)
4...Purchase Order  ---- T.code ----ME21N (To Vendor)
5...Goods Receipt-------T.code....MIGO
      (Tables:  MKPF, MSEG)

6...Invoice Verification----T.code...MIRO
      (Tables: BKPF , BSEG)

7...Vendor Payment----T.code...FB60 (FI - Account Payable).





===========================================================

Materials 

MARA - Material Master: General data 
MAKT - Material Master: Description 
MARM - Material Master: Unit of Measure 
MAPE - Material master: Export control file 
MARC - Material master: Plant data 
MARD - Material master: Storage location 
MBEW - Material valuation 
MLGN - Material Master: WM Inventory 
MLGT - Material Master: WM Inventory type 
MDIP - Material: MRP profiles (field contents) 
MKOP - Consignment price segment (old versions of SAP) 
EBEW - Valuation of sales order stock 
QBEW - Valuation of project stock 
MVER - Material Master: Consumption <Plant> 
DVER - Material Master: Consumption <MRP Area> 
MVKE - Material Master: Sales <Sales Org, Distr Ch> 
MLAN - Material Master: Tax indicator 
MAPR - Material Master: Forecast 
MCH1 - Material Master: X Plant Batches 
MCHA - Material Master: Batches 
MCHB - Material Master: Batch Stock 
MDMA - MRP Area data 
DBVM - MRP Planning File Entry: MRP Area 
MOFF - Outstanding Material Master Records (Maintenance status) 
MARCH - Material Master C Segment: History 
MARDH - Material Master Storage Location Segment: History 
MBEWH - Material Valuation: History 
MCHBH - Batch Stocks: History 
MKOLH - Special Stocks from Vendor: History 
MSCAH - Sales Order Stock at Vendor: History 
MSKAH - Sales Order Stock: History 
MSKUH - Special Stocks at Customer: History 
MSLBH - Special Stocks at Vendor: History 
MSPRH - Project Stock: History 
MSSAH - Total Sales Order Stocks: History 
MSSQH - Total Project Stocks: History 

BOM 

STKO – BOM Header Details 
STPO – BOM Item Details 
MAST –Material to BOM Link 

Vendors 

LFA1 - Vendor Master: General data 
LFB1 - Vendor Master: Company data 
LFM1 - Vendor Master: Purchasing Data (Purchasing organization) 
LFM2 - Vendor Master: Purchasing Data (Plant, Vendor sub-range) 
WYT3 - Vendor Partner Functions 

External Service Management 

ASMD - Service Master: Basic Data 
ASMDT - Service Short Texts 

ESKL - Account assignment specification for service line 
ESKN - Account assignment in service package 
ESLH - Service package header data 
ESLL - Lines in service package 
ESSR - Service entry sheet header data 
ESUC - External services management: Unplanned limits for contract item 
ESUH - External services management: unplanned service limits header data 
ESUP - External services management: unplanned limits for service packages 
ESUS - External services management: Unplanned limits for service types 

Purchasing 

EBAN - Purchase requisition: items 
EBKN - Purchase Requisition: account assignment 
STXH - SAP Script Text Header 
STXL - SAP Script Text Lines 

EKKO - Purchasing document header 
EKPO - Purchasing Document: Item 
EKET - Purchasing Document: Delivery Schedules 
MDBS - Material View of Order Item/Schedule Line (good to find open PO's) 
EKKN - Account assignment in purchasing document 
EORD - Purchasing Source List 
EIPA - Order price history record 
EKAB - Release documentation 
EKBE - Purchasing document history 
EKBZ - Purchasing document history: delivery costs 
EKPB - "Material to be provided" item in purchasing document 

EINA - Purchase Info Record: General 
EINE - Purchasing info record: purchasing organization data 
KONP - Condition Item 
KONH - Condition Header 


Inventory Management 

ISEG - Physical inventory document items 

MKPF - Material document: Header 
MSEG - Material document: item 

RKPF - Reservation: Header 
RESB - Reservation: Item 


Invoice Verification 

BSIM - Secondary index: documents for material 
MYMFT - FIFO results table 
MYML - LIFO material layer 
MYMLM - LIFO material layer (monthly) 
MYMP - LIFO period stocks, single material 
MYMP1 - Receipt data LIFO/FIFO valuation 
MYPL - LIFO pool layer 
MYPLM - LIFO pool layer (monthly) 
RBCO - Document item, incoming invoice account assignment 
RBDIFFKO - Invoice Verification: conditions 
RBDIFFME - Invoice Verification: quantity differences 
RBDRSEG - Invoice Verification batch: invoice document items 
RBKP - Document header: incoming invoice 
RBKPB - Invoice document header (batch invoice verification) 
RBTX - Taxes:incoming invoice 
RBVD - Invoice document: summarization data 
RBVDMAT - Invoice Verification: summarization data, material 
RBWT - Withholding tax:incoming invoice 
RKWA - Consignment withdrawals 
RSEG - Document item, incoming invoice 

Customising and other master data 

T001 - Company Codes 
T001W - Plants/branches 
T001L - Storage Locations 
T024E - Purchasing Organizations 
T024W - Valid Purchasing Organizations for Plant 

MDLV - MRP Areas 
MDLG - MRP Areas - Storage Locations 
MDLW - MRP Areas - Plants 
MDLL - MRP Areas - Subcontractor 
T023 - Material Groups 
T024 - Purchasing groups 
T030 - Standard Accounts Table (Automatic Account Determination) 
T156 - Movement Type 
T156T - Movement Type: Text 
T16FS - Release Strategies 
T16FT - Descriptions of Release Strategies 
T16FV - Release Prerequisites 
T16FD - Description of Release Codes 
T16FK - Release Statuses 
T16FC - Release Codes 
T161 - Purchasing Document Types 

T052 - Terms of Payment & FM FI_TEXT_ZTERM for long text 

AUSP - Release Procedure: Strategy values (cl20n, cl24n) 
AGR_USERS - Assignment of roles to users 
CDHDR & CDPOS - Change history of master data and documents 
EDID4 - EDI information 
TSTC - SAP Transaction Codes, lock/unlock: sm01, created: se93 
TSTCT - Transaction codes TEXT 

NAST - Message status 
MM Transaction Codes
Materials Management Master DataTransactions
Material Master
 MM01
 Create Material Master
MM02
Change Material Master
MM50
Extend Material Views
MMPV
Close Period For Materials
MM06
Flag For Deletion ± Material
MM17
Mass Maintenance ± Material
MM71
Archive/Delete ± Material
MM72
Display Archive
Vendor Master
MK01
Create Vendor ± Purchasing
MK02
Change Vendor ± Purchasing
MK05
Vendor Block ± Purchasing
MK06
Flag for Deletion ± Purchasing
XK01
Create Vendor ± Central
XK02
Change Vendor ± Central
XK05
Vendor Block ± Central
XK06
Flag for Deletion ± Central
XK99
Mass Maintenance ± Vendor Record
Customer Master
 VD01
Create Customer Master Data ± Sales Area
VD02
Change Customer Master Data ± Sales Area
XD01
Create Customer Master Data ± Complete
XD02
Change Customer Master Data ± Complete







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