Organization address: condense into 2 lines
Hi ,
I am using organizational address..
i am using following conditions
output starts with paragraph : *
No of lines to be used : 2
use PO. BOX
i want to print the a ddress in 2 lines instead in 3..
but when i tried printing in 2 lines...postal code is missing..everything else is coming.
when i give 3 lines postal code is also coming.
what could be the reason..?
Thanks,
hi,
you can do this by using external subroutinee in yuor sapscript.
in the subroutinee you can concatenate the address in 2 lines.
and call the subroutinee to print the adress.
Similar Messages
-
Purchase Order Smartform - Purchase Organization address
Hello all,
I am working with a Purchase Order smartform. I need to pullout Purchase Organization address details (like Name, Street, City, Country, Phone) into the form.
Can anyone please help me.
ThanksHello Raju,
You will get the purchase organization address in T024E.
Goto SE16 for T024E and enter your purchase organization. You will see TXADR field. take the data on that field and goto SO10 tcode and open it. you will see address.
regards,
Subba -
I need to change the "from" address (the "add to addressbook" address) in the first line of emails that I send so that people reply to my email alias not the address where my emails originate. How do I do this?
So you have added a new 'Identity' to your existing email address.
If someone sends an email using that 'other identity'
you have a choice of where those received emails can go. they can be received into the original mail account, like a collect all in the one Inbox or perhaps sent to Local Folders, so you can see them as separate. Or you can filter on that identity to put those emails in a specific folder.
When you REply to any incoming mail that has used that new identity email address, it will use the new identity in the Email address in FROM assuming the received email in the main mail account of which the new identity email is applied.
This should also now offer the added identity email address as an option in the FROM drop down list. So you can easily swap when sending an email if required.
If you want to send using your default email address to people, but want their reply to use the identity email address:
Tools > Account Settings
select the original email address mail account name
Where it says: 'Reply to addresses: enter the reply to identity email address.
click on OK
This means when they click on 'Reply' it will auto insert the Reply-to option.
This will work providing it is a 'Reply' to an email you sent which contains the Reply-to email address.
If someone is not actually replying by using the Reply-to new identity email address:
In other words they are sending you a new email using the original email address because perhaps that is the one in their address book or the one they located on a webpage etc.
Then, when you select to Reply to that email, it will use the email address to which it was sent to in the FROM field - the original email address. Hence why you would need to select the new identity FROM in the drop down list.
One way to get around this is set out below.
If you do not use an identity - instead you create another existing mail account for the 'identity' email address, so you have two mail accounts for the two email addresses.
You can move selected emails manually or perhaps using a filter to screen them from the original mail account into the newly created mail account.
Then when you click on Reply, it will use the new mail account email address instead of the original email address. -
Formatting Address Fields into one
Using Acrobat X PRO:
I have a multi-page document in which a user is prompted for the address in two different formats:
1) With the address split into 4 different values/fields:
Street Field, City Field, State Field, Zip Field
Example: "1234 Count Rd" (Next Line) "St Louis", "MO" "55555"
2) With the address all together:
Complete Address on one line with a maximum length of 40 Characters.
Example: 1234 Count Rd, St. Louis, MO 55555
I would like users to be able to Fill in the Street, City, State, and Zip fields, and no matter what the format of the following fields, have the data autopopulated.
This isn't a problem for example #1. However, with #2 if i place all fields close together, I have to guess on how far apart to space each field and still have it fit and format properly.
Is there any way to combine the values of 4 fields into one value (separated by commas)?
Making the address field 'auto-fit' may be necessary but it's ugly if there is extra space in the remaining fields.
PLEASE SEE THIS EXAMPLE document i have created for the purpose of this postAnd if the combined fields are longer than 40 characters?
With Acrobat 4 there was a sample form that one entered the data in fields like tile, first name, mi, last name, abd degrees and then created a full name from those individual fields and adjusted for missing data.
The doucment level script:
/ Concatenate 3 strings with separators where needed
function fillin(s1, s2, s3, sep) {
Purpose: concatenate up to 3 strings with an optional separator
inputs:
s1: required input string text or empty string
s2: required input string text or empty string
s3: required input string text or empty string
sep: optional separator sting
returns:
sResult concatenated string
// variable to determine how to concatenate the strings
var test = 0; // all strings null
var sResult; // re slut string to return
// force any number string to a character string for input variables
s1 = s1.toString();
s2 = s2.toString();
s3 = s3.toString();
if(sep.toString() == undefined) sep = ''; // if sep is undefined force to null
assign a binary value for each string present
so the computed value of the strings will indicate which strings are present
when converted to a binary value
if (s1 != "") test += 1; // string 1 present add binary value: 001
if (s2 != "") test += 2; // string 2 present add binary value: 010
if (s3 != "") test += 4; // string 3 present add binary value: 100
/* return appropriate string combination based on
calculated test value as a binary value
switch (test.toString(2)) {
case "0": // no non-empty strings passed - binary 0
sResult = "";
break;
case "1": // only string 1 present - binary 1
sResult = s1;
break;
case "10": // only string 2 present - binary 10
sResult = s2;
break;
case "11": // string 1 and 2 present - binary 10 + 1
sResult = s1 + sep + s2;
break;
case "100": // only string 3 present - binary 100
sResult = s3;
break;
case "101": // string 1 and 3 - binary 100 + 001
sResult = s1 + sep + s3;
break;
case "110": // string 2 and 3 - binary 100 + 010
sResult = s2 + sep + s3;
break;
case "111": // all 3 strings - binary 100 + 010 + 001
sResult = s1 + sep + s2 + sep + s3;
break;
default: // any missed combinations
sResult = "";
break;
return sResult;
And then one could use a custom calculation script for a full address field:
// Full business address including country
function doFullBusinessAddress() {
var ba = this.getField("business.address.full");
var bc = this.getField("business.address.citystatezip");
var bu = this.getField("business.address.country");
event.value = fillin(ba.value, bc.value, bu.value, ", ");
doFullBusinessAddress(); -
Alv output download to excel sheet spliting into three line
hi,
i have developed alv report with 62 fields (62 colums).when i download this output into excel sheet each line spliting into three line.each field has 20 char length.i want download each row as single line.
i am using local file (ctrl + shift+F9) -> spreadsheet option
please advice me to solve this issue. i am using fm REUSE_ALV_GRID_DISPLAY.
In layout i am using
DATA: min_linesize like sy-linsz, " if initial min_linesize = 80
max_linesize like sy-linsz. " Default 250
min_linesize = 100.
max_linesize = 1000.
gt_layout-zebra = 'X'. "space.
gt_layout-colwidth_optimize = space.
gt_layout-max_linesize = min_linesize.
gt_layout-max_linesize = max_linesize.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_bypassing_buffer = ' '
i_callback_program = sy-repid
i_callback_pf_status_set = 'SET-PF-STATUS'
i_callback_user_command = 'USER_COMMAND'
it_fieldcat = gt_fieldcat[]
it_events = gt_events[]
is_layout = gt_layout
is_variant = v_stru_disvar
i_default = 'X'
i_save = 'A'
IMPORTING
E_EXIT_CAUSED_BY_CALLER =
ES_EXIT_CAUSED_BY_USER =
TABLES
t_outtab = it_final[]
EXCEPTIONS
program_error = 1
OTHERS = 2
Edited by: Raja Ram on Aug 4, 2009 12:40 PMsolved
-
How to adjust splitted lines into one line in Text file?
Hi Guys,
I have a text file with 3 fields(comma separated): GLCode (Number), Desc1 (Char), Desc2(Char) and need to load it into BW.
My Text file looks like:
1011.00,"Mejor PC Infrastructure","This line is ok."
1012.00,"Telephone Equipment $","This line ends in next line.
1)Need to change the equipment immediately.
2)Take immediate action"
1013.00,"V1 Computer Server Infrastructure # Equip","For purchases
of components that make up the company's network, such as servers, hubs, routers etc."
1014.00,"Flash Drive","Need to provide all IT Developer"
This is how file looks like. Now I need the followings:
1. Need to remove the space and need to adjust the splitted line into one. Say here
line/record 2 is splitted into 3 lines and need to adjust in 1 line.
2. In Line 5 (Record 3) data splitted into 2 lines and need to make 1 line.
3. Need to remove bad characters.
Could someone help me please how to proceed ?
Regards,Not quite correct by my testing. Try:
$i=0
Get-Content .\test.txt | ForEach {
If ($i%2){
("$Keep $($_)").Trim()
}Else{
$keep=$_
}$i++
Good catch!
Boe Prox
Blog |
Twitter
PoshWSUS |
PoshPAIG | PoshChat |
PoshEventUI
PowerShell Deep Dives Book -
How to display the data in PDF format : problem is splitting into 2 lines
Hi ,
I developed one report which downloads the data into PDF format and saved in C drive but my problem is
in my program : Line size of the report is 255 in PDF it is splitting into 2 lines. it has to show in a single line. how to do it. how to reduce the width of the output? i am sending my code below. anybody can suggest me how to do it. if possible please send me the code.
my code:
report zmaheedhar.
maheedhar-start
TABLES : vbak.
parameters : p_vbeln type vbak-vbeln.
data : begin of itab occurs 0,
vbeln type vbak-vbeln,
ERDAT type vbak-erdat,
ERZET type vbak-erzet,
ERNAM type vbak-ernam,
ANGDT type vbak-angdt,
BNDDT type vbak-bnddt,
AUDAT type vbak-audat,
VBTYP type vbak-vbtyp,
TRVOG type vbak-trvog,
AUART type vbak-auart,
AUGRU type vbak-augru,
GWLDT type vbak-gwldt,
SUBMI type vbak-submi,
LIFSK type vbak-lifsk,
FAKSK type vbak-faksk,
NETWR type vbak-netwr,
WAERK type vbak-waerk,
VKORG type vbak-vkorg,
end of itab.
maheedhar-end
DATA: pripar TYPE pri_params,
arcpar TYPE arc_params,
lay TYPE pri_params-paart,
lines TYPE pri_params-linct,
rows TYPE pri_params-linsz.
DATA: val(1), val1(1).
*---> Local Printer Name defined in SAP, Change NHREMOTE to your local printer
DATA: dest TYPE pri_params-pdest VALUE 'ZNUL'.
DATA: name TYPE pri_params-plist VALUE 'Testing'.
DATA: i_pdf TYPE STANDARD TABLE OF tline.
DATA: spono TYPE tsp01-rqident.
maheedhar-start
top-of-page.
write: 'Sales Document' , 'C Date', 'Entry time', 'Created By','Quotation date',
'Date','Document Date','SD document category','Transaction group','Sales Document Type',
'Order reason'.
start-OF-SELECTION.
select vbeln ERDAT ERZET ERNAM ANGDT BNDDT AUDAT
VBTYP TRVOG AUART AUGRU GWLDT SUBMI LIFSK
FAKSK NETWR WAERK VKORG from vbak
into table itab
where vbeln = p_vbeln.
maheedhar-end
--- Retreive local printer details
CALL FUNCTION 'GET_PRINT_PARAMETERS'
EXPORTING
destination = dest
no_dialog = 'X'
immediately = ' '
IMPORTING
out_archive_parameters = arcpar
out_parameters = pripar
valid = val
valid_for_spool_creation = val1
EXCEPTIONS
archive_info_not_found = 1
invalid_print_params = 2
invalid_archive_params = 3
OTHERS = 4.
IF sy-subrc NE 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
*-- Set Spool printer details w.r.t local printer
pripar-prdsn = 'DSN'.
CALL FUNCTION 'GET_PRINT_PARAMETERS'
EXPORTING
in_archive_parameters = arcpar
in_parameters = pripar
no_dialog = 'X'
list_name = name
IMPORTING
out_archive_parameters = arcpar
out_parameters = pripar
valid = val
valid_for_spool_creation = val1
EXCEPTIONS
archive_info_not_found = 1
invalid_print_params = 2
invalid_archive_params = 3
OTHERS = 4.
IF sy-subrc EQ 0.
---> Triggers the spool creation in the sense all the write statements from hereon will be written to spool instead of screen
NEW-PAGE PRINT ON
NEW-SECTION
PARAMETERS pripar
ARCHIVE PARAMETERS arcpar
NO DIALOG.
ELSE.
WRITE:/ 'Unable to create spool'.
ENDIF.
*--- Output statements
*WRITE:/ 'First Line', 'mahee','lklk','kikik','lokiuj','fffff','kijuyh','fgfgfgfg','gtgtgtgtgtgtgtgtggggggggggggggggggggggggggggggg'.
*WRITE:/ 'Second Line'.
LOOP at itab.
write: itab-vbeln,
itab-ERDAT,
itab-ERZET,
itab-ERNAM,
itab-ANGDT,
itab-BNDDT,
itab-AUDAT,
itab-VBTYP.
ENDLOOP.
"---> Close spool
NEW-PAGE PRINT OFF.
spono = sy-spono.
Convert ABAP Spool to PDF
CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'
EXPORTING
src_spoolid = spono
no_dialog = 'X'
TABLES
pdf = i_pdf
EXCEPTIONS
err_no_abap_spooljob = 1
err_no_spooljob = 2
err_no_permission = 3
err_conv_not_possible = 4
err_bad_destdevice = 5
user_cancelled = 6
err_spoolerror = 7
err_temseerror = 8
err_btcjob_open_failed = 9
err_btcjob_submit_failed = 10
err_btcjob_close_failed = 11
OTHERS = 12.
Download PDF contents to presentation server
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
filename = 'c:\test.pdf'
filetype = 'BIN'
TABLES
data_tab = i_pdf
EXCEPTIONS
file_write_error = 1
no_batch = 2
gui_refuse_filetransfer = 3
invalid_type = 4
no_authority = 5
unknown_error = 6
header_not_allowed = 7
separator_not_allowed = 8
filesize_not_allowed = 9
header_too_long = 10
dp_error_create = 11
dp_error_send = 12
dp_error_write = 13
unknown_dp_error = 14
access_denied = 15
dp_out_of_memory = 16
disk_full = 17
dp_timeout = 18
file_not_found = 19
dataprovider_exception = 20
control_flush_error = 21
OTHERS = 22.
thanks,
maheedharhi tripat,
actual problem is what u said it is decreased the wiidht of the output.
now the output is:
Sales Document C Date Entry time Created By Quotation date Date Document Date
SD document category Transaction group Sales Document Type Order reason
62741 07/29/1996 11:54:38 DARLENE 00/00/0000 00/00/0000 07/29/1996 C
actual output is:
output should come in a single line. it is splitting into 2 lines.
thanks,
maheedhar -
I had to do a re-install of Thunderbird after a crash. How do I get my old address book into my new one? There are only a few of the contacts I had, so there must be a location where the rest are, but not sure where to look. And once I find them (with your help), how do I get them into the address book?
If you copy abook.mab or history.mab into a profile folder, they will show up as Personal Address Book and Collected Addresses. But if the mab files have names other than abook or history, they can only be imported to TB with the use of [https://nic-nac-project.org/~kaosmos/morecols-en.html MoreFunctionsForAddressBook].
-
Issue with splitting string into multiple lines
Hi Experts,
I have a long string s. I want to split this string into several lines each having 72 characters. For this I have done following programming:
String s = "For the first time it includes a supplementary report attempting to determine if extreme weather
events can be linked to human-induced climate change. The research team, including members
of the UK Met Office, identified recent episodes of extreme weather then used a computer to
estimate the likelihood of the episode happening in a world without increased CO2." ;
s = s.replaceAll("[\r\n]+", " ");
char[] sAr = s.toCharArray();
AbstractList RecepitsList7 = new Bapitrtext.Bapitrtext_List();;
int start = 0; // start with
int i = 72 ;
// for (int i = 71; i < sAr.length; i++) {
while (i < sAr.length) {
// { if (sAr[i] == ' ')
Bapitrtext Recepits7 = new Bapitrtext();
Recepits7.setTextid("TEXT");
Recepits7.setTextline(s.substring(start, i).replaceAll("[\r\n]+", ""));
RecepitsList7.add(Recepits7);
start = i+1;
i += 72;
input.setText(RecepitsList7);
The output of program is as below:
For the first time it includes a supplementary report attempting to dete
mine if extreme weather events can be linked to human-induced climate
hange. The research team, including members of the UK Met Office, iden
ified recent episodes of extreme weather then used a computer to estim
te the likelihood of the episode happening in a world without increased
Here as we can see last characters are getting deleted by program. For example in first line
determine 'r' is missing in extreme right.
In 3rd line c is missing in extreme left (word change is needed. Program
prints hange.
Also in 3rd line extreme right 't' is missing
Also in 4th line extreme right 'a' is missing
Also the last line is not being printed. In last line "CO2." " should appear.
There are two issues:
1. Why last word of each sentence is not being printed?
2. Why last sentence is not being printed?
I am struggling since last 2 days. Please help. I made all changes like replacing 72 by 71 etc.
By making such changes, I am able to print first line correctly. However under all cases
last character of 2nd line onward is not getting displayed.
Also last line is not getting displayed. I did every thing like using while instead of for loop etc.
Kindly help.
Regards,
Gary
Edited by: 945655 on Jul 10, 2012 11:39 PMString s = wdContext.currentContextElement().getExpense_Text();
s = s.replaceAll("[\r\n]+", " ");
char[] sAr = s.toCharArray();
AbstractList RecepitsList7 = new Bapitrtext.Bapitrtext_List();;
int start = 0; // start with
int i = 72;
while (i < sAr.length) {
Bapitrtext Recepits7 = new Bapitrtext();
Recepits7.setTextid("TEXT");
System.out.println(s.substring(start, i));
RecepitsList7.add(Recepits7);
start = i+1;
i += 72;
input.setText(RecepitsList7);
Edited by: 945655 on Jul 11, 2012 2:25 AM -
How do i change the text in a submenu diffrent than the page name? I want it wrap into two lines or be a diffrent title but i can't figure out how to make any changes to the text.
Hello,
Text in Menu/Submenu canno tbe changed while using menu widget. However, if you use the Manual Menu option, then you can create your own Menu and add the hyperlinks according to your requirement.
To create Manual Menu, please follow the steps below :
1) In the Widget palette, go to "Menus" click and drag "Vertical/Hrizontal" into your artboard/workspace
2) Click on the widget itself to a blue arrow appears to the right
3) There is a drop down called "Menu Type" set it to "Manual" (as shown in screenshot) :
4) Now You can create your own Menu and add your own text and hyperlink to this Menu.
Hope this helps.
Regards,
Sachin -
Since I installed Snow Leopard, when I go to my mail to send a New Message I used to be able to open the address book in New Message to put in my group mailings with one click. Now that doesn't work. It only takes the 1st name in the group. Now What
Thanks
DaveI had similar problems. In Leopard, I used to be able to just drag one or more Groups from the Address Book to the address field in the Mail message, and it would go in unexpanded, as per the Preference I have set in Mail. With Snow Leopard, when I do this all the individual addresses go into the address field PLUS the unexpanded Group.
However, I found that if I Select the group in Address Book, Copy it, then Paste it into the Mail message address field, all is well. That is, the Group goes into the field unexpanded, and the individuals in the group all receive the message with "To: Undisclosed Recipients" as I intended. -
How to reset the network IP address from terminal/command line in Mac OSX?
Do anyone knows how to set the network IP address from terminal/command line in Mac OS X?
how about a GUI, ever heard of a GUI? it's this really neat thing, where you don't have to worry about remembering long strings of text to do something. Mac OS X actually has a rather decent one (that was sarcasm by the way, Mac is the best) you could have it done in like 30 sec, if you use the network pane of system preferences.
-
Smartform address in a single line
I am having a window where I have address as 3 lines..but I want to keep in the footer in a single line with comma.
I am using the address node's for it.
do you have any idea how to do it.Hi mark,
Using ADDRESS NODE the text cannot not be displayed as per your requirement.If you want to display the address in a single line with comma then use TEXT NODE.
Regards,
Sravanthi -
I don't want to show the e-mail address in the "from" line when I send out e-mails. Is there a way to hide that?
Thank you!No.
-
How do I get internet addresses typed into the Run dialog box to open in Firefox and not IE?
I'm a mechanic and my parts supplier brought me this promotion USB button which takes me directly to their special offers page.
Basically it's a preprogrammed USB keyboard that presses the Windows key + R, then types their internet address in.
However, even though Firefox is my default browser, this link opens in Internet Exploder. IE is verboten on any PC I use!
How do I set the PC to use Firefox for EVERYTHING, including/especially addresses typed into the Run command box?
WIndows Vista on this one (I know, it's not my choice, it came with it).Thanks. That fixed it. I use WIndows XP on all of my own machines - but this one is the boss's.
On XP, once you set a default program, it stays like that. Vista seems to have a mind of it's own.
Maybe you are looking for
-
I would like to get a help... I can not install the iTunes to my new (64bit) laptop... Why??? The installation stops somewhere after a few minute, looks like trying to install but can not go through until the end. I had my old (32bit) laptop and i ha
-
Interactive Quicktime Movie Events (Keynote)
I'm developing an AIR app that lets the user play a quicktime .mov from their computer. This movie will most likely come from an exported Keynote presentation. In case you're not familiar, Keynote lets you export a quicktime movie that is interactiv
-
Why do I keep getting Error 1000 When I run Abort VI Method?
Need to know how to get this to work
-
Flash Player Causing Whole Computer to Run Slowly
Everytime I go on a page that uses flash content (which is quite often) it causes my computer to run really slowly and I am constantly having to restart it. I have tried uninstalling flash player and re-installing it, re-installing internet explorer,
-
hi all, what is the difference between Single Purchase order - Single item no- Single transport PAckage and Single Purchase Order- Single item no-Multiple transport Package in Shipment terminology? Is there any field for Transport package.? thanks an