Posts

Showing posts from January, 2017

MM FLOW

Image
+   - 1. Purchase Requisition (ME51N) Material requirement are identified either by the user, department or via material planning and control. For example a MRP Run in production planning or material falling short of reorder-point can automatically generate Purchase Requisition. At the same time PR can be created manually in the system. 2. Source Determination - RFQ (ME41) Identify the possible source of supply based on the past order and existing long term purchase contract. Then create Request for Quotation, which can be then sent electronically to vendors. 3. Vendor Selection and Comparison of Quotation (ME49) After receiving quotation system is capable to simulate pricing scenarios, allowing user to compare number of quotations and sent rejection letter automatically. 4. Purchase Order (ME21N) Data from Quotation or Purchase Requisition can be adopted to create Purchase Orders. Purchase Order is then sent to Vendor to supply the goods. 5. Purchase Order Fol

SD FLOW

Image
Below is the standard sales and distribution(SD) document flow in SAP . INQUIRY VA11 is the T-Code for inquiry and related tables are VBAK, VBAP.Once inquiry is done customer requests quotation. QUOTATION T-code for quotation in VA21, tables are VBAK, VBAP.After quotation flow goes for purchase order. PURCHASE ORDER Purchase order t-code is ME21N, related tables are EKKO, EKPO.Based on purchase order sales order will be created. SALES ORDER Sales order t-code is VA01, related tables are VBAK, VBAP. Once sales order is created, delivery will be done. DELIVERY T-Code for delivery order is VL01N, tables are LIKP, LIPS. Next the goods should be delivered through shipping SHIPPING Shipping t-code is VT01, related tables are VTTK, VTTP.Once goods are shipped, go for billing. BILLING Billing t-code is VF01, tables are VBRK,VBRP. Every bill has invoice...next provide invoice. INVOICE Invoice t-code is VF21, related tables are VBRK, VBRP.Invoice end of sal

ABAP CODE FOR PALINDROME

Image
REPORT   ZPALINDROME . DATA :       num  TYPE  i  value  121 ,       rev  TYPE  i  value  0 ,       numcopy  TYPE  i  value  0 ,       digit  TYPE  i .       numcopy  =  num . WHILE  numcopy >  0 .   digit  =  numcopy  mod  10 .   numcopy  =  numcopy /  10 .   rev  =  rev *  10  + digit .    ENDWHILE .    if  num  =  rev .      WRITE  'num is palindrome' .      else .      WRITE  ' num is not a palindrome' .      ENDIF .

PATTERN3

Image
REPORT   ZPATTERN3 . DATA :        I  TYPE  i ,       j  TYPE  i ,       k  TYPE  i ,       l  TYPE  i .        i  =  1 . do  5  times .    do  i  times .      WRITE  at  j ( 1 )  sy - index .     j  =  j +  1 .      ENDDO .      WRITE  / .      i  =  i  +  1 .     j  =  1 .      ENDDO .      i  =  4 .     j  =  5 .     l  =  5 .      do  4  times .        do  i  times .          WRITE  at  j ( 1 )  l .         j  =  j  -  1 .         l  =  l  -  1 .          ENDDO .          WRITE  / .          i  =  i  -  1 .         j  =  5 .         l  =  5 .          ENDDO .

PATTERN2

Image
REPORT   ZPATTERN2 . DATA :       POS  TYPE  I  VALUE  4 ,       J  TYPE  I  VALUE  4 .        do  4  times . do  j  TIMES .    WRITE  at  pos ( 1 )  sy - index .   pos  =  pos  -  1 .    ENDDO .   pos  =  4 .   j  =  j  -  1 .    WRITE  / .    enddo .

PATTERN1

Image
REPORT   ZPATTERN1 . DATA :       POS  TYPE  I  VALUE  4 ,       J  TYPE  I  VALUE  1 ,        i  TYPE  i .        do  4  times . do  j  TIMES .    WRITE  at  pos ( 1 )  sy - index .   pos  =  pos  -  1 .    ENDDO .   pos  =  4 .   j  =  j +  1 .    WRITE  / .    enddo .

ABAP CODE FOR MULTIPLICATION TABLE

Image
REPORT   ZMTABLE . DATA :       W_A  TYpe  i  value  2 ,       w_b  TYPE  i ,       w_c  TYPE  i . do  10  times .   w_b  =  w_b +  1 .   w_c  =  w_a * w_b .    WRITE  : / w_A ,  '*' ,  w_b ,  '=' ,  w_c .    ENDDO .

ABAP CODE FOR FIBONACCI SERIES

Image
REPORT   ZFIBONACCI . DATA :       w_a  type  i  value  0 ,       w_b  type  i  value  1 ,       w_c  type  i . do  10  times .   w_c  =  w_a + w_b .   w_a  =  w_b .   w_b  =  w_c .    WRITE  w_c .    ENDDO .

NUMBER PATTERNS PROGRAMME

Image
REPORT   ZNUMBERPATTERN . do  10  times . do  sy - index  times .    write  sy - index .    ENDDO .    WRITE  / .    enddo .

ABAP CODE FOR PREVIOUS MONTH LAST DATE

Image
REPORT   ZPREVIOUS . DATA  :  date  TYPE  sy - datum . date  =  sy - datum .  "Today date+6 ( 2 )  =  '01' .  "First day of this month date  =  date  -  1 .  "Previous day before first day of this month = last day of last month WRITE :  date .