SAP domain values could be validated or restricted by maintaining fixed values. These fixed values could be used for input checks in selection screens. If there are no other input help is available, these fixed values are also used as the F4 hit list of the selection field. Standard SAP domains are delivered with set […]
Tag Archives: ABAP
When configuration outbound iDocs and if you are creating iDoc files though a file port. You should specify the file name format for these outbound files. You may have different outbound iDocs and you should be able to differentiate each type by the file name. For example Invoice iDocs can be prefixed as “810” and […]
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 […]
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 […]
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 […]
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 […]
Aim of this article is to show you how to connect your .NET front-end application with SAP. We will discuss the prerequisites for integration a .net application with SAP. In addition, we will go through step by step guide on how to implement the .net application which connects with SAP back-end. This is an synchronous […]
This will show you how to popup the save file dialog from selection screen. You can facilitate selection of file without manually entering file path. Selection: Result dialog: DATA: gv_filename TYPE string, gv_path TYPE string, gv_result TYPE i. SELECTION-SCREEN BEGIN OF BLOCK b4 WITH FRAME TITLE text-004. PARAMETERS: p_path TYPE string LOWER CASE. “File path SELECTION-SCREEN END OF BLOCK b4. AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_path. * Display save dialog window CALL METHOD cl_gui_frontend_services=>file_save_dialog EXPORTING * window_title = ‘ ‘ default_extension = ‘txt’ default_file_name = ‘file_name’ initial_directory = ‘C:’ CHANGING filename = gv_filename path = gv_path fullpath = p_path user_action = gv_result.
This will show you how to transfer data from SAP to FTP server location. Program is a example of how you can connect to FTP and create a text file. There are several methods to write a file to FTP, I am using the method of transferring data in internal table directly to FTP using […]
This example will show you how to build a simple tree using class CL_GUI_ALV_TREE. Tree will show flight detail as below. I use two global classes, one for application logic (get data for the report) and other one to create ALV tree. Icon field create is a hot spot. Application logic class: ZCL_FLIGHT View controller: […]