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

Field Position in a structure

raja_ksravankumarreddy
Product and Topic Expert
Product and Topic Expert
0 Kudos
841

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
Read only

Former Member
0 Kudos
455

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

3 REPLIES 3
Read only

athavanraja
Active Contributor
0 Kudos
455

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.

Read only

Former Member
0 Kudos
455

hi,

for DDIC structure use this fm mdule

<b>TR_NAMETAB_GET</b>

With Rgds,

S.Barani

Read only

Former Member
0 Kudos
456

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