Application Development and Automation 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: 
Read only

datatype in structure

former_member125931
Active Participant
0 Likes
812

Hi All,

Upto now we are using data type for a field is "DEC" in a structure (Z) but now as per my requirement I need to use "CHAR",so many programs are using this structure if I disturb here it will effect all the programs,How to proceed further.

Thanks&regds,

Nicky.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
791

Hi Nicky,

If so many programs are using the same Z Structure, then there is no other go for you. You have to create a new Z Structure with the modifications for the required field and use the same in your program.

6 REPLIES 6
Read only

Former Member
0 Likes
791

Hi Nicky,

When you make the change, do a where used list on the structure and remember to mark all the checkboxes to include all objects in the search.

Then, for all executable objects returned, e.g. programs, function modules, perform a syntax check and ALSO EXECUTE the program. Because a syntax check might not return any error, however @ runtime, the object could dump due to mistmatching types.

Also, the structure could be used in other structures or database tables, you would need to then perform the same operation on those objects also, i.e. whereused on the parent structure/database tables and syntax+execute test.

Cheers,

Aditya

Read only

0 Likes
791

Hi Aditya,

Thanks for your reply, I am following asi you mention,it is asking Name of list what it means.

Thanks&regds,

Nicky.

Read only

0 Likes
791

Hi,

At what step are you being prompted for this?

Go to SE11

Select Datatype radiobutton and enter your structure name

Then click CtrlShiftF3 short cut for where used list

You would get a pop up, click F7 short cut for select all

Then click Enter

You would then get a list of all objects which are using this structure. Follow the above steps then for analysis.

Cheers,

Aditya

Read only

0 Likes
791

Hi,

Still I am getting errors and all the programs related to this is field are becomes inactive.pls help me on this somany programs are in prolem now,and also error is alter table is inot possile,f it possible send me the document on this or guide me.

egds,

Thanks&regds,

Nicky.

Read only

0 Likes
791

Hi Nicky,

Are you doing the modification in a APPEND structure whichis attached to a standard SAP structure? I am asking because it appears there a LOT of programs impacted and there is a hint of panic in your comment.

If you the change is in an APPEND STRUCTURE on a standard SAP structure, I request you to get in touch with a senior developer in location to help you resolve this issue.

If you are unable to correct the issue immediately, revert the changes you have made in the datatype so that the system can function properly until you find a solution.

/Aditya

Read only

Former Member
0 Likes
792

Hi Nicky,

If so many programs are using the same Z Structure, then there is no other go for you. You have to create a new Z Structure with the modifications for the required field and use the same in your program.