Category: ABAP

Dynamic Data Selection – Dynamic SQL

Hi Techies! There will be instances where you need to read tables dynamically. For a example when you work with access sequences in SAP, you will need to read data using this method. In the below example, program is defined in such a way that the table which it needs to fetch data from is

Make Table Maintenance Display Only – Remove Change Mode – Disable New Entries

Hi Techies! There will be instances where you need to to only display the entries using table maintenance. Most common instance would be when there is a table maintenance transaction setup already but there is a new requirement to set it to display only. This can be done with minimum development effort by editing the GUI status of the table maintenance screen and

Table Control Example ABAP

Table Control Example Table control is a very useful tool when it comes to creating applications with user interactions.The program show how table control can be used to display and manipulate data. It will display sales order number, sales order line item and material number. User is able to change material number, sort up, sort down or delete

BAPI for MRP Run SAP AFS

If you need to execute MRP in SAP AFS for a single material for a plant you can use the BAPI “J_3AM_DISPOSITION”. This is the BAPI which is called by the standard SAP MRP transaction /AFS/MD02.   J_3AM_DISPOSITION You need to set the importing parameters as below. Parameter “I_BANER” (Creation Indicator for Purchase Requisitions) can

Write to SAP Application Log

SAP application log is a great method to display/save messages that occur when executing a SAP application. For custom applications, you can create your own application log object, which will enable user to see the log of the specific application in the future easily filtering using the object. Purpose of application log object is to logical segregation of messages. With

Call Report using SUBMIT

Hi All, This will show you how to call a report program (Executable program) from another program. In this example I will call transaction FBL5N which is used to check customer open items. I will call this report for company code 3000 and key date as at today. First go to transaction FBL5N and get

Call Transaction in BDC

How to use CALL TRANSACTION to submit BDC in different modes. This technique is very useful for mass data upload to SAP system from external data sources. Lets assume that external data is what user enters in the selection screen. Program designed to change the delivery date of the sales order line items according to selection using the

Check if the Field Content is Numeric

In some instances you may have to validate if the field content is numeric or not. This step becomes mandatory when designing a program that upload external data to SAP. For example excel, CSV or text file content upload. This is simple code that check if a string variable contain only numeric values. Program checks

Print Images Dynamically using Smartforms!

Hello SAP world! This thread shows you how to insert graphics to a smartfrom dynamically! Graphic object  in the form will show different images according to the application logic! This will be useful if you have to print student IDs, employee pictures or printing the logo of the company according to company code! There are

Connect to SAP from .NET

Hi Techies! 🙂 Aim of this article is to show how to connect your .NET front-end with SAP. Example scenario is such that SAP will act as the server and .NET application as the client. .NET application calls RFC “MONTH_NAMES_GET” exporting language parameter and import the names of the months. Prerequisite: SAP.NET connector should be