Sample ABAP Code – How to Call PERFORM from SAPSCRIPT

/: PERFORM BIN_LOCATION IN PROGRAM Z_SAPSCRIPT_PERFORMS/: USING &RESBD-MATNR& /: USING &CAUFVD-IWERK& /: USING &RESBD-LGORT& /: CHANGING &MARD-LGPBE& /: ENDPERFORM —————————————————————————————————————— REPORT z_sapscript_performs. *———————————————————————- * SUBROUTINES FOR CALLING FROM SAPSCRIPTS *———————————————————————– * AUTHOR: Sheila Titchener – * DATE: September 2005 * *———————————————————————– FORM bin_location TABLES in_tab STRUCTURE itcsy out_tab STRUCTURE itcsy. *———————————————————————– * get default bin … Read more

Hiding ABAP Code and making ABAP Code non editable

Making Code Non Editable Steps: Goto se38for your Program. Choose Attributes radio Button and click Change.In this screen check the check box Editor Lock and save it.Now this locked for editing by any other use. Hiding a Code Write a Simple program:Program to Hide ABAP’s Source Code and Protects itreport zsam_hide no standard page heading. … Read more

Learn BADI – A Quick Look at BADI

Business Add-Ins Business add-ins are enhancements to the standard version of the system. They can be inserted into the SAP System to accommodate user requirements too specific to be included in the standard delivery. Since specific industries often require special functions, SAP allows you to predefine these points in your software. As with customer exits, … Read more

Example of Sending XLS file as a mail via SAPCONNECT

&———————————————————————* *& Report ZEMAIL_ATTACH * *&———————————————————————* *& Example of sending external email via SAPCONNECT * *&———————————————————————* REPORT ZEMAIL_ATTACH . TABLES: ekko. PARAMETERS: p_email TYPE somlreci1-receiver DEFAULT ‘test@sapdev.co.uk’. TYPES: BEGIN OF t_ekpo, ebeln TYPE ekpo-ebeln, ebelp TYPE ekpo-ebelp, aedat TYPE ekpo-aedat, matnr TYPE ekpo-matnr, END OF t_ekpo. DATA: it_ekpo TYPE STANDARD TABLE OF t_ekpo INITIAL SIZE … Read more

Creating Update Function Modules-BDC

To create a function module, you first need to start the Function Builder. Choose Tools ® ABAP Workbench, Function Builder. For more information about creating function modules, refer to the ABAP Workbench Tools documentation. To be able to call a function module in an update work process, you must flag it in the Function Builder. … Read more