Text after the Address Endaddress command in SAPscript
Hi All,
Can we print text on the same line after the address endaddress command.
For eg: i am using the Address command
/:ADDRESS PARAGRAPH AS
/:TITLE &EKKO-LIFNR&
/:NAME &LFA1-NAME1&, &LFA1-NAME2&, &LFA1-NAME3&, &LFA1-NAME4&
/:STREET &LFA1-STRAS&
/:POBOX &LFA1-PFACH& CODE &LFA1-PSTL2&
/:CITY &LFA1-ORT01&, &LFA1-ORT02&
/:POSTCODE &LFA1-PSTLZ&
/:COUNTRY &LFA1-LAND1&
/:REGION &LFA1-REGIO&
/:FROMCOUNTRY &T001-LAND1&
/:ENDADDRESS
which gives the output as
1000035878
SANMINA -SCI SYSTEMS DE MEXICO SA DE CV
AV DE LA SOLIDARIDAD IBEROAMERICANA NO 7020
45680 EL SALTO
Mexico
I want a text to be printed next to Mexico eg:
1000035878
SANMINA -SCI SYSTEMS DE MEXICO SA DE CV
AV DE LA SOLIDARIDAD IBEROAMERICANA NO 7020
45680 EL SALTO
Mexico XYZZZ
Can anyone knows how to go about it?
Thanks
Ahsan
Hi,
I do not think itz possible using address...endaddress...
if you want to so something like that may be we need to write that without using address...endaddress..
Regards,
Narendra.
Similar Messages
-
ADDRESS ENDADDRESS command in SAPScript
Hi Gurus,
How does address endaddress command works in SAPscript.
I want to use it in SAPscript as
ADDRESS
ADDRESSNUMBER <LFA1-ADRNR>
FROMCOUNTRY 'US'
ENDADDRESS.
I have gone through the documentation of ADDRESS_INTO_PRINTFORM but still not clear of the sequence.
Want to know, what will be the sequence in which address will be printed from above command and how does it determine this.
Appreciate your help.
Thanks,
KartavyaHi,
Read Below documentation
The ADDRESS - ENDADDRESS control command formats an address according to the postal convention of the recipient country defined in the COUNTRY parameter. The reference fields are described in the structures ADRS1, ADRS2, or ADRS3, depending on the type of address. Either direct values or symbols may be assigned to the parameters.
Syntax:
/: ADDRESS [DELIVERY] [TYPE t] [PARAGRAPH a] [PRIORITY p] [LINES l]
/: TITLE title
/: NAME name1[,name2[,name3[,name4]]]
/: PERSON name of natural person [TITLE form of address]
/: PERSONNUMBER number of the personen
/: DEPARTMENT department
/: STREET street name HOUSE house number
/: LOCATION additional location information
/: POBOX po box [CODE post code / zip code] [CITY city]
/: POSTCODE post code / zip_code
/: CITY city1[,city2]
/: NO_UPPERCASE_FOR_CITY
/: REGION county / state
/: COUNTRY recipient country [LANGUAGE language code]
/: COUNTRY_IN_REC_LANG
/: LANG_FOR_COUNTRY language key
/: FROMCOUNTRY sender country
/: ADDRESSNUMBER address number
/: ENDADDRESS
The parameter values contain both formatting and address information. The address data are formatted for output according to the data in the following parameters:
TYPE
FROMCOUNTRY
COUNTRY
LANGUAGE
PRIORITY
DELIVERY
LINES
If DELIVERY is not specified and if a POBOX is specified, then the POBOX is used in an address instead of a STREET.
Regards
Bala Krishna -
Format data using ADDRESS ENDADDRESS Command in SAPscript
Hi All,
I have an requirement to print the contact address in the follwing format. Actually I want to print first name and Last name immediately after TITLE (Mr.) like below.
Mr. Jhon smith
Street name, po Code..
But currently it is printing like this below
Mr.
Jhon
smith
Street name, po Code..
I am using the ADDRESS...ENDADDRESS command some thing like this below:
/: ADDRESS PARAGRAPH AS PRIORITY A234P
/: TITLE &SADRD-ANRED&
/: NAME &SADRD-NAME1&, &SADRD-NAME2&, &SADRD-NAME3&,
/: STREET &SADRD-STRAS&
/: POBOX &SADRD-PFACH& CODE &SADRD-PSTL2& CITY &SADRD-PFORT&
/:ENDADDRESS
I would Appreciate for your quick responses.
Thanks.
Sankarwell you are doing it anyway manually when i have a look at your coding.
you are not using the standard way of printing an adress by just giving adrnr to the adress statement, but you are printing the fields in detail anyway.
So well just adopt it the like following:
/: ADDRESS PARAGRAPH AS PRIORITY A234P
/: TITLE &SADRD-ANRED&,,&SADRD-NAME1&,,&SADRD-NAME2&,,&SADRD-NAME3&
/: STREET &SADRD-STRAS&
/: POBOX &SADRD-PFACH& CODE &SADRD-PSTL2& CITY &SADRD-PFORT&
/:ENDADDRESS
but i still ask myself what you need the adress staement for when you anyway have an own way to format your output. -
Objects not created after the AT USER-COMMAND
Hi experts, gud evening. I'm new to ooabap. in my prog. after the at user-command the objects are not getting created. so i've created even before that. even then i couldn't get that created. so pls help me where the prob. is
Prog :
REPORT yrj_my_oops.
CLASS cl_vbak DEFINITION
CLASS cl_vbak DEFINITION.
PUBLIC SECTION.
METHODS : load_data IMPORTING value(im_kunnr) TYPE vbak-kunnr,
display_head,
write_data.
PROTECTED SECTION.
PRIVATE SECTION.
DATA : it_vbak TYPE TABLE OF vbak,
wa_vbak TYPE vbak.
ENDCLASS. "cl_vbak DEFINITION
DATA : w_vbeln TYPE vbak-vbeln.
CLASS cl_vbap DEFINITION
CLASS cl_vbap DEFINITION.
PUBLIC SECTION.
METHODS : load_data IMPORTING value(im_vbeln) TYPE vbak-vbeln,
write_data.
PROTECTED SECTION.
PRIVATE SECTION.
DATA : it_vbap TYPE TABLE OF vbap,
wa_vbap TYPE vbap.
ENDCLASS. "cl_vbap DEFINITION
CLASS cl_vbap IMPLEMENTATION
CLASS cl_vbap IMPLEMENTATION.
METHOD load_data.
SELECT * FROM vbap INTO TABLE it_vbap WHERE vbeln = w_vbeln.
ENDMETHOD. "load_data
METHOD write_data.
LOOP AT it_vbap INTO wa_vbap.
WRITE : /5 wa_vbap-posnr,
20 wa_vbap-matnr,
35 wa_vbap-arktx,
70 wa_vbap-netpr.
ENDLOOP.
ENDMETHOD. "write_data
ENDCLASS. "cl_vbap IMPLEMENTATION
CLASS cl_vbak IMPLEMENTATION
CLASS cl_vbak IMPLEMENTATION.
METHOD load_data.
SELECT * FROM vbak INTO TABLE it_vbak WHERE kunnr EQ im_kunnr.
ENDMETHOD. "load_data
METHOD display_head.
WRITE : /5 'Order No.',
15 'Order Date',
30 'Net Value'.
ENDMETHOD. "display_head
METHOD write_data.
LOOP AT it_vbak INTO wa_vbak.
WRITE : /5 wa_vbak-vbeln,
15 wa_vbak-audat,
30 wa_vbak-netwr.
ENDLOOP.
ENDMETHOD. "write_data
ENDCLASS. "cl_vbak IMPLEMENTATION
PARAMETERS : p_kunnr TYPE vbak-kunnr.
DATA : o_vbak TYPE REF TO cl_vbak,
o_vbap TYPE REF TO cl_vbap.
START-OF-SELECTION.
SET PF-STATUS : 'YRJ_MY_OOPS'.
CREATE OBJECT o_vbak.
CREATE OBJECT o_vbap.
CALL METHOD o_vbak->load_data
EXPORTING
im_kunnr = p_kunnr.
CALL METHOD o_vbak->display_head.
CALL METHOD o_vbak->write_data.
AT USER-COMMAND.
w_vbeln = sy-lisel+4(10).
CASE sy-ucomm.
WHEN 'BACK' or 'EXIT'.
LEAVE LIST-PROCESSING.
WHEN 'ITEM'.
CREATE OBJECT o_vbap.
CALL METHOD o_vbap->load_data
EXPORTING
im_vbeln = w_vbeln.
CALL METHOD o_vbap->write_data.
WHEN OTHERS.
ENDCASE.Hi,
I dont see any problem with you code. I ran your code in my system and worked fine. Except for one thing that is you need to do a conversion exit on the w_vbeln before selecting data from VBAP in method load data. This is because when you ouput the data, the VBELN is converted to external format and thus needs to be converted to internal format if you want to do further selects based on it.
CLASS cl_vbap IMPLEMENTATION.
METHOD load_data.
" Add this , so it converts the VBELN to internal format.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
input = w_vbeln
IMPORTING
output = w_vbeln.
SELECT * FROM vbap INTO TABLE it_vbap WHERE vbeln = w_vbeln.
ENDMETHOD. "load_data
METHOD write_data.
LOOP AT it_vbap INTO wa_vbap.
WRITE : /5 wa_vbap-posnr,
20 wa_vbap-matnr,
35 wa_vbap-arktx,
70 wa_vbap-netpr.
ENDLOOP.
ENDMETHOD. "write_data
regards,
Advait -
HT4623 issues with texting after the 6.1 update on my iPhone
issues with texting after the 6.1 update on my iPhone
My wife and I are on different networks ie GCI vs AT&T after we both updated our iphones to 6.1 we no longer can receive texts messaging even though both are phones say the message was delivered. we can however text with other iphone users as long they are withing the same carrier and with everyone as long as they are not other iphones regardless of the carrier as well as with other iphon users that are still using 6.0. My wife and I also have ipads with wifi only and the one we updated to 6.1 is having the same issue while the one that is still 6.0 has no issue and will send and receive messages with out issue even to and from the 6.1 devives that are having issues. I have contacted both service providers and was told it is a Apple messaging issue. At this point I just would like to find and reinstal the 6.
-
Problem in Address Endaddress statement in sapscript
Hello Friends,
I have 1 problem in existing sap script for delivery where address is printed using command address endaddress.
Problem is In output while displaying PO BOX text , it is displayed in DE language insted of EN whether logon lang is EN.
Regards,
YogHi
To translate the text in SAP Script :
You can goto transaction SE63 and translate the scripts into different languages.
In SE63, click Translation -> Long Texts -> Sapscripts -> Forms
Those language you can convert to have already been pre-installed in the system.
SE63 is the best way to translate since it offers check options.
Or
Also try to change logon language to korea.
Hope this will solve your problem.
Rewards Points if useful.
Thanks & Regards
Nikunj Shah -
Prob with putting text after the Schedule line item in PO Sap script
Hi Guys,
I need to include a Text afetr the first schedule line item and that shouldn't print after next onwards, can anyone help me out.
Thanks,
Rameshtwo things
in this
activate debugger and check whether the field
&EKET-J_3ASIZE& is eq ' ' or not
only then it will come in to else condition
if its coming into else case check whether &T166P-TXNAM& is getting populated or not
if it doesnt u need to go to item_text
define a variable and move the value of &T166P-TXNAM&
define &TEXT& = &T166P-TXNAM&
and then
in item_schedule
iNCLUDE <b>&TEXT &</b> OBJECT &T166P-TDOBJECT& ID &T166P-TDID& LANGUAGE &EKKO-SPRAS& PARAGRAPH IX
i think this will resolve the issue.
Harish
reward if its useful -
How do I make the "text" after the checkboxes visible?
(The Dreamweaver 8 text reads, as follows)
quote:
To add checkboxes to a form:
1. Click in the left column of the sixth row, type
Check all of the musical styles that interest you.
(including the period), and then press the
Tab key to move the insertion point to the next cell.
2. Click the
Checkbox button in the
Forms category on the Insert bar to insert a checkbox in the
cell.
3. In the Property inspector, type
Punk in the Checkbox Name text box, and then click the
Unchecked option button, if necessary.
4. Click to the right of the checkbox in the table, type
Punk, and then press the
Shift+Enter keys to create a new line in the cell.
5. Repeat Steps 2 through 4 to create the following
checkboxes:
Alternative,
Trance, and
Jazz. See Figure 9-33 (Pg.515 Dreamweaver 8 textbook)
The following is the CODE where I added checkboxes to a form:
quote:
<tr>
<td><div align="right">Check all of the musical
styles that interest you. </div></td>
<td><div align="left">
<input name="Punk" type="checkbox" id="Punk"
value="checkbox" />
<br />
<input name="Alternative" type="checkbox"
id="Alternative" value="checkbox" />
<br />
<input name="Trance" type="checkbox" id="Trance"
value="checkbox" />
<br />
<input name="Jazz" type="checkbox" id="Jazz"
value="checkbox" />
</div></td>
</tr>
However, the only thing I see in DESIGN View is this the
previous text, "Check all of the musical styles that interest you."
and the four checkboxes "without" the text that should follow each
box .
Please, help, explain what steps I should take, next, to make
the following words (Punk, Alternative, Trance, and Jazz) visible
in the DESIGN View, following each of the four checkboxes.
Thank you for your help!
This Support Forum is the BEST!
Respectfully, OnaSorry - you're sending us to the Webforum which is a real
pain to scroll
miles through to discover what questions and answers there
are. Could you
start a new thread? It looked as if it might have been a
discussion with
Murray but it's really difficult to tell as the last I saw
was Murray asking
you to do something - I think.
Jo
"OnaTutors" <[email protected]> wrote in
message
news:f3iuuc$moe$[email protected]..
> Geschenk, You ROCK!
>
> THANK YOU! THANK YOU, SO MUCH!
>
> You went ABOVE and BEYOND the call of duty! Thank you
for helping with
> the
> other errors in my CODE, too.
>
> You saved my Final Project for my course in Web
Construction 2, due
> "tonight"
> @ midnight!
>
> I've just got 2 more questions to troubleshoot!
>
> Thanx for all of your help!
>
> If anyone is interested, these are the other two
questions that I'm
> TROUBLESHOOTING:
>
>
>
http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?catid=189&threadid=
> 1271560
>
>
>
http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?catid=189&threadid=
> 1271584
>
> Thanks for helping me out, everyone!
>
> Respectfully, Ona
>
>
quote:
Originally posted by:
geschenk
> you do have some quirks in your current form -- as to
your checkboxes ::
> please replace the current
value="checkbox" with e.g.
>
value="Punk", and furthermore you just need to place a plain
text
> description after the checkbox tag
>
> that´s it ;-)
> -
Feature Request: Ignore text after the first "/" when sorting by artist
Ok, so I figured that when sorting by artist, the word "the" is actually bypassed - Great thing! I've also figured that when I include a "/" after the first artist name (and add another artist), it goes last on it's sort zone. I think it would be nice to bypass the rest of what's written after the first "/", so that when sorting by artist I could get the correct album sequence as well.
PowerBook G4 17" Alumunium Mac OS X (10.4.5) 1GHz/1.5GB/80GBHave a look at this post. I am sure you can modify it for your particular data type.
(slice out the first colum, create sort key, rebuilt 2D array according to key)
LabVIEW Champion . Do more with less code and in less time . -
Can't send pictures via text after the update
I completed the update and can no longer use text to send pictures. When I make the attempt nothing seems to happen. When I later try to send another text to that same number, the texting app just quits. Is anyone else having the same issue?
You've posted in the iPhone 4 forum. You want answers about iOS4--you need to post in the appropriate forum.
-
Any one having issues sending or getting texts after the upgrade to 7.0.3
Ever since I updated today to 7.0.3 I cannot get any texts
all my settings are good in mine .. I cannot send/recieve green messages or make calls to anyone at all..
I tried doing the fix that razmee209 posted and nothing helped. -
Is anyone else having issues with texting after the iOS8, with a iPhone 4s?
The messages app on my iPhone is not responding. I click on the message button and i get a white screen for 30 seconds and then goes back to the home screen.
Hello, cliffiapp4.
Thank you for visiting Apple Support Communities.
Here are the steps that I would recommend going through when experiencing this issue.
Resolution
If a single application is not responding or stops responding when it opens, you can force it to close.
If the device is unresponsive or if certain controls aren't working as expected, restart your device.
If the device remains unresponsive or does not turn on (or power on), reset your device.
If the above steps do not resolve the issue, contact Apple.
iOS: Not responding
http://support.apple.com/kb/TS3281
Cheers,
Jason H. -
Dear all,
I'm using ADDRESS ~ ENDADDRESS command in SAPScript. I pass street name to STREET as follow
NAME name1 name2 name3 name4
STREET &LFA1-STRAS&
With the above, my street can be displayed out correctly.
But i faced problem when i have street2 street3 and street4, like below:
NAME name1 name2 name3 name4
STREET &LFA1-STRAS& , &ADRC-STR_SUPPL1& , &ADRC-STR_SUPPL2& , &ADRC-STR_SUPPL3&
With above, nothing printed for street.
Could you please point me out where did i code wrong?
Or we can not pass street2/3/4 to STREET?
Thank you.Hi,
Just Refer this:
https://forums.sdn.sap.com/click.jspa?searchID=12447471&messageID=2301405
Check the below link for details on Text Elements
http://help.sap.com/saphelp_47x200/helpdata/en/d1/802e91454211d189710000e8322d00/content.htm
Regards,
Shiva Kumar -
ADDRESS ENDADDRESS IN SAPSCRIPT
Hi,
Can we rearrange the fields being printed in PO layout? The form used the ADDRESS ENDADDRESS syntax. Only the Addressnumber was populated. After printing the form, the arrangement of fields were
STREET CITY
COUNTRY POSTAL_CODE CITY2.
I want to rearrange it to be:
STREET
COUNTRY POSTAL_CODE CITY.
How can I do this? And where can I do this if this is possible?
Thanks in advance.
LalynHi,
the formatting of an adress depends on the value belonging tot COUNTRY.
SO i do not think the way you want is possible.
Below include some help. Read and take the best solution for it
ADDRESS: Formatting of addresses
The command ADDRESS - ENDADDRESS formats an address according to the postal standards of the destination country defined in the parameter COUNTRY. The reference fields are described in the structure ADRS. Both constants and symbols can be assigned to the parameters.
Syntax:
/: ADDRESS [DELIVERY] [PARAGRAPH a] [PRIORITY p] [LINES l]
/: TITLE title
/: NAME name1[,name2[,name3[,name4]]]
/: STREET street
/: POBOX PO box [CODE zip code]
/: POSTCODE zip code
/: CITY town1[,town2]
/: REGION region
/: COUNTRY country
/: FROMCOUNTRY from country
/: ENDADDRESS
Both formatting data and address data are parameters. Address data is formatted for output based on the COUNTRY, PRIORITY and LINES parameters. As the default, the P.O. Box is used, if it is available, rather than the street address.
DELIVERY defines the street address.
If this parameter is selected, the system prints the street address on the layout output instead of the P.O. Box.
PARAGRAPH defines in which paragraph format the address is output.
If the parameter is not defined, the address is output in the default paragraph format.
PRIORITY defines which address lines can be omitted if there is not enough space on the output.
You can enter a combination of the following values:
A form of address
P mandatory blank line 1
Q mandatory blank line 2
2 name2
3 name3
4 name4
L country name
S line for the street
O line for the city
LINES define how many lines are available to format the address.
If the address data cannot be completely formatted due to an insufficient number of lines, the data entered in the parameter PRIORITY is omitted. If the LINES specification is missing and this command is in a form window whose type is not MAIN, the lines available for the address layout are automatically calculated with the current output line item and window size.
TITLE is a required form of address.
NAME means that up to four separate names, separated by commas, can be defined.
STREET means the street specification, including address number.
POBOX is the Post Office box number.
CODE is the P.O. box, postal, or zip code, if this code is different from the postal code of the city.
POSTCODE is cityu2019s postal, or zip, code.
CITY means that up to two place names can be defined.
REGION determines the administrative area.
COUNTRY specifies the country based on specific postal standards and the address format.
FROMCOUNTRY defines in which language the destination countryu2019s name is formatted. In EEC countries, only the international country identification letter is placed, with a hyphen, before the postal code.
Gr., Frank -
After upgrading to Mavericks 10.9.2 the text in the address/seach bar on Safari is a lot smaller. This is not a screen resolution issue. The fonts in Finder are larger than they were before anoying fix for this would also be nice. It is also not a screen resolution issue.
I really do not know what Apple are doing with quality control with Mavericks. The 3 month GMAIL problems have not been fixed with this upgrade and you also have a lot of font size changes accross you whole machine, within mail, finder and safari.
Any help appreciated.
Mark
Message to Apple:
Mavericks reminds me of all the old problems I had with Windows before I moved to Mac. Prior to Mavericks upgrades would not change screen resolutions, Font sizes etc. The GMAIL issue has not been fixed.
It is inconceivable to me that you could release this product which does not support basic mail functionality for one of the largest email services on the internet ie. GMAIL and then take 3-4 months and still not fixed with the 10.9.2 upgrade. What are you guys doing. The loss of productivity for people is beyond comprehension.
Can we please get a fix for GMAIL in Mavericks that actually works.avjebs wrote:
I got this e-mail from WD a few days ago:
Dear WD Registered Customer,
UPDATE: November 1st, 2013
As a valued WD customer we want to make you aware of new reports of Western Digital and other external HDD products experiencing data loss when updating to Apple's OS X Mavericks (10.9). WD is urgently investigating these reports and the possible connection to the WD Drive Manager, WD Raid Manager and WD SmartWare software applications. Until the issue is understood and the cause identified, WD strongly urges our customers to uninstall these software applications before updating to OS X Mavericks (10.9), or delay upgrading. If you have already upgraded to Mavericks, WD recommends that you remove these applications and restart your computer. If you have already upgraded to Mavericks and are experiencing difficulty in accessing your external hard drive, please do not save anything to the drive, disconnect the drive from your computer, and contact Western Digital Customer Service at http://support.wd.com/country/ for further assistance.
The WD Drive Manager, WD Raid Manager, and WD SmartWare software applications are not new and have been available from WD for many years. However, solely as a precaution WD has removed these applications from our website as we investigate this issue.
Sincerely,
Western Digital
THIS is very disturbing news from WD.
Maybe you are looking for
-
Call a Web Service from JavaFX running als WebStart or embed in a Browser
Calling a Web Service from a JavaFX running as a application all is fine. Wenn run the same JavaFX as WebStart or Browser embed I get a runtime exception: ================================= Java-Plug-in 10.7.2.10 JRE-Version verwenden 1.7.0_07-b10 Jav
-
Material-vendor relation-ship??MM
hi I have to develop a reprot,for display the all possible no. of vendors for a particular material no. on a screen.can any one tell me if any SAP STD FM exits for this?or the tables i had to use to find this repaltion ship,can EKKO<EKPO<EINA,are suf
-
Returning the string from the SimpleDateFormat
Hi guys, Can someone tell me how to return the string from the SimpleDateFormat? I've created the method to do this, but i don't know the exact code to use. Here's my code so far... public String convert (Calendar gc) String s = convert(g
-
I recently did an update to snow leopard and have "lost" all sorts of standard features I used to rely on. Now running 10.6.8 I can no longer command+tab through apps I have open. All system key commands like close window [command+W] no longer work.
-
I am unable to load firefox.
I try to download firefox to my laptop using windows 7 and every time I try to run the program it just stops. I've webt thru rvery trouble shooting option and nothing works, how can i fix my problem?