How to Provide Mailing/fax Facility from a report Pg
Hi all, We are trying to provide a mailing/fax facility through a report pg. We got following Error messages in "Procesing logs"
1.No communication type from strategy 1 could not be used.2.Communication type cannot be used
following is what we have done in report pg
1-set nast-nacha = 5 (mail/fax facility in output type)
2-created a Z-table for storing sender/recepiant Address
3-following is the code
IF NOT NAST-TCODE IS INITIAL AND NAST-NACHA EQ '5'.
... use stratagy to get communication type
CALL FUNCTION 'ADDR_GET_NEXT_COMM_TYPE'
EXPORTING
STRATEGY = NAST-TCODE
ADDRESS_NUMBER = ADDR_KEY-ADDRNUMBER
PERSON_NUMBER = ADDR_KEY-PERSNUMBER
IMPORTING
COMM_TYPE = LVS_COMM_TYPE
COMM_VALUES = LVS_COMM_VALUES
EXCEPTIONS
ADDRESS_NOT_EXIST = 1
PERSON_NOT_EXIST = 2
NO_COMM_TYPE_FOUND = 3
INTERNAL_ERROR = 4
PARAMETER_ERROR = 5
OTHERS = 6.
IF SY-SUBRC <> 0.
retcode = sy-subrc.
SYST-MSGTY = 'E'.
perform protocol_update.
ENDIF.
ENDIF.
convert communication data
MOVE-CORRESPONDING NAST TO LVS_SNAST.
MOVE SY-REPID TO LVF_PROGRAM.
CALL FUNCTION 'CONVERT_COMM_TYPE_DATA'
EXPORTING
PI_COMM_TYPE = LVS_COMM_TYPE
PI_COMM_VALUES = LVS_COMM_VALUES
PI_SCREEN = US_SCREEN
PI_COUNTRY = US_COUNTRY
PI_REPID = LVF_PROGRAM
PI_SNAST = LVS_SNAST
IMPORTING
PE_ITCPO = LVS_ITCPO
PE_DEVICE = LVF_DEVICE
PE_MAIL_RECIPIENT = LVS_RECIPIENT
PE_MAIL_SENDER = LVS_SENDER
EXCEPTIONS
COMM_TYPE_NOT_SUPPORTED = 1
RECIPIENT_CREATION_FAILED = 2
SENDER_CREATION_FAILED = 3
OTHERS = 4.
IF SY-SUBRC <> 0.
RETCODE = SY-SUBRC.
SYST-MSGTY = 'E'.
PERFORM PROTOCOL_UPDATE.
ENDIF.
check retcode eq 0.
if there is a communication strategy used ...
IF NOT NAST-TCODE IS INITIAL AND NAST-NACHA EQ '5'.
Title of the mail
LVS_ITCPO-TDCOVER = 'X'.
Clear LVS_ITCPO-TDTITLE .
To get the text
gv_DOMNAME = 'VBTYP'.
gv_VALUE = GV_VBTYP.
CALL FUNCTION 'DD_DOMVALUE_TEXT_GET'
EXPORTING
DOMNAME = gv_DOMNAME
VALUE = gv_VALUE
LANGU = Nast-spras
IMPORTING
DD07V_WA = W_DD07V.
For order
IF GC_TYPE = 'ORDER'.
Concatenate 'adidas' W_DD07V-DDTEXT GV_VBELN
into LVS_ITCPO-TDTITLE SEPARATED BY SPACE.
Select single * from Ztable
where vkorg = gv_vkorg and
vbtyp = gv_vbtyp and
type = 'S'.
SWC_CONTAINER LT_CONTAINER.
Create sender using sender mail address from new table
SWC_CLEAR_CONTAINER LT_CONTAINER.
SWC_CREATE_OBJECT L_SENDER 'RECIPIENT' SPACE.
SWC_SET_ELEMENT LT_CONTAINER 'AddressString'
Ztable-SENDER.
SWC_SET_ELEMENT LT_CONTAINER 'TypeID' 'B'.
SWC_CALL_METHOD L_SENDER 'CreateAddress' LT_CONTAINER.
IF SY-SUBRC NE 0.
MESSAGE ID SY-MSGID TYPE 'E' NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4
RAISING SENDER_CREATION_FAILED.
ENDIF.
SWC_OBJECT_TO_PERSISTENT L_SENDER LVS_SENDER.
ENDIF.
When we use Tcode SOST we find the 'order sent by report pg is "waiting in queue for communication service"(it is a warning message)with the sender and receiver name present.
What is that we are missing out. help required..!!
Hi,
Try this.
In SOST goto <b>UTILITIES-->Start send process</b>
In the Pop up select the <b>Trans.Method</b>.
This should work.
If not then there might be some settings missing to
send mail.
Regards,
GSR.
Similar Messages
-
HT201250 How to recover mails of outlook from time machine
How to recover mails of outlook from time machine
This worked for me:
From Time Machine, restore a good backup of the entire "/Users/james/Library/Application Support/Address Book" folder to a different location, like to a folder on your desktop.
(note: the Library folder typically won't show up in Finder. To make it visible, in Terminal, issue this command:
defaults write com.apple.finder AppleShowAllFiles YES
then restart Finder: killall Finder )
Go offline. Do whatever you need to do to get completely disconnected from the internet (turn off Wireless, unplug the ethernet cable, etc.). Otherwise, iCloud will immediately overwrite your restore.
Delete the real folder: /Users/james/Library/Application Support/Address Book
Copy your restore (at the different location), to the real location ( /Users/james/Library/Application Support/Address Book )
Restart Contacts. Your restored data you want should be there. Before going online again, Export all these contacts (File - Export - etc...)
Go online again. iCloud will wipe out your Address Book with what's on iCloud. Re-import contacts as needed from your Export. -
How to submit a concurrent request from Discoverer report.
I would like to know If any one has tried submitting a concurrent request from Discoverer Report?_
This is no stupid question, but our team here finally decided with a solution to our long pending issues with few of the discoverer report. To Proceed further, we would like to know, how to submit a concurrent request from Discoverer report?
We are looking for calling a package from the Disco admin by passing the parameters from the disco to the 6i report.
All help us in this regards are much appreciated.
Kindly help us in the same!
Thanks
ArunThanks Rod for confirming the same.
I will be trying the same today and will let you know if I succeed in doing it.
If I can share the actual requirement with you, it goes like this.
"I will be triggering the Oracle 6i standard AP Trail balance report through the Disco report. The standard report will be inserting the required data to one of my custom table. Once the concurrent program completes normal, my custom table will be having the required data to create the workbook specific to the current run of the concurrent program.
The one problem which I think could happen is, How can I make my disco report to wait till the standard program to complete in normal so that my disco report can be generated with the data from custom table.
Will the above requirement is possible If I follow the way you mention in the PDF or Could you suggest a better way for achieving the same.
In short, my requirement is: The custom table(say XX_TABLE) will be populated with data when the standard 6i report is run and the disco admin will be making of the custom table (XX_TABLE) to generate the report.
Please advice.
Thanks
Arun -
How to download data in excel from web report in sap ?
how to download data in excel from web report made in sap abap?
through tcode smw0.for exemple using
MS_EXCEL_OLE_STANDARD_DAT -
How can I view customer information from SOST report to whom mail was sent to?
Process I have followed:
I run F.27 transaction to send the monthly account statements to customer, I can see the detail of the mails sent to customers from SOST report but a recent requirement has come up and I want to see the detail of customer e.g. Customer Number, Customer Name e.t.c. these details are not visible in SOST report. As I am sending mail to multiple customers hence I can not use the display document feature to view them independently.
In SOST report I can see only the email address to whom the mail was sent to, but how can I see the customer's number or Customer name to whom mail was sent to. Is there any other way to view this detail?This works! But when I assign C_FINAA-MAIL_BODY_TEXT to a text lets say:
*C_FINAA-MAIL_BODY_TEXT in the process exit 2310*
C_FINAA- MAIL_BODY_TEXT = 'Hello'.
It does not display in the email body, do you know what might be the problem here? -
How to receive mail on iPad from two different addresses
how to receive e mail on iPad from two different addresses and using these same two addresses receive e mail on computer
Go to mail in settings and add the new account
User guides
http://manuals.info.apple.com/MANUALS/1000/MA1595/en_US/ipad_user_guide.pdf -
How to provide formulae for the columns in report based on date column
Hi,
How can we provide formulae for the columns in report, where each column is based on another Date Column.
Can anyone suggest on this.
ThanksHi Manu,
I think you a logical column X on which you created another Logical Column Y.
Now you want 'Y' to be filtered based on Date Column.
1. If, my assumption is right - You can do your requirement i.e. Filtering the logical col. 'Y' on Reports.
Else,
2. See - Your Logical column 'Y' While creating log. column 'Y' make sure you use any expression builder to filter across Date column. (i.e. using any case statements or where clause).
Else,
3. Make sure your First Logical column comes from Table by default (i.e. Create the same col. in d/b so it would be your Physic col. )
Thank you.
Edited by: GRK on Jan 28, 2013 7:48 AM -
How can I print PDF attachments from ABAP report in transaction ME23N?
Hi,
Users attach PDF files using "services for objects" in transaction ME23N.
How can I print the PDF attachments from ABAP report ?
Thanks in advance,,Hi,
check this link,this might help you to solve your problem
/people/thomas.jung3/blog/2005/04/28/setting-up-an-adobe-writer-for-abap-output
Regards
Kiran Sure -
How to generate a Text file from a Report
Hi Friends,
I need to generate a Text file foramat from my Report.My client is having a text file in a standard format.I need to Generate this Text file according to that text format.
My requirement is For one production order there will be so many line items and for each line item based on its Quantity i need to generate serial numbers.
For Ex for Production order 100 there r 3 line items.If 1st line item is of Quantity 20.I need to Generate 20 serial numbers for the 1st line item and the same for the remaining line items also.
How can i proceed.I need to do dis based on the production order Number.
In d selection screen i need to put the fields Production order Number and From:----
To:----
and u button Generate Text file.If I click on Generate Text file Text file should be generated.
Thanks & Regards,
Chitty.
Edited by: chitty d on Mar 12, 2009 5:44 AMHi,
As far as i understand from your requirements, it like you need all the data item leve into a text file.
You can fetch all the relevant data from variuos tables and then use GUI_Download into a text file. -
How to call dynamic selection screen from another report
hi,
i have transaction ZFAGLL03.
it has got standard selection screen.. and dynamic selection screen...
i am calling this transaction from another report, now how do i display this dynamic selection screen.....Try following code and see if it helps:
TYPE-POOLS : rsds.
TABLES:tgsb.
DATA: trange TYPE rsds_trange,
trange_line
LIKE LINE OF trange,
trange_frange_t_line
LIKE LINE OF trange_line-frange_t,
trange_frange_t_selopt_t_line
LIKE LINE OF trange_frange_t_line-selopt_t,
trange_line1
LIKE LINE OF trange,
trange_frange_t_line1
LIKE LINE OF trange_line-frange_t,
trange_frange_t_selopt_t_line1
LIKE LINE OF trange_frange_t_line-selopt_t,
texpr TYPE rsds_texpr.
DATA: seltab TYPE TABLE OF rsparams WITH HEADER LINE,seltex TYPE rsds_texpr.
SELECT-OPTIONS:so_gsber FOR tgsb-gsber.
LOOP AT so_gsber.
trange_line-tablename = 'FAGLFLEXA_FS'.
trange_frange_t_line-fieldname = 'RBUSA'.
MOVE-CORRESPONDING so_gsber TO trange_frange_t_selopt_t_line.
APPEND trange_frange_t_selopt_t_line
TO trange_frange_t_line-selopt_t.
ENDLOOP.
APPEND trange_frange_t_line TO trange_line-frange_t.
APPEND trange_line TO trange.
CALL FUNCTION 'FREE_SELECTIONS_RANGE_2_EX'
EXPORTING
field_ranges = trange
IMPORTING
expressions = texpr.
submit FAGL_ACCOUNT_ITEMS_GL with FREE SELECTIONS texpr AND RETURN . -
How to Derive the Card Number from Expense report Invoice
Hi,
How can we derive Card Number(iExpense) from Expense Report Invoice number.
By expense report invoice number i mean, once the expense reports are created in iExpense we import those reports into payables which in turn will create an Invoice.
I want to find the Card Number which on the credit card transactions(ap_credit_card_trxns_all) from Invoice Number, How can we do this.
Thanks
Sandeepyou can try this query
select aid.distribution_line_number,acct.card_number
from ap_invoices ai, ap_invoice_distributions aid, ap_expense_report_lines aerl, ap_expense_report_headers aerh, ap_credit_card_trxns acct
where ai.invoice_id = aid.invoice_id
and ai.invoice_id = aerh.vouchno
and aerh.report_header_id = aerl.report_header_id
and aid.distribution_line_number = aerl.distribution_line_number
and aerl.credit_card_trx_id = acct.trx_id(+)
and aerh.invoice_num -
How can I use unix commands from oracle report
I have to use the following command from oracle reports.
In oracle forms we can use the HOST command but what about oracle reports2.5.
I have to email the attached file 100245.pdf from oracle reports to the given email id
uuencode 100245.pdf 100245.pdf | mailx -s "test" [email protected]Hi,
It's because .bat (or .cmd) files are scripts and not executables and are interpreted using the command line executable - which is normally cmd.exe (although you can buy others).
So you need to call cmd.exe passing the bat file name as a parameter, something like
cmd.exe /c batchfilename
Without the /c you will never get a response.
However, this brings us to the bizarre conclusion that you are going to:
call cmd.exe (a shell interpreter)
to launch a batch file
that calls cygwin (another shell interpreter)
which then runs ls
When shouldn't that just be:
call cmd.exe to run the dir command
Or better yet, If you are just after a file name listing and you seem to understand Java stored procs, why not just write a JSP to list the contents of a directory? No problems with OS dependant commands, scripts and 3rd party interpreters. Plenty of examples of that out on the internet as well.
HTH
Chris -
How to print directly to Printer from Crystal Report Viewer ?
Hi All,
We are integrating our Java Web Application with Crystal report XI, currently using JRC and export to PDF for user to preview and print to local printer.
Now there is new requirement :
Some clients is using thin client terminal (no harddisk, only has OS +Browser in ROM), so I cannot install Acrobat Reader for them to preview&print the report.
So I am looking at Crystal Report Viewer, the question is : Can I print from Crystal Report Viewer directly to local printer without first converting it to PDF (because I can't have acrobat reader installed) ??
Thank you very much,
Krist
IndonesiaHi,
It can't be achieved through XI.
JRCXI R2 SDK offers the ability to print the report server side
using the PrintOutputController using printReport(PrintReportOptions printReportOptions) method.
Here is the code(for XIR2):
import="com.crystaldecisions.reports.sdk.*"
import="com.crystaldecisions.sdk.occa.report.lib.*"
import="com.crystaldecisions.sdk.occa.report.document.*"
try {
final String REPORT_NAME = "Inventory.rpt";
ReportClientDocument reportClientDoc = new ReportClientDocument();
reportClientDoc.open(REPORT_NAME, 0);
//Create and set print options.
PrintReportOptions printOptions = new PrintReportOptions();
//Note: Printer with the 'printer name' below must already be configured.
printOptions.setPrinterName("
10.10.45.220
BOBJ 2C");
printOptions.setJobTitle("Sample Print Job from JRC.");
printOptions.setPrinterDuplex(PrinterDuplex.horizontal);
printOptions.setPaperSource(PaperSource.auto);
printOptions.setPaperSize(PaperSize.paperLetter);
printOptions.setNumberOfCopies(1);
printOptions.setCollated(false);
PrintReportOptions.PageRange printPageRange = new PrintReportOptions.PageRange(1,1);
printOptions.addPrinterPageRange(printPageRange);
//NOTE: If parameters or database login credentials are required, they need to be set before.
//calling the printReport() method of the PrintOutputController.
reportClientDoc.getPrintOutputController().printReport(printOptions);
reportClientDoc.close();
out.println("Successfully sent report to the printer.");
catch(ReportSDKException ex) {
out.println(ex);
Please revert in case you have any query.
Thanks,
Neeraj -
How to pass the primary key from a report to multiple forms
I am trying to build an application that tracks a person's training records. I have a report and 3 forms (all tabbed). From the report I can click the edit link to modify a person. Is there a way I can pass the primary key of the person (from the report) to the other forms? Hope what I'm trying to do is clear.
Thanks.Hi,
You can specify items from other pages also.
Did you use that popup to pick item ?
Did you noticed that it filter by page where your link point. You can remove filter from popup and then select other items.
Or just manually type your item names
Br, Jari
Edited by: jarola on Nov 11, 2009 1:08 AM -
How to determine the Support Team from the Reported by?
Hello Everyone,
I am working with Solution Manager 4.0 and I want to use Automatic Partner Determination in Service Desk. My employer wants the Support Team (SLFN0003) to be determined by the Reported by (SLFN0002).
There are already parts of the Automatic Partner Determination that work, like determining the Sold-to Party from the IBase component. Because of that I believe the customizing leading to a correct Partner Determination Procedure is working. But somehow I cant seem to get the determination of the Support Team from the Reported by to work. Hopefully someone can help me on this matter.
Thanks in advance!
Best regards,
Michael Sitalmethod if_ex_order_save~check_before_save.
data gs_status type zsmgl_status.
data lt_tguid type crmt_object_guid_tab.
data lt_orderadm_h type crmt_orderadm_h_wrkt.
data lt_status type crmt_status_wrkt.
data ls_status like line of lt_status.
data lt_partner type crmt_partner_external_wrkt.
data ls_partner like line of lt_partner.
data lt_partner_h type table of crmt_partner_com.
data lt_partner_h1 type crmt_partner_comt.
data ls_partner_h like line of lt_partner_h.
data ls_field_names type crmt_input_field_names.
data lt_field_names type crmt_input_field_names_tab.
data lv_logical_key(42) type c.
data lt_input_fields type crmt_input_field_tab.
data ls_input_fields like line of lt_input_fields .
data gt_partner_h type crmt_partner_external_wrkt.
data gs_partner_h like line of gt_partner_h.
data lt_cjest type table of crm_jest.
data ls_cjest type crm_jest.
clear lt_status.
clear lt_partner.
clear lt_orderadm_h.
insert iv_guid into table lt_tguid.
call function 'CRM_ORDER_READ'
exporting
it_header_guid = lt_tguid
importing
et_status = lt_status
et_orderadm_h = lt_orderadm_h
et_partner = lt_partner
exceptions
document_not_found = 1
error_occurred = 2
document_locked = 3
no_change_authority = 4
no_display_authority = 5
no_change_allowed = 6
others = 7.
if sy-subrc = 0.
Get in only if status is changed to Inprogress.
clear ls_cjest.
select single * from crm_jest into ls_cjest where objnr = iv_guid and inact = ' '.
if ls_cjest-stat = 'E0010'.
read table lt_status into ls_status with key status = 'E0002'.
if sy-subrc = 0.
Read Status from Intermidiate Table.
select single * from zsmgl_status into gs_status
where guid = iv_guid
and stat = 'E0002'
and inact = ''.
if sy-subrc = 0.
make copy to _h table
loop at lt_partner into ls_partner.
move-corresponding ls_partner to ls_partner_h.
append ls_partner_h to lt_partner_h.
clear ls_partner_h.
endloop.
loop at lt_partner_h into ls_partner_h where partner_fct = 'SLFN0003' or partner_fct = 'SLFN0004'.
case ls_partner_h-partner_fct.
when 'SLFN0003'.
ls_partner_h-ref_partner_no = gs_status-partner_number.
ls_partner_h-partner_no = gs_status-partner_number.
modify lt_partner_h from ls_partner_h transporting ref_partner_no partner_no.
clear ls_partner_h.
when 'SLFN0004'.
if gs_status-bu_partner is not initial.
ls_partner_h-ref_partner_no = gs_status-bu_partner.
ls_partner_h-partner_no = gs_status-bu_partner.
else.
ls_partner_h-partner_no = ' '.
ls_partner_h-ref_partner_no = ' '.
endif.
modify lt_partner_h from ls_partner_h transporting ref_partner_no partner_no.
clear ls_partner_h.
endcase.
endloop.
endif.
lt_partner_h1[] = lt_partner_h[].
loop at lt_partner_h1 into ls_partner_h where ref_partner_fct = 'SLFN0003' or ref_partner_fct = 'SLFN0004' .
clear ls_field_names.
ls_field_names-fieldname = 'PARTNER_FCT'.
insert ls_field_names into table lt_field_names.
ls_field_names-fieldname = 'PARTNER_NO'.
insert ls_field_names into table lt_field_names.
ls_field_names-fieldname = 'DISPLAY_TYPE'.
insert ls_field_names into table lt_field_names.
ls_field_names-fieldname = 'NO_TYPE'.
insert ls_field_names into table lt_field_names.
ls_field_names-fieldname = 'KIND_OF_ENTRY'.
insert ls_field_names into table lt_field_names.
ls_input_fields-ref_guid = iv_guid.
ls_input_fields-ref_kind = 'A'.
ls_input_fields-objectname = 'PARTNER'.
ls_input_fields-field_names = lt_field_names.
lv_logical_key = '0000'.
lv_logical_key+4 = ls_partner_h-partner_fct.
lv_logical_key+12 = ls_partner_h-partner_no.
lv_logical_key+28 = ls_partner_h-ref_display_type.
lv_logical_key+30 = ls_partner_h-ref_no_type.
ls_input_fields-logical_key = lv_logical_key.
insert ls_input_fields into table lt_input_fields.
endloop.
call function 'CRM_ORDER_MAINTAIN'
exporting
it_partner = lt_partner_h1
changing
ct_input_fields = lt_input_fields
exceptions
error_occurred = 1
document_locked = 2
no_change_allowed = 3
no_authority = 4
others = 5.
endif.
endif.
endif.
endmethod
Maybe you are looking for
-
file dropdown with an send option help
-
Problem Installing Air on 2 Macs
I'm having a problem installing Air on 2 macs. The symptoms are the same - the installer launches and nothing else happens. Configuration 1: Macbook Pro (Feb 2008); 2.5 GHz; MacOS 10.6.3 Configuration 2: PowerMac G5; dual 2.5 GHz; MacOS 10.5.8 Both
-
Why won"t my newly downloaded movies play in Itunes. when my computer is authorized
After purchasing two movies on Itunes, I cant watch them in Itunes due to Authorization issues. even though my computer is authorized.
-
Hello all, I am importing a dump of size 17 GB (Production server dump). Its running pretty slow. Can anyone tell me how much sizes I should give for rollback, redo etc. Request any way of improving import performance. Regards, Ravi Duvvuri
-
What Driver name/class and url are to be provided?
I have created a new alias for jdbc in the portal along with the user-mapping...........as a result i can see jdbc system in the system drop-down box.............but i m having some problem while making the connection with portal as it is asking for