‎2009 Oct 26 6:14 AM
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
‎2009 Oct 26 6:20 AM
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.
‎2009 Oct 26 9:21 AM
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
‎2009 Oct 27 7:28 PM
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.