Skip to Content
0
Former Member
Feb 18, 2006 at 04:03 PM

Using Line priority for 'ADDRESS_INTO_PRINTFORM'

322 Views

TYPES: BEGIN OF szadr_printform_table_line,

line_type TYPE ad_line_tp,

address_line LIKE adrs-line0,

END OF szadr_printform_table_line.

TYPES: szadr_printform_table TYPE szadr_printform_table_line OCCURS 0.

DATA: gt_line TYPE szadr_printform_table_line.

DATA: gt_address TYPE szadr_printform_table.

CALL FUNCTION 'ADDRESS_INTO_PRINTFORM'

EXPORTING

ADDRESS_TYPE = '1'

ADDRESS_NUMBER = '0000022786'

SENDER_COUNTRY = 'US'

NUMBER_OF_LINES = '1678SITHO'

IMPORTING

ADDRESS_PRINTFORM_TABLE = gt_address[].

But the address does not get sorted according to Line priority I am defining here ?