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
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
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
At runtime of ALV report short dumps can occur if the ALV is not consistently build. You can find the consistency of the ALV using ALV consistency check. This will show the status of ALV attributes like field catalog, Layout, filter, variant etc. As a example below ALV gives a runtime error when exporting to
These are some of the SAP APO functional modules I have worked with. If you need any help with parameters please drop a line. Order /SAPAPO/DM_ORDER_GET_ORDID Get the 22 char GUID of planned order BAPI_MOSRVAPS_CREATESNPORDER Create planned order. Table parameter “mapping_data” will return the created planed order number. BAPI_POSRVAPS_SAVEMULTI3 Create orders /SAPAPO/OM_ORDER_GET_DATA Get planned
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:
In this example we will enhance or customize the SAP SPRO IMG structure. We will add a custom nodes to SAP IMG structure and attach a table maintenance view under one of the newly added custom node. This will be useful if you need to add configuration nodes of your custom developed applications to SPRO.
This is show a step by step guide how to invoke a web service from SAP. In this method you do not require additional middleware such as PI/PO. There are three steps you need to follow. Create proxy object Create logical port Create program to consume created proxy object Prerequisites: You need to have your