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

SAPScript: Positioning of text elements.

Former Member
0 Likes
3,308

Hi,

I was working on a SAPScript. I wanted to know if there was any way of setting the position of text elements, as in giving co-ordinates in X and Y terms.

Also, can we change the order in which the text elements are displayed in the script?

1 ACCEPTED SOLUTION
Read only

nabheetscn
SAP Champion
SAP Champion
0 Likes
2,467

You can not postion text elements. You can contol what to be written when by WRITE_FORM in your driver program.

11 REPLIES 11
Read only

nabheetscn
SAP Champion
SAP Champion
0 Likes
2,468

You can not postion text elements. You can contol what to be written when by WRITE_FORM in your driver program.

Read only

Former Member
0 Likes
2,467

Hi Siddharth,

You can control vertical positioning in a text element by inserting blank lines. And you can control horizontal positioning through TABS in paragraph format.

For example, if you want to give 2CM space before the text you can create a TAB of width 2 CM in the paragraph format and then in the text element you can mention the text after the tab. (given by ,,).

Thanks,

Ajay Bose

Read only

Former Member
0 Likes
2,467

Hi Siddharth,

To change the order of the text elements you have to change the print programm.

regards,

Teresa Gonçalves

Read only

Former Member
0 Likes
2,467

Thanks for the answers everyone. Now where do I find these specific elements in the driver program? I copied this Z Script from a standard script. It has two driver programs as I see in the Form -> Check -> Texts list. I can't seem to find the code where the text elements are being called.

Read only

0 Likes
2,467

Which Sap script is it and for what purpose it is used

Read only

0 Likes
2,467

The name of the standard script is PSFC_STD_LAYOUT and I want to use it for printing Pick List for shop floor printing.

Read only

0 Likes
2,467

I believe the print program is PSFCGISS.

Read only

0 Likes
2,467

Yes, PSFCGISS is one of them, there is also PSFCPICK. I am confused, which one of them is called first?

Read only

0 Likes
2,467

Pleas check in NACE. Ask your functional which output type it is attached to. You will be able to find corresponding driver program in NACE. Seconldy these programs will have the call of text elements.

Read only

0 Likes
2,467

Check OPK8. You can also put breakpoints in both programs to see which one is called first.

Read only

praveenboss
Participant
0 Likes
2,467

hi Siddarth ,

                       Yes You Can Set Position of Your element

                        in  Page Window Ta-be  You set left,upper margin

                       and height,width of paragraph

                        

                          I Hope this is Helpful for this Problem.

                        

                          Thanks

                            PRAVEEN