SAP ABAP Realtime (Scenario based) Interview Questions (31 - 40)

31. You need to add custom buttons in ALV toolbar. How will you implement it?

This is usually done through ALV event handling where I add a custom function code and react to it in USER_COMMAND. The logic should be kept clean and tied to the selected ALV rows.

CASE e_ucomm.
  WHEN 'ZBTN'.
    MESSAGE 'Custom button clicked' TYPE 'I'.
ENDCASE.

In interview, say: “I add custom toolbar buttons only when the action is really useful for the end user.”

32. You need to print invoices with company logo dynamically. How will you implement it?

I store the logo using SAP graphic management and fetch the correct logo based on company code or business rule. Then I pass that data to Smart Form or Adobe Form during print. This allows one form to support multiple company logos dynamically.

IF bukrs = '1000'.
  lv_logo = 'ZLOGO1'.
ELSE.
  lv_logo = 'ZLOGO2'.
ENDIF.

33. You need to pass data from report to Smart Form. How will you do it?

I prepare all required data in the report, call the generated Smart Form function module, and pass the data through import parameters or internal tables. Before calling the form, I also make sure the data is already formatted properly.

CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
  EXPORTING
    formname = 'ZSMARTFORM'
  IMPORTING
    fm_name  = lv_fm_name.

CALL FUNCTION lv_fm_name
  EXPORTING
    iv_vbeln = p_vbeln
  TABLES
    it_items = lt_items.

34. A Smart Form is not printing correctly in production. How will you troubleshoot?

I would first compare the form version, transport status, printer settings, and output type configuration between quality and production. Then I check whether the issue is data-related, driver program-related, or printer/spool-related. In many cases, production print problems are caused by configuration, not just ABAP code.

35. You need to convert Smart Form output into PDF and email it. How will you do it?

I call the Smart Form with output options that return OTF data, convert that OTF to PDF, then attach it to an email and send it. This is a very common requirement for invoices, purchase orders, and statements.

36. You need to upload bulk data into SAP using BDC. What steps will you follow?

First, I record the transaction using SHDB and study the screen flow. Then I build the BDC data, choose either session method or call transaction, and handle success and error logs carefully.

In interview, you can say: “My BDC solution is not complete unless I provide proper error handling and reprocessing support.”

37. BDC session is failing for some records. How will you debug it?

I check the log first, then validate the input data, and finally compare with the transaction screen flow.

38. You need to migrate master data from legacy system. Which tool will you choose and why?

The choice depends on project requirement, data volume, and available tools. For simple structured upload, BDC or standard tools may work, while for cleaner business logic, BAPI or interface-based loading is usually better.

In interview, you can say: “I choose the migration approach based on data quality, error handling, and SAP-supported business logic.”

39. How will you handle errors and logs in data upload programs?

I maintain a log table or internal table containing input key, status, and error message, and I show or download the result for business users. This makes correction and reprocessing much easier.

ls_log-key    = lv_key.
ls_log-status = 'E'.
ls_log-msg    = 'Material does not exist'.
APPEND ls_log TO lt_log.

40. You need to send data from SAP to external system. What interface will you use?

If the receiving system supports SAP standard document exchange, IDoc is common; if real-time function call is needed, RFC or web service may be used; if a business API exists, BAPI is often preferred. In real projects, I choose the interface based on reliability, format, and integration design.