How to define a Value for an Attribute of an Class
Hi,
How to define a Value for an Attribute of a Class ...
( I need to change the value of an Attribute of a class in standard program ....
Ex...
cl_hrce_masterswitches=>infotype_framework_is_active
Here infotype_framework_is_active is the attribute .. its value in standard program is 'X'... Now i need to change it as ' '.
How to define it and set value as ' '.
Hello Surendar
The static attribute INFOTYPE_FRAMEWORK_IS_ACTIVE is read-only and there is not SETTER method to manipulate its value.
However, the attribute is filled in the CLASS_CONSTRUCTOR:
METHOD class_constructor.
IF ce_is_active = true OR
global_payroll_is_active = true OR
mngmt_global_empls_is_active = true.
infotype_framework_is_active = true.
perid_infotype_is_active = true.
ELSE.
infotype_framework_is_active = false.
perid_infotype_is_active = false.
ENDIF.
ENDMETHOD.
Thus, you need to analyze how attribute CE_IS_ACTIVE, GLOBAL_PAYROLL_IS_ACTIVE and MNGMT_GLOBAL_EMPLS_IS_ACTIVE are filled in the CLASS_CONSTRUCTOR.
For sure you will find customizing settings that are responsible for this.
Regards
Uwe
Similar Messages
-
How to define source value for filtered recordset (ASP)
Hi,
I'm using ASP & CS4. I have a search page which upon submission sends form parameters to a results page. The results page matches the search parameters to a recordset and returns the appropriate record/s.
How can I take one of the values from the returned filtered recordset (which wasn't one of the original variables/parameters), and use it as a value to filter another recordset from another table? Do I have to create a parameter from that value, or can it be done in a SQL statement?
Many thanksHow many results are returned from the first recordset? Where is the second recordset to be displayed?
If the first RS returns a single row and the second RS is displayed on the same page, you don't need to create anything. Just use the value of the column you want in the SQL statement. If you need to pass the value to another page, you can either set a session variable or pass the value in the querystring. -
how to define a schema for fixed length consisting of multiple records of different types having header detail and footer at positions 22 and 23 namely having 10 for header ,20 for detail and 30 for footer.
here is the sample file
DDWTYBILL13092502572 1000000112\\NHLSFS\ORACLE\ORACLE\BILLING\VERIFY\ 2013/09/25 01:19:08 BILLEND
DDWTYBILL13092502572 2000000212PRIVATE PRIVATE STY5572142 010700 INV 12STYD000789 02-AUG-20130000010472 STY STY 1100611006MGIT 91 NNM DIMPHANA,CN,CELESTE NERINA 09-JAN-1964 TYG A2 DR DU PREEZ 5602181 63301345 TB731543 Suspect TB ?CA, (L) EMPIEEM Ward A2 TYGERBERG HOSPITAL Z03.0 Z03.9 05-AUG-201305-AUG-201324-SEP-2013FEND 113.60
DDWTYBILL13092502572 2000000312PRIVATE PRIVATE STY5572149 010700 INV 12STYD000789 02-AUG-20130000010472 STY STY 1100611006MGIT 91 NNM DIMPHANA,CN,CELESTE NERINA 09-JAN-1964 TYG A2 DR DU PREEZ 5602181 63301345 TB731548 Empyema BPF Ward A2 TYGERBERG HOSPITAL Z03.9 Z03.9 05-AUG-201305-AUG-201324-SEP-2013FEND 113.60
DDWTYBILL13092502572 2000000412PRIVATE PRIVATE STY5572351 010700 INV 12STYD000789 02-AUG-20130000010472 STY STY 1100611006MGIT 91 NNM DIMPHANA,CN,CELESTE NERINA 09-JAN-1964 TYG A2 DR DU PREEZ 5602181 63301345 TB731584 Suspect TB ?EMPIEEM, ?CA Ward A2 TYGERBERG HOSPITAL Z03.0 Z03.9 05-AUG-201305-AUG-201324-SEP-2013FEND 113.60
DDWTYBILL13092502572 2000000512PRIVATE PRIVATE STY5572352 010700 INV 12STYD000789 02-AUG-20130000010472 STY STY 1100611006MGIT 91 NNM DIMPHANA,CN,CELESTE NERINA 09-JAN-1964 TYG A2 DR DU PREEZ 5602181 63301345 TB731585 Suspect TB ?EMPIEEM, ?CA Ward A2 TYGERBERG HOSPITAL Z03.0 Z03.9 05-AUG-201305-AUG-201324-SEP-2013FEND 113.60
DDWTYBILL13092502572 2000000612MAJOR MAJOR STY5577530 010700 INV 12ZTYG000009 02-AUG-20130000010472 STY STY 1100611006MGIT 91 NNS ZOZI,S,SIYAMBONGA 27-MAR-2010 TYG D3 DR MAHOMED 5602181 113799662 TB731663 Lymphadenitis Ward D3 TYGERBERG HOSPITAL I88.9 Z03.9 H1 07-AUG-201307-AUG-201324-SEP-2013MEND 58.52
DDWTYBILL13092502572 2000000712MAJOR MAJOR STY5577537 010700 INV 12ZTYG000009 06-AUG-20130000010472 STY STY 1100611006MGIT 91 NNS DLAMINI,N,NTLANTLA 09-OCT-1976 TYG F1 DR WZESE 5602181 135524676 TB731666 Suspect TB Ward F1 TYGERBERG HOSPITAL Z03.0 Z03.9 H1 07-AUG-201314-AUG-201324-SEP-2013MEND 58.52
DDWTYBILL13092502572 30003034120000003032ENDYou can create an nXSD using Native Format Builder and use lookAhead attribute to read values at specific position and use that as the choice. You can find an example here
http://docs.oracle.com/cd/E11036_01/integrate.1013/b28994/nfb.htm#BGBBAJFD -
How to define the texts for UI element Dropdownlistbykey?
Hi everyone,
I don't know how to define the texts for Dropdownlistbykey. It seems that Dropdownlistbykey has an attribute "selected key", but where can I bind the texts I want to display when user clicks the downwards
arrow?
Thanks in advance.hi,
you can use this code :
method WDDOINIT .
DATA : node_info TYPE REF TO if_wd_context_node_info,
value1 TYPE wdy_key_value,
set TYPE wdy_key_value_table,
k1 type string value 'M',
v1 type string value 'MAGO',
k2 type string value 'S',
v2 type string value 'Saurav'.
value1-key = k1.
value1-value = v1.
APPEND value1 to set.
value1-key = k2.
value1-value = v2.
APPEND value1 to set.
node_info = wd_context->get_node_info( ).
node_info = node_info->get_child_node('FOR_DROP').
node_info->set_attribute_value_set( name = 'DROP_KEY' value_set = set ).
I hope it helps.
Thanx. -
How to set default value for vc2_255_arr in plsql parameter directive?
Hi,
I would like to set a default values for a plsql parameter which is of vc2_255_arr type. How to do that?
Below is the example from PL/SQL Server Page.
+" To set a default value, so that the parameter becomes optional, include a default="expression" attribute in the directive. The values for this attribute are substituted directly into a PL/SQL statement, so any strings must be single-quoted, and you can use special values such as null, as in the following example:+
+<%@ plsql parameter="p_last_name" default="null" %> "+
My plsql parameter is p_arr which is of "TYPE vc2_255_arr IS TABLE OF VARCHAR2(255) INDEX BY BINARY_INTEGER"
*<%@ plsql parameter="p_arr" type="PMP_LIB.VC2_255_ARR" %>*
Thanks in advance!
kwongMy plsql parameter is p_arr which is of "TYPE vc2_255_arr IS TABLE OF VARCHAR2(255) INDEX BY BINARY_INTEGER"You need to declare it in a package specification and initialize in the package body:
SQL> create or replace package pmp_lib
as
type vc2_255_arr is table of varchar2 (255)
index by binary_integer;
vc2_255_arr_default vc2_255_arr;
end pmp_lib;
Package created.
SQL> create or replace package body pmp_lib
as
begin
vc2_255_arr_default (1) := 'abc';
vc2_255_arr_default (2) := 'def';
end pmp_lib;
Package body created.
SQL> declare
arr pmp_lib.vc2_255_arr := pmp_lib.vc2_255_arr_default;
begin
for i in 1 .. arr.count
loop
dbms_output.put_line (arr (i));
end loop;
end;
abc
def
PL/SQL procedure successfully completed.so in your case it would probably be sth like (assuming pmp_lib is a package):
<%@ plsql parameter="p_arr" type="PMP_LIB.VC2_255_ARR" default = "PMP_LIB.vc2_255_arr_default" %> -
How to select XML value for a namespace when multiple namespaces
Hi,
I'm a beginner with this, but I'm doing well with your help from this forum in a recent post selecting out all the detail from my xml
out into my oracle relational tables. Stumped, though, on how to select a value for xml tag value referenced by a defined namespace.
Version, XML, what I want to select, and attempted sql is below. Thanks in advance!
select * from V$VERSION
BANNER
Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
PL/SQL Release 11.2.0.2.0 - Production
CORE 11.2.0.2.0 Production
TNS for Solaris: Version 11.2.0.2.0 - Production
NLSRTL Version 11.2.0.2.0 - Production
drop table TRANSCRIPT;
create table TRANSCRIPT (
CONTENT xmltype
<?xml version="1.0" encoding="UTF-8"?>
<arb:AcademicRecordBatch xmlns:arb="urn:org:pesc:message:AcademicRecordBatch:v1.0.0">
<hst:HighSchoolTranscript xmlns:hst="urn:org:pesc:message:HighSchoolTranscript:v1.0.0" xmlns:ct="http://ct.transcriptcenter.com">
<TransmissionData>
<DocumentID>2013-01-02T09:06:15|D123456789</DocumentID>
</TransmissionData>
<Student>
<Person>
<Name>
<FirstName>John</FirstName>
<LastName>Doe</LastName>
</Name>
</Person>
<AcademicRecord>
<AcademicSession>
<Course>
<CourseTitle>KEYBOARD 101</CourseTitle>
<UserDefinedExtensions>
<ct:TranscriptExtensions>
<NCESCode>01001E010456</NCESCode>
<CourseRigor>1</CourseRigor>
</ct:TranscriptExtensions>
</UserDefinedExtensions>
</Course>
<Course>
<CourseTitle>SCIENCE 101</CourseTitle>
<UserDefinedExtensions>
<ct:TranscriptExtensions>
<NCESCode>01001E010457</NCESCode>
<CourseRigor>2</CourseRigor>
</ct:TranscriptExtensions>
</UserDefinedExtensions>
</Course>
</AcademicSession>
<AcademicSession>
<Course>
<CourseTitle>MATH 201</CourseTitle>
<UserDefinedExtensions>
<ct:TranscriptExtensions>
<NCESCode>01001E010458</NCESCode>
<CourseRigor>2</CourseRigor>
</ct:TranscriptExtensions>
</UserDefinedExtensions>
</Course>
</AcademicSession>
</AcademicRecord>
</Student>
</hst:HighSchoolTranscript>
</arb:AcademicRecordBatch>I want to be able to select the NESCODE associated to each coursetitle (01001E010456, 01001E010457, 01001E010458), with NESCode defined by namespace, but getting out NULL.
DOCUMENTID LASTNAME COURSETITLE NCESCODE
2013-01-02T09:06:15|D123456789 Doe KEYBOARD 101
2013-01-02T09:06:15|D123456789 Doe SCIENCE 101
2013-01-02T09:06:15|D123456789 Doe MATH 201
My SQL is below. You'll see where I commented out a couple failed alternatives too. Thanks again in advance for any guidance.
select x0.DocumentID
,x1.LastName
, x3.CourseTitle
,x3.NCESCode
from TRANSCRIPT t
, xmltable(
xmlnamespaces(
'urn:org:pesc:message:AcademicRecordBatch:v1.0.0' as "ns0"
, 'urn:org:pesc:message:HighSchoolTranscript:v1.0.0' as "ns1"
--, 'http://ct.transcriptcenter.com' as "ns1b"
, '/ns0:AcademicRecordBatch/ns1:HighSchoolTranscript'
passing t.content
columns DocumentID varchar2(40) path 'TransmissionData/DocumentID'
, Student xmltype path 'Student'
) x0
, xmltable(
'/Student'
passing x0.Student
columns LastName varchar2(20) path 'Person/Name/LastName'
,AcademicRecord xmltype path 'AcademicRecord'
) x1
, xmltable(
'/AcademicRecord/AcademicSession'
passing x1.AcademicRecord
columns GradeLevel varchar2(20) path 'StudentLevel/StudentLevelCode'
, Courses xmltype path 'Course'
) x2
, xmltable(
xmlnamespaces('http://ct.transcriptcenter.com' as "ns2b")
, '/Course'
passing x2.Courses
columns CourseTitle varchar2(40) path 'CourseTitle'
,NCESCode varchar2(20) path 'UserDefinedExtensions/ns2b:ct/NCESCode'
--,NCESCode varchar2(20) path 'UserDefinedExtensions/ns2b:ct/TranscriptExtensions/NCESCode'
) x3
<<I'm assuming there is more to your XML than you showed, since
StudentLevel/StudentLevelCode
is not in the XML, but is in your query. >>
Yes, to simplify, I left out some of the additional XML data, which is typically present, sorry for any confusion. I should have removed those references to that data in my example which was failing to retrieve the NCESCode data which was denoted by that namespace.
Thank you very much! Your correction worked. I was not understanding until your correction how to properly reference in the XPATH for that namespace value. I'm a newbie at this, and this is my second post. But I've been able to populate quite a few relational tables and that was the first of several namespace tags I will have to deal with next, and with that help, I should be good with that syntax now.
Thanks again for your help on this. -
Hello,
Using customizing for text schema, it is possible to define fixed values for texts from SRM document.
Nevertheless, when you define fixed values for a transaction type, field "Fixed Value for a Text" is a CHAR30 data type.
Is there a way to add a customer field in order to use it in the drop-down list instead of the standard one ?
Our aim is to have at header PO level a specific document text and to transmit it to R/3, but those texts can go to CHAR80.
Previously, i tried to add my specific document text (using a specific search-help) into the text area (in this case, i don't have any fixed values) which is CONTAINER_LONGTEXT.
But this field is an implementation class, and i don't know how to populate this area.
Any suggestions are welcome.
Regards.
Laurent.Hi,
I tried to update PO for its longtext (with standard function module) using obtained value with my search-help, but i did not succeed yet.
Any ideas ?
Regards.
Laurent Burtaire -
BOL: How to read the value of an attribut
Hiii experts,
I'm new in ABAP programming.
My intention is to read the value of a context attribut.
This attribut ist not in form of a struct attribut. To read an struct attribut, I know to get the value, for example:
value ?= me->typed_context->BP_ADDR->collection_wrapper->get_current( ).
CHECK value IS BOUND.
value->get_property_as_value(
EXPORTING
iv_attr_name = 'CITY'
IMPORTING
ev_result = value_city).
But my problem is, that I have an attribut, which you can not find in the BOL browser, because it is not in form of a struct.
Can anybody help me, how to read the value of this kind of attributs.
Thank you very much in advance fpr your help,
JohnHii Clemens,
first of all, my concern deals with WebUI.
I expect to read the value of an attribut. I know how to read the value of an attribut, which can be found with the same description in the bol browser, as you know you can read it with:
value ?= me->typed_context->BP_ADDR->collection_wrapper->get_current( ).
CHECK value IS BOUND.
value->get_property_as_value(
EXPORTING
iv_attr_name = 'CITY'
IMPORTING
ev_result = value_city).
Now, I have an attribut of an context node which has a different name as in bol browser. If I want to read the value with the code above I get an error message. Thatswhy I referenced a collection of the context node to read this attribut.
Can anybody say me how the value of the attribut, can I use the methode get_property ?
greetings,
J -
Define Default Values for Doc type..
Hi All.
I set a default value of "ME21N" TO "S21" at Define Default Values for Document Type.
But, default document type is not "S21" but "NB" in ME21N
( system ver. 710)
Let me know how to correct it..
Thank you in advance.
regards..
namHi,
Could u please confirm whether have u created the document type
in
IMG...>MM.....>Purchasing.....>Purchase order...>Define Document Types.
if not please do it.
and then create the pO.
I think it will work
Regards
Aasif -
How to set default values for boolean columns
I'm trying to deploy some content types and columns into a site with a feature. All it's ok, except that I'm trying to set a default value for boolean columns with no success.
I've tried to set default value at column level:
<Field ID="{EFE23A1D-494E-45cf-832E-45E41B17F0CF}" Name="ScopeSpanish" DisplayName="Se publican noticias en español"
Type="Boolean" Hidden="FALSE" Group="Columnas ShaCon" >
<Default>TRUE</Default>
</Field>
and at content type level:
<FieldRef ID="{EFE23A1D-494E-45cf-832E-45E41B17F0CF}" Name="ScopeSpanish" DefaultValue="TRUE" Required="TRUE" />
But in any case, when i create a new item with this content type, default value is applied.
Can anyone tell how to set default values for boolean columns?
Thanks in advance,
Regards,
SergioIn the field definition you can set
<Default>1</Default>
or
<Default>0</Default>
How to set the default value Null? -
A^b = n ,How to get the value for a ?
a^b = n ===> n = Math.pow(a,b)
How to get the value for a ?
dose Java have API to get the value for a ?
Thanks for help~~~a^b = n
=>
a = n^(1/b)
So,
a = Math.pow(n,1.0/b) -
How to insert / Update value for PFAKT in BP Relationship
Hi Friends / Experts,
How to insert the value for PFAKT ( Function value ) in BP Relationship in BP tcode , in SAP CRM.
I have tried it but it BAPI_BUPR_CONTP_CREATE. But I need it with BAPI_BUPR_RELATIONSHIP_CREATE Function Module.
Please help me out.
Any Enhancement points in BAPI_BUPR_RELATIONSHIP_CREATE or any user exists. Please let me know.
Regards,
KMF.you can also acheive this using MERGE( available in sql 2008 and above).
also, you are referring to DTS. DTS is legacy solution now..are you using sql 2000, you can use ssis, if you want and it available in sql 2005. as said, there are multiple ways you can do this.. it find the below one a easy solution, since your are
talking about only one table..
try this example..
create table test1(sno int primary key,sname varchar(20),scity varchar(20))
go
create table test2(sno int primary key,sname varchar(20),scity varchar(20))
go
insert into test1
values(1,'stan','atlanta'),(2,'william','newyork')
go
insert into test2
values(1,'robin','orlando')
go
--set this in you sql job and let it run for every half an hour
MERGE test2 t2
USING test1 t1
ON t2.sno = t1.sno
WHEN MATCHED THEN
UPDATE
SET t2.sname = t1.sname,t2.scity=t1.scity
WHEN NOT MATCHED by target THEN
Insert(sno,sname,scity)
values (sno,sname,scity);
go
--check this table and clean up
select * from test2
go
drop table test1
go
drop table test2
Hope it Helps!! -
How to calculate acquisition value for specified day
Hi,
in my z program I have a problem how to calculate acquisition value for my asset for specified day.
Example:
I have asset created 8.7.2008 with TTYPE 104 (External asset acquisition) with value 5950.
30.11.2008 there is another TTYPE 272 (Retirement of current-yr acquis., w/o revenue) with value 950.
So BEFORE 30.11.2008 acquisition value is 5950. After is 5000. Is there any function module (or something else) in SAP system where I can send asset number and date a it return to me acquisition value for that day?
Many thanks for any answer!Hi,
your suggestion means that I have to compute acquisition value by myself (sum all TTYPE 1** - sum all TTYPE 2**). So SAP does't provide such functionality (LDB ADA have it, because it can compute acquisitiob value for specific day)?
Mant thanks for answer -
How to define Substitution rule for Businee area
Hi experts,
Could you please guide me to define substitution rule for Business are.
Below is the requiremnt :
I want to assign different business area for this cost centre.
While posting document in FB01, we are entering cost centre in line itme. Businee area is picking from cost centre master.
Example : Cost centre 11310 and businee area Y020.
Businee area Y020 is picking from cost centre 11310 while posting document.
I want to assign different business area for this cost centre.
For that I want to define substitution rule.
I have defined substitution rule and activated in comapany code but it is not working. Please guide me how to define Substitution rule for the same.
I have defined prerequisit as Comapny code = 2053 and Cost centre =11310 and transaction code = FB01 then
Substitute business area with Y045.
It is not working .
Please guide me where I did mistake and how to rectify the same.
Thanks in advance for your quick response and points will also assign for helpfull answer.
Regards,
AmarHi Paul,
Thaks for your reply.
Yes, you are correct. SAP is changing this back to BA from Cost centre.
Why can't we use Substitition for the above issue.
Then what is solution for my issue.Please suggest any alternative solution.
Thanks in advance for your help.
Regards,
Amar. -
How to define Approval Hirearchy for Fixed Assets?
Hello All,
Couls someone please tell me How to define Approval Hirearchy for Fixed Assets which should be different as compared to normal item purchase.Reply me ASAP
Regards
AdityaHi,
The AP invoice approval used AME rules for finding the approver. You can base you AME rules on virutally anything.
In this particular case, you can base your AME rules on one of the followings:
1. If any of the Distribution Accounts contain Fixed Assets natural account
2. You can define a separate document category which should be used with invoices for FA Purchase and use the category in AME rules to find approver
3. You can have a DFF at the Invoice Header level to indicate that this is a fixed asset purchase invoice and have this DFF to be used in AME rules.
Gajendra
Maybe you are looking for
-
Audiobooks going into "Other" folder when syncing on 5th gen video ipod
Suddenly a bunch of audiobooks I bought recently are not syncing properly. They seem to be going into the "other" category because when I look at my iPod memory summary, the colored bar chart, I see that category (in orange) growing but Audio (blue)
-
Any ETA on Flash 10 for Windows 64 bit browsers?
With the release of Windows 7 just 3 months away, I'm hoping that Adobe is close to at least a beta version of Flash 10 for 64 bit browsers. I know they've released the Flash 10 for Linux 64 bit platforms, but they seem to be behind on this. W
-
Since Mac changed it's mail, mine has been acting odd. Currently, I cannot open emails (application opens fine). It will let me "flag" them, whatever that does, but it refuses to open them, let me click on them, etc. At first it worked okay. Now nada
-
Hello, experts: From previous experience, I know that both Adobe and Oracle provide some "out-of-the-box" translations for their respective UI language. I'm new to Apple development and Objective C and looking to determine if any such localization s
-
HT3209 (w/iTunes) Freezes on Tv shows already bought (not rented).
I have about 17 GB of TV shows in my iTunes library, However, my shows keep freezing and pausing and it doesn't disturb me for reruns as much as episodes i havent seen yet. The video freezes while the audio keeps going, sometimes it takes 2 minutes f