How to replace blank spaces with zero's in the report
hai sdn guys,
we have a requirement where we cannot have any blank fields in the report and i need to replace the blanks with a zero. What is the best way to do it.
Hi Sunitha,
It is not proper that you are posting the same question multiple times:
Re: report o/p should not have blank spaces in - in case of no value
should get 0's in place of blank value in the output of the report
That too inspite of my requesting you not to do so.
I am not sure if you have ever gone through the Rules Of Engagement which are prominently posted in each forum, but I think it is SDN courtesy to provide proper feedback when posting a question and assign points as deemed fit. This helps (and motivates) everyone to work on your problem and try to give you a solution. I hope you will be more careful in the future. Thanks!
Similar Messages
-
How to Display WBS's with Zero values in a report created by CJE2
Hi All,
I have created a report using CJE1 (Report painter). When I execute the report, it only shows WBS that have values. How do I display WBS elements that do NOT have values? i.e. display items with zero values. I'm certain there is a setting either within report painter or forms...
Help appreciated.
SamirMenu>Formatting>Report Layout and then tab Rows. Check if setting under 'Treatment of zero rows' helps.
Regards
Sreenivas -
Replacing multiple spaces with another character
i need to replace multiple spaces with another char in a string
my code is
Dim text as String="a bit much a little much" Dim arr As String() = text.Split({" "c}, StringSplitOptions.RemoveEmptyEntries)Dim newtext As String = String.Join(" ", arr) MsgBox(newtext)
it returns to "a bit much a little much "
But i want to replace only long spaces with "=" as "a bit much =a little much"
How can i do that?This version uses two spaces to split the string and then trims any additional single spaces. It returns "a bit much = a little much".
Dim text As String = "a bit much a little much "
Dim parts() As String = text.Split({" "}, StringSplitOptions.RemoveEmptyEntries)
Dim newText As String
If parts.Length = 2 Then
newText = parts(0).Trim & " = " & parts(1).Trim
End If -
Hi guys,
ho wcan we replace blank space in obiee.
i have applied if null function to replace with 0 but it is not workin .it may be a blank space so can we replace blankspace in obiee.We cannot replace null values from report.
Another Solution:
Go to column properties --> Conditional formating--->write the condition (IS NULL) --> Apply strikethough option in properties
Hope this helps u
Thanks
Kishore -
How to validate blank space ?
Hi All
I have a textfield i am showing alert if textfield is empty by using isNull and undefined way but how check if user give empty space ?
Thanks in advance !!!
Regards,
GaneshThis is how to remove all blank spaces in a string:
Create a function in an object script, e.g.:
Script Object Name: myObject
Method Name : function trim(string)
function trim(str){
return str.replace(/^\s+|\s+$/g, '');
//this function above return the string by replacing blank space by nothing (empty string or null string)
//it only replace if the field is empty, if there is no chars inside
//Show the output value after calling the method
TextField21.rawValue = myObject.trim(TextField21.rawValue);
//Here is a lil proto to see if it works
if (TextField21.rawValue == null){
xfa.host.messageBox("Null");
} else{
xfa.host.messageBox("Blank"); -
how do I sync my iPhone 5 to a new Toshiba laptop PC without losing any iPhone data? The "remove and sync?" option looks like it will leave me with zero data on the iPhone!
See Recover your iTunes library from your iPod or iOS device.
tt2 -
How to replace a movieclip with another movieclip
How to replace a movieclip with another movieclip
Hi,
I am having a swf called tchild.swf... in this i got a
movclip 'child1'. i am loading this tchild.swf into another swf
tparent.swf within 'mcloader' movie clip.. i got another movclip
called 'picture1'
i am loading tchild.swf into mcloader movclip.. and i want to
load 'child1' moviclip into picture1..
how to replace a picture1 movieclip with child1 mc..
PS: i dont want to load picture1 from library.. its on the
stage.AWT or Swing?
-
When I click install flash I get a blank window with this comment at the top 1 item Zero kb available and flash will not install
https://forums.adobe.com/thread/1195540
-
How to replace key value with character
Hi Experts
Can any one tell me, how to replace key value with character, whether it is possible are not. My present report is displaying below format.
country--city-area-flatnocountry--City-Flatno
Customer--USACOst1111---UK--HD20--
C100--11---11--
C200--11---1--
For the above example format i am able to display. But now i want to replace 1 with character value for example. For C100
country is USA at presnt 1 but it should replace with USA.
You find required format below.
country--city-area-flatnocountry--City-Flatno
Customer--USACOst1111---UK--HD20--
C100--USACOst1111--
C200--UK--HD20--
thanks .
Regards,
Vishal.Hi Markus,
Thanks for reply,
Actually i dont have attribute for the customer, the data is maintained in ods, in the form, customer name one info-object and customer value one more info-object this value got text. This value stored in the ods as below
costomer number customer value
C100--USA
-C100CO
C100--11-
C200----
UK
C200----
20
Please let me know any clarification you need.
Thanks and Regards,
Vishal. -
how to delete forecast entries with zero current and original qty from a particular forecast set which span across multiple forecasts
Hi,
There is no way to delete those records selectively from front end.
The best possible way is to delete the records from MRP_FORECAST_DATES tables from backend.
Hope that helps!!
Regards,
Mohan Balaji
NOTE: Please mark the post as Helpful or Answered if the update has really helped you. This would also bring the thread to logical conclusion and will be helpful for the viewers. -
How do I clear space on Macbook air in the following folders? Mail, Containers and Application support under libraries?
Why? If you need space on the SSD:
Freeing Up Space on The Hard Drive
1. See Lion/Mountain Lion/Mavericks' Storage Display.
2. You can remove data from your Home folder except for the /Home/Library/ folder.
3. Visit The XLab FAQs and read the FAQ on freeing up space on your hard drive.
4. Get an external hard drive on which to store some of your files after which you can
erase the data from your internal drive to free up space.
5. Also see Freeing space on your Mac OS X startup disk.
6. See Where did my Disk Space go?.
7. See The Storage Display.
You must Empty the Trash in order to recover the space they occupied on the hard drive.
You should consider replacing the drive with a larger one. Check out OWC for drives, tutorials, and toolkits.
Try using OmniDiskSweeper 1.8 or GrandPerspective to search your drive for large files and where they are located. -
How to send an email with an attachment to the customers email address.
Hi friends,
How to send an email with an attachment to the customers email address.
the attachment will be in doc format.
Having an Header
the data which i am sending must be in a TABLE format
with 5 columns.
and each column must have a column heading
Please guide me.
Thanks in Advance,
Ganesh.*& Report ZEMAIL_ATTACH *
*& Example of sending external email via SAPCONNECT *
REPORT ZEMAIL_ATTACH .
TABLES: ekko.
PARAMETERS: p_email TYPE somlreci1-receiver .
*Here get the values of mail from the table adn6 for the customer address.
TYPES: BEGIN OF t_ekpo,
ebeln TYPE ekpo-ebeln,
ebelp TYPE ekpo-ebelp,
aedat TYPE ekpo-aedat,
matnr TYPE ekpo-matnr,
END OF t_ekpo.
DATA: it_ekpo TYPE STANDARD TABLE OF t_ekpo INITIAL SIZE 0,
wa_ekpo TYPE t_ekpo.
TYPES: BEGIN OF t_charekpo,
ebeln(10) TYPE c,
ebelp(5) TYPE c,
aedat(8) TYPE c,
matnr(18) TYPE c,
END OF t_charekpo.
DATA: wa_charekpo TYPE t_charekpo.
DATA: it_message TYPE STANDARD TABLE OF solisti1 INITIAL SIZE 0
WITH HEADER LINE.
DATA: it_attach TYPE STANDARD TABLE OF solisti1 INITIAL SIZE 0
WITH HEADER LINE.
DATA: t_packing_list LIKE sopcklsti1 OCCURS 0 WITH HEADER LINE,
t_contents LIKE solisti1 OCCURS 0 WITH HEADER LINE,
t_receivers LIKE somlreci1 OCCURS 0 WITH HEADER LINE,
t_attachment LIKE solisti1 OCCURS 0 WITH HEADER LINE,
t_object_header LIKE solisti1 OCCURS 0 WITH HEADER LINE,
w_cnt TYPE i,
w_sent_all(1) TYPE c,
w_doc_data LIKE sodocchgi1,
gd_error TYPE sy-subrc,
gd_reciever TYPE sy-subrc.
*START_OF_SELECTION
START-OF-SELECTION.
Retrieve sample data from table ekpo
PERFORM data_retrieval.
Populate table with detaisl to be entered into .xls file
PERFORM build_xls_data_table.
*END-OF-SELECTION
END-OF-SELECTION.
Populate message body text
perform populate_email_message_body.
Send file by email as .xls speadsheet
PERFORM send_file_as_email_attachment
tables it_message
it_attach
using p_email
'Example .xls documnet attachment'
'DOC'
'filename'
changing gd_error
gd_reciever.
Instructs mail send program for SAPCONNECT to send email(rsconn01)
PERFORM initiate_mail_execute_program.
*& Form DATA_RETRIEVAL
Retrieve data form EKPO table and populate itab it_ekko
FORM data_retrieval.
SELECT ebeln ebelp aedat matnr
UP TO 10 ROWS
FROM ekpo
INTO TABLE it_ekpo.
ENDFORM. " DATA_RETRIEVAL
*& Form BUILD_XLS_DATA_TABLE
Build data table for .xls document
FORM build_xls_data_table.
CONSTANTS: con_cret TYPE x VALUE '0D', "OK for non Unicode
con_tab TYPE x VALUE '09'. "OK for non Unicode
*If you have Unicode check active in program attributes thnen you will
*need to declare constants as follows
*class cl_abap_char_utilities definition load.
*constants:
con_tab type c value cl_abap_char_utilities=>HORIZONTAL_TAB,
con_cret type c value cl_abap_char_utilities=>CR_LF.
CONCATENATE 'EBELN' 'EBELP' 'AEDAT' 'MATNR'
INTO it_attach SEPARATED BY con_tab.
CONCATENATE con_cret it_attach INTO it_attach.
APPEND it_attach.
LOOP AT it_ekpo INTO wa_charekpo.
CONCATENATE wa_charekpo-ebeln wa_charekpo-ebelp
wa_charekpo-aedat wa_charekpo-matnr
INTO it_attach SEPARATED BY con_tab.
CONCATENATE con_cret it_attach INTO it_attach.
APPEND it_attach.
ENDLOOP.
ENDFORM. " BUILD_XLS_DATA_TABLE
*& Form SEND_FILE_AS_EMAIL_ATTACHMENT
Send email
FORM send_file_as_email_attachment tables pit_message
pit_attach
using p_email
p_mtitle
p_format
p_filename
p_attdescription
p_sender_address
p_sender_addres_type
changing p_error
p_reciever.
DATA: ld_error TYPE sy-subrc,
ld_reciever TYPE sy-subrc,
ld_mtitle LIKE sodocchgi1-obj_descr,
ld_email LIKE somlreci1-receiver,
ld_format TYPE so_obj_tp ,
ld_attdescription TYPE so_obj_nam ,
ld_attfilename TYPE so_obj_des ,
ld_sender_address LIKE soextreci1-receiver,
ld_sender_address_type LIKE soextreci1-adr_typ,
ld_receiver LIKE sy-subrc.
ld_email = p_email.
ld_mtitle = p_mtitle.
ld_format = p_format.
ld_attdescription = p_attdescription.
ld_attfilename = p_filename.
ld_sender_address = p_sender_address.
ld_sender_address_type = p_sender_addres_type.
Fill the document data.
w_doc_data-doc_size = 1.
Populate the subject/generic message attributes
w_doc_data-obj_langu = sy-langu.
w_doc_data-obj_name = 'SAPRPT'.
w_doc_data-obj_descr = ld_mtitle .
w_doc_data-sensitivty = 'F'.
Fill the document data and get size of attachment
CLEAR w_doc_data.
READ TABLE it_attach INDEX w_cnt.
w_doc_data-doc_size =
( w_cnt - 1 ) * 255 + STRLEN( it_attach ).
w_doc_data-obj_langu = sy-langu.
w_doc_data-obj_name = 'SAPRPT'.
w_doc_data-obj_descr = ld_mtitle.
w_doc_data-sensitivty = 'F'.
CLEAR t_attachment.
REFRESH t_attachment.
t_attachment[] = pit_attach[].
Describe the body of the message
CLEAR t_packing_list.
REFRESH t_packing_list.
t_packing_list-transf_bin = space.
t_packing_list-head_start = 1.
t_packing_list-head_num = 0.
t_packing_list-body_start = 1.
DESCRIBE TABLE it_message LINES t_packing_list-body_num.
t_packing_list-doc_type = 'RAW'.
APPEND t_packing_list.
Create attachment notification
t_packing_list-transf_bin = 'X'.
t_packing_list-head_start = 1.
t_packing_list-head_num = 1.
t_packing_list-body_start = 1.
DESCRIBE TABLE t_attachment LINES t_packing_list-body_num.
t_packing_list-doc_type = ld_format.
t_packing_list-obj_descr = ld_attdescription.
t_packing_list-obj_name = ld_attfilename.
t_packing_list-doc_size = t_packing_list-body_num * 255.
APPEND t_packing_list.
Add the recipients email address
CLEAR t_receivers.
REFRESH t_receivers.
t_receivers-receiver = ld_email.
t_receivers-rec_type = 'U'.
t_receivers-com_type = 'INT'.
t_receivers-notif_del = 'X'.
t_receivers-notif_ndel = 'X'.
APPEND t_receivers.
CALL FUNCTION 'SO_DOCUMENT_SEND_API1'
EXPORTING
document_data = w_doc_data
put_in_outbox = 'X'
sender_address = ld_sender_address
sender_address_type = ld_sender_address_type
commit_work = 'X'
IMPORTING
sent_to_all = w_sent_all
TABLES
packing_list = t_packing_list
contents_bin = t_attachment
contents_txt = it_message
receivers = t_receivers
EXCEPTIONS
too_many_receivers = 1
document_not_sent = 2
document_type_not_exist = 3
operation_no_authorization = 4
parameter_error = 5
x_error = 6
enqueue_error = 7
OTHERS = 8.
Populate zerror return code
ld_error = sy-subrc.
Populate zreceiver return code
LOOP AT t_receivers.
ld_receiver = t_receivers-retrn_code.
ENDLOOP.
ENDFORM.
*& Form INITIATE_MAIL_EXECUTE_PROGRAM
Instructs mail send program for SAPCONNECT to send email.
FORM initiate_mail_execute_program.
WAIT UP TO 2 SECONDS.
SUBMIT rsconn01 WITH mode = 'INT'
WITH output = 'X'
AND RETURN.
ENDFORM. " INITIATE_MAIL_EXECUTE_PROGRAM
*& Form POPULATE_EMAIL_MESSAGE_BODY
Populate message body text
form populate_email_message_body.
REFRESH it_message.
it_message = 'Please find attached a list test ekpo records'.
APPEND it_message.
endform. " POPULATE_EMAIL_MESSAGE_BODY
regards,
venkat. -
My MacBook Air has a blinking file folder icon on a blank screen with a ? In the middle of the icon. I've tried turning my computer off and on three times with no luck. Any recommendations on how to fix the problem?
Reinstall OS X without erasing the drive
1. Repair the Hard Drive and Permissions
Boot from your Snow Leopard Installer disc. After the installer loads select your language and click on the Continue button. When the menu bar appears select Disk Utility from the Utilities menu. After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list. In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive. If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported click on the Repair Permissions button. Wait until the operation completes, then quit DU and return to the installer.
If DU reports errors it cannot fix, then you will need Disk Warrior and/or Tech Tool Pro to repair the drive. If you don't have either of them or if neither of them can fix the drive, then you will need to reformat the drive and reinstall OS X.
2. Reinstall Snow Leopard
If the drive is OK then quit DU and return to the installer. Proceed with reinstalling OS X. Note that the Snow Leopard installer will not erase your drive or disturb your files. After installing a fresh copy of OS X the installer will move your Home folder, third-party applications, support items, and network preferences into the newly installed system.
Download and install Mac OS X 10.6.8 Update Combo v1.1. -
Hi
When I open Pages it scrolls through numerouss blank pages with a line at the side 1st, then settles on an old saved pages document.I then have to go to "open recent" to select the one I want. Why?No
It's the 1st version of Pages I've had on my computer.
Can't delete them as they scroll through them at a rapid pace. The longer I've had the problem the more blank pages it scrolls through. -
How can I start anew with Photos and clear the (minimal) stuff it has uploaded
I've about had it up to here with this new Photos scheme. I reorganised my Aperture libraries on both my iMac and MBA in preparation for this, delayed turning Photos on for a couple of days until I thought everything was ready based upon the limited advice that was out there, and then got stuck in an endless loop of "uploading" and "preparing" every time I opened Photos. There are 19,975 images in my Aperture library on the iMac. I was stuck at Uploading at anywhere between that number and 19,000 with no progress after hours of waiting. I tried all the tricks mentioned here including re booting, restarting the app, repairing/rebuilding the database, killing the "cloudd" process, etc.today Today when I restarted Photos, it now said I had 23,775 images to upload- 4000
more than I have-and of course it got stuck there, like it has for the last week.
I copied the previous Aperture library (pre Photos migration)back to my iMac and opened it in Aperture. Thankfully, all the photos I had taken on my iPhone this week during this Photos clusterphuck transition were in the Aperture Stream so I didn't lose any of those. I'm willing to give this whole thing one more shot. So i need some advice. How can I start anew with Photos and clear the (minimal) stuff it has uploaded (about 6000 of 19,000 images in the last 7 days) ? If I simply delete the Photos.photolibrary file will that do the trick and lt me start a new fresh library using?
<Re-Titled By Host>How can I start anew with Photos and clear the (minimal) stuff it has uploaded (about 6000 of 19,000 images in the last 7 days) ? If I simply delete the Photos.photolibrary file will that do the trick and lt me start a new fresh library using?
It is hard to say from your post, why the migration did not succeed in your case.
by "stuck on upload" do you mean, you opened the Aperture library in Photos, and Photos converted it to a Photo Library, and then the upload to iCloud Photo Library did hang? Or did already the upgrade to the Photo Library fail?
If you want the Aperture library to upload to iCloud Photo Library, it needs to be on a disk formatted MacOS Extended (Journaled) and the original image files must not be referenced. Referenced originals will not upload.
Also, the upload may hang, if you do not have enough free iCloud storage, orr if one of the videos or photos in your library is in an unsupported format or corrupted.
To start over, try to repair and rebuild the Aperture library before opening it in Photos. Try all Aperture Library First Aid options - starting with repairing the permissions. (Repairing and Rebuilding Your Aperture Library: Aperture 3 User Manual)
If I simply delete the Photos.photolibrary file will that do the trick and lt me start a new fresh library using?
You will have to delete the photos that are already in icloud too; otherwise you are risking duplicates.
Can you launch Photos at all? If yes, delete all photos in Photos and empty the Recently Deleted album. Wait for the deletion to sync to iCloud. Then delete the Photos.photolibrary.
Maybe you are looking for
-
HP Photosmart premium C309g-m won't connect to the network
I am having problems with my printer connecting to my home network or wirelessly to the computer. This can happen when the printer has been idle for a while or when i switch it on and try and print straight away. restarting everything can sometimes m
-
Remove Corrupted Sharepoint SQL Reporting Services
Hi, I had my sharepoint 2013 foundation with sharepoint-SQL reporting services integrated removed from my server 2012. And I removed my sharepoint folders and regedit files for sharepoint manually to ensure complete uninstallation of sharepoint from
-
I am having an audio problem. I imported my file with audio and video. Video plays out fine, but I don't hear any audio. Does anyone know why? I have upgraded my Finat Cut Studio to Final Cut Studio 2. I had a DVD Studio 4, but was I not suppose to u
-
I updated my lumia 520 yesterday at 18:00 and got ...
I have a nokia lumia 520 an update popped up on my screen telling me to install so I did and now my phone has been stuck on rolling gears for 15 hours I've tried all the suggestions about resting with all the buttons but nothing is working somebody h
-
RESTORE iCLOUD BACK UP TO iTUNES
I have a 4S iPhone and recently backup the iPHone using iTunes and iCloud. My Windows laptop crashed and I lost all my data. How do I take my recent iCloud back up and restore it to my new laptop and new iTunes. I want to restore all my music from