2007 Oct 16 12:34 AM
Hi Friends ,
I am using this FM ADDRESS_INTO_PRINTFORM to get the address by passing the address number but not able to retrieve I am getting an error .
The code is as below .
DATA: z_adrs LIKE adrs
DATA:addrnumber LIKE ADDR1_SEL-addrnumber.
data: addr_type like SZAD_FIELD-ADDR_TYPE.
addr_type = 1.
Data: z_nation.
z_nation = 'C'.
CALL FUNCTION 'ADDRESS_INTO_PRINTFORM'
EXPORTING
address_type = addr_type
address_number = addrnumber
number_of_lines = 10
iv_nation = z_nation
IMPORTING
address_printform_table = z_adrs.
The error is as below .
The reason for the exception is:
The call to the function module "ADDRESS_INTO_PRINTFORM" is incorrect:
The function module interface allows you to specify only fields
of a particular type under "ADDRESS_PRINTFORM_TABLE". The field "Z_ADRS"
specified here
has a different field type.
Please advise .
Thanks
Message was edited by:
Teresa lytle
2007 Oct 22 4:56 PM
Declare the TYPE POOLS :SZADR in the TOP include . That should solve your problem .
Hi Friends ,
I am using this FM ADDRESS_INTO_PRINTFORM to get the address by passing the address number but not able to retrieve I am getting an error .
The code is as below .
DATA: z_adrs LIKE adrs
DATA:addrnumber LIKE ADDR1_SEL-addrnumber.
data: addr_type like SZAD_FIELD-ADDR_TYPE.
addr_type = 1.
Data: z_nation.
z_nation = 'C'.
CALL FUNCTION 'ADDRESS_INTO_PRINTFORM'
EXPORTING
address_type = addr_type
address_number = addrnumber
number_of_lines = 10
iv_nation = z_nation
IMPORTING
address_printform_table = z_adrs.
The error is as below .
The reason for the exception is:
The call to the function module "ADDRESS_INTO_PRINTFORM" is incorrect:
The function module interface allows you to specify only fields
of a particular type under "ADDRESS_PRINTFORM_TABLE". The field "Z_ADRS"
specified here
has a different field type.
Please advise .
Thanks
Message was edited by:
Teresa lytle
2007 Oct 16 1:21 AM
Hi,
Change your code as
DATA: z_adrs LIKE adrs
to
<b>DATA: z_adrs LIKE SZADR_PRINTFORM_TABLE.</b>
Regards,
Atish
2007 Oct 22 4:56 PM
Declare the TYPE POOLS :SZADR in the TOP include . That should solve your problem .
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |