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: 

Field Position in a structure

0 Kudos

In the following Subroutine signature, P_SOURCE and P_DEST strutures can be any type.

FORM uc_move USING P_SOURCE TYPE ANY

CHANGING P_DEST TYPE ANY.

My requirement is to find the position and length of a certain field.

Example, I want to check the position and length of ROUTE in P_DEST structure.

Here the assumption is that field ROUTE exists in P_DEST structure.

Please help!!

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Also check this FM <b>DDIF_FIELDINFO_GET</b> which is well documented

3 REPLIES 3

athavanraja
Active Contributor
0 Kudos

is the structre dictionary structure or declared locally in the program.

if its a dictionary structure then use FM TR_NAMETAB_GET and pass the structure name to import parameter iv_tabname and it will return all the fields in the structure and their position.

Former Member
0 Kudos

hi,

for DDIC structure use this fm mdule

<b>TR_NAMETAB_GET</b>

With Rgds,

S.Barani

Former Member
0 Kudos

Also check this FM <b>DDIF_FIELDINFO_GET</b> which is well documented