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: 

Help needed for Address_into_printform

Former Member
0 Kudos
740

Hi,

In my PO form,i used the standard address. in that it is printing everything except the region and country.

IF &PEKKO-ADRNR(K)& EQ ' ' AND &PEKKO-ADRN2(K)& EQ ' '

ADDRESS DELIVERY PARAGRAPH AS

TITLE &SADR-ANRED&

NAME &SADR-NAME1&, &SADR-NAME2&, &SADR-NAME3&, &SADR-NAME4&

STREET &SADR-STRAS&

CITY &SADR-ORT01&, &SADR-ORT02&

POSTCODE &SADR-PSTLZ&

COUNTRY &SADR-LAND1&

REGION &SADR-REGIO&

FROMCOUNTRY &LFA1-LAND1&

ENDADDRESS

ELSE

IF &PEKKO-ADRNR(K)& NE ' '

ADDRESS DELIVERY PARAGRAPH AS

ADDRESSNUMBER &PEKKO-ADRNR(K)&

FROMCOUNTRY &LFA1-LAND1&

ENDADDRESS

ELSE

ADDRESS DELIVERY PARAGRAPH AS

ADDRESSNUMBER &PEKKO-ADRN2(K)&

FROMCOUNTRY &LFA1-LAND1&

ENDADDRESS

ENDIF

ENDIF

I have debugged the script and the Functional module Address_into_printform. In the script it is going to the else statement "if &pekko-adrnr(K)& ne ' '". And i have debugged the FM and i found out as far as my understanding, All the address values are passing including (region and country) to the FM from the script and the region and country values are not printing in the output.

When i checked this internal table lt_adrtab[], it has only the values without region and country with their types. and for the type P it is having the blank line.

Here is the it_adrtab[] looks like

type text

A Company

1 ABC pvt limited

6 plot no 5, xyz street,

S z distict

P (blank line)

0 999999(postal code)..

In the print out also i am having hte same values wiht the blank line and the region and countyry missing.

Please help me to solve this ...

Regards,

Ahamed.

2 REPLIES 2

Former Member
0 Kudos
202

Can you solve by adding the PRIORITY and LINES parameter to your address command.... suggest a look at those, since those control the number of lines available for address and how (address components) it should be displayed

0 Kudos
202

HI,

Can you please provide the code snippet for the priority and lines. I think it would solve my problem.

Thanks in advance.

Regards,

Ahamed.