PO email output type program causes unable to print preview
Hi Guys,
i am customising a program for print preview email for PO output type, but the preview does not come out , here is the code:
form entry_neu using ent_retco ent_screen.
data: dtext like tline.
data: l_druvo like t166k-druvo,
l_nast like nast,
l_from_memory,
l_doc type meein_purchase_doc_print.
clear ent_retco.
if nast-aende eq space.
l_druvo = '1'.
else.
l_druvo = '2'.
endif.
call function 'ME_READ_PO_FOR_PRINTING'
exporting
ix_nast = nast
ix_screen = ent_screen
importing
ex_retco = ent_retco
ex_nast = l_nast
doc = l_doc
changing
cx_druvo = l_druvo
cx_from_memory = l_from_memory.
check ent_retco eq 0.
concatenate l_nast-kschl 'for ' l_doc-xekko-ebeln into
l_nast-TDCOVTITLE separated by space.
ekko = l_doc-xekko.
perform set_textsymbol using '&EKKO-WAERS&' EKKO-WAERS.
select adrc~name1 into rm06b-ltex1
from t001
join adrc
on adrcaddrnumber eq t001adrnr and
adrc~date_from le sy-datum and
adrc~nation eq space
where t001~bukrs = ekko-bukrs.
endselect.
select single regno into t9s01-regno
from t9s01
where bukrs = ekko-bukrs.
if sy-subrc eq 0.
T9S01-BUKRS = EKKO-BUKRS.
endif.
perform set_textsymbol using '&RM06B-LTEX1&' RM06B-LTEX1.
perform set_textsymbol using '&T9S01-REGNO&' t9s01-regno.
perform set_textsymbol using '&T9S01-BUKRS&' T9S01-BUKRS.
lfa1-lifnr = ekko-lifnr.
select single adrc~str_suppl3 into lfa1-name4
from lfa1
join adrc
on adrcaddrnumber = lfa1adrnr
where lfa1~lifnr = ekko-lifnr.
perform set_textsymbol using '&LFA1-LIFNR&' LFA1-LIFNR.
perform set_textsymbol using '&LFA1-NAME4&' LFA1-NAME4.
perform set_textsymbol using '&EKKO-WAERS&' EKKO-WAERS.
perform read_text using 'F15' DTEXT-TDLINE.
if dtext-tdline is initial.
if ekko-ekgrp eq 'CP1' or ekko-ekgrp eq 'C03' or
ekko-ekgrp eq 'P01' or ekko-ekgrp eq 'P02' or
ekko-ekgrp eq 'P03' or ekko-ekgrp eq 'P04' or
ekko-ekgrp eq 'P08'.
move 'Requisitioner.' to DTEXT-TDLINE.
elseif ekko-ekgrp eq 'CP2' or ekko-ekgrp eq 'C01' or"B0691
ekko-ekgrp eq 'C04' or ekko-ekgrp eq 'P05' or
ekko-ekgrp eq 'P06' or ekko-ekgrp eq 'P07' or
ekko-ekgrp eq 'P09' or
ekko-ekgrp eq 'C05'. "B0691
move 'Accounts Payable.' to DTEXT-TDLINE.
else. "B0691
move 'Accounts Payable.' to DTEXT-TDLINE. "B0691
endif.
endif.
t9s02-text4 = DTEXT-TDLINE(17).
perform set_textsymbol using '&T9S02-TEXT4&' T9S02-TEXT4.
CLEAR GV_NO_CONTRACT.
perform read_text using 'F13' T9S02-TEXT7.
IF T9S02-TEXT7 IS INITIAL. "Buyer did not type anything
MOVE 'stipulated at the end of this PO.' TO T9S02-TEXT7.
MOVE 'X' TO GV_NO_CONTRACT.
ENDIF.
perform set_textsymbol using '&T9S02-TEXT7&' T9S02-TEXT7 .
SELECT SINGLE VERKF into LFM1-VERKF
FROM LFM1
WHERE LIFNR = EKKO-LIFNR
AND EKORG = EKKO-EKORG.
perform set_textsymbol using '&LFM1-VERKF&' LFM1-VERKF .
loop at l_doc-XEKPO into ekpo where zwert = 0.
if ekpo-peinh ne 0.
ekpo-zwert = ( EKPO-MENGE * EKPO-NETPR ) /
( EKPO-PEINH * 1000 ).
else.
ekpo-zwert = ( EKPO-MENGE * EKPO-NETPR ) / 1000 .
endif.
modify l_doc-XEKPO from ekpo.
endloop.
clear: gv_print, gv_terms, gv_tcode.
gv_print = tnapr-FUNCNAME.
gv_terms = tnapr-sform.
gv_tcode = tnapr-FONAM5.
call function 'Z_ME_PRINT_PO'
exporting
ix_nast = l_nast
ix_druvo = l_druvo
doc = l_doc
ix_screen = ent_screen
ix_from_memory = l_from_memory
ix_toa_dara = toa_dara
ix_arc_params = arc_params
ix_fonam = tnapr-fonam "HW 214570
gv_no_contract = gv_no_contract
gv_print = gv_print
gv_terms = gv_terms
gv_tcode = gv_tcode
end of additions
importing
ex_retco = ent_retco.
endform.
did i miss anything in the coding? pls advice
hi,
There are two options.
1. Change the output medium of the output type to Print putput 1(No 1).
2. For the sender customer go to transaction XD02 and give your mail ID instead of the customers and check. You will get the output in PDF format.
Thanks,
Kasiraman R
Similar Messages
-
Problem with PO email output type
hi guys,
we have done the setting for PO email output type DEML with transmission medium 5 External Send, program SAPFM06P form MEDRUCK.
we have done setting at MN04 as well, but when we preview at PO, no form display is coming out , and if i cancel the output, it got error Element TOTAL_NET_VALUE window MAIN is not defined for form MEDRUCK
pls adviceHi Anya,
The setting is suggested by oss note 191470 , medruck is standard form, why i need to change this form if it is as per note 191470 suggested .. then i changed to our customised program and form, another error message occurs Text ID F13 language EN not found , how come all these weird msgs are coming out.. pls advice -
Output type is used for sending / printing "schedule lines" against sch agr
hi
which output type is used for sending / printing "schedule lines" against sch agreement
LPET or LPH1?
saraHi Sara,
It is LPET.
Thanks & Regards,
Kiran -
Unable to print / preview the invoice
Hi Friends,
I am unable to print / preview the invoice output i.e in VF02 > Billing Document Tab> Issue--> print preview, there is no response from the system inspite of output being assigned.
When I tried to Check the same in VF31 T.code the message is " Message Cannot be processed: objects(s) blocked" . and the message No is " VN073"
Regds
RajivHi Rajiv,
This is an authorisation issue. Please ask your BASIS person to check your user authorisation for billing related programs. This will help you.
Award points if useful.
Regards,
Emaya -
Delivery Note By Email -Output type LD00
Hi All,
We have a requirement to send delivery note by email.
At the moment we are using output type LD00.
I've created a similar output type with a transmission medium '5'.
But it is not triggering any email.Can you pelase advice what do I need to do in order to trigger an email.
Thanks
VenkatHi Santhosh,
I've checked in NACE transaction ,Partner function SH is already assigned to it.
Can you pelase give me the steps to create a new output type in NACE.
Here is how I've created:
1.NACE->V2 Shipping->Output types->New Entries->ZLDM(New output type)
In processing routines:
Transm.Medium: 5
Program ZVADDN00
FORM routine ENTRY
Form ZRVDELNOTE00
Partner Functions:
External send SH Ship-to party
Then I went to Procedures:
I've added my new output type here.
Do I need to do anything else?Please let me know.
Thanks
venkat -
EMAIL Output Type for order confirmation
We have created a custom output type to send an email confirmation. The config was done with transmission medium 7. RSNASTSO has been copied into ZRSNASTSO as processing program and the routine being called within this program is SAPOFFICE_AUFRUF_VX. The output determination process works upon creating and saving the sales order. However, we were not able to debug the ZRSNASTSO program since the va01/va02 t-code doesn't stop where the break-point was set. The processing log shows that the ZRSNASTO routine SAPOFFICE_AUFRUF_VX as being executed. Any inputs on this is higly appreciated.
have to checked out output type is taken in output of the SO .
check VA02->Extras>output--->Edit, here u have to check the o/p type.
Regards
Prabhu -
We have created a custom output type to send an email confirmation. The config was done with transmission medium 7. RSNASTSO has been copied into ZRSNASTSO as processing program and the routine being called within this program is SAPOFFICE_AUFRUF_VX. The output determination process works upon creating and saving the sales order. However, we were not able to debug the ZRSNASTSO program since the va01/va02 t-code doesn't stop where the break-point was set. The processing log shows that the ZRSNASTO routine SAPOFFICE_AUFRUF_VX as being executed. Any inputs on this is higly appreciated.
Jayant.Hi,
Have the UPDATE DEBUGGING ON..As the messages are triggered in UPDATE TASK..
Set a break-point in the function module RV_MESSAGES_UPDATE and have the update debugging on..
Then when the debugging comes to the FM RV_MESSAGE_UPDATE..do a single step where the subroutine configrued in NACE will be called..
Thanks,
Naren -
Email Output type : No Automatic trigger of output type while saving doc.
Hi Gurus - To trigger an email from the output type, I've configured a output type with medium as 5(external send) with communication strategy and created condition records with medium as 5 to trigger immediately.
While creating corresponding document, the output is not automatically determined, it required to manually feed the output type every time. Can you please provide if any settings were missed to trigger immediately!!
In Output analysis showing a message as "No print data determined for the communication strategy"
Steps:
1. Configured the output type with Medium as"5" and associated partner functions.
2. Created the condition records with medium as 5 and trigger immediately.
Thanks,
SreeHi ,
while maintaining condition record for output type when you click on communication method, give logical destination as 'LP01'.Hope this will solve.PLease let me know if you have any issues on this.
Thanks and regrads,
Rajeshwar -
How to find output type givenSapscript form name and print program name
Hi Experts,
Can anyone tell me how to find the output type of a sapscript form if the print program name and sapscript form name is
known.Hi,
There are two ways:
1. Use table TNAPR .. Here is table give PGNAM as your print program name and FONAM as form name.. Now the field KSCHL will be the output type assigned to your script.
2. You can also check the NACE t-code.. In that select a application(Corresponds to your area) -> click on Output types tab -> Here you get list of output type.. You need click on Processing Routine folder to get all other info.. -
New Email output type: How to make invoice 'Copy' rather than 'Original'?
Hello SD Friends-
FICO guy here. I created an output type to email invoices to customers however how do I change the invoice from saying 'Original' to 'Copy' when using this output type?
Thank you!!Actual logic should be first copy s Orginal and next copies as Copy or Duplicate, if you want the output alsways as copy, then ask your abaper to write logic that what ever output processing status, email output should send as Copy.
Please let me know if any questions.
Regards
Ramki -
Email's content for PO's email output type
hi guys,
I have created new output type for Po's emaling : DEML.
It can send email to the vendor, but how can i include email's content instead of sending email with attachment only ?
pls advice
thanksHi
Go to MN04 and select the Porg/DocType/Vendor; Input vendor number, partner role, medium 7 and timing 1 and click on communication tab. It takes you to "Note to receipient". Add your text there and it will be sent as email bod text. <REMOVED BY MODERATOR>
Edited by: Alvaro Tejada Galindo on Apr 10, 2008 5:54 PM -
I am having problem in executing email output in order.In customer master email address is mentioned correct.But from order when I am executing the email output its going to some the customer email address not the one which is mentioned in the customer master.Can anybody tell me why it is happening??
Dear Chakri,
As per my thinking this the cause for your problem so please check regarding that,
Go to VA02 transaction there you enter your Sales order no which is in the problem ,then click on sales document (at top of the left corner) --> Issue output to , system will take you to output popup screen there you click on print options it will take you to details of the issue output, there you check who is Recipient of that output at Recipient field and medium of the output.
If recipient is different change the recipeint to whom you wan to send the mail.
I hope it will help you
Thanks,
Murali. -
How to find out the driver program and script for print preview for PO
Hi All,
We are getting some text output on the print preview of a purchase order.
How can we determine the driver script and the corresponding print program for this.
Can you please guide on this.
Thanks in advance.
Regards,
SanjeetHi,
check with below table
TNAPR --- Processing programs for output
and NACE Transaction code
NACE -- out types
Regards,
Madhu -
Condition type add in to PO Printing/ Preview
Dear Friends,
we added one condition type like Absolute Discount (Amt) basis. PO is perfect. but while seeing Print Preview or taking Print Out this condition type not showing..
please advice how to solve this....
i hope ....
with regards,
Rajesh GHi
Ok Fine....I have one doubt whether u hav written any subroutine for this program or u hav modified driver program...
Suppose if u wrote Subroutine Program : put break point in Itcsy structue see whether the key fields r coming from script if so check whether the amount is passing to final table i mean u hav declare out_tab structure right? If its not passing means type conflict of declaration of tat variable...So declare tat amount type as string and see...
If u modified standard program means check whether the value is coming corrrectly in program or not what ever ur calculkating....
and put activate debugger in script, we can find any issues... -
Unable to print preview adobe form
hi to all,
i was developing a simple abobe form to display text fields with a single input. when i give print preview, the same input screen is displyed again but in display mode. i used latest adobe reader. please help me out. thanks in advance.the problem was with the ADS. As i was using IDES the patch level is 9 and for proper functioning of ADS the patch level should be 13. because of that only the ADS had problem and i was unable to view the print preview.
thanks Chintan and Nelis for helping out.
Rajesh...
Maybe you are looking for
-
Since upgrading to iTunes 11.1.2 it won't launch - I'm stuck
I updated a week ago and have been unable to launch iTunes ever since. The repair tool times out each time so that's no use. If I have to uninstall and reinstall, do I need to make backups of my library and files first? I am not sure how to go about
-
Can you use find my iPhone with iPad and iPhone and the same icloud account for both?
I have an iPhone and iPad. I use find my iPhone for both. If I use the same icloud account for both, how do I separate them on the map, or if I lose one and want to remote wipe the lost one but not the one in my possession?
-
I moved to London in December after buying my iBook in the States. I'm not living here forever, so I bought some travel adapters to make my stay here easier. I've been using the England adapter since I got here, and this weekend started to notice tha
-
Problems Mountain Lion and TexShop
Hello, I have problems when I'm running TexShop on my MacBook Pro (I have Mountain Lion). The screen freezes and I can't select any option, if I'm listening to music I can listen to it but I can't do any other function. The only solution is to boot t
-
Hi, I have a jspx file that has a backing java file. In the jspx file I have inputText components whose values are binded to a database. In the java file, I can get the values of these inputText components like this: String fn = bindings.get("firstNa