2007 Apr 23 11:00 PM
Hello,
I am trying to copy a custom function module from a SAP 6.4 to an older version of SAP - version 4.6.
When I run syntax check on my code, I get an error on data type string_table.
Is this data type not defined in previous versions of SAP? Is there a simpler way to define this data type?
Thank you in advance for your help.
Peter
Hello,
I am trying to copy a custom function module from a SAP 6.4 to an older version of SAP - version 4.6.
When I run syntax check on my code, I get an error on data type string_table.
Is this data type not defined in previous versions of SAP? Is there a simpler way to define this data type?
Thank you in advance for your help.
Peter
2007 Apr 23 11:04 PM
2007 Apr 23 11:48 PM
Hi Naren,
When I double-click on this data type from the ABAP editor, it takes me to the definition screen.I wish I could put screenshots in this message but I don't know how. Anyway, the definition says it is a "table" type. There are four tabs underneath - Attributes, Line Types, Initialization, and Access Key. Under "Line Type," the properties are as follows:
Predefined Type
Data Type: STRING
No. of Characters: 0
Decimal Places: 0
Thank you in advance for your help.
Peter
2007 Apr 23 11:56 PM
You can try to create the same data type as a custom data type via SE11in your 46c system ie
a structure with one field of char type
DATA TYPE STRING is not available in lower versions.
~Suresh
2007 Apr 23 11:54 PM
Hi,
You can declare like this..
DATA: ITAB TYPE STANDARD TABLE OF STRING.
***Give the appropriate internal table name..Here i have give ITAB..
Thanks,
Naren
2007 Apr 23 11:58 PM
I am not sure if STRING is available in 46C. Try to pick a table type that is CHAR type with lenght that is long enough for you to fit in your data. If not available, create one.
2007 Apr 24 12:07 AM
Hi,
Yes..I am able to declare TYPE TABLE OF STRING..in my program..I am in 4.6c
Thanks,
Naren
2007 May 04 1:05 AM
It doesn't work in our system. It is 4.6C.
If you are able to do it, I have a feeling that ABAP development environment is decoupled from the base SAP system. Although the system version is 4.6C for both of us, I feel you have a newer version of ABAP environment.
Regards,
Peter
2007 May 04 1:27 AM
2007 May 04 1:28 AM
2007 May 04 1:31 AM