How to use same CMOD code for 2 Diff. variableS?
Experts,
I have written some code under CMOD. Now, i have another query which i could use the same CODE, but diff. variable
( In the CMOD code, i am passing one User input variable ). For the 2nd query i have to pass different User Input variable.
How OR what should i wright to tell CMOD, that IF its Query # 1 then use ABC variable and if Query # 2 then use XYZ .
thanx
Dear Hon Bon,
Let us have a small example on ur scenario.
Lets take the requirement as to calculate Month from Date. (In both the queries).
Query 1: Input variable for Date is say 'ZDATE1'.
Query 2: Input variable for Date is say 'ZDATE2'.
Now let the CMOD variable be ZVAR_CALMONTH.
when 'ZVAR_CALMONTH'.
clear: lwa_var_rng,
lwa_range.
loop at i_t_var_range into lwa_var_rng where vnam = 'ZDATE1' or vnam = 'ZDATE2'.
concatenate lwa_var_rng-low+0(4)
lwa_var_rng-low+4(2)
into lwa_range-low.
lwa_range-sign = 'I'.
lwa_range-opt = 'EQ'.
append lwa_range to e_t_range.
clear lwa_range.
endloop.
Now when you execute the Query1, the above code will work for 'ZDATE1' variable,
if you execute the Query2, the above code will work for 'ZDATE2' variable.
So, the key point is,
1. You need not worry about which query is getting executed. Whatever the query, the particular user entry variable of that query will be taken care.
2. This method works only if the cmod variable (ZVAR_CALMONTH) is used in both the queries (Ofcourse its ur requirement).
3. If queries have both the user entry variables then the cmod will work differently(it ll get data from both the user variables).
You shall try ur code in the above example by replacing the code and the variable names and try playing around it.
Hope this helps.
Regards,
Guru
Similar Messages
-
How to use same RESULT SET for two different events
hello friends,
I need to use same result set for two different events. How to do it.
here My code,
private void jComboBox1ItemStateChanged(java.awt.event.ItemEvent evt) {
// TODO add your handling code here:
try
String selstate,selitem;
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection con=DriverManager.getConnection("jdbc:odbc:tourismdatasource","sa","");
selstate="select * from tab_places where state=?";
PreparedStatement ps=con.prepareStatement(selstate);
ps.setString(1, jComboBox1.getSelectedItem().toString().trim());
ResultSet rs=ps.executeQuery();
if(rs.next())
jTextField1.setText(rs.getString("place_ID"));
jTextField2.setText(rs.getString("place_name"));
jTextField3.setText(rs.getString("category"));
byte[] ba;
ba=rs.getBytes("image");
ImageIcon ic = new ImageIcon(ba);
jLabel6.setIcon(ic);
in=true;
catch(ClassNotFoundException cfe){JOptionPane.showMessageDialog(null, cfe.getMessage());}
catch(SQLException sqe){JOptionPane.showMessageDialog(null,sqe.getMessage());}
Now i need the same Result Set(rs), in another event(jButton6ActionPerformed),
private void jButton6ActionPerformed(java.awt.event.ActionEvent evt) {
// TODO add your handling code here:
} how do i get dat resultset,
help me outOne post wasn't enough?
{color:0000ff}http://forum.java.sun.com/thread.jspa?threadID=5246634{color}
db -
How to use Event Tracking Code for Google Analytics in Dreamweaver CS5
I need to track clicks on links that go to an outside website. I've read about "event tracking code". I'm not sure if it's the right tool to use. And if it is, I've spent several hours reading about it and I can't figure out how to use it. It looks like you need to be an expert developer to be able to make sense of all this. I've always been helped when I ask a question here, I'm hoping that someone can help me.
What my client needs is to know what links are being clicked, and how often. Here's the page where I want to do this: Available Homes - Arizona Vacation Home Rentals
I added a code that I created using the tool I found here: General Event Tracking Code for Google Analytics but can't see to be able to make this work. I added this code to the first link called "View it Here" for the top, left house. Here's the code: <a href="http://www.homeaway.com/vacation-rental/p3495538" onClick="ga('send', 'event', { eventCategory: 'clicks', eventAction: 'clicks on homes', eventLabel: 'Clicked'});" target="_blank">View it HERE!</a>
Then I set a Goal in Google Analytics like it said in the instructions but it doesn't seem to work... I would APPRECIATE ANY HELP!
Thanks,
BrigitteI think you misunderstood what Event Tracking is designed for. This is from Google Help
Tracking Code: Event Tracking - Google Analytics — Google Developers
"Use this to track visitor behavior on your website that is NOT related to a web page visit, such as interaction with a Flash video movie control or any user event that does not trigger a page request."
Clicks on links are page requests. I think for your purposes, you may want the Cross Domain Link Tracking plugin.
Cross Domain Tracking - Web Tracking (analytics.js) - Google Analytics — Google Developers
Nancy O. -
How to use Same Inspection plan for Multiple Plants?
Hello,
When I create a Process Order for material (M1), release and save it for a Plant A then I get the Inspection lot automatically.
Now I have another Plant B that we have created. We would like to use the same Inspection plan that has been created for Plant A and M1
So in the changed mode(QP02) of the Inspection plan for Plant A in the material assignment tab I added the Material M1 and the Plant B. I am assuming this means when I create the Process order for M1 in Plant B then it should use the same Inspection plan.
But when I create the Process Order for M1 for Plant B, release and save it then it does not created the Inspection lot automatically(though I can create Inspection lot manually)
Can you tell me if there is setting that will allow me to create the Inspection lot automatically on saving the Process order which should use the Inspection plan that I just assigned.
And also let me know if there is a better way to handle same Inspection Plan for same material but multiple Plants.
Thanks
SAP Fans...Dear,
For your message my understanding is that you are not getting Inspection lot created in Plant"B". Inspection lot for a material would get created based on the Inspection Setup for the material master "QM View", so compare the QM for the material in both plants and correct it for Plant "B".
Probably I feel Inspection Setup is not complete for the material in Plant "B" - Generally when extending material by copying referance, in the QM view you need to click the Inspection Setup Button, for the data to be copied...otherwise it does not copy the Inspection setup from the referance plant.
Regards,
Prasobh -
How to use same jco destinations for two DCS
Hi,
I have a scenario where two dcs are using the same function module so i have a doubt that can we make jco destinations different for two dcs or not,plz help me
Thanks,
Santhosh.Vanama
JCO Destination names are associated with models and not DCs. You can use same or different JCO destination names across different models.
Typically if you are using a common set of function modules(RFCs) you might decide to create one or more model (each model consisting of logically related RFCs)in one DC and use it accross different DCs(By declaring the usage of the DC in other DC and declaring model usage in a particular component). This not only will save build time during design process, but will also bring in modularity and reusability. But its purely a design decision you need to make based on your requirement.
kk -
How can we use same material code for two different sales area
Hello friendsu2026
Hope you all doing well
I am facing a problem and I will be thankful to all of you, for your suggestions
Issue:
I have a *material created in 3000/10/19 for domestic purpose *,now our company has decided to export it for that we have created a new sales are 3000/13/20 for export,we cannot create the salesa are as 3000/13/19 due to some company issues,
Is there any way how I can use the material already in 3000/10/19 into new sales area 3000/13/20.
Will common distribution channel and division concept will be applicable here
As the material is same,and we donu2019t want to go for any more new material code. *
Thanks
Siddharth SharmaHi Sharma,
when a material is used in domestic and exports.....i hope it should be seggreagated based on dist chnl.......but not division.
because material is Division specific. it can be there in only one division. like mother child relation.
that is the reason why...... it is maintained inside BASIC DATA...... but not in input screen while creating material master.[unlike dist chnl]
because a material can be in multiple dist chnl....but not multiple division.
I feel only alternative is creating new material if you are already decided to devide the sales by division for domestic and foriegn.
Purpose of common dist chnl/div is to maintain pricing/condition in one common whenever you change master data.......
hope this gives you the clarity
regards
Satya.SCM -
How to Use Same Navigation Panal for two different query
Hello,
My requirement is I have to display three different report in same web template in three different tab.
I have created a custom web template with tab.
in each tab i have assigned three different analyser table and assigned three different report in each data provider. once I run the report that works fine, each tab is displying each report seperately.
The problem I am having here with navigation panal. Navigation panal is working ok for 1st report, but when I go to the 2nd tab for 2nd report nev attribute itself is not displying. is there any special setting that i am missing?
If any one know about the same pls help me
Thanks
SamitHi
When u select the Generic navigational block to ur template. select that and right click go to properties, in the lift side of u web item will come in that last but one option is Affected data providers is there double click on the list u will get the option
Shashi -
Unable to debug/correct the CMOD code for a variable used in a query
unable to debug/correct the CMOD code for a variable used in a query
i am using the data in a DSO in a query and using a custom coding variable in that query , but this data not coming in that query ..
can anyone suggest how to debug that cmod code for the variable?
code is written in CMOD tocde for the variable.belowis the code that i have written for a custom coding for a variable
*******Start***
IF i_step = 2.
CASE i_vnam.
WHEN 'IC_COMPCD'.
TYPES: BEGIN OF gt_itab_DyAuthTable,
username TYPE /bic/afiop_o1200-/BIC/IC_USER,
companycode TYPE /bic/afiop_o1200-COMP_CODE,
END OF gt_itab_DyAuthTable,
BEGIN OF gt_itab_Cocd_all,
companycode TYPE /BI0/MCOMP_CODE-COMP_CODE,
END OF gt_itab_Cocd_all.
DATA: gi_itab_DyAuthTable TYPE STANDARD TABLE OF gt_itab_DyAuthTable,
wa_itab_DyAuthTable TYPE gt_itab_DyAuthTable.
DATA: gi_itab_Cocd_all TYPE STANDARD TABLE OF gt_itab_Cocd_all,
wa_itab_Cocd_all TYPE gt_itab_Cocd_all.
SELECT /BIC/IC_USER
COMP_CODE FROM /bic/afiop_o1200
INTO CORRESPONDING FIELDS OF TABLE gi_itab_DyAuthTable
WHERE /bic/ic_user = sy-uname.
LOOP AT gi_itab_DyAuthTable INTO wa_itab_DyAuthTable.
IF wa_itab_DyAuthTable-companycode EQ '*'
OR
wa_itab_DyAuthTable-companycode EQ ' '.
SELECT COMP_CODE FROM /BI0/MCOMP_CODE
INTO CORRESPONDING FIELDS OF TABLE gi_itab_Cocd_all.
LOOP AT gi_itab_Cocd_all INTO wa_itab_Cocd_all.
l_s_range-low = wa_itab_Cocd_all-companycode.
l_s_range-sign = 'I'.
l_s_range-opt = 'EQ'.
APPEND l_s_range TO e_t_range.
ENDLOOP.
to exit the loop if any one value is */space/all for a user's compcode values
EXIT.
ENDIF.
ENDLOOP.
if control is here means, the comp codes values didnt have */space
LOOP AT gi_itab_DyAuthTable INTO wa_itab_DyAuthTable.
l_s_range-low = wa_itab_DyAuthTable-companycode.
l_s_range-sign = 'I'.
l_s_range-opt = 'EQ'.
APPEND l_s_range TO e_t_range.
ENDLOOP.
Endcase.
Endif. -
How to use same actions for differ pop-up
Hi gurus,
I am using 2 popup in a view.same popup's having same buttons 'Yes', 'No'.when i use 1st one i have to create an action for that Yes button where i put my code for that particular Action.
But when i used 2nd one the action define for that is not acceptable with differ name.it takes only standard one.
Now my Query is : How to use same actions for differ pop-up buttons with in a similar view?Where i put my code.
Plz sugges me.
<b>Points will be sured.</b>
Sanket sethiHi,
Take one integer value attribute in the context of view
when you r performing action on POP1 set it's value to 1
when you r performing action on POP2 set it's value to 2
create one method which receives integer argument, say diaplay(int a)
In the action call display(wdContext.currentContextElement().get<intvariable>()) by passing the value in the context attribute
in display() method, Check the value of integer variable..
if it is 1 then perform action related to POP1
if it is 2 then perform action related to POP2
Regards
LakshmiNarayana -
How to use same actions for differ pop-up buttons
Hi gurus,
I am using 2 popup in a view.same popup's having same buttons 'Yes', 'No'.when i use 1st one i have to create an action for that Yes button where i put my code for that particular Action.
But when i used 2nd one the action define for that is not acceptable with differ name.it takes only standard one.
Now my Query is : How to use same actions for differ pop-up buttons with in a similar view?Where i put my code.
Plz sugges me.
<b>Points will be sured.</b>
Sanket sethiHi ,
u can use the method SUBSCRIBE_TO_BUTTON_EVENT of the IF_WD_WINDOW interface ... to handle the event fired by the popup .....used this method after creating the popup window ...
regards
Yash -
How to use same Data Type and Length for two fields
How to use same data type and length for two fields when using 'FOR ALL ENTRIES IN' in a select statement? For instance the select queries are :
SELECT bukrs gjahr belnr lifnr budat bldat zlspr dmbtr waers shkzg
FROM bsik
INTO TABLE it_bsik
WHERE bukrs = p_bukrs
AND lifnr IN s_lifnr.
IF it_bsik IS NOT INITIAL.
SELECT belnr gjahr awkey awtyp
FROM bkpf
INTO TABLE it_bkpf
FOR ALL ENTRIES IN it_bsik
WHERE belnr = it_bsik-belnr
AND gjahr = it_bsik-gjahr.
IF it_bkpf IS NOT INITIAL.
SELECT belnr gjahr lifnr xblnr
FROM rbkp
INTO TABLE it_rbkp
FOR ALL ENTRIES IN it_bkpf
WHERE belnr = it_bkpf-awkey+0(10)
AND gjahr = it_bkpf-awkey+10(4).
ENDIF.
ENDIF.
Here it gives an error in the 3rd select query that 'When you use the addition "FOR ALL ENTRIES IN itab", the fields "GJAHR" and "IT_BKPF2-AWKEY+10(4)" must have the same type and the same length.'
Kindly clarify.Hi Saurabh,
Please see the example code that I have developed for you. It will help you solve the problem.
REPORT ZTEST_3 .
tables : BKPF.
data : begin of it_bkpf occurs 1,
belnr type RE_BELNR,
awkey type awkey,
awtyp type awtyp,
gjahr type GJAHR,
end of it_bkpf.
data : begin of it_bkpf1 occurs 1,
belnr type RE_BELNR,
awkey type gjahr, " change the data type
awtyp type awtyp,
gjahr type GJAHR,
end of it_bkpf1.
data : begin of it_rbkp occurs 1,
belnr type BELNR_D,
gjahr type gjahr,
lifnr type LIFRE,
xblnr type XBLNR,
end of it_rbkp.
select belnr
awkey
awtyp
gjahr
from bkpf
into table it_bkpf
where BUKRS = 'TELH'.
loop at it_bkpf.
it_bkpf1-belnr = it_bkpf-belnr.
it_bkpf1-awkey = it_bkpf-awkey+10(4). "Here only append the required length.
it_bkpf1-awtyp = it_bkpf-awtyp.
it_bkpf1-gjahr = it_bkpf-gjahr.
append it_bkpf1.
clear it_bkpf1.
endloop.
select belnr
gjahr
lifnr
xblnr
from RBKP
into table it_rbkp
for all entries in it_bkpf1
where belnr = it_bkpf1-belnr
This is just an example. Change the fields according to your requirement.
Regards
Abhii
Edited by: Abhii on Mar 9, 2011 9:08 AM -
I'm using same apple id for my ipad & ipod but after start using the same apple id on my ipad, i can't update my free software downloaded on both, it's showing "YOU CAN NOT UPDATE THIS SOFTWARE SINCE YOU HAVE NOT OWNED THE MAJOR VERSION OF THIS SOFTWARE" so how i can update my softwares on ipad & ipod using the same apple id
I think the issue is that iTunes (for whatever reason) thinks I have two Apple ID's.
also, to further complicate the issue, when i try updating the apps from my iPod the iTunes store is still recognizing my old hotmail Apple ID. So when I go to enter my password it won't accept because it doesn't match with the old Apple ID, even though it is the same account (just new Apple ID name).
I have tried signing out within the App Store and re-signing in with my Apple ID but it still brings up my old Apple ID name when I try to update. -
How to use the LAN NetStream for peer transmission, please help, write a sample code
How to use the LAN NetStream for peer transmission, please help, write a sample code
No reply, I reply, Oh
-
How do I generate redemption code for creative cloud?
how do I generate redemption code for creative cloud?
On October 27th 2014, you have purchased two CC (one complete &one photography) under the same Adobe ID. That is the reason you are being asked for a code because under one Adobe ID only one CC can be activated(twice).
Please contact Adobe Support or you can inbox me privately the CC order number that you would like to cancel.
You can also check if the host file has Adobe entry or not as if Adobe entries are there then also CC can ask for serial number. You can check the host by the followinh method.
Creative cloud do not need a serial number. it will be using your Adobe ID on which you have purchased the creative cloud membership.
So you need to login with your Adobe ID and password to activate the cloud membership.
Log out & log back in of the CC Desktop App.
In case it is not signing in successfully please try the following:
I don't know which operating system you are working on so i am giving you some steps windows and MAC OS:
Windows:
In windows 7 navigate to following location:
/windows/system32/drivers/etc
1. look out for "Hosts" file
2. Open it with notepad
3. Check if you have any entry for Adobe
4. Remove the entries and try again launching any product from CC
Mac:
1. Please click on "Go" and navigate to /private/etc
2. Open "hosts" file and check out for any entries for Adobe.com
3. Remove the entries and save the file
4. try again launching any product from CC
Please refer to Creative Cloud applications ask for serial number
Hope it helps you.
Regards
Rajshree
Cannot license Illustrator CC after buying subscription -
How to view the source code for Native Method
hi
i am using some native methods in to my code ;
can anybody tell me how to view the source code for the same ;
nikBuy/acquire a C/C++/assembly code disassembler and run the shared library through it.
Maybe you are looking for
-
My wife used to have an account on my iMac and then she deleted her account when she no longer needed it. Now I cannot update three software packages in the Mac App Store. Software update keeps telling me updates are available but when I try to updat
-
Movie from laptop to ipad?
hi, how do i make a movie that i bought from itunes on laptop play on my ipad?
-
PRO*C에서 EMBEDDED SQL STATEMENTS를 사용해서 LOB DATATYPES에 접근하는 예제
제품 : PRECOMPILERS 작성날짜 : 2001-07-12 PRO*C에서 EMBEDDED SQL STATEMENTS를 사용해서 LOB DATATYPES에 접근하는 예제 ========================================================================== Pro*C에서 LOB를 사용하는 방법에는 다음 3가지가 있습니다. (1) PL/SQL blocks에서 DBMS_LOB package를 이용하
-
Okay, so I have iWork '09 installed from a dvd I bought few years back. I recently updated my OS to Yosemite, and I was able to update some of the other apps as well (iPhoto for example). My problem is with updating iWork. App Store shows that an upd
-
Overhead planning on production order
Hi Gurus, I have an OVH cost center in my costing sheet. It is credited during actual settlement of a production order. Will this cost center be credited with planning data at any point of time? Thanks