How to print address without address number
Hi experts,
If address numer is found in table t001w this is working fine.
user required custom address directly hardcode based plant and sorg which doen't contain record in table t001w.
I am not getting adrnr in table t001w , so I am writing hardcode but its not working , can you please tell me how to solve this issue.
This is ouput parameter &GV_ADDNR_VENDOR&
READ TABLE it_ekpo into wa_ekpo INDEX 1.
SELECT SINGLE * FROM t001w INTO ls_t001w
WHERE werks EQ wa_ekpo-werks.
if wa_ekpo-werks = '2000' and wa_ekpo-lgort = '5200'.
ls_t001w-NAME1 = 'Connors Bros'.
ls_t001w-STRAS = '2 King Street, 3rd floor'.
ls_t001w-ORT01 = 'San John'.
ls_t001w-REGIO = 'N.B.'.
ls_t001w-PSTLZ = 'E2L 1G2'.
ls_t001w-adrnr = '000012345'.
MOVE ls_t001w-adrnr TO gv_addnr_vendor.
else.
MOVE ls_t001w-adrnr TO gv_addnr_vendor.
ENDIF.
Thanks,
mahahe
Hi mahahe,
You could do this checking first before you hardcoded it.
IF GV_ADDNR_VENDOR = ''
READ TABLE it_ekpo into wa_ekpo INDEX 1.
SELECT SINGLE * FROM t001w INTO ls_t001w
WHERE werks EQ wa_ekpo-werks.
if wa_ekpo-werks = '2000' and wa_ekpo-lgort = '5200'.
ls_t001w-NAME1 = 'Connors Bros'.
ls_t001w-STRAS = '2 King Street, 3rd floor'.
ls_t001w-ORT01 = 'San John'.
ls_t001w-REGIO = 'N.B.'.
ls_t001w-PSTLZ = 'E2L 1G2'.
ls_t001w-adrnr = '000012345'.
MOVE ls_t001w-adrnr TO gv_addnr_vendor.
else.
MOVE ls_t001w-adrnr TO gv_addnr_vendor.
ENDIF.
ELSE.
" Get it from table t001w.
ENDIF.
Similar Messages
-
How to print ADDRESS in SAP Script
Hi All,
I want to print address using ADDRESS command in SAP script. I am using folowing code:
ADDRESS PARAGRAPH AS
TITLE &ADRS-ANRED&
NAME &ADRS-NAME1&, &ADRS-NAME2&,
STREET &ADRS-STRAS&
POBOX &ADRS-PFACH& CODE &ADRS- PSTL2& CITY &ADRS-PFORT&
POSTCODE &ADRS-PSTLZ&
REGION &ADRS-REGIO&
CITY &ADRS-ORT01&, &ADRS-ORT02&
COUNTRY &ADRS-LAND1&
FROMCOUNTRY &ADRS-INLND&
ENDADDRESS
Here in output I am getting Title, name1, & name2 in different lines. But I want that Title, name1 and name2 in same line.
I tried putting title, name1 and name2 in same line but then neither title nor name1, name2 are getting displayed.
Please tell me how I can do the same.
I have heard that SAP displays the address according to country standard. Please let me know in which table the country specific setting is stored.
Regards,
VijayHi,
country code stored in this T005T. Adjust the tab positions on script then only u will get all the title, name1, name2 will get in one line.
regards,
ravi shankar reddy -
In Smart forms How to print address
Hi all,
If we have Multiple line items and if all the line items have the same address then address should be printed at Header level if not all the line items are holding different address then that address should be printed at line item level.
and again if the address is not displayed at Header level then that window should be hidden i.e the area should be hidden.
Please help in this issue ASAP.
Regards
AnuHi Anupama,
You mean Delivery Address???
1. Declare a Variable ADRNR in Import Parameters like ADRNR TYPE ADRNR.
2. Have a seperate Window to display Address.
3. Create a Address Node in that window, Give Address Number value as &ADRNR&.
4. In the Conditions tab maintain as ADRNR <> space
4. Get Data for ADRNR variable in Print Program and pass that value in Smartform Function Module for ADRNR Parameter.
Reward Points if this helps,
Satish -
TopicAlias footnotes in Word - how to print PDF without them?
Hello all, I am successfully using Word footnotes (called "TopicAlias") to generate map IDs in RoboHelp. But now I have the problem that there are these footnotes everywhere in my document which should naturally not appear in PDF output. I can make the text itself dissappear by using the corresponding formatting option of the associated styles, but then I still have the lines that Word inserts at the end of each page to separate the footnotes.
How do I print a clean PDF from the Word document without showing the ToicAlias footnotes?Hey,
i'm having a similar problem here: I want to print a PDF from KW_Storage in background. Any ideas?
Jens -
How to legalise programms without serail number
Dear people,
I am a member for half a year now,, but running all programms in the trial version (since my new computer). When I try to legalice them, I need a serail number. That I don't have, I 'm a member of CC!
I don't run any CC programms on old computer, so I'd say I could directly download them from the cloud.
Hope you can help,
I thought being in the CC is simple, but it's complicated.
greetingz, barbaraIf the delivery is WM relevant, you may need to create a Transfer Order (TO) for the delivery(LT03) and confirm it(LT12).
Hope it helps,
Leonardo De Araujo -
How to print adobe form immediately without preview?
Hi, Experts.
I made a WD4A using Interactive Form control
and the app is working fine and displays Adobe Form.
But I meet a new client needs on how to print immediately without display the form.
My client says that "I don't wanna see the form and just print form immediately when I click the print button".
I think there are some option parameters for solving those problem...
Plz. Help.
Regards Junha.Hello Junha,
you need to send the pdf to spool. There's a function module for it as far as I know. Can't remember the
name at the moment and having no access to a SAP system. A good way to find it would be searching
for SPOOL and PDF in the name.
Best regards,
Thomas -
Printing emails without headers and footers
I just purchased a new printer HP Deskjet 2510 series and use it with Microsoft XP. Have also used HP color lazer CP2025 and HP lazer P2055DN.
I am trying to figure out how to print emails without the header and footer showing. I have been able to do it with other printing jobs for example when printing a copy of PDF, but it does not work for emails. Can this be done for emails as well?Hello,
You can print any section you want on the email. You will need to highlight the section you want printed, press down Ctrl+P, and then select print using system dialog, which will look like this:
Then select the option that says "selection", and then select print. -
How to default an address number delivery address in the PO item
Hi All,
I have some combination of certain Material / Vendor / Delivery address.
I have created some address numbers from transaction MEAN.
I can successfully assign these in PO detail manually. Then the address gets updated from it
for plant or storage location if specified.
What I need to know is how to "default" this address number in the PO detail.
I couldn't fine appropriate field in info record, but I have a feeling that it should be possible.
Could anyone help me on this please?
Thanks,
ATOHi Nadia,
Thank you for your reply.
The plan is that storage location gets default on the PO by material master setting.
I have configured the storage location address, so this defaults in the delivery address tab.
This storage location is our warehouse to receive goods.
Sometimes we delivery goods directory to the vendor without receiving into the warehouse.
In this scenario, we are using the address number to print the vendor address on the PO output.
The combination of material and vendor is unique when we need to deliver directory.
So the expectation is to default this address number in this certain case.
Do you mean this will be possible without user exit?
Thanks,
ATO -
How to print the changed address in delivery output
Dear Gurus,
As all we know the customer address comes in sales order from customer master table or address table and further get copied into delivery also in case of same SP and SH.
My issue is that we do not maintain different SH for a sold to party so SP = SH and there addresses will also be same.
In output we are getting address from ADRC table.
Now if we change the ship to party address in delivery manually and get the output the printed address is unchanged.
But I want to print the changed address in delivery output without changing the masters and maintaining diiferent ship to party.
Please help me how to determine it in print out???
Thanks,
SanjayHi,
I think the logic you have written is wrongly on output.
The logic is like this:
Pass the document number into "VBPA" table.
Execute.
Fetch the address number against "WE(ship-to-party)".
Pass the same address number into "ADRC" table to get the address.
Here you will get the new address which is different from the maaster data.
Regards,
Krishna. -
How to print delivery address in samrtforms
HI,
How can i print on a smartform the below given delivery address.
Delivery Adress (*) CHAR 8
VBAK-KUNNR (Customer)
KNA1-NAME1 (via KNA1-KUNNR) (Name)
KNA1 NAME2 (Name)
KNA1-STRAS (Street)
KNA1-NAME3 (tav. Person)
KNA1-PSTLZ (Postal Code)
KNA1-ORTO1 (City)
KNA1-LAND1 (Country)
KNA1-TELF1 (Phone Number)
pls pass some example or qurey so that i can make it use of that in my req.
ThanksHi Deepti,
Try this out,
1. Declare variable ADRNR in Import Parameters like ADRNR TYPE ADRNR.
2. Create a seperate Window to display Address.
3. Create a Address Node in that window,
4. Assign an address number as &ADRNR&.
5. In the Conditions tab maintain as ADRNR space
6. Get Data for ADRNR variable in Print Program and pass that value in Smartform Function Module for ADRNR Parameter.
Best of Luck !!
if u find the information useful please ack it .....
Thanks
Ravi -
HT2486 how can i print address labels for my Xmas cards from my address book?
Hi- I spent last night entering all my names and addresses of friends and family into my address book on my Macbook Pro. But I just can't figure out the next steps.... what labels should I purchase to print and then how to export the batch onto those labels. What am I missing? Thanks for your feedback!!
Hi!
@edcampbell
Welcome the HP Support forums. I understand that you are having a problem getting your labels lined up.
To better assist you, would you please provide some further information:
What make/model/product number of HP printer do you have?
How is the printer connected (USB cable, ethernet, or wireless)?
What is operating system are you using (Windows 7, or Mac 10.8, etc)?
What is the size of the labels that you are printing and is it a page of labels?
Thank you.
Guide to finding your product number
http://h10025.www1.hp.com/ewfrf/wc/findModel?lc=en&dlc=en&cc=ca&lang=en
@jom42452
Thank you for joining the HP Support community. I understand that you are unable to line the labels for your Photosmart printer.
To better aid you, would you please supply some further information:
What model of Photosmart printer do you have?
How is the printer connected (USB cable, ethernet, or wireless)?
What is operating system are you using (Windows 7, or Mac 10.8, etc)?
What is the size of the labels that you are printing and is it a page of labels?
Thank you.
How Do I Find My Model Number?
http://h10010.www1.hp.com/ewfrf/wc/document?cc=us&lc=en&dlc=en&docname=bpy21016
Regards,
Happytohelp01
Please click on the Thumbs Up on the right to say “Thanks” for helping!
Please click “Accept as Solution ” on the post that solves your issue to help others find the solution.
I work on behalf of HP -
Printing address using address number
I have the following code:
IF &PAGE& EQ 1
ADDRESSNUMBER &EKKO-ADRNR(K)&
FROMCOUNTRY &T001-LAND1&
ELSE
TITLE &LFA1-ANRED&
NAME &LFA1-NAME1&, &LFA1-NAME2&, &LFA1-NAME3&, &LFA1-NAME4&
ENDIF
In this code ' If' statement is executed, i dont understand in if block , we are displaying only 'addressnumber' and 'from country', then how come entire address is printed in the sapscript.Yes the actual code is as follows:
IF &EKKO-ADRNR(K)& EQ ' '
ADDRESS PARAGRAPH AS
TITLE &LFA1-ANRED&
NAME &LFA1-NAME1&, &LFA1-NAME2&, &LFA1-NAME3&, &LFA1-NAME4&
IF &PAGE& EQ 1.
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&
ENDIF.
ENDADDRESS
ELSE
ADDRESS PARAGRAPH AS
IF &PAGE& EQ 1
ADDRESSNUMBER &EKKO-ADRNR(K)&
FROMCOUNTRY &T001-LAND1&
ELSE
TITLE &LFA1-ANRED&
NAME &LFA1-NAME1&, &LFA1-NAME2&, &LFA1-NAME3&, &LFA1-NAME4&
ENDIF
ENDADDRESS
Now in the above code there is this 'if' block
IF &PAGE& EQ 1
ADDRESSNUMBER &EKKO-ADRNR(K)&
FROMCOUNTRY &T001-LAND1&
ELSE
So in this 'if' block , using the address number , entire address is displayed in Final output of the sap script. When I debug the sapscript, i m able to see only the addres number and not the address. My actual requirement is to display only some fields in the address and not the entire address, how can i do that??? -
How can I print address labels from numbers spread sheet
How can I print address labels from numbers spread sheet
CAB,
The 5163 template has the following dimensional specs:
Dimensions & Info
Length: 4.00000" Height: 2.00000"
Top Margin: 0.50000" Bottom Margin: 0.50000"
Left Margin: 0.18000" Right Margin: 0.18000"
Hor. Spacing (gutter): 0.14000" Vert. Spacing (gutter): 0.00000"
Intended Use: Mailing Labels, Shipping Labels, Address Labels
There's a great vendor site with this data readily available, better than the Avery site in my opinion. But, you can get the same info in the Contacts Print dialog pane.
You can grab a template matching these dimensions from that vendor site, Copy the table after opening the Word Template in Pages and drop the into a blank Numbers Sheet.
I found that Sheet side margins of 0.15" worked better than 0.18. For some reason the table wanted to flow to the next page to the right with 0.18". Turning off the Headers and Footers and setting Top and Bottom Margins to 0.5" worked well. These adjustments are made in the Sheets Inspector.
So, that will put the template you specified into a Numbers document and you can print labels properly aligned from there. Since your problem statement is a bit lacking in detail, that's all I can offer you at this point.
Jerry -
How do i print address returns on envelopes with hp officejet pro 8500
how do i print address returns on envelopes with hp officejet pro 8500
This is done with your software that you have to print the envelopes. MS Word can do this, just use their help facility.
Say thanks by clicking the Kudos Thumbs Up to the right in the post.
If my post resolved your problem, please mark it as an Accepted Solution ...
I worked for HP but now I'm retired! -
I have a school ipad with iCloud using a different ID (my school email address) . I am leaving and want to buy my own ipad and transfer all my data and docs to my personal iCloud account but don't know how to do this without deleting all data and photos?
Heya Katie!!
So, the article you have there, HT4895, is pretty good. Just look at the FAQ section of it.
But basically, you will want to create a backup on your computer through iTunes...Just plug your current iPad into it and make sure your iPad and iTunes are logged in with the same Apple ID. At that point, just create a backup.
When you get your new iPad, and before you plug it in or set it up, follow the directions in this link to change your Apple ID. http://support.apple.com/kb/HT5621?viewlocale=en_US
Once you have that done, plug your new iPad into your computer to sync up with iTunes. Follow the directions for Restore from Backup and it should bring all that info back to your new iPad.
And changing your Apple ID email info will allow you to have your own!!! This should solve all your issues and GL!!!
Maybe you are looking for
-
Hi I have problems when deploying enterprise applications to Sun Java System Application Server 9 that contain JSF pages. The scenario is the following: I developed an enterprise application using Oracle JDeveloper 10.1.3. My EAR archive contains an
-
CS5 editing mode not supported and file import error
Hi. I edited a series of projects on PP CS5 on my iMac. My computer crashed, so I am now working off my MacBookPro to finish off a few projects. I have PP CS5, Final Cut Pro, and Quicktime all installed. I have also downloaded all the ProAppsQTco
-
How do i save a pdf document from an e-mail?
How do I save a PDF document to the Books App?
-
Network call causes app to crash in WP8
I have created hybrid app using cordova. We have 1 post service which gives list of cities. When app hits the service, app gets crashed. This network call working fine in android and iOS. Message is : An unknown error has occurred. Error: 80020101.
-
Unix command Line input and output
Has anybody used Forte for now window application. Passing values through command line and get put as a return value. I am able to call Forte and pass input values but I do not know who to get the return value. Here is the shell script that I am runn