ABAP List Faxing using BCS method ( Business communication service )
Experts,
I have a requirement where we are faxing the ABAP list as it gets generated .
I am using NEW-PRINT ON and NEW-PRINT OFF , to get the ABAP list in a spool request , and then get the spool contents using function module : 'RSPO_RETURN_SPOOLJOB'
I then use Class / methods provided by Business communication service , such as :
cl_cam_address_bcs=>create_fax_address ,to send this spool content to Fax gateway .
My fax goes , but the fax output list is in X_65_255 format, whereas i want the fax output to be in X_65_132 ..
My REPORT statement does have X_65_132 as line count / line size BUT somehow the Fax output does not take this list format .. ANY IDEA's ????
Would appreciate your reply .
Ashutosh
Naimesh,
I have passed page format X_65_132 in GET_PRINT_PARAMETERS , in export paramter ' Layout ' ... See code below :
write a list into spool
call function 'GET_PRINT_PARAMETERS'
exporting
line_count = sy-linct
line_size = sy-linsz
layout = 'X_65_132' <<< Page format
mode = 'BATCH'
immediately = ' '
list_text = htext_spool
list_name = 'ZV46 FAX'
no_dialog = 'X'
importing
out_parameters = print_parameters
valid = valid
exceptions
archive_info_not_found = 1 .
BUT still the fax coming out of our fax machine is compressed because i believe the outgoing fax is using page format X_65_255 .
Any idea why ????
Would appreciate your reply .
Ashutosh
Similar Messages
-
Accessing External List that uses BCS with CAML Query
Hi,
I have an external list that uses BCS to sql server. I can view the list with Lists.asmx web service GetLlistItems. However, I get an parameter error when trying to add to the list with UpdateListItems. I will be changing over sharepoint lists to sql
tables using BCS to connect to them and I need it to be seamless to clients that do CRUD operations using CAML. Are there any instructions on creating such an external list that maintains compatibility with ordinary sharepoint lists?CRUD options are fine.
Here's what I've done.
Created ECT.
Created Read list & read item options.
Set a limit for 200 items (for testing purposes only)
Created external list based upon ECT created above.
Opened external list in web browser and I'm able to open, edit & add items without issue.
What I'd like is to have a simple HTML type form above the list (like in a Content Editor web part with a few text boxes and a 'search' button. I've tried the link below but it either crashes Sharepoint Designer when I'm defining the parameters or
if it works there the button doesn't work.
http://arsalkhatri.wordpress.com/2012/01/07/external-list-with-bcs-search-filters-finders/ -
Using filters in business connectivity services
I am now completely confused by the BCS filter option. I added a Business Data List to a page and connected it to my external content type. Then I have configured 2 filters in SPD:
LocationID = User input (comparison)
AND
Address = wildcard
Default value for both is null and I checked to ignore the Filter if the value is null.
When I search for Address contains "City Name" it correctly returns items with that city in the address but when I search for Location ID equals 12345 it returns all of the items.
How can I fix this?
Thanks!Hi,
According to your post, my understanding is that you get all items when using filters in business connectivity services.
You need to make sure you define filter in external content type correctly.
If you refine the search results in the External Item picker, you can refer to:
How to: Define Filters for External Item Picker Controls
If you use Content Editor web part implement searching on the External List, you can refer to:
External List with BCS & Search Filters
Thanks,
Linda Li
Forum Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
[email protected]
Linda Li
TechNet Community Support -
System copy for ABAP+JAVA system using SAPINST method
Dear support,
We have recently upgraded to ECC 6.0 system and we have been still doing system copy by using backup and restore method. I know its<b> wrong</b>.
which involves below steps , this old methos works fine for ABAP engine and evreything looks ok.But java engine will not work.
So we need to use SAPINST method as described in note 785848 and system copy guide available on OSS. But i am really not able to understand sequence
for tasks to be carried out in this SAPINST method.
<b>Can anybody list few sequence along with step by step procedure as i mentioned below for old system copy procedure.</b>
Is it really difficult to make that for <b>SAPINST</b> as everybody says refer to standard guide and note ?
Anybody if possible can make the same way as i did below , i think it would rather be small as far as my understanding after reading those docs.
Simple old system copy procedure works for ABAP is as:
Run the following command on source system.
a. Login as <sid>adm
b. svrmgrl
c. connect internal
d. alter database backup controlfile to trace;
e. exit;
f. Above command will generate a .trc file in /oracle/P01/saptrance/usertrace directory.
g. Copy the text from CREATE CONTROLFILE until the ( and paste it in to any new .sql or controlfile.sql file.
h. Copy the controlfile.sql to target system.
i. Edit the file and replace the entire source SID to target SID.
j. Edit the reuse database command with the set database command
Copy the aft generated during the backup file from the source system to target system. (/oracle/<SID>/sapbackup)
a. Change all the source <SID> to target <SID>.
b. Only don't change the backup volume name it must be target system <SID>.
c. Copy the above aft file name line from the source back<SID>.log to target<SID>.log file.
5. Shutdown the target server instance.
6. From this onwards all the command on the target system only.
a. Login as <SID>adm
b. run the SAPDBA
c. select J (Restore/Recovery)
d. select B (Full restore and recovery)
e. select A (Select backup of type)
f. Select the offline backup which you want to restore.
g. It will take some time to restore.
h. Once the database is restored login as <SID>adm and run the
i. svrmgrl
j. connect internal;
k. startup nomount (if the database is already mounted shutdown it using the shutdown command)
l. run the following command
m. @controlfile.sql (file name of the control file contains the CREATE CONTROLFILE statement)
n. After the run the above command it should give the "Statement Processed)
o. alter database open resetlogs.
I am really looking forward to see anybody take some time out to prepare this kind of step by step procedure.
It would be of greate help for all of us for performing system copy with sapinst method.
Looking forward for your support.
Best Regards,
AjitRHi,
As per the guide you need to do source system Technical Preparations, in that running the export preparation is also one. You need to run this first before you start the export, if and only if export will successful if preparation is successful.
Yes you need to create the export directory to take the export copy of source system, it may be any where in your server. It should be having 6 to 8 GB free space.No need to create the export directory in target system, after export is completed in the source system you copy the export directory to the target system.
<b>Target system</b>
Yes you need to take the back up file system and delete all the contents of the directory.
Yes it can be considered as fresh system installation but copy of source system.
Yes the process follows after you giving the export directory path .
Next screen you will get the database drop and recreate screen chouse the drop and recreate method
Next J2EE user name and password
Next DDIC password
Next you have to give kernel and oracle client dvd path
Next Parameter checking screen here if you are selected database drop and recreate you have to revise the oracle database system option
If you are selecting review next screen is database advance option you have to select the advanced option
Next you have to select following option to recreate
1 Sapdata directory mapping
2 Database instance file system
3 Create database parameter
4 Create tablespace
Next screen sapdata directory creating
Next screen you can just click next no need to change any setting
Next table creation
Next screen specify oracle instance directories
Next again parameter checking and last this is last screen
Next will be the execution screen
Reward points if usefull -
List Display using Factort Method
Hi All,
I am using factory method of the class cl_salv_table to get the output in two dimension list display.
Now going further my requirement is that the user may select one or multiple rows and based on that further data is fetched and displayed in another screen.
Please suggest me something to achieve this functionality.
Thanks and Regards,
VivekHi ,
One more query.If we have to select few rows from the output display, how we will get that first column which is used to click for selection of row.
Regards ,
Vivek -
ABAP String processing using normal methods
I have a string like this:
A:12345;B:34324;C:443232;
Question 1)
How do I extract B:34324 from the above string?
Note: I can only use methods provided in ABAP programming (BC-ABA) such as split, CO, CA,etc
Question 2)
How do I know how many ';' characters the string contains?
Question 3)
How do I know the position of "B:" in the string?
Please help.
Thanks and best regards,Hi,
Question 3)
How do I know the position of "B:" in the string?
Check this
DATA a TYPE string value 'A:12345;B:34324;C:443232'.
DATA c TYPE i.
DATA d TYPE c.
DATA e TYPE i VALUE 0.
DATA f TYPE i VALUE 0.
c = STRLEN( a ).
DO c TIMES.
d = a+e(1).
e = e + 1.
f = f + 1.
IF d EQ 'B'.
EXIT.
ENDIF.
ENDDO.
WRITE f.
Thanks -
We have a requirement to send an Adobe PDF form to a FAX. I talked to an Adobe guy and told me that was possible, there is no need to reconvert in OTF, before posting this I search on SDN and found nothing.
First I am using the ABAP CL_BCS (Business Communication Services) class to send PDF has a fax, this is the same as for email, so far so good, it works for email but not for FAX, I am missing a piece in the puzzle but I think I am very close, my FAX is generated and visible in transaction SOST, but the light is red.
The only difference between FAX and EMAIL using BCS is when you create the recipient, it should looks something like this for FAX
recipient = cl_cam_address_bcs=>create_fax_address(
i_country = <lf_recipient>-c_country
i_number = <lf_recipient>-c_fax_number ).
Interrogation
In transaction SCOT, we have 2 nodes under TELEFAX, both active. When I saw my FAX in SOST, it's red, I can see by which node id it was assigned, how the system determine that ?
Wen you click on a telefax node, click on the set button where the checkbox for fax is, your are in the restriction dialog window, this is where you set the country and output type PDF, RAW, PCL, for example the first drow down is for SAPscript / Smartforms, we currently have PCL, it should be PDF ? But if I change the sapscript and smartforms maybe won't work ?
thanks for help
Alex
If we already have a node in transaction SCOT under TELEFAX, but this node is setup has PCL for SAPscript/Smartforms in the restriction, should we change it for PDF in the dropdown list, my guest is yes! But if we do, the smartforms & sapscript output will not fax correctly cause they are PCL, how can we have 2 nodes for PCL / PDF
you help is very welcome,
regards,
Alexandre GiguereHi I tried with the lowercase 's' in saveAs(),
I am still getting the same error
'UnsupportedValueError: Value is unsupported. ===> Parameter cConvID.'
Wierd thing is I am not getting the 'saveAs()' method as an option for the JSObj at all I am just forcibily typing it. May be, do you guys think I am missing any reference. I have a project reference for the Acrobat 9 com component (Component Name: Acrobat Typelib version 1.0, C:\Program Files\Adobe\Acrobat 9.0\Acrobat\Acrobat.tlb
Please help.
My exact code is:
Dim JSObj As Object, strPDFText As String
' Create Acrobat Application object
PDFApp = CreateObject("AcroExch.App")
' Create Acrobat Document object
PDDoc = CreateObject("AcroExch.PDDoc")
' Open PDF file
PDDoc.Open("D:\Applications\Test_winapp\PDFUtility\WindowsApplication1\WindowsApplication 1\sample.pdf") ' Path of some PDF you want to open
' Hide Acrobat application so everything is done in silent mode
PDFApp.Hide()
' Create Javascript bridge object
JSObj = PDDoc.GetJSObject()
' Create Tiff file
JSObj.saveAs("D:/Applications/sample.tiff", "com.adobe.Acrobat.tiff")
PDDoc.Close()
PDFApp.CloseAllDocs()
' Clean up
System.Runtime.InteropServices.Marshal.ReleaseComObject(JSObj)
JSObj = Nothing
System.Runtime.InteropServices.Marshal.ReleaseComObject(PDFApp)
PDFApp = Nothing
System.Runtime.InteropServices.Marshal.ReleaseComObject(PDDoc)
PDDoc = Nothing -
Send pdf (Adobe Form) as email attachment using BCS
Hello everybody!
I want to send a pdf, generated by Adobe Forms function module, as an email attachment to a certain external mail receiver. I have read that the methods of the Business Communication Services can render this, but I couldn't create a working solution. Can somebody give me a coding example for this scenario?
I would be very happy if somebody could help me!
Best regards,
MarkusHello Alex!
your link to this document was very helpful. The scenario described in the pdf is almost what I was looking for. The only problem is, that the mail is sent to the Business Workplace Inbox. I want to send it to an external e-mail address. When I change the programm part where the recipient is defined like this:
Create recipient
DATA lo_recipient TYPE REF TO if_recipient_bcs VALUE IS INITIAL.
DATA l_reci TYPE adr6-smtp_addr VALUE 'somemailaddress'.
lo_recipient = cl_cam_address_bcs=>create_internet_address( l_reci ).
Set sender
lo_send_request->add_recipient(
EXPORTING
i_recipient = lo_recipient ).
then no mail is sent to the recipients mailbox. I tried several variants but no mail is sent. Does somebody know how to set an external e-mail as recipient in this case?
Best regards!
Markus -
ALV list followed by ABAP list
Hi,
I have created an ALV list using REUSE_ALV_LIST_DISPLAY with checkbox.
After processing the checkbox selection in ALV list, I would like to display my results in the normal ABAP list. How can i use the usual TOP-OF-PAGE and END-OF-PAGE in the ABAP list?Use the event TOP-OF-PAGE DURING LINE-SELECTION to display the heading in the secondary list.
The system triggers this event for each detail list. If you want to create different page headers for
different list levels, you must program the processing block of this event accordingly, for example
by using system fields such as SY-LSIND or SY-PFKEY in control statements (IF, CASE).
As on the basic list, the page header of a detail list remains displayed even when you scroll
vertically.
top-of-page at line-selection.
case sy-lsind.
when 1.
write:/ 'Heading for first list'.
when 2.
write:/ 'Heading for second list'.
when 3.
write:/ 'Heading for third list'.
endcase. -
List recipe (tx. c201) in lsmw using recording method
Hi.
I'm trying to upload master data for recipe list (tx c201), and I'm not so sure which method I should use, i tried with an standard object but it works with idocs and i supposed to configure a lot of stuffs (ibounds, ports, etc), and using recording... how can i handle controls tables when the number of items it's variable?.
Reading through the sdn i realized that it's good to work with two files, one with master data and the second one with detail or item data. Actually i used that method to upload data in lsmw but using a standard direct input program and works pretty good..., but using a recording I don't know how to handle this.
Thanks in advance,
Regards.
Albio.-
Message was edited by: Albio Vivas
Message was edited by: Albio VivasGet your test data from functional folks then do the recording based on that. After done with the recording you may delete the existing values(which are used for recording). This is because, for example say you are having the data in an EXCEL sheet and for a particular customer one of the fields is empty. In this case, the DB will be updated with the value provided in the recording.
-
How to Insert Data in Database using BCS with out External List
Hi,
How to Insert,Update and Delete User Interface data using business connectivity service with out External List.Please suggest me solution.
Regards,
khadarOnce you've configured the external content type, you can interact with it using the BDC Object Models available to you. You can use server side or client side and interact with the database without an external list.
Check these links:
Server side:
http://msdn.microsoft.com/en-us/library/office/ff464357(v=office.14).aspx#sectionSection3
Client Side: http://msdn.microsoft.com/library/jj164116.aspx
Brandon Atkinson
Blog: http://sharepointbrandon.com -
How to use set_encoding method to set encoding in ABAP Mapping
Hi All,
Can anyone please let me know how to use set_encoding method in ABAP Mapping to set encoding.
Any help would be greatly appreciable.
Regards,
DinakarHi Stefan,
Thanks for your info. Let me try in ABAP Forum.
Regards,
Dinakar -
Printing A3 page format using ABAP List from SAP is a problem...
Hi Experts,
I am trying to print a standard output (ABAP List) A3 page size from SAP.
I used SWIN, SAPWIN, I9HP4 device types, but none of them worked.
I created page format type ZYEVMIYE 290MM 420MM and the page format L120, W200. In order to make it usable with page size is A3. Unfortunately this did not work either.
The behaviour of the problem is when I tried to print with the device types that mentioned above then printer indicator comes to an error. And nothing comes out from the printer.
Just to be on the safe side I made a test from windows self test, it resulted success with A3 page size format. So from this point of the view I got a thought that somehow SAP (selected device types) is not able to send correct signal to Printer for page size A3, because on the printer information screen displays load Tray2 for A4 this is showing that SAP sends Printer a signal for page format A4.
I need help on how to make SAP (selected device type) send a correct signal to Printer in order to printout A3 page size format.
Quick reply will much be appreciated.Hi,
At last i got a Solution to my Question.
The Problem is that in my SAP-Code they have been translated the PDF into 255 string.But i am retreiving using 132 string.So, i resolved in this way.
<b>For Each dr As DataRow In ds.Tables(0).Rows
Dim dataline As String = dr(0)
If dataline.Length < 255 Then
dataline = dataline.PadRight(255, " ")
End If
sb.Append(dataline)
Next.</b>
May be this Thread is useful to Others.
Regards,
Rajender. -
Hi all,
I'm looking for a standard tool to list the used ABAP objects (Reports, Include, Function Group, CLASSes) in a time
frame of one year or at least since the start-up.
My goal is the identification of the obsolete custom developments to dismiss it.
I have found the transaction SCOV but the goal of this transaction is the estimation of the code
coverage during the test.
Anyone can help me?
Thanks in advantageThis kind of data is stored in table MONI - Monitor table MONI (summarized cluster table!) and in some files of the application server (in the OS behind SAP)
- Transaction STAT or ST03n use data stored in these tables
- Some FM like [SAPWL_SERVLIST_GET_LIST|https://www.sdn.sap.com/irj/scn/advancedsearch?cat=sdn_all&query=sapwl_servlist_get_list&adv=false&sortby=cm_rnd_rankvalue] and [SAPWL_WORKLOAD_GET_STATISTIC|https://www.sdn.sap.com/irj/scn/advancedsearch?query=sapwl_workload_get_statistic&cat=sdn_all] may be used to get the data from each application server
(click on the links to get more information and samples on how to use these FM)
Regards -
How to list ABAP programs that uses a SAP script form?
Hello everybody.
Can you please tell me how to list all ABAP programs that uses a particular SAPscript forms? That is, given a form name, I can then list all programs that uses that form.
Thanks in advance. I'm trying to Google this same info but I'm having a hard time formulating my search terms.
Thanks.
-- CarlHi Carl,
You can get them from table TNAPR,
Give the FORM NAME and all the programs are listed
check this table also TTFXP , TTXFPT
Message was edited by: Chandrasekhar Jagarlamudi
Message was edited by: Chandrasekhar Jagarlamudi
Maybe you are looking for
-
Audio silent on some chapters after build?
I've looked through the forum and can't find an answer to this. I have authored and built a dual layer DVD, but past a certain point the audio stops playing on all tracks when playing a burnt disk in a DVD player, and in apple dvd player when playing
-
Liquidity forecast report question
Hi, After the expiry of the cash discount period (as per vendor/invoice payment terms), the FF7B (Liquidity forecast) report should show the full invoice amount. In my case, I'm seeing the discounted amount of the vendor invoice and not the full amou
-
How do you get rid of paused applications in the dock?
Suddenly I have tiny icons in my dock because there are all sorts of invisible paused icons. I can delete them individually, but they come back every startup. I tried the advise in the post "How to permanently delete..." but they didn't work. I don't
-
SQL - How to attach FileStream enabled db without log file
I'm trying to attach a FileStream enabled database without a log file. My SQL looks something like this: USE master CREATE DATABASE MyDB ON PRIMARY(NAME = N'MyDB', FILENAME = 'C:\myDB.MDF' ), FILEGROUP myFileGroup CONTAINS FILESTREAM ( NAME = myData,
-
I go to the Pages application and click on it, and instead of getting the normal Pages menu I get an old Pages document and the spinning wheel. I can't open the menu bar, can't create a new document, can't open another document, can't access the men