Application Development and Automation 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: 
Read only

script

Former Member
0 Likes
1,031

Hi exports,

How can I print country and zipcode side by side.

I mean US 65003-0696.

I wrote perfom statement but its printing lien by line.I need to get in same line.

How to change perform ---endperform.

Thanks

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,002

HI Nithin,

1) Concatenate them into one variable.

2) use the format specifier as '=' as others suggested.

Regards,

ravi

10 REPLIES 10
Read only

Former Member
0 Likes
1,002

Hi,

Give the country and the Phone number in the same line..

Otherwise in the tag column using = for continous text.

THanks,

Naren

Read only

0 Likes
1,002

shall i write

/:perform get_address program zxxxx

/:usingxxxx

/:changing&country&&pincode&

endform.

Thanks

Read only

0 Likes
1,002

/:perform get_address program zxxxx

/:usingxxxx

/:changing&country&&pincode&

<b>* &country&&pincode&</b>

Do as suggested.

Regards,

ravi

Read only

Former Member
0 Likes
1,003

HI Nithin,

1) Concatenate them into one variable.

2) use the format specifier as '=' as others suggested.

Regards,

ravi

Read only

0 Likes
1,002

Hi Ravi,

Can you please explain me little bit clear.How to do concatenate? where should i write concatenate statement?.

Thanks

Read only

0 Likes
1,002

2 ways to do that

1.putting both the fields in single variable.

goto that FORM in the program and change the logic for that field.

/:perform get_address program zxxxx
/:usingxxxx
/:changing <b>&country_with_pincode&</b>
endform.

in the program where you are doing this population,

FORM get_address.
Lets say your country in V_COUNTRY and PINCODE in V_PINCODE(you might have written select to fetch these values already)
THEN
DATA : V_COUNT_PCODE(80) TYPE C.
CONCANTEATE V_COUNTRY 
            V_PINCODE
            INTO V_COUNT_PCODE.
OTAB-VALUE = V_COUNT_PCODE.
CONDENSE OTAB-VALUE.
MODIFY OTAB WHERE NAME = 'country_with_pincode'.
ENDFORM.

now print this &country_with_pincode& in the layout.

2.

place the 2 fields side by side in the layout editor

  • &country& &pincode&

Regards

srikanth

Message was edited by: Srikanth Kidambi

Read only

0 Likes
1,002

/:PERFORM

/:CHANGING &country_with_pincode&

/:ENDFORM

IN LAYOUR EDITOR

*&COUNTRY&&PINCODE&

I am getting error that unknow symbol country and pincode.

Please explan me.

Thanks

Read only

0 Likes
1,002

/:PERFORM

/:CHANGING <b>&country_with_pincode&</b>

/:ENDFORM

<b>&country_with_pincode&</b>is one variable.its not 2.

IN LAYOUR EDITOR

*&COUNTRY&&PINCODE& <-you should not use this.as in the program we populated both the values to <b>&country_with_pincode&</b>

so you have to use

  • <b>&country_with_pincode&</b>

Regards

srikanth

Read only

Former Member
0 Likes
1,002

Hi,

Concatenate it in the print program..

Thanks,

Naren

Read only

Former Member
0 Likes
1,002

hi,

After fetching the values of country and zip code by writing perform.. endperform.

Just write

/: perform

/:

/: endperform

  • &country&&pincode&

There is no need to concatenate again. Just write both the variables side by side.

Regards,

Sailaja.