In this program, we connect a ftp server and read file to itab.
You can add an image in a container and display that. In this article , I show how to specify clickable the image.
Step 1 Upload *BMP File
Step 2 Create program
Put break point in FM : SXV_GET_CLIF_BY_NAME and than go to your standart program and run it.
Put the bp and go to me21n . In debug mode , you can see badi’s name.
CALL FUNCTION ‘VIEW_MAINTENANCE_CALL’
action = ‘U’
view_name = ‘Z_TABLE_NAME’
client_reference = 1
foreign_lock = 2
invalid_action = 3
no_clientindependent_auth = 4
no_database_function = 5
no_editor_function = 6
no_show_auth = 7
no_tvdir_entry = 8
no_upd_auth = 9
only_show_allowed = 10
system_failure = 11
unknown_field_in_dba_sellist = 12
view_not_found = 13
maintenance_prohibited = 14
others = 15.
if sy–subrc <> 0.
message id sy–msgid type sy–msgty number sy–msgno
with sy–msgv1 sy–msgv2 sy–msgv3 sy–msgv4 .
For maintence table
You can get that details from TSTCP table.
Give tcode as Z* and parameters as SM30your ztable* and execute.If you don’t find you can use SM31 instead of SM30.
You can get that details from TSTC table.
Screen Shot :
Below fm puts sign front of giving value.
FM : CLOI_PUT_SIGN_IN_FRONT
Most of text in SAP are stored in STXH and STXL tables.
We can read text by read_text fm. If you can not find input parameters of the fm , you can use STXH tables.
If you want to give error message in badi , You must use message include .
For example for mm message you can use “mm_messages_mac” include.
I already shared how to upload excel file in this link : https://abapdev.wordpress.com/2016/01/08/upload-excel-file-to-an-internal-table/
After upload excel file , we can send e-mail with excel attachment.
Simple abap source code to send mail :