Coding for selecting a specific data
i have a table with n records where email id is 1 field. In this table i have email id records.
i want logic and coding for the following
1. the mail id should be printed only once in the screen followed by its contents.
00 LPS19073_CRF-DESIGN_P1 LPS 000 - 22.03.2007 [email protected]
00 LPS19073_CRF-DESIGN_P5 LPS 000 - 01.04.2007 [email protected]
00 LPS19073_CRF-DESIGN_P7 LPS 000 - 22.03.2007 [email protected]
for next mai id it should be printed in the next line and its contents should be printed .
the putput should like this
[email protected]
00 LPS19073_CRF-DESIGN_P5 LPS 000 - 01.04.2007
00 LPS19073_CRF-DESIGN_P7 LPS 000 - 22.03.2007
[email protected]
00 LPS19073_CRF-DESIGN_P1 LPS 000 - 22.03.2007
plz help me
Chandrasekharan,
Check the below code.There we are passing the total internal table data at once in FM
CALL FUNCTION 'SO_OBJECT_SEND'
EXPORTING
object_hd_change = object_hd_change
object_type = 'RAW'
outbox_flag = 'X'
TABLES
objcont = object_content
receivers = rec_table
Instead of this put the internal table in LOOP . and assign the mail ID value to
rec_table-recextnam = '[email protected]'.
rec_table-adr_name = '[email protected]'.
So you will achieve your goal.Pls. see the below code.
Go through the below code.
REPORT zmbundal_email_out .
DATA BEGIN OF object_hd_change. "SAPoffice: object definition,
INCLUDE STRUCTURE sood1. "change attributes
DATA END OF object_hd_change.
DATA BEGIN OF object_content OCCURS 5. "SAPoffice: Single List with
INCLUDE STRUCTURE solisti1. "Column Length 255
DATA END OF object_content.
DATA BEGIN OF rec_table OCCURS 1. "SAPoffice: recipient with
INCLUDE STRUCTURE soos1. "attributes
DATA END OF rec_table.
Build email recipient table...........................................
CLEAR rec_table.
rec_table-sel = 'X'.
rec_table-recesc = 'B'.
rec_table-recesc = 'U'.
rec_table-recnam = 'U-'.
rec_table-recextnam = '[email protected]'.
rec_table-adr_name = '[email protected]'.
rec_table-sndex = 'X'.
rec_table-sndpri = '1'.
rec_table-mailstatus = 'E'.
rec_table-SNDSPO = 442355.
rec_table-SNDCP = 'X'.
COLLECT rec_table.
*.Email.content.........................................................
object_content = 'dannyboy baboy'. APPEND object_content.
object_content = 'dannyboy pogi'. APPEND object_content.
object_content = 'dannyboy fagg*t'. APPEND object_content.
*...Subject.Line........................................................
object_hd_change-objnam = 'Test email'.
object_hd_change-objdes = ' Email for Baboy'.
Send Email............................................................
CALL FUNCTION 'SO_OBJECT_SEND'
EXPORTING
object_hd_change = object_hd_change
object_type = 'RAW'
outbox_flag = 'X'
TABLES
objcont = object_content
receivers = rec_table
EXCEPTIONS
active_user_not_exist = 1
communication_failure = 2
component_not_available = 3
folder_not_exist = 4
folder_no_authorization = 5
forwarder_not_exist = 6
note_not_exist = 7
object_not_exist = 8
object_not_sent = 9
object_no_authorization = 10
object_type_not_exist = 11
operation_no_authorization = 12
owner_not_exist = 13
parameter_error = 14
substitute_not_active = 15
substitute_not_defined = 16
system_failure = 17
too_much_receivers = 18
user_not_exist = 19
originator_not_exist = 20
x_error = 21
OTHERS = 22.
*...SAPconnect..........................................................
SUBMIT rsconn01 "SAPconnect Start Send Process
WITH mode EQ '*'
WITH output EQ ''
TO SAP-SPOOL
DESTINATION 'LOCAL'
IMMEDIATELY ' '
KEEP IN SPOOL 'X'
WITHOUT SPOOL DYNPRO
AND RETURN.
Don't forget to reward if useful....
Similar Messages
-
Table for Stock on Specific Date in the Past.
Hi ..,
Please give me the Name of the Table to find the stock on Specific Date for a given material in the Past. like the T.code we use MB5B.
regards.Hi
MB5B uses a list of tables & logic to get the Stock for a particular posting date.
if you want the stock run this report in your Z- report & export the Values to your Z-report & use them accordingly.
Hope this helps
Thanks & Regards
Kishore -
Delta field not enabled for selection in generic data source
Hi
I have created a generic data source for the table VBFA....and for the delta pick up i have put the delta option as CALDAY on the field ERDAT...and i have selected that field for the selection option. but after i made it delta enabled the selection option got disabled.
Now when i check the info package delta selection tab that date column is not apperaing.
But when i have to run the info package for the first i dont want all the data as it has a huge set of data.
I wanted to take only this months data.
So is there any option to be set to enable this selection in info package.
please suggest.
Regards
ShilpaHi there,
That's the stardard behaviour. If you use delta based om ERDAT, that field won't be available for selecting.
You could for example try to build a view over VBFA, and let the field ERDAT there and another field, for example ZERDAT (that is just another alias for ERDAT). Create the delta based onyour view over the field (ERDAT), but you can still control the restrictions over the extractore with your ZERDAT.
I don't know if this is possible, this is only an assumption.
Another option could be first to create an extractor based on the table VBFA but without delta, that field ERDAT would be available. Do your full data restricting it, and after that, change your datasource to use deltas based on ERDAT. It will be unavailable than, but since you've already loaded previous full data, you could than use your delta like it is. But here, remember, your deltas will bring new and change data based on ERDAT. If it brings delta based on changed data over ERDAT to a record that you didn't brought over your full (only some data), it will be incorrect records.
Also just an assumption, did not try it.
Diogo. -
How can I enforce automatic spell checking for selected fields of data entered by form users?
I'd like to be able to enforce spell checking of selected fields in the forms that I've created using LiveCycle Designer 8.2 at run time, as opposed to design time. I understand the version LCD 8 has a nifty new spell checker for form designers. But I want to spell check the data entered by users using Acrobat Reader. And I want to enforce the spell checking automatically on selected fields only.
Presently it seems that users filling in my forms, must know how to manually right-click on each field and select "Spell Check" from the resulting dialog box in order to check for spelling errors in the data the user has entered in the form.
I would like to discover a way to enforce spell checking in selected fields, just as I am able to do in forms created using Acrobat Pro. In Acrobat Pro, I can set a property for each field to require spell checking. but that feature seems to be missing in Livecycle Designer.
I've check the Object model for XFA forms hoping that I might find a method I can call with a Javascript, to check spelling based on an event such as onBlur. But I haven't found a spell check method.
Am I missing something simple? Is there a way to set each field to be spell checked when a user is filling in the form using the free Acrobat Reader?
Our users are not sophisticated and requiring them to spell check each field separately just won't cut it...
Any help on this will be greatly appreciated.
Thanks!
-David BartholomewHi David,
Two things...
At design time set the locale of the form to one that Acrobat spell checks. For example English (US) and English (UK) locales have spell checkers; however English (Ireland) does not. Check the Warnings tab to see if spell checking is supported for your locale.
If your form locale supports spell checking then you can go to the button script below.
If you form locale does NOT support spell checking then Stephanie has a great work around to force spell checking (http://forums.adobe.com/message/2233945#2233945).
Bring a regular button onto the form and in the click event have the following:
app.execMenuItem("Spelling:Check Spelling");
Which will open the spell checker for all fields. Thanks to Paul for extracting all of the accessible menu items (http://forums.adobe.com/message/1912914#1912914).
Good luck,
Niall -
Can someone help on this..?
Thanks I missed out that i can use a date as datatype
Thanks for pointing out ;
Will try that
Also can you help me with this as well
"https://forums.oracle.com/thread/2571086" -
Query for selecting distinct by date
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Prod
I have a simple table that has an ID, Title, and Date.
I need to select the most recent ID (without duplicates). I was looking at using a UNION but couldn't quite get it to work.
P3XGL2FV96 Test 1 11-AUG-10 03.38.06.000000000 PM
1VGJ74PSNW Test 2 11-AUG-10 04.02.22.000000000 PM
1VGJ74PSNW Test 2 12-AUG-10 09.49.09.000000000 AMHi,
You could achieve it like this :
CREATE TABLE MY_TABLE
+(+
ID VARCHAR2(10),
TITLE VARCHAR2(10),
MY_DATE TIMESTAMP
+);+
insert into my_table values ('P3XGL2FV96', 'Test 1', '11-AUG-10 03.38.06.000000000 PM');
insert into my_table values ('1VGJ74PSNW', 'Test 2', '12-AUG-10 09.49.09.000000000 AM');
insert into my_table values ('1VGJ74PSNW', 'Test 2', '11-AUG-10 04.02.22.000000000 PM');
commit;
SELECT id, title, my_date
FROM (SELECT id,
title,
my_date,
RANK () OVER (PARTITION BY id ORDER BY my_date DESC) rk
FROM my_table)
WHERE rk = 1;
ID |TITLE |MY_DATE
----------|----------|---------------------------------------------------------------------------
+1VGJ74PSNW|Test 2 |12-AUG-10 09.49.09.000000 AM+
P3XGL2FV96|Test 1 |11-AUG-10 03.38.06.000000 PM
Remark : if one id have twice the same date they will be both ranked first
Kind regards,
Ludovic
Edited by: ludovic.sz on Aug 12, 2010 8:38 AM -
Please help me in ABAP coding for the incoming transactional data
Hi
I have the following transactional data
Transaction ID- Buyer- Seg- Fam- Cla -Com-Total
00001 - AB co - Engineering - Machinery - Equipment - Mechanical -15000
00002 - AC co - Engineering - Machinery - Equipment - Mechanical -15850
00003 - DE co - IT - Hardware - Mouse -Optical -5850
00004 - AC co - Engineering - Machinery - Equipment - Architectural -10000
00005 - FE co - Engineering - Machinery - Equipment - NOT_KNOWN -1580
00006 - KC co - Engineering - Machinery - Equipment - NOT_KNOWN -75850
00007 - EG co - Engineering - Machinery - Equipment - Mechanical -180050
00008 - AS co- Engineering - Machinery - Equipment - Architectural -10550
00009 - DE co - IT - Hardware - Mouse -Optical -58500
00010 - EF co - IT - Hardware - Mouse -NOT_KNOWN -555850
00011 - EF co - Engineering - Machinery - Equipment - Mechanical -44850
00012 - AC co - IT - Hardware - NOT_KNOWN -NOT_KNOWN -585550
In this transactional data, SEG-> FAM -> CLA -> COM are in hierarchy
To distiguish the NOT_KNOWN which have different level i like to change there names like this...
NOT_KNOWN_1, NOT_KNOWN_2....like that
I expect the results to be like this
Transaction ID- Buyer- Seg- Fam- Cla -Com-Total
00001 - AB co - Engineering - Machinery - Equipment - Mechanical -15000
00002 - AC co - Engineering - Machinery - Equipment - Mechanical -15850
00003 - DE co - IT - Hardware - Mouse -Optical -5850
00004 - AC co - Engineering - Machinery - Equipment - Architectural -10000
00005 - FE co - Engineering - Machinery - Equipment - NOT_KNOWN_1 -1580
00006 - KC co - Engineering - Machinery - Equipment - NOT_KNOWN_1 -75850
00007 - EG co - Engineering - Machinery - Equipment - Mechanical -180050
00008 - AS co- Engineering - Machinery - Equipment - Architectural -10550
00009 - DE co - IT - Hardware - Mouse -Optical -58500
00010 - EF co - IT - Hardware - Mouse -NOT_KNOWN_2 -555850
00011 - EF co - Engineering - Machinery - Equipment - Mechanical -44850
00012 - AC co - IT - Hardware - NOT_KNOWN_3 -NOT_KNOWN_4 -585550
I like to make this changes in the coming data by writing a start routine
Could anyone provide me the required code to make this happen
Plz help me
Regards
KCHi
My Start routine screen look like this
Declaration of transfer structure (selected fields only)
TYPES: BEGIN OF TRANSFER_STRUCTURE ,
Record number to be filled in case of adding row(s)
to enable 'error handling'
record TYPE rsarecord,
InfoObject TRAID: CHAR - 000060
/BIC/TRAID(000060) TYPE C,
InfoObject SEG5: CHAR - 000060
/BIC/SEG5(000060) TYPE C,
InfoObject FAM5: CHAR - 000060
/BIC/FAM5(000060) TYPE C,
InfoObject CLA5: CHAR - 000060
/BIC/CLA5(000060) TYPE C,
InfoObject COM5: CHAR - 000032
/BIC/COM5(000032) TYPE C,
InfoObject COCE: NUMC - 000015
InfoObject TOTALSEG: CHAR - 000032
/BIC/TOTALSEG(000032) TYPE C,
END OF TRANSFER_STRUCTURE .
Is this information you are lookin or something more
Regards
KC -
Query for select CLOB data field
Hi All,
I want to know how to write a SQL query for select CLOB tyoe data from a tablw. when I am trying to use the simple SQL it gives an messageLOB types requires OCI8 mode and currently uasing OCI7 ode.
Also I am not aware of oci mode?
If its working for OCI8 mode how I should changer it in to OCI8 mode? (I am using 10g rel 2)
Thans and regards
BuddhikeHi ,
i don't want to use loop (sy-tabix) ..
any particular reason for this ?
as u cannot automatically generate serial number, u have to go for loop....endloop.
Thanks
Karthik -
Idocs for transferring Plant specific dasta
Hi PP gurus,
What is the transaction for transferring plant specific data through idoc.
Regards,
PramodHi Sriram,
When I create segmet fields should I create new data elements for all the fields with attributes specific to receiving system
Is it custom segments .
Regards,
Madhu. -
Single Date Parameter, but using a date range for selection
Post Author: fireman204
CA Forum: Formula
I'm fairly new to Crystal Reports, so be gentle with me. I have a report that has 4 parameters. The report asks for data for a specific month, the YTD data to the end of the selected month, and the same data from the previous year. It seems there should be a way to enter a single parameter (ie., 2007-4-1), and off that date select all the data for the month, the current year to the end of that month, and then the data from the previous year for the same period. I know this will be a formula field needed to select the data, but not sure how to get there from here. Any ideas? Thanks in advance!Post Author: SKodidine
CA Forum: Formula
It should be possible for you to create just one parameter to have the user input a single date and then create formulae to create the begin and end dates for the month, YTD and PYTD. You can then use these formulae for record selection criteria.
For example, if the user inputs a date of 2007-04-01 for the single parameter then create formulae such as:
beginmonth
datevar beginmonth;
beginmonth := date(year({?My Parameter}),month({?My Parameter}),01);
endmonth
datevar endmonth;
endmonth := cdLastDayOfMonth ({?My Parameter});
To use the cdlastdayofmonth function, In the formula workshop window, click on "Repository Custom Functions" then under CRYSTAL and DATE right click on cdlastdayofmonth and click on ADD TO REPORT. Once that is done, then create the above "endmonth" formula. You should see this new function in your formula workshop window in the FUNCTIONS window under CUSTOM FUNCTIONS.
beginytd
datevar beginytd := date(year(currentdate),01,01);
endytd
datevar endytd;
endytd := cdLastDayOfMonth ({?My Parameter});
beginpytd
datevar beginpytd := date((year(currentdate)-1),01,01);
endpytd
evaluateafter({@endytd});
datevar endytd;
datevar endpytd;
endpytd := date(year(endytd)-1,month(endytd),day(endytd));
In your record selection criteria, you can use the above formulae like this:
in {@beginmonth} to {@endmonth}
or
in {@beginytd} to {@endytd}
or
in {@beginpytd} to {@endpytd};
This is one way of doing it, perhaps others might pitch in with a more efficient way. -
Issue with displaying QM control chart for specific date range
Dear All
In our chemical mfg organisation, we just implemented SAP QM solution and things are working fine. I have implemented control chart functionalities as below:
SPC Criteria in Inspection Plan: Task List Charateristics / Material (0020)
Sampling Procedure: Fixed Sample / SPC Inspection (without inspection point)
We use process orders to get the inspection lots for products (material) and record results for the MICs and UD the inspection lots.
Currently all our Control Chart have status 1 (created) and we have not moved any of those charts to status 3 and 5 yet.
Using QGC1 when user trying to run control chart for any particular material in the plant and for a specific date range, report showing all the charts for that material with different MICs as expected. Though the result is NOT restricted to the selection dates either against "Lot Created On" or " Insp. Start Date" ( may be due to SPC criteria????) , its always showing all the result for any particular MIC for that material starting from go live till today.
How to restrict the dispaly of result on the chart for any particular MIC against the Material / Plant within a specific date range ?
Looking forward for your response.
Best Regards
SKHi,
1. Even though when i give the Created on, and to date the system is displaying the report which is prior to the created on date.
2. Similarly the report data is different when the field is maximum no of Hits is given. for example when i giving this field as 10, 20, 30, etc the report is showing only 10 line items. if i enter 50, 60 etc it is showing the list for half i given.
Note that system is having more than 1000 line items to display..
Regards,
R. Loganathan -
Selecting specific data from an array controlled by a boolean array
Hi!
I am trying to select specific data from a string array. The string data should be auto indexed to a string array indicator, but I just want specific values to be placed in the new array.
A boolean array controls when data should be auto indexed to the new string array. Every time a true appears in the for loop, the string data should be placed in the new string array, but I have a problem. I manage to pick the specific data to place in the new array, but i also get empty strings in the array when I am not supposed to write to the array. Instead of empty strings, I want my string data to be "compact". So when bool number 3 in the array is true, I want that string data to be in row 1, and not row 3.
Can you help me sort this one out?
Best regards
Is my avatar the dog from the fraggle rock?
Attachments:
testprogram_forum.vi 10 KB
Spørsmål lwforum.jpg 74 KBHere is a different version that also changes the size of the array for the indicator when the value is changed. You could do as much as you want here.
Tim
Johnson Controls
Holland Michigan
Attachments:
testprogram_forum 2.vi 12 KB -
Software metering date not available for selection sccm 2012
Hi
I have installed SCCM 2012.
While viewing a report for software metering date and year are not available for selection. they are blank.thaks
I is showing after restart.
Now there is another problem.
When I see the software metering report for enabled rule i.e. KasperskyAdminKit I can not understand the figures
Computers that have run a specific metered software program
NetBIOS Name
Installed Site Code
Last Usage
Total Usages
Average Usages per Day
Total Duration (min)
Average Duration of Use (min)
Average Duration per Day (min)
WIL-WNR-AV
PUN
11/16/2012 5:13:35 PM
1
0.03
7384.27
7384.27
246.14
How to know the the explanations for the underlined items ? -
How to get users' login logout time for user IDs for a specific date?
Dear All,
There is a case I being requested to retrieve the Userid, User Name,
User Group, User Dept, Date, Login Time, Logout Time in a specific date, for example, 21.05.2009.
How should I retrieve the information? The user want to input specific date and user group then return the details that mentioned above.
I try with SUIM->Users->By Logon Date and Password Change... but I can't specific the date that I want ...
I try with SM19 (Security Audit Log), but unfortunately in my system this is not activated.
I've seek for SAP's advise, and they say need to ask abaper to developr a report in order to get such details....
Do you guys have any other methods?
Do you guys know which tables will contain the details as mentioned above?
Best Regards,
KenUnfortunately without the audit log, you're going have a hard time finding this information. As mentioned, ST03N will give you some information. If your systems daily workload aggregation goes back to the date you require then you'll be able to get a list of all users who logged on that day. ST03N doesn't keep time stamps just response times.
My only idea is VERY labor intensive. If your DB admin can retrieve a save of the database from that day then table USR02 will hold a little more information for you. It will contain last login times for that day. If your system backup policy happened to have saved the contents of folder "/usr/sap/<SID>/<instance>/data" then you potentially have access to all the data you require. The stat file will have recorded every transaction that took place during that day. If that file is restored you could use program RSSTAT20 to query against it.
Good luck and turn on the audit log as it makes your life much easier! -
Pls help : How To select fields and data from user_table for each tablename
Please help with the query to generate a output which selects the code,meaning,inuse for each table in the user_table that has "CODED" as a part of table name.
User table has some 800 table that contains CODED in the tablename.
Desc of the table:
DESCPTION:
Name Null? Type
SHORT_NAME NOT NULL VARCHAR2(20)
CODE NOT NULL VARCHAR2(4)
MEANING NOT NULL VARCHAR2(240)
IN_USE VARCHAR2(1)
NOTES VARCHAR2(2000
UNITS NOT NULL VARCHAR2(1)
AMOUNT NOT NULL VARCHAR2(3)
CONVERTED VARCHAR2(1)
RUN_NAME VARCHAR2(30)
But all the table have code, meaning,in_use fields.
O/P format :
TABLE_NAME CODE MEANING IN_USE
Help me pls.Not 100% sure what you want. If you want to see all the tables that have all three of those columns, then you could do something like:
SELECT table_name, 'CODE', 'MEANING', 'IN_USE'
FROM user_tab_columns
WHERE column_name = 'CODE' and
table_name like '%CODED%'
INTERSECT
SELECT table_name, 'CODE', 'MEANING', 'IN_USE'
FROM user_tab_columns
WHERE column_name = 'MEANING' and
table_name like '%CODED%'
INTERSECT
SELECT table_name, 'CODE', 'MEANING', 'IN_USE'
FROM user_tab_columns
WHERE column_name = 'INUSE' and
table_name like '%CODED%'If you want to select those three columns from each of the tables, then you could do something like this.
Create a command file called, for example, makesel.sql that looks like:
SET PAGES 0 lines 500 trimspool on feedback off;
spool sel.sql;
prompt spool selout.txt;
SELECT 'SELECT '''||table_name||''', code, meaning, in_use FROM '||
table_name||';'
FROM (SELECT table_name
FROM user_tab_columns
WHERE column_name = 'CODE' and
table_name like '%CODED%'
INTERSECT
SELECT table_name
FROM user_tab_columns
WHERE column_name = 'MEANING' and
table_name like '%CODED%'
INTERSECT
SELECT table_name
FROM user_tab_columns
WHERE column_name = 'INUSE' and
table_name like '%CODED%')
prompt 'spool off;'
spool off;
@sel.sqlAt the sqlplus prompt run the file using @makesel.sql. This will create another file called sel.sql containing the commands to select those three columns from each table that has all three columns, then after the new file is created, it runs the file (@sel.sql). The output will be spooled to a file called selout.txt.
HTH
John
Maybe you are looking for
-
Custom AddOn installation error on Windows Server 2008 64 bits
Hi All, We have developed an AddOn that our client is currently testing on several Windows XP machines. My client requested to install it also on a Windows Serer 2008 64bits machine, so we have compiled it (both the AddOn and the Setup Installer) to
-
Why won't second iPhone (work) appear anywhere on laptop?
I was hoping someone could help me as I'm going nuts trying to troubleshoot this issue I have recently obtained a second iPhone 5 from work, to go along with my personal one. When I plug this work phone into my home laptop, it makes that "you've plug
-
Want to develop form with field not in Database table.
Hi. I am developing one form for leave request. Now i have created two tables.. 1. Employee detail 2.Leave detail Now i am creating form based on leave detail right now. This table is taking reference of Employee Detail table as reference table.(empl
-
DS 6.1 won't start as cluster service
Hi! RG: hylas-ldap Resources: Logical Hostname hylas HAStorage ldap-data-1 (Diskgroup contains instance data) I installed DS 6.0 and patched up to 6.1. As the topic says... I'm able to start the instance on every node of the Cluster (SC 3.2) with "ds
-
I have Audition 3 and the VST Guitar Rig 3 by Native Instruments. I've recorded a few tracks with the Guitar Rig 3 set as my fx. The effects are applied correctly and stay until I restart the program. When I re-open audition, it still says Guitar Rig