Skip to Content
0
Former Member
Apr 09, 2009 at 07:27 AM

Alignment problem in standard text (tcode SO10)

653 Views

Hi All,

i have created standard text eleemet to send mail to participants in hr module....

In output depart and branch not maintained...emp number coming one step backward...

Department Branch/Section Employee Name of the participant

00000111 Kavyanjali ---(if name is big)

Richard (not here) Richard (should appear here)

00029564 Yong Yin Chund

This is a computer generated mail. Please do not reply.

but...i want like this.....
   Department                Branch/Section                     Employee                      Name of the participant
   IDT                             xxxx                                   0000111                        Kavyanjali
                                                                                Richard
                                                                                0 0029564                     Yong Yin Chund

in SO10 Standard i used

&SPACE(5)&&ls_hre-OBJID(10)& &SPACE(10)& &01 &SPACE(8)& &02

and 
 &SPACE(2)& &11 &SPACE(17)&  &12 &SPACE(26)&  &01 &SPACE(25)&  &02
Here &11 or &12 are place holders....

in program i am replacing....
IF ls_content CS '&11'.
                      REPLACE '&11' IN ls_content-line WITH ls_PA0001-ZZ_D3.
                      IF ls_content CS '&12'.
                        REPLACE '&12' IN ls_content-line WITH LV_TEXT1.
                        APPEND ls_content TO it_content.
                      ENDIF.
                    ENDIF.

can any one tell me how to achieve proper alignment in standard text?.......

thanks in advance,,

krishnakumar.