Two MODIF ID's to one field or parameter
Hi All,
Can we assign two modif ID's to the same parameter or select-option on the selection screen ??
If yes, then how ?
P.S. : i have already tried
q_mmsta FOR marc-mmsta MODIF ID cst cls,
But thats not working...infact its a sytax check error.
Thanks in advance.
Cheers,
Tatvagna.
I do not agree with comments like..."It is just a group name.It makes no sense to use two modif id's".
If that is the case then why do we have 4 fields in module pool screen elements?
Having more than one screen element make sense in many cases.
If you look at SCREEN structure in debug mode you will see values in GROUP3 and GROUP4 in addition to GROUP1. Where GROUP1 is coming from custom assignment and GROUP3 and GROUP4 are coming from standard framework.
Now, if you want to assign one more GROUP ID you can do it by modifying GROUP2 in SCREEN structure with additional coding.
Regards,
Naveen
Similar Messages
-
Comparison of two structures excluding one field
Hi,
I need to make comparisons of two complete data structures, excluding from the comparison one field that should not be compared or considered to obtain a result of equality of both structures.
Somebody know a sentence or practical way to make this comparison (with one field less)?
Example:
DATA: im_data_new TYPE mereq_item,
im_data_old TYPE mereq_item.
Both structures has 146 fields, and I need to exclude from the comparison the 64th field.
Thanks in advance and greetings,
Mayra.clear that field value in old and new before comparing the structures.
Thomas -
Get value of two fields into one field
Hellou,
i need little help with javascript again
Currently i'm using code below to get value from one field to other:
getField("Text35").value = getField("Text1").valueAsString;
Now i'm wondering how to change this code, so i could get values from two fields into one. For example i have field "firstname" and field "lastname", now i want to show this in field "name".
Example, if field firstname have value John and field lastname value is Doe, i want to show it in field name like "John Doe".
I hope that u understood what i want
Thanks for helping me!getField("Text35").value = getField("Text1").valueAsString + " " +
getField("Text2").valueAsString; -
Joining Two Fields Into One Field for a View
I am trying to create a view based off of multiple tables.
I have all of the joins and everything done nicely and working properly.
However, when I get to this one step, that's when I start running into problems.
I just want to join (or concatenate) two fields together with a period character in between them.
For example, if I take FirstName and LastName, then I want them to become one field called Name, appearing as "JOHN.DOE"
When I try to join them together, the problem comes up with the period character.
A sample code of what I have done is here:
BEGIN
EXECUTE IMMEDIATE 'create view VIEW_LALALA
as SELECT t1.FirstName + '.' + t2.LastName as Name, t1.something as Something, t2.ooo as OOO
FROM (tableFirstNames t1 inner join tableLastNames t2 on t1.nameID = t2.nameID)
END;832667 wrote:
I am trying to create a view based off of multiple tables.
I have all of the joins and everything done nicely and working properly.
However, when I get to this one step, that's when I start running into problems.
I just want to join (or concatenate) two fields together with a period character in between them.
For example, if I take FirstName and LastName, then I want them to become one field called Name, appearing as "JOHN.DOE"
When I try to join them together, the problem comes up with the period character.
A sample code of what I have done is here:
BEGIN
EXECUTE IMMEDIATE 'create view VIEW_LALALA
as SELECT t1.FirstName + '.' + t2.LastName as Name, t1.something as Something, t2.ooo as OOO
FROM (tableFirstNames t1 inner join tableLastNames t2 on t1.nameID = t2.nameID)
END;to concatenate two string together do not use "+", but "||"
SELECT FIRST_NAME||'.'||LAST_NAME FROM EMP; -
Cocatenate the two fields ERDAT and ERZET in one field
Hello Friends, Please suggest how to Cocatenate the two fields ERDAT and ERZET in one field . in my ZTABLE.ERDAT IS DATE 8 and ERZET tims 6
so what should be the new ZCOMBO field length and type
Please give the ABAP Code to write that in Exit to Populate this Cocatenation of these two fields.
Thanks
Sincerely
Soniya KapoorHi Soniya,
Declare the field as Timestamp and use Convert To timestamp statement for Concatenating Date and Time into a single field
CONVERT for Timestamps
Converts a timestamp into the correct date and time for the current time zone.
Syntax
CONVERT TIME STAMP <tst> TIME ZONE <tz> INTO DATE <d> TIME <t>.
CONVERT DATE <d> TIME <t> INTO TIME STAMP <tst> TIME ZONE <tz>.
As long as <tst> has type P(8) or P(11) with 7 decimal placed, and <tz> has type C(6), the time stamp <tst> will be converted to the correct date <d> and time <t> for the time zone <tz>.
Regards,
Abhishek -
I am trying to develop a query in MS Access 2010 to join two tables using three joins, one of which is a (between) date range. The tables are contained in Access. The reason
the tables are contained in access because they are imported from different ODBC warehouses and the data is formatted for uniformity. I believe this cannot be developed using MS Visual Query Designer. I think writing a query in SQL would be suiting this project.
ABCPART links to XYZPART. ABCSERIAL links to XYZSERIAL. ABCDATE links to (between) XYZDATE1 and ZYZDATE2.
[ABCTABLE]
ABCORDER
ABCPART
ABCSERIAL
ABCDATE
[ZYXTABLE]
XYZORDER
XYZPART
XYZSERIAL
XYZDATE1
XYZDATE2Thank you for the looking at the post. The actual table names are rather ambiguous. I renamed them so it would make more sense. I will explain more and give the actual names. What I do not have is the actual data in the table. That is something I don't have
on this computer. There are no "Null" fields in either of the tables.
This table has many orders (MSORDER) that need to match one order (GLORDER) in GLORDR. This is based on MSPART joined to GLPART, MSSERIAL joined to GLSERIAL, and MSOPNDATE joined if it falls between GLSTARTDATE and GLENDDATE.
[MSORDR]
MSORDER
MSPART
MSSERIAL
MSOPNDATE
11111111
4444444
55555
2/4/2015
22222222
6666666
11111
1/6/2015
33333333
6666666
11111
3/5/2015
This table has one order for every part number and every serial number.
[GLORDR]
GLORDER
GLPART
GLSERIAL
GLSTARTDATE
GLENDDATE
ABC11111
444444
55555
1/2/2015
4/4/2015
ABC22222
666666
11111
1/5/2015
4/10/2015
AAA11111
555555
22222
3/2/2015
4/10/2015
Post Query table
GLORDER
MSORDER
GLSTARTDATE
GLENDDATE
MSOPNDATE
ABC11111
11111111
1/2/2015
4/4/2015
2/4/2015
ABC22222
22222222
1/5/2015
4/10/2015
1/6/2015
ABC22222
33333333
1/5/2015
4/10/2015
3/5/2015
This is the SQL minus the between date join.
SELECT GLORDR.GLORDER, MSORDR.MSORDER, GLORDR.GLSTARTDATE, GLORDR.GLENDDATE, MSORDR.MSOPNDATE
FROM GLORDR INNER JOIN MSORDR ON (GLORDR.GLSERIAL = MSORDR.MSSERIAL) AND (GLORDR.GLPART = MSORDR.MSPART); -
How do I validate one field's length based on another field's selection?
I am creating a form for our offices where I need to check one field for length of a serial number based on the answer to a previous field's selection. Depending on the product selection, the serial number has two different lengths. Both fields are marked as required, but I want to make sure that we receive the full serial number for our product. Previous forms were done on paper and instructions were for the last 4 digits only which now we want the full serial number. One product has a 12 digit number and the other is 6.
I'm guessing that I need a validation script in the serial number field, but I am not a JavaScript coder and haven't found the right thing when searching. Any help would be great!
Thanks!Never trust your users to follow what you expect them to do... That often leads to mistakes and problems later on.
I would reset the s/n field when a selection is made in the drop-down. To do so set the drop-down field to commit the selected value immediately and add code as its custom validation script:
this.getField("Serial Number").value = "";
To validate the s/n field you can use something like this as that field's custom validation script (of course, you'll need to adjust the field names and values to match the actual ones in your file):
event.rc = true;
if (event.value) {
var selection = this.getField("Dropdown1").valueAsString;
if (selection=="1" && event.value.length!=6) {
app.alert("Error! The s/n must be 6 digits long.");
event.rc = false;
if (selection=="2" && event.value.length!=12) {
app.alert("Error! The s/n must be 12 digits long.");
event.rc = false; -
Populating more than one table and more than one field
I need some suggestions and this forum has always been a great source of good advice.
I have a web form at the following location: http://www.webdevpractice.com/genoptix/CE/register.php
Here's what the web form needs to do:
Send a confirmation email listing seminars the visitor checked on the form.
Create a similar message on a confirmation page.
Populate 2 two tables.
Items 1 and 2 are working fine.
The advice I need is on how to populate two tables in the database.
There are three tables:
ACCOUNTS
account_id
first_name
last_name
medtech_id
job_title
npi
company
city
state
email
phone
contact
ATTENDANCE
attendance_id
account_id
seminar_id
SEMINARS
seminar_id
seminar
speaker_first_name
speaker_last_name
date
The web form contains data that need to go into the ACCOUNTS table and the ATTENDANCE table. The challenge is getting the account_id and seminar_id into the ATTENDANCE table. If all the information was inserted properly, I could write a query that revealed who was taking what seminar.
Inserting data into the ACCOUNTS table is not a problem. I will create another form to insert information into the SEMINARS so that should not be a problem. But inserting the account_id and the seminar_id is what I am wondering about. Also, can more than one record be inserted in a table? If an user checks more that one seminar, each seminar (seminar_id) would need to be inserted in the ATTENDANCE table as separate records along with the account_id. I'm thinking I may have to do this manually. Also, the values for each seminar are their dates and titles. I used these as values to send the confirmations.
I'm just looking for advice at this point. Is this doable?Bregent,
The table I am wondering about is the ATTENDANCE table. There are two fields in addition to the primary key: account_id and seminar_id. The field I am concern with is the seminar_id which comes from a group of checkboxs on the form. So, one form could create several records. For example, presently there are three seminars that are offered. If the visitor selects all three seminars, that would create three records in the SEMINARS table. So, it might look like this:
attendance_id account_id seminar_id
1 1 1
2 1 2
3 1 3
My PHP skills are basic. I've done other forms and use PHP in other ways. But I have never had to populate several rows in one table with an array of checkboxes nor have I be able to find an example of this.
So the advice I am seeking (and perhaps this is premature) is this:
Can one field from a table populate more than one record?
Should I set up checkboxs as a group or individually with a different name?
I am also considering setting up my tables differently so there is a table from each seminar--that may solve my problem. -
Hi,
I am trying to find out the latest delivery date(EINDT) for each purchasing document (EBELN) through graphical way.
The view contains other fields apart from the above mentioned two fields.
When only the two fields (EBELN, EINDT) are there, then in semantics, I can select 'Max' as aggregation to get the maximum value for each document.
If I do like this, then I need to join more than 3 views and also so many joins in calculation view. Taking so much time for data preview.
Hence , please help me in getting the solution while the view contains other fields also.
Thanks in advance.
Thanks,
JyothirmayiHi Sreehari/Vinoth,
Thank you for your replies.
if only two fields are then I can get the max/min values of one field corresponding to other field.
But more than two fields are there with different values, then let me know how to find out the max/min value of a particular filed corresponding to the 2nd field with other fields also should be in the output.
I hope you understood my issue.Please revert in case of questions.
Thanks & Regards,
Jyothirmayi -
More than one field in generic data source
Hi All,
We wanted extract Allocation data for the sales order from R/3 to BW. I am not able to find proper data source for it... there are two datasources..we wanted afs specific datasource
2LIS_11_V_ITM : Sales-Shipping Allocation Item Data
2LIS_11_V_SCL : Sales-Shipping Allocation Schedule Line
But its not reflecting allocated quantity at all...
So we decided to create generic data source.. but there is one problem for some allocation ARUN is initial.. so i cann't use ARUN as delta field... can i use comination of Sales order no,Item and Schedule line number as delta field....
Because in RSO2 i can define only one field as delta specific field....
How to proceed ???
Regards,
Viren.Hi,
If you decided to use generic data source, make sure that, U'll have to take only
one filed as a delta, I suggest, you take any date field rather than the value fields
it may be created date/change date and so on so forth..
Regards,
Pattan. -
One field gets cleared from ALV to internal table
I have an ALV grid in a view in which i append a row and add some data. This is giving me a very strange problem.
I appended a row in the ALV and then filled up the data in the row. I filled three fields, two of them dates and one a decimal field. Then i saved this data. No problems here.
Now the next time i come on this ALV grid view, i see the previously saved row. I now append another row and fill in some data again. This is where the surprise comes. Out of the two date fields, the first date field is losing its value and is getting cleared when i get the ALV data in an internal table...(using the following code)
node_et_indices_1->get_static_attributes_table( IMPORTING table = lt_indice ).
the lt_indice has the following structure...
field type
MANDT MANDT
BUKRS BUKRS
ZZINDICE ZEAGR_INDICE
ZZITEM CHAR3
ZZDESC CHAR40
ZZINVAL DATS 8
ZZFIMVAL DATS 8
ZZVATR DEC
ZZUATR DEC
ERNAM ERNAM
AEDAT AEDAT
ZCORRIG CHAR1
WAERS WAERS
out of these, the fields zzinval, zzfimval and zzvatr are being populated from webdynpro and the rest of the fields (including the key fields) are populated in the internal table later and then saved to the database.
After executing the above statement, the value in ZZINVAL is 00000000, while on the screen i have entered 01.02.2007. The same does not apply to ZZFIMVAL which holds the value 28.02.2007 as entered on the screen. ZZVATR also holds the correct value entered.
Any ideas why only one of the fields might be getting cleared like this?
The problem does not occur when i am saving only a single row from the ALV.
Please help!!
regards,
PriyankI have checked that the node itself is not containing the value.
How and what can i check for this. I have mapped the ALV in different views similarly and they are working?
Any ideas on where can i check ??
regards,
Priyank -
One job with two steps - how to create one single spool?
Hello experts,
I have created two queries in SQVI. One is based on the table BSIK, the other on on BSAK.
The report layout is the same in both queries.
Now I schedule one job in SM36/SM37 with two steps corresponding to my queries.
I want my second step to append the spool created in the first step. Is that possible?
In order to do this I unchecked "New spool request" in the request attributes for the second step of the job.
I use the same printer, the same format (X_65_80), but it doesnt work.
The help on the field says
".... name, output device, number of prints and the format must match..." - What "name" do they mean?
"In addition, the existent spool order must not already be competed. This can occur if a spool is released for output...." - I use "send to SAP spooler only" option, is that what thay mean? How cen you have an "uncompleted spool" in the job.
If anybody knows ho to do this (without development!), please advise
Best regards,
FatimaHi,
Please do following steps :
1. Go to transaction code SM36
2. Do as per below screen shots
You can see Job steps is empty
Click on (Check and Save)
Next Screen
You can see one step created
Click on Create
You can see above it is showing as Step 2
Give again program name and variant
Click on (Check and Save)
You can see two steps are created
Go back (green arrow)
You can see know SAP is showing 2 Step(s) successfully defined which was earlier blank
Click on
Next Screen
Now schedule job as per your requirement.
Prerequisite create variants for both the programs as we need to mention the same .
Hope, this solves your issue else revert.
Regards,
Tejas -
GUI - How do i merge two diffrent layout managers into one tab?
Hello
I want to create a cellphone, and when you click a button it will be displayed in a textfield
the buttons are in a grid layout (4,3) and the textfield is in a border layout (NORTH)
I have the layouts in two seperate tabs, but how do i merge two diffrent layouts in to one tab ?
textfield:
package guitelefon;
import java.awt.*;
import javax.swing.*;
public class BorderPanel extends JPanel
public BorderPanel()
setLayout (new BorderLayout());
setBackground (Color.green);
JTextField output = new JTextField(5);
add (output, BorderLayout.NORTH);
}Buttons:
package guitelefon;
import java.awt.*;
import javax.swing.*;
public class GridPanel extends JPanel
public GridPanel()
setLayout (new GridLayout (4, 3));
setBackground (Color.green);
JButton b1 = new JButton ("1");
JButton b2 = new JButton ("2");
JButton b3 = new JButton ("3");
JButton b4 = new JButton ("4");
JButton b5 = new JButton ("5");
JButton b6 = new JButton ("6");
JButton b7 = new JButton ("7");
JButton b8 = new JButton ("8");
JButton b9 = new JButton ("9");
JButton bs = new JButton ("*");
JButton b0 = new JButton ("0");
JButton bf = new JButton ("#");
add (b1);
add (b2);
add (b3);
add (b4);
add (b5);
add (b6);
add (b7);
add (b8);
add (b9);
add (bs);
add (b0);
add (bf);
}driver:
package guitelefon;
// LayoutDemo.java Java Foundations
// Demonstrates the use of flow, border, grid, and box layouts.
import javax.swing.*;
public class LayoutDemo
public static void main (String[] args)
JFrame frame = new JFrame ("Cellhpone");
frame.setDefaultCloseOperation (JFrame.EXIT_ON_CLOSE);
JTabbedPane tp = new JTabbedPane();
tp.addTab ("Grid", new GridPanel());
tp.addTab ("Border", new BorderPanel());
frame.getContentPane().add(tp);
frame.pack();
frame.setVisible(true);
}a simple example with compilable code:
import java.awt.BorderLayout;
import java.awt.GridLayout;
import javax.swing.*;
public class Main {
public static void main(String[] args) {
JFrame frame = new JFrame("Cellhpone");
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
JPanel panel = new JPanel(new BorderLayout());
panel.add(new FooPanel(), BorderLayout.CENTER);
panel.add(new BarPanel(), BorderLayout.NORTH);
frame.getContentPane().add(panel);
frame.pack();
frame.setLocationRelativeTo(null);
frame.setVisible(true);
class FooPanel extends JPanel {
private static final String[][] BTN_STRINGS = {
{"1", "2", "3"},
{"4", "5", "6"},
{"7", "8", "9"},
{"*", "0", "#"}};
public FooPanel() {
setLayout(new GridLayout(BTN_STRINGS.length, BTN_STRINGS[0].length, 5, 5));
for (int row = 0; row < BTN_STRINGS.length; row++) {
for (int col = 0; col < BTN_STRINGS[row].length; col++) {
JButton btn = new JButton(BTN_STRINGS[row][col]);
add(btn);
class BarPanel extends JPanel {
private JTextField field = new JTextField();
public BarPanel() {
setLayout(new BorderLayout());
add(field, BorderLayout.CENTER);
}Edited by: Encephalopathic on Oct 29, 2009 7:56 AM -
Query: How can I combine several fields to one field
I have this Query:
SELECT T0.[Cardname], T1.[Street], T1.[ZipCode], T1.[City], T1.[Country] FROM OCRD T0 INNER JOIN CRD1 T1 ON T0.CardCode = T1.CardCode WHERE T0.[CardName] Like '%[%0]%'
I have two questions on it:
1) Now I get two lines with the same results because each BusinessPartner has a billing-address and a shipment-address. How can I get one result with only the shipment-address fields.
2) When I run this query as a Formatted Search on an addressfield I only get the first field (= CardName) in the Addressfield. How can I get Cardname, Street, Zipcode, City and Country in ONE field (ic Address2)?Answer -1
T1.AdresType = 'S' for ship to address
T1.AdresType = 'B' for bill to address
SELECT T0.Cardname, T1.Street, T1.ZipCode, T1.City, T1.Country FROM OCRD T0 INNER JOIN CRD1 T1 ON T0.CardCode = T1.CardCode WHERE T0.CardName Like '%%[%0]%' AND T1.AdresType = 'S'
Answer-2
Modify this query
Select T1.Address + Char(12) + T1.ZipCode + Char(12) + T1.Street + Char(12) + T1.Block +Char(12) + T1.City + Char(12) + T1.County + Char(12) + T1.ZipCode
FROM CRD1 T1 INNER JOIN OCRD T0 ON T0.CardCode = T1.CardCode
Where T1.AdresType='S'
Hope this solves problem.
Edited by: Jeyakanthan A on May 28, 2009 1:45 PM -
Two internal tables in to one internal table
Hi ,
I have two internal tables ITAB1 and ITAB2, i would like to put fields from two internal tables in to one internal table(ITAB3) with out using inner joint. any one of you can give the sample code for this
Thanks
Raja.Hi,
Kamesh wrote :
Read itab2 into wa_itab2 with key f2 = itab1-f1 <USe your where conditions here>.
Read statement does not have WHERE conditions.
Please be careful while posting. Your thread will be reffered by many people. Please dont mislead.
Regards,
Swapna.
Maybe you are looking for
-
Error "there is no disk in the drive..."
I loaded the FlexSQLadmin sample into Builder. When I click the green "run"button, I get a "Windows - No Disk" popup with the message "There is no disk in the drive. Plese insert a disk into drive." Any ideas? I re-installed the builder but still get
-
Webutil invoke.string problem with c++
hi , am using forms 10g and trying to call a dll in c++ it works when i call the dll using webutil to return an integer from the dll by sending 2 parameters of type varchar2 to invoke the function returning integer rc1 := WEBUTIL_C_API.Invoke_int('ca
-
Safari Push Package - Missing File
Initialy I created a website push id and certificate for my site hosted at google app engine. After following the steps specified in apple(SafariNotificationProgamming guide) doc, I generated a push package with iconsets,Manifest.json,Website.json an
-
New OAM/OIM installation -
Hi, I am trying to install OAM and OIM. I've completed the steps through creating the Oracle_IDM1 and the WebLogic domain. This WL domain has only an Adminserver. When I start WebLogic, I see this in the console output: <Apr 7, 2011 11:22:17 PM EDT>
-
How to release data from an Infoprovider to different ERP systems
Hi all, We cannot release DP forecasts directly to the ERP systems (as we do NOT have the required plug-ins in the ERP systems). Therefore we will extract the DP forecasts into APO BW and now want to release the data from an InfoCube to the ERP syste