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

Smart Form Offset Issue

Former Member
0 Likes
734

Hello,

I have a driver program with Internal table as below

ITAB-Line1 (String)

AL AL CL BE (separeted by 2 spaces)

01 02 131 87

BE CE DE DL

11 23 12 00

I have used offsets to create a string using concatinating various values.

The above structure is required in Smartform.

However in the form these are not dispalyed on below the other.

The sample display in smartform is like below:

AL AL CL BE (separated by more than 2 places.)

01 02 131 87

Can anyone help me with this?

Why is the Internal table not printed as it is?

I have used the Default paragraph - *

Thanks in adv

Edited by: Pranu Pranu on Oct 26, 2009 7:15 AM

3 REPLIES 3
Read only

Former Member
0 Likes
614
ITAB-Line1 (String)
 
 AL    AL    CL    BE
 01    02     131   87
 BE    CE     DE    DL
 11    23     12     00
 

 AL        AL        CL        BE
 01    02     131   87

i hope you are talking about this .. pattern.. (got it from quoting your reply)

now. --

its either a justification (left/right) problem or because of the spaces you have between them.

you can pass the values to some variable and use CONDENSE val NO-GAPS.

or for justification you can pass to string value and write.

Read only

0 Likes
614

Hello,

Thanks for the reply.

Tried various options.

I am taking the string and then appending it to an ITAB.

The itab is passed to the form interface.

The debug check is showing the data as desired. Both in the driver and the smart form.

However the display is still a problem exactly as below.



ITAB-Line1 (String)
 
 AL    AL    CL    BE
 01    02     131   87
 BE    CE     DE    DL
 11    23     12     00
 
 
 AL        AL        CL        BE
 01    02     131   87


Please help with your inputs.

Thanks

Read only

0 Likes
614

If you have each of these 2 character strings stored as distinct data elements I would suggest that you set up a SMARTSTYLE with tabs that correspond to where you want your values to line up. Use that SMARTSTYLE as your output style for the various text element(s) and insert a tab between each of the distinct elements. Just make sure you have enough space between the tabs for the largest element you need to display. I recently created a bunch of SMARTFORMS to replace old MS Access reports and getting data to line up on the form was the most difficult part of the process. From the description of your problem it sounds like the problem is that some of the text is taking up more physical space on the form - the SMARTSTYLE should take care of that.