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

SAP Script form help

Former Member
0 Likes
518

Hello,

I am having an ADDRESS window in a form with text element as follows:

-


/: ADDRESS PARAGRAPH AU

/: TITLE &LFA1-ANRED&

/: NAME &LFA1-NAME1&, &LFA1-NAME2&, &LFA1-NAME3&

/: STREET &LFA1-STRAS&

/: POBOX &LFA1-PFACH& CODE &LFA1-PSTL2&

/: CITY &LFA1-ORT01&, &LFA1-ORT02&

/: POSTCODE &LFA1-PSTLZ&

/: COUNTRY &LFA1-LAND1&

/: ENDADDRESS

-


where AU is a left justified paragraph.

The Address is getting printed properly as follows:

Rexroth AG

Pneumatics

Ulmer Stras 4

30880 LAATZEN

GERMANY

Now I want to print it like below:

To: Rexroth AG

Pneumatics

Ulmer Stras 4

30880 LAATZEN

GERMANY

Hence, I tried with changing the Paragraph AU with Left Margin as 1.00 CM and writing text "To:', But then it is printing like below:

To:

Rexroth AG

Pneumatics

Ulmer Stras 4

30880 LAATZEN

GERMANY

I want text "To:" and Address to begin from the same line.

Can anyone help me to achieve the above?

Thanks and Regards,

Pankaj

4 REPLIES 4
Read only

Former Member
0 Likes
490

Hi

I think it is not possible , because you are printing the TO first and then Address command is calling,

both will print different line...

if you want that then you need to print manually with out using address and endaddress..

regards

vijay

Read only

Former Member
0 Likes
490

Hi Pankaj,

1. Instead of using 😕

Just use / (means next line)

2. For printing

To: Rexroth AG

Use :

/ To: &LFA1-NAME1&, &LFA1-NAME2&, &LFA1-NAME3&

I hope it helps.

Regards,

Amit M.

Read only

Former Member
0 Likes
490

Hi,

It is possible...........

You have one window which you are printing your Address.

You do one thing move all the Address text towards right side of 5CH by give some tabs or hardcoding......

Take one small window for printing 'TO' and place it where ever you want.

You can place this small window on top-left corner of your address window.

In that samll window in text elements you code accordingly to print 'TO'.

Thanks.

***

If this helps you reward with points.

***

If your issue is solved close the thread.

Message was edited by: Deepak333 k

Message was edited by: Deepak333 k

Read only

Former Member
0 Likes
490

Hi Pankaj,

Insted of using command line try this...

AU To: &LFA1-ANRED&

/ &LFA1-NAME1&, &LFA1-NAME2&, &LFA1-NAME3&

/ &LFA1-STRAS&

/ &LFA1-PFACH& CODE &LFA1-PSTL2&

/ &LFA1-ORT01&, &LFA1-ORT02&

/ &LFA1-PSTLZ&

/ &LFA1-LAND1&

Regards,

Digesh Panchal