‎2006 Sep 12 4:43 PM
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
‎2006 Sep 12 4:47 PM
HI Nithin,
1) Concatenate them into one variable.
2) use the format specifier as '=' as others suggested.
Regards,
ravi
‎2006 Sep 12 4:45 PM
Hi,
Give the country and the Phone number in the same line..
Otherwise in the tag column using = for continous text.
THanks,
Naren
‎2006 Sep 12 4:47 PM
shall i write
/:perform get_address program zxxxx
/:usingxxxx
/:changing&country&&pincode&
endform.
Thanks
‎2006 Sep 12 4:49 PM
/:perform get_address program zxxxx
/:usingxxxx
/:changing&country&&pincode&
<b>* &country&&pincode&</b>
Do as suggested.
Regards,
ravi
‎2006 Sep 12 4:47 PM
HI Nithin,
1) Concatenate them into one variable.
2) use the format specifier as '=' as others suggested.
Regards,
ravi
‎2006 Sep 12 4:49 PM
Hi Ravi,
Can you please explain me little bit clear.How to do concatenate? where should i write concatenate statement?.
Thanks
‎2006 Sep 12 5:00 PM
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
‎2006 Sep 12 5:21 PM
/: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
‎2006 Sep 12 5:38 PM
/: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
‎2006 Sep 12 4:50 PM
‎2006 Sep 12 4:52 PM
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.