How to get ATINN value based on material number and Class Type ?
I have below SELECT stmt code which gives the correct value of atwrt based on materil no and ATINN.
However in quality system, it is failing because in quality system "atinn" value is not 0000000381. It is different.
So how can I get ATINN(Internal characteristic) value based on material number and Class Type?
-Obtain the batch characterstic value for the Material******************
SELECT atwrt
UP TO 1 ROWS
INTO v_charvalue
FROM ausp
WHERE objek = mcha-matnr
AND atinn = '0000000381' " 'US80_FRENCH_ON_LABEL'
AND klart = '001'.
THANKS N ADVANCE.
Hi SAm,
use the Below function module to get the Atinn for Atwrt for thr Class and MAterial combination..
CALL FUNCTION 'CLAF_CLASSIFICATION_OF_OBJECTS'
EXPORTING
classtype = '023' "Class type
object = w_object "Material number with Leading zeros
no_value_descript = 'X' "Default X
objecttable = 'MCH1' "Table name Mara or MCH1 or MARC
TABLES
t_class = t_class "It return the Batch class available for the above combination
t_objectdata = t_char "Return Batch characteristics(ATWRT) and their value ATINN in this table
EXCEPTIONS
no_classification = 1
no_classtypes = 2
invalid_class_type = 3
OTHERS = 4.
Regards,
Prabhudas
Similar Messages
-
How to get previous values based on date filters
Hi
i have two fields gldate and startdate
gldate values are like 1/31/2011,2/28/2011,3/31/2011,4/30/2011,5/31/2011 ...
startdate values 1/1/2011,2/1/2011,3/1/2011,4/1/2011,5/1/2011 ...
i need a condition like gldate<startdate
if startdate is 11/1/2011 then i get all the values before 11/1/2011 values
im using filter for date filed
let us filter values is startdate--11/1/2011 and gldate is 11/30/2011 but that cond falls
how to get this condition
plz its urgent to meHi
i have two fields gldate and startdate
gldate values are like 1/31/2011,2/28/2011,3/31/2011,4/30/2011,5/31/2011 ...
startdate values 1/1/2011,2/1/2011,3/1/2011,4/1/2011,5/1/2011 ...
i need a condition like gldate<startdate
if startdate is 11/1/2011 then i get all the values before 11/1/2011 values
im using filter for date filed
let us filter values is startdate--11/1/2011 and gldate is 11/30/2011 but that cond falls
how to get this condition
plz its urgent to me -
How to get a Value based on Foreign Key item
Hi,
I have two tables as below
TABLE 1
T1_COL1 NUMBER ---primary_key
T1_COL2 NUMBER ---foreign_key to TABLE2.T2_COL1
TABLE 2
T2_COL1 NUMBER ---primary_key
T2_COL2 VARCHAR2(40)
Table 2 is my reference table. I have created a form for table 1, however I want to show user the value of T2_COL2 all the time . My user is not interested in seeing primary key value data.
Can some please advise what is the best way to do this in APEX.
Thanks
Aali
Edited by: aalishan on 31-Jul-2009 10:40Hello:
One way to do what you want done is to
1) On the form make the page-item corresponding to T1_COL2 a hidden item
2) Create a new page-item of type Display Only.
3) Set the Source Type for this item to be 'Sql Query'
4) In the Source Value or Expression enter the query select T1_COL2 from table_2 where t2_col1=:pxx_t1_col2Varad -
How to get working Date based on factory Calendar and current date
Hi All,
I want to deletermine a date which is Invoice date + 3 working days excluding SAT, SUN and holidays. For e.g, if Invoice date is 18th Sept, 2009, then my desired date should 23rd Sept, 2009.
I do have factory calendar ID but i dont know the proper function module.
Can some one please help me...Hi,
check this code,
DATA:
w_date TYPE dats,
w_date1 LIKE scal-date, " dats
w_date2 LIKE scal-date,
i_factid LIKE tkevs-fcalid VALUE 'IN', " IN for India
it_dats TYPE TABLE OF rke_dat,
wa_dats LIKE LINE OF it_dats,
w_lines TYPE i.
CALL FUNCTION 'CALCULATE_DATE'
EXPORTING
days = '0'
months = '1'
start_date = sy-datum " for example '20090918'
IMPORTING
result_date = w_date. " 1 month added '20091018'
w_date1 = sy-datum.
w_date2 = w_date.
CALL FUNCTION 'RKE_SELECT_FACTDAYS_FOR_PERIOD'
EXPORTING
i_datab = w_date1
i_datbi = w_date2
i_factid = i_factid
TABLES
eth_dats = it_dats. " number of working days between two dates
READ TABLE it_dats INDEX 4 INTO wa_dats.
WRITE :
/ wa_dats-periodat. " new date '20090923'
Hope this will be helpfull...
Regards
Adil -
How to get the values of a selected row and edit it
hi all,
i am using a table component.I am populating it from the database.i used static text to display the data .i have a edit button in the last column. when i click on it that particular rows data should be shown in a text field in that row itself,so that i should be able to edit it and then if i save it it that row should change to statictext with the updated data.
please provide a solution for this...
regards,
rpkHi Andrea,
If you are using ADFBC, the easiest way is to drop the attribute(Say Name) from the data control palette as outputText component and add partialTriggers property of it to point to table id(to refresh the outputText whenever the row is selected in table)
Sireesha -
How to get sysnr value in a Function Module
Hi all,
I need to get the sysnr(system number) value of the R/3 system. I execute a RFC function module and need to get the value of sysnr of the system it executes in as a return parameter. Can somebody tell me how to get this value in the function module and return it.
Thanks and Regards,
PratikHello Pratik
The system number has to be defined in the RFC destination. Thus, select on your local system (where you call the RFC function module) the corresponding RFC destination from table <b>RFCDES</b>. In field RFCDES-RFCOPTIONS you will find a string like this:
H=<ip address>,S=21,R=N, ...
S=system number
Regards
Uwe -
How to get check value in DB based on java
hi,
anybody know how to get check value in DB based on java?
TQThis should be a custom java class containing that method.
Try on java or jdbc forum - Java Database Connectivity (JDBC) , Java Programming -
How to get parameter value from report in event of value-request?
Hi everyone,
The customer want to use particular F4 help on report, but some input value before press enter key are not used in event of "at selection-screen on value-request for xxx", How to get parameter value in this event?
many thanks!
JackYou probably want to look at function module DYNP_VALUES_READ to allow you to read the values of the other screen fields during the F4 event... below is a simple demo of this - when you press F4 the value from the p_field is read and returned in the p_desc field.
Jonathan
report zlocal_jc_sdn_f4_value_read.
parameters:
p_field(10) type c obligatory, "field with F4
p_desc(40) type c lower case.
at selection-screen output.
perform lock_p_desc_field.
at selection-screen on value-request for p_field.
perform f4_field.
*& Form f4_field
form f4_field.
*" Quick demo custom pick list...
data:
l_desc like p_desc,
l_dyname like d020s-prog,
l_dynumb like d020s-dnum,
ls_dynpfields like dynpread,
lt_dynpfields like dynpread occurs 10.
l_dynumb = sy-dynnr.
l_dyname = sy-repid.
*" Read screen value of P_FIELD
ls_dynpfields-fieldname = 'P_FIELD'.
append ls_dynpfields to lt_dynpfields.
call function 'DYNP_VALUES_READ'
exporting
dyname = l_dyname
dynumb = l_dynumb
tables
dynpfields = lt_dynpfields
exceptions
others = 1.
check sy-subrc is initial.
*" See what user typed in P_FIELD:
read table lt_dynpfields into ls_dynpfields
with key fieldname = 'P_FIELD'.
*" normally you would then build your own search list
*" based on value of P_FIELD and call F4IF_INT_TABLE_VALUE_REQUEST
*" but this is just a demo of writing back to the screen...
*" so just put the value from p_field into P_DESC plus some text...
concatenate 'This is a description for' ls_dynpfields-fieldvalue
into l_desc separated by space.
*" Pop a variable value back into screen
clear: ls_dynpfields.
ls_dynpfields-fieldname = 'P_DESC'.
ls_dynpfields-fieldvalue = l_desc.
append ls_dynpfields to lt_dynpfields.
call function 'DYNP_VALUES_UPDATE'
exporting
dyname = l_dyname
dynumb = l_dynumb
tables
dynpfields = lt_dynpfields
exceptions
others = 0.
endform. "f4_field
*& Form lock_p_desc_field
form lock_p_desc_field.
*" Make P_DESC into a display field
loop at screen.
if screen-name = 'P_DESC'.
screen-input = '0'.
modify screen.
exit.
endif.
endloop.
endform. "lock_p_desc_field -
Xml: how to get node value when pasing node name as a parameter
Hi,
I've got some xml:
var xmlData:XML =
<1stNode>
<buttonID>first child node value</buttonID>
<imageID>second child node value</imageID>
<labelID>third child node value</labelID>
</1stNode>
Then I want to read specific node value based on a value passed to a function. .
var buttonID = new Button;
var imageID = new Image;
var labelID = new Label;
getNodeValue(buttonID); //the value here is set dynamically
private function getNodeValue (nodeName:String):void {
trace (xmlData.nodeName) //doesn't work
var str:String = "xmlData." + nodeName;
var xml:XMLList = str as XMLList //doesn't work
I'm don't know how to get the value when node name is dynamically changed.use:
getNodeValue(buttonID); //the value here is set dynamically
private function getNodeValue (nodeName:String):void {
trace (xmlData[nodeName]) -
HOW TO FIND LAST DOCUMENT DATE BASED ON MATERIAL NUMBER
Hi,
I want to know how to find the last document details based on material number.
Is there any Functional modulle or BAPI programe?
i,e, I want know last goods receipt details (MIGO) based on material number.
Can u please anybody tell me.
Thanks,
S.Muthu.
Edited by: Subramaniyan Marimuthu on Jan 2, 2008 9:07 AMHello.
Check the BAPI_GOODSMVT_GETITEMS
-example--
Get GRs after a specific date for a specific plant/ storage location and movement types
wa_budats-sign = 'I'.
wa_budats-option = 'GE'.
wa_budats-low = '20071201'.
APPEND wa_budats TO budats.
wa_plants-sign = 'I'.
wa_plants-option = 'EQ'.
wa_plants-low = '1000'.
APPEND wa_plants TO plants.
wa_stlocs-sign = 'I'.
wa_stlocs-option = 'EQ'.
wa_stlocs-low = '0001'.
APPEND wa_stlocs TO stlocs.
wa_mvts-sign = 'I'.
wa_mvts-option = 'EQ'.
wa_mvts-low = '101'.
APPEND wa_mvts TO mvts.
wa_mvts-low = '901'.
APPEND wa_mvts TO mvts.
wa_mvts-low = '123'.
APPEND wa_mvts TO mvts.
CALL FUNCTION 'BAPI_GOODSMVT_GETITEMS'
TABLES
plant_ra = plants
stge_loc_ra = stlocs
move_type_ra = mvts
pstng_date_ra = budats
goodsmvt_header = header
goodsmvt_items = item
return = return.
Reward if helpful.
Cheers,
George -
How to Get Resource value which are referred in code behind file using IResourceProvider
Hi Everyone,
Currently I'm working on moving the Resource file from "App_GlobalResources" to Database by using IResourceProvider. I created a CustomResourceProvider project using ResourceProviderFactory and able to get the resource values from DB which
are used in aspx page.
But i'm not able to get the values which are referring from code behind file.
Ex: Label1.Text = Resources.Common.Car; // This is still coming from resx file.
Can any one please let me know how to get the value from DB instead of resx file which are referred in cs file.
Appreciate your help.
The below code uses the ResourceProviderFactory which calls this method and gets it from DB. Please let me know if you need any more info.
public class DBResourceProviderFactory : ResourceProviderFactory
public override IResourceProvider CreateGlobalResourceProvider(string classKey)
return new DBResourceProvider(classKey);
public override IResourceProvider CreateLocalResourceProvider(string virtualPath)
// we should always get a path from the runtime
string classKey = virtualPath;
if (!string.IsNullOrEmpty(virtualPath))
virtualPath = virtualPath.Remove(0, 1);
classKey = virtualPath.Remove(0, virtualPath.IndexOf('/') + 1);
return new DBResourceProvider(classKey);
Regards, Ravi Neelam.Hi Ravi Neelam.
>>Currently I'm working on moving the Resource file from "App_GlobalResources" to Database by using IResourceProvider.
Based on this message, your issue related to web application, questions related to Asp.Net should be posted in
Asp.Net forum.
Please reopen a new thread in that forum. You will get more efficient response.
Regards,
Kristin
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
How to get Datalink value in Ichart ( Flavor: Pie ) ?
Hi Jermy,
I can select the pen numner form selection event of the legend by using
document.<appletname>.getchartObject.getSelectedPen()
How can get the values assoiciated with that pen or legned ( i mean datalink vales ).
I have added one column in the datalink columns of the ichart template and i need that datlink values based on the legend selection.
How can i do that?
Thanks
VansiVansi,
Leveraging the Script Assistant to help you with methods, and using the javascript alert statement are great ways to learn how the applet methods behave.
The .getDatalinkValue(PENNUMBER,POINTNUMBER,ATTRIBUTE) method has three inputs - you already know how to get the pennumber, and since your chart is Pie then the pointnumber should be 1 since you don't have a line chart or group bar chart. The attribute is a one-based index for all of your mapped datalink columns, so if you only have one of these then use a static 1.
Regards,
Jeremy -
How to get the values from popup window to mainwindow
HI all,
I want to get the details from popup window.
i have three input fields and one search button in my main window. when i click search button it should display popup window.whenever i click on selected row of the popup window table ,values should be visible in my main window input fields.(normal tables)
now i am able to display popup window with values.How to get the values from popup window now.
I can anybody explain me clearly.
Thanks&Regards
kranthiHi Kranthi,
Every webdynpro component has a global controller called the component controller which is visible to all other controllers within the component.So whenever you want to share some data in between 2 different views you can just make it a point to use the component controller's context for the same. For your requirement (within your popups view context) you will have have to copy the component controllers context to your view. You then will have to (programmatically) fill this context with your desired data in this popup view. You can then be able to read this context from whichever view you want. I hope that this would have made it clear for you. Am also giving you an [example|http://****************/Tutorials/WebDynproABAP/Modalbox/page1.htm] which you can go through which would give you a perfect understanding of all this. In this example the user has an input field in the main view. The user enters a customer number & presses on a pushbutton. The corresponding sales orders are then displayed in a popup window for the user. The user can then select any sales order & press on a button in the popup. These values would then get copied to the table in the main view.
Regards,
Uday -
How to get return values from task flow in af:region ?
Hi!
I'm working with a taskFlow that is rendered inside a popup using the "popup inside a region pattern" (http://www.oracle.com/technology/products/adf/patterns/popupregionpattern.pdf), but now this taskFlow has an input parameter and a return value definition. So the question is how to get a value returned by this taskFlow thas is called inside a region?
Any suggestion?
Thanks in advance!Hi,
write the value to a shared memory scope like session and read it in the regionNavigation listener. If you follow the paper you refer to then the listener determines of the viewId is null, this a return happens. It wuld then look in the memory scope for the return value.
Another option would be to use an object that you pass as an argument to the task flow you open in the popup. Then you change the object you passed in, which then makes the return information available in teh calling flow. The object you pass in would have to be in a shared scope too
Frank -
How to get each value from a parameter passed like this '(25,23,35,1)'
Hi
One of the parameter passed to the function is
FUNCTION f_main_facility(pi_flag_codes VARCHAR2) return gc_result_set AS
pi_flag_codes will be passed a value in this way '(25,23,35,1)'
How to get each value from the string
like 25 first time
23 second time
35 third time
1 fourth time
I need to build a select query with each value as shown below:-
(SELECT t2.org_id, t4.description
from org_name t2, ref_org_name t3, code_table t4
where t2.att_data = t4.code
and t3.ref_code = t2.att_type
and t2.att_type = 25 and t3.code_type = t4.code_type
and to_date('01-JAN-10', 'DD-MON-YY') between t2.att_start_date AND t2.att_end_date) q1,
(SELECT t2.org_id, t4.description
from org_name t2, ref_org_name t3,code_table t4
where t2.att_data = t4.code
and t3.ref_code = t2.att_type
and t2.att_type = 23 and t3.code_type = t4.code_type
and to_date('01-JAN-10', 'DD-MON-YY') between t2.att_start_date AND t2.att_end_date) q2,
(SELECT t2.org_id, RTRIM(xmlagg(xmlelement(e, t4.description || ';')
ORDER BY t4.description).EXTRACT('//text()'), ';') AS DESCRIPTION
from org_name t2, ref_org_name t3,code_table t4
where t2.att_data = t4.code
and t3.ref_code = t2.att_type
and t2.att_type = 35 and t3.code_type = t4.code_type
and to_date('01-JAN-10', 'DD-MON-YY') between t2.att_start_date AND t2.att_end_date
group by t2.org_id) q3,
(SELECT t2.org_id, t4.description
from org_name t2, ref_org_name t3, code_table t4
where t2.att_data = t4.code
and t3.ref_code = t2.att_type
and t2.att_type = 1 and t3.code_type = t4.code_type
and to_date('01-JAN-10', 'DD-MON-YY') between t2.att_start_date AND t2.att_end_date) q4
Please help me with extracting each alue from the parm '(25,23,35,1)' for the above purpose. Thank You.chris227 wrote:
I would propose the usage of regexp for readibiliy purposes and only in the case if this doesnt perform well, look at solutions using substr etc.
select
regexp_substr( '(25,23,35,1)', '\d+', 1, 1) s1
,regexp_substr( '(25,23,35,1)', '\d+', 1, 2) s2
,regexp_substr( '(25,23,35,1)', '\d+', 1, 3) s3
,regexp_substr( '(25,23,35,1)', '\d+', 1, 4) s4
from dual
S1 S2 S3 S4
"25" "23" "35" "1"In pl/sql you do something like l_val:= regexp_substr( '(25,23,35,1)', '\d+', 1, 1);
If t2.att_type is type of number you will do:
t2.att_type= to_number(regexp_substr( '(25,23,35,1)', '\d+', 1, 1))Edited by: chris227 on 01.03.2013 08:00Sir,
I am using oracle 10g.
In the process of getting each number from the parm '(25,23,35,1)' , I also need the position of the number
say 25 is at 1 position.
23 is at 2
35 is at 3
1 is at 4.
the reason I need that is when I build seperate select for each value, I need to add the query number at the end of the select query.
Please see the code I wrote for it, But the select query is having error:-
BEGIN
IF(pi_flag_codes IS NOT NULL) THEN
SELECT length(V_CNT) - length(replace(V_CNT,',','')) FROM+ ----> the compiler gives an error for this select query : PLS-00428:
*(SELECT '(25,23,35,1)' V_CNT FROM dual);*
DBMS_OUTPUT.PUT_LINE(V_CNT);
-- V_CNT := 3;
FOR L_CNT IN 0..V_CNT LOOP
if L_CNT=0 then
V_S_POS:=1;
V_E_POS:=instr(pi_flag_codes, ',', 1, 1)-1;
else
V_S_POS:=instr(pi_flag_codes,',',1,L_CNT)+1;
V_E_POS:=instr(pi_flag_codes, ',', 1, L_CNT+1)-V_S_POS;
end if;
if L_CNT=V_CNT then
V_ID:=TO_NUMBER(substr(pi_flag_codes,V_S_POS));
else
V_ID:=TO_NUMBER(substr(pi_flag_codes,V_S_POS,V_E_POS));
end if;
VN_ATYPE := ' t2.att_type = ' || V_ID;
rec_count := rec_count +1;
query_no := 'Q' || rec_count;
Pls help me with fetching each value to build the where cond of the select query along with the query number.
Thank You.
Maybe you are looking for
-
How to take a picture the menu???
I noticed that some of facebook users are uploading the picture of their program or website. I just want to know how to take a picture if I am using iphone 4. My friend said press the power button and menu button at the same time but its not working.
-
Ok, had this problem for a couple of week's now and am at my wit's end on it. My 5th Generation video Ipod will not play anything. With both songs and videos, I select one and it shows the play icon but just sits there with the time at 0:00 almost as
-
Selection Screen - Date and Time
Hi, I have given a selection screen where the user needs to key in the input in the following format dd.mm.yyyy hh:mm:ss. Reason is that the database fetching these elements accepts only in this criteria. Now as they look into automating this program
-
My iTunes card said that the number is invalid but I have checked it several tomes
My iPhone 5c will not redeem my gift card
-
Forcing Local Currency amounts when posting Foreign Currency documents
When posting entries in a foreign currency (FC), it is possible and often used to force through a local currency (LC) amount that differs from what SAP would have posted using the current For Ex rate. This is used in cases where a payment is made in