Skip to Content
Former Member
Nov 26, 2005 at 08:11 AM

Parameter Text for function modules & Methods of Classes


ABAP editor "Pattern Copy"

does not copy descriptions of parameters? (I might have missed something?)

BUT if it did as HALF-LINE comments

then documentation would be beautiful/meaningful

something rare in ABAP as ABAP editor is not supportive

For example I had to work very hard to add

half-line comments to

call function 'CS_BOM_EXPL_MAT_V2'


capid = 'PP01' "Application ID

datuv = it_reqn-lfdat "Validity date

emeng = it_reqn-menge "Required quantity

mktls = 'X' "Materials summary read(Materialkurztext lesen)

mehrs = 'X' "Multi-level explosion

mtnrv = it_reqn-matnr "Material

postp = 'L' "Item category

stlal = '01' "Alternative BOM

stlan = '1' "BOM usage

werks = it_reqn-reswk "Receiving Plant


stb = it_stb


alt_not_found = 1

call_invalid = 2

material_not_found = 3

missing_authorization = 4

no_bom_found = 5

no_plant_data = 6

no_suitable_bom_found = 7

conversion_error = 8

others = 9.

I did not have patience to copy paste table desc & exception descriptions.

Can anyone please tell me how to get the text of parameters easily.

Also a program that copies a CALL FUNCTION with half-line comments would be great.

Similarly for CALL Methods of ABAP Classes.

Apt Quote-

"Any fool can write code that a computer can understand.

Good programmers write code that humans can understand."

--- Martin Fowler, Refactoring: Improving the Design of Existing Code

I wish ABAP editor created (automatically on some Fn) half-line comments for tables and data-types

ex. MAKT "Material Descriptions

MAKT-MAKTG "Material description in upper case for matchcodes

Same also for MAKT~MAKTG in SELECT Open SQL.

Will some great ABAP Wizard write such an extension to make ABAPERs look "less foolish" from Martin Fowler's valid point of view!

Hopefully Mr. Horst Keller is listening and we will have a "GEEK" for lovely ABAP commented readable code - that is so rare to find.