Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Runtime error

yasu_1096
Explorer
0 Kudos

Hi All,

iam getting the error while executing the program can anyone will help me out from this situtation

the error was

An attempt was made to pass formal parameter "P_NAME" of method "DESCRIBE_BY_NAME" of class "CL_ABAP_TYPEDESCR" to an actual parameter that does not have either type C or STRING at runtime. Parameter "P_NAME" is typed with ANY, meaning that both character fields and strings can be passed. Since there is no special generic type for types C and STRING yet however, this check will not be performed until runtime. how to resolve this issue

3 REPLIES 3

thkolz
Contributor

Maybe it would be good to see the code where the dump happens...

abo
Active Contributor
0 Kudos

P_NAME is an exporting parameter, meaning the type comes from your own code (not shown above).

TABNAME is as good a type as anything else to use

Sandra_Rossi
Active Contributor

The message is exceptionally very clear to me, what do you understand and what don't you understand?

  • "An attempt was made to pass formal parameter "P_NAME" of method "DESCRIBE_BY_NAME" of class "CL_ABAP_TYPEDESCR" to an actual parameter that does not have either type C or STRING at runtime."