CALL FUNCTION ‘MB_READ_RESERVATION_POS_WA’
EXPORTING
rsnum    = rm07m-rsnum
rspos    = rm07m-rspos
shkzg    = shkzg
bwart    = xrkpf-bwart
kzneb    = rm07m-kzneb
TABLES
i_iooper = oper_tab
seqtab   = xrbefu.

Related tables: RESB,RKPF

 

SAP has a limited provision for retrieving deleted programs. Let us have a look into the steps for the retrieval.

 

 

OPTION 1:

1. Check in table VRSD if there is an entry with OBJTYPE = ‘REPS’ and OBJNAME = name of the deleted program.

 

Retrieve Deleted ProgramsRetrieve Deleted Programs

2. If yes, then create a new program in SE80 / SE38 with the exact same name as the deleted one.
3. Click on Utilities – > Version – > Version Management.
4. Click on the earlier version of your program and click display.
Your earlier program will get displayed, just copy – paste to the existing program.

via ABAP Tutorials

The code book contain the beginners level programs for new ABAPers. The book covers almost every basic aspect that a programer in this domain should know.

 

Code Book

 

Some of the programs that the book covers are:

  • How to define types and data objects
  • A Few Simple Examples
  • Working with database tables and internal tables
  • Designing a report
  • Three approaches to define data objects
  • Complex Non-Elementary Types and Data Objects
  • Type-Specific Output Options
  • External flow of control (events)
  • Using internal tables as snapshots of database tables
  • Working with get events
  • Dynamic sort command with several sort criteria
  • Working with Field Symbols
  • Transferring data to a file
  • Reading data from a file

 

Download Link: ABAP Code Book

via ABAP Tutorials

This sample report shows the basic structure for getting the report for the Pending Purchase Requisition based on various selection options on screen.

The report loops throgh the required Tables of Purchase Requisition and based on the data entered on screen, displays the desired data. The report is to be modified/tweaked as per the custom need.

purchase_requisition

 

The basic purpose of the report is to develop a pragmatical flow of the language, the way normally ABAP programs are written.

Download Source Code : Z_PENDING_PRS_REPORT

Via http://www.abap-tutorials.com/2011/10/30/abap-pending-purchase-recquisition-pr-report/

There have been some cases where we, as an ABAP programmer, want to take SAP table data backup. Specially for the case where Basis Team refuses to get it back-up and restore the data for us.

There have been some codes available on net where data is backed-up but not restored back to SAP.

It is basically Dynamic table export / import facility.

 

There are some restrictions for using the code:

* – Table definition MUST exist on target system for import.

* – Entire table is exported / imported.

* – Must be WIN95/98 WIN-NT long filenames.

 

Download code : Upload/Download Program

via ABAP Tutorials

The okcode field is deactivated when a modal window (the technical name of popup windows) is displayed, so it seems impossible to enter the debugger (using /H okcode).

In common dialogs, the okcode field is available:

But it is not available in modal windows (we see it but we can’t enter anything in it):

The solution is to create on the frontend a SAPGUI shortcut (file with extension .SAP), of type System Command and command /H, and drag and drop it from Windows desktop to the SAP modal window. The creation of SAPGUI shortcuts is explained here: SAPGUI shortcuts.

For official information, see Note 118184 – SAPshortcut – debugger start

via SAP wiki

January 16th, 2011

ABAP get STAD data log Syntax

No Comments, ABAP Syntax, by Jack.

ABAP get (read) STAD data log Syntax

SWNC_STAD_READ_STATRECS

SAPWL_READ_STATISTIC_FILES

Month-End Closing in SAP comprises activities involved in closing a posting period. This document contains several steps and transactions used within the Month-End Closing process for a specific company. After a brief introduction a detailed explanation of the transactions in the main part of the documentation follows. Find below a list of transaction processes covered in this guide;

  • Payroll
  • Transaction F-02 (Payroll Expenses Input)

  • Revision of Material
  • Transaction KKAO (Calculate Work in Process: Collective Processing), Transaction KKS1 (Variance Calculation: Collective Processing), Transaction CO88 (PO Settlement: Collective Processing), Transaction KO8G (Settlement of Internal Orders)

  • Adjustment and Process Maintenance
  • Transaction F.50 (Profit and Loss Adjustment), Transaction F.5D (Calculate Balance Sheet Adjustment), Transaction F.5E (Post Balance Sheet Adjustment), Transaction F.05 (Foreign Currency Valuation)

  • Expenses Allocation
  • Transaction KSV5 (Allocations Distribution)

  • Scrap and Material Valuations
  • Transaction S_ALR_87012284 (Scrap Reclassification), Transaction ZCOPC (Balance Sheet Valuation), Transaction MB51 (Report of Monthly Scrap), Transaction KB51 (MAT & QUA Maintenance), Transaction KEU2 (Cycle Maintenance)

  • Maintenance
  • Transaction KB51 (MAT & QUA Maintenance) , Transaction KEU2 (Cycle Maintenance)

  • Sales & Cost of Sales
  • Personnel Expenses
  • Transaction KSA3 (Social Benefits Actual Accrual), Transaction KO8G (Actual Settlement of Internal Orders)

  • Fixed Assets
  • Transaction AFAR (Recalculate Depreciation), Transaction RAANALYZE01 (Determine Locked CC and IO), Transaction AFAB (Posting Depreciation), Transaction ASKB (Periodic Asset Posting)

  • CO-PA Assessment
  • Transaction KEU5 (Run Assessment Cycles)

  • Variances Calculation
  • Transaction KSS1 (Variances Calculation for Cost Centers), Transaction KSS2 (Actual Fix/Variable Cost Splitting), Transaction KALC (Reconciliation FI-CO)

  • P & L Report
  • Transaction KE30 (Export of P&L Report)

  • Balance Statement
  • P&L Forecast

Month End Closing Process Sample Guide in SAP FI

via sapdocs.info