Application Development 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: 

ABAP

Former Member
0 Kudos

in Scripts, I have 10 address lines there were blanks in between rows how can I avoid those?

1 REPLY 1

Former Member
0 Kudos

hi,

while printing address in ScriptForm, you keep address in control command

/: ADDRESS

***here you write address

/:ENDADDRESS.

the ADDRESS and ENDADDRESS control command formats an address according to the POSTAL CONVERSION of the receipient country defined in the country.

<b>Syntax</b>

/: ADDRESS

...................................... " here write address

...................................... " here write address

/: ENDADDRESS

<b>or</b>

in PRINT PROGRAM call the FM CONTROL_FORM for passing control commands to the script form.

Use CONTROL_FORM to pass SAPscript control statements to the form.

create ELEMENT for ADDRESS in form and pass this element to desiered WINDOW.

<b>Function call:</b>

CALL FUNCTION 'CONTROL_FORM'

                             EXPORTING 
                                        COMMAND = 'ADDRESS'.

CALL FUNCTION 'WRITE_FORM'

                      EXPORTING
                                 ELEMENT = '   ' " here pass element, it holds  the address
                                 WINDOW =  '    ' " specifies the name the window

CALL FUNCTION 'CONTROL_FORM'

                             EXPORTING 
                                        COMMAND = 'ENDADDRESS'.

regards,

Ashok Reddy