07-01-2007 6:41 AM
in Scripts, I have 10 address lines there were blanks in between rows how can I avoid those?
07-01-2007 7:18 AM
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