Badi for f 48 and f 53 for mail trigger

It looks like you're asking about the BADI (Business Add-In) for the following scenarios:

  1. F48: This is the BADI for the "Create Sales Order" process. You can use this BADI to modify or extend the behavior of the sales order creation process.
  2. F53: This is the BADI for the "Send Mail" process. You can use this BADI to modify or extend the behavior of the mail sending process, such as customizing the mail content or adding custom attachments.

Here are some examples of how you can use these BADI's:

F48: Create Sales Order

F53: Send Mail

To use these BADI's, you'll need to create a custom program that implements the necessary logic and then register it with the SAP system. You can use the SAP ABAP programming language to create the custom program.

Here's an example of how you might use the F48 BADI to modify the sales order header data:

REPORT zsales_order_badi.

CLASS lcl_sales_order_badi DEFINITION.
  PUBLIC SECTION.
    METHODS: execute
      IMPORTING
        io_sales_order TYPE bapi2000
      EXCEPTIONS
        cx_badi_exception.
ENDCLASS.

CLASS lcl_sales_order_badi IMPLEMENTATION.
  METHOD execute.
    " Modify the sales order header data
    io_sales_order->set_header_data(
      iv_header_data = 'Custom header data'
    ).
  ENDMETHOD.
ENDCLASS.

START-OF-SELECTION.
  DATA: lo_sales_order_badi TYPE REF TO lcl_sales_order_badi.

  " Create an instance of the BADI class
  CREATE OBJECT lo_sales_order_badi.

  " Register the BADI with the SAP system
  CALL FUNCTION 'BAPI_SALES_ORDER_CREATE'
    EXPORTING
      io_sales_order = lo_sales_order_badi->execute( ).
  ENDFUNCTION.

This is just a simple example, but you can use the F48 and F53 BADI's to implement much more complex logic and integrations.