2009 Jan 29 6:35 PM
While debugging one of the sap standard program i came across the following declaration
data: __seqta_tab type seqta occurs 01 with header line,
__scope type ddenqscope,
__wait type ddenqwait.
__wait = _wait.
__scope = _scope.
My question what is the significance of __ (2 underscore) & _ (1 underscore) declaration?
a®
2009 Jan 29 6:52 PM
Its simply choice of individual developers for picking the naming conventions....
2009 Jan 29 6:51 PM
Hi
Nothing, just nothing.
I suppose some SAP AG developers like to assign a name starting with undercore to the program variable.
Perhaps there's a particular name convention....bu I don't believe it.
Max
2009 Jan 29 6:53 PM
>
> Perhaps there's a particular name convention....bu I don't believe it.
>
> Max
Well, it appears to be particular to generated code for enqueue/dequeue FMs. It probably made the code generator a bit easier to build.
Rob
2009 Jan 29 6:55 PM
Max,
Thanks for your quick reply.
I have seen this kind coding only in ENQUEUE & DEQUEUE fm's That where i got the above doubt.
a®
2009 Jan 29 6:52 PM
Its simply choice of individual developers for picking the naming conventions....
2009 Jan 29 7:02 PM
Online Help suggest to have a Letter as the first character in the variable name..
Nameing Conventions and Namespaces
The following conventions apply for the names of all definable objects within ABAP programs, such as data types, data objects, classes, macros, or procedures:
The name must start with a letter. Only outside of ABAP objects can the name also start with a different character.
Regards,
Naimesh Patel
2009 Jan 29 7:14 PM
As this code coming out of system generated. i believe the __ & _ declaration don't have any significance.
a®