11-05-2020 7:53 AM
There is a scenario where I need to check whether the given field exists in the table or not, please suggest ways of checking this.
Thanks.
11-05-2020 7:57 AM
11-05-2020 7:57 AM
Hello kumarniti4
The below blog should help you
Thanks & Regards
Sanil Bhandari
11-05-2020 7:57 AM
11-05-2020 9:31 AM
Use the official ABAP Run Time Type Services.
The most basic one to check column SPFLI-CARRID:
CL_ABAP_TYPEDESCR=>DESCRIBE_BY_NAME(
exporting p_name = |\\TYPE=SPFLI\\TYPE=CARRID|
exceptions type_not_existing = 1 ).
11-05-2020 2:29 PM