How to read the field type from field id of DynamicFldTbl
Hi,
In my application, i am using DynamicFldTbl, whch parses FML32 field table definition file. My field table definition file contains information about field names and its types.
I checked the API of DynamicFldTbl and didn't find any API to get the field type from field it.
Any way to read the field type from field id?
Thanks in advance
Raguraman
Hi Raguraman,
Once you have the field table, you can then create an FML32 buffer (TypedFML32) using the constructor that takes a field table, and then use the Fldtype() method on the specific field ID you wish to get the type of. I know this is sort of tedious and we should provide Fldtype() and some others on the field table class directly.
Regards,
Todd Little
Oracle Tuxedo Chief Architect
Similar Messages
-
How to get the Database type from weblogic Db connection
I want to use database version control in my application . that means different database type use different Sql Statement. Such as in weblogic7.0 if I create SqlServer JDBC pool then I will use some special Sqlserver sql Statement . such as some join statement. If I create Oralce JDBC pool then I have to use different Sql statement . because these two database support different Sql statement.
What my question is how to get the database type from the connection.For a normal jdbc driver you can use
Connection.getMetaData()
To get the meta data, in particular the getDatabase...() methods.
That might or might not work.
However, at the very least in the server you have access to the weblogic properties so you can parse the pool property to figure it out. -
How to change the file type from IMOVIE PROJECT to other types of file
how to change the file type from IMOVIE PROJECT to other types of file??
thank you very much for your help=]I am not sure what you mean, but once you make a project. Then go to the share menu and you can export the project to iDVD, itunes, mobileme, quicktime.
Share export quicktime movie will allow you to export to a variety of codecs. What specific export are you looking to share the movie in? What is the final source that the movie will be displayed? -
I want the read the value of a field,'LCSTATUS' belonging to context node 'BTADMINH' in the GET_I method of the field, 'ZZFLD000008' belonging to context node,'ZBTACTIVITYH'.
In the context node class of context node 'ZBTACTIVITYH',I have created an instance attribute,GR_OWNER type ref to context class.
I get the following error in the line - lv_act_status = Lr_entity->if_bol_bo_property_access~GET_PROPERTY_AS_STRING( 'LCSTATUS' ).
'An exception (CX_CRM_CIC_PARAMETER_ERROR) occurred Message no. TPDA430'
I have used the below code.
method GET_I_ZZFLD000008.
DATA: current TYPE REF TO if_bol_bo_property_access,
lv_act_status TYPE string.
DATA:lr_entity TYPE REF TO cl_crm_bol_entity,
lr_current TYPE REF TO if_bol_bo_property_access,
lr_parent TYPE REF TO cl_crm_bol_entity.
rv_disabled = 'TRUE'.
if iterator is bound.
current = iterator->get_current( ).
else.
current = collection_wrapper->get_current( ).
endif.
CHECK gr_owner IS BOUND.
lr_entity ?= gr_owner->btadminh->collection_wrapper->get_current( ).
CHECK lr_entity IS BOUND.
lv_act_status = Lr_entity->if_bol_bo_property_access~GET_PROPERTY_AS_STRING( 'LCSTATUS' ). "error states that lcstatus can't be used here.
TRY.
IF current->is_property_readonly(
'ZZFLD000008' ) = abap_false. "#EC NOTEXT
rv_disabled = 'FALSE'.
ENDIF.
CATCH cx_sy_ref_is_initial cx_sy_move_cast_error
cx_crm_genil_model_error.
RETURN.
ENDTRY.
endmethod.Hi,
LCSTATUS is not an attribute of the BTADMINH structure. It is read using the relation to the status object
BTADMINH-> BTHeaderStatusSet-> BTStatusHCurrent-> ACT_STATUS.
Try reading the ACT_STATUS of object BTStatus as given below.
data: coll type ref to if_bol_entity_col.
data: entity type ref to cl_crm_bol_entity,
lv_act_status TYPE string.
entity ?= current. "BTADMINH entity.
coll = entity->get_related_entities(
iv_relation_name = 'BTHeaderStatusSet' ). "#EC NOTEXT
current = coll->get_current( ).
entity ?= current.
coll = entity->get_related_entities(
iv_relation_name = 'BTStatusHCurrent' ). "#EC NOTEXT
current = coll->get_current( ).
try.
lv_act_status = current->if_bol_bo_property_access~GET_PROPERTY_AS_STRING( 'ACT_STATUS' ).
catch cx_crm_cic_parameter_error.
endtry.
Regards JP -
How to read the value of a field of an IDoc
Hi my requirement is " read the LIFNR value from inbound idoc Then i should go for validation".
Hi,
Please check the code below:
LOOP AT idoc_data INTO wa_idocdata
WHERE docnum EQ gwa_edidc-docnum.
CASE wa_edidd-segnam.
WHEN 'E1EDL20'.
wa_e1edl20 = wa_edidd-sdata.
APPEND wa_e1edl20 TO it_e1edl20.
CLEAR wa_e1edl20.
READ TABLE it_e1edl20 INTO wa_e1edl20 INDEX SY-INDEX.
if sy-subrc eq 0.
processing......
endif.
Regards
Kannaiah -
How to read the contents of Input Field created via Screen Painter?
Hi All,
I have a module program / dialog program, on my second screen, I created an input/outbox field via screen painter of course,
now in my PAI, how can I read the contents of the input/outbox field?
Let's say the name of my input/outbox field is: P_WEKRS. Note: Get Parameter and Set Parameter is ticked.
PROCESS AFTER INPUT.
LOOP WITH CONTROL TC_DATA.
MODULE MODIFY_DATA.
ENDLOOP.
I want to get the value of the input/outbox field before my loop in table control? I thought that it will work like normal parameter in non-dialog programs.
Any helpful inputs will be appreciated/rewarded.
Thanks.
JaimeHi, Jaime
Do the following Change in you Follow Logic
PROCESS AFTER INPUT.
MODULE read_or_change_value. " Add this
LOOP WITH CONTROL TC_DATA.
MODULE MODIFY_DATA.
ENDLOOP.
Add the Bellow Module code in you Driver Program.
MODULE read_or_change_value.
DATA: P_WEKRS like " the Field on Screen. Must be the same name as on SCREEN. and Type must be same too.
" Here you will find the Value in that Variable or if you will change the Value here you will find it change on Screen
END MODULE.
Please Reply if any Issue..
Best Regards,
Faisal -
How to read relevant record type from file into LSMW ?
Here my req is like this.
file with 5 records.
some of records in file are begin with 'AD'.
i want to read only that records from file while reading data.
i created one field in source structure with record type filed.
even i had given this Identifing Field Content:AD
but after reading data from file its reading all records from file.
But it should read only record type AB from source file.
How can we achieve this?
Thanks in Advance.For this do the follwing steps
goto step 3 Maintain Source Fields
press the change mode button after the double click the filed which is pass the AD value
then it will appier one popup window in this window you have one check box like " selection parameter for import/convert data"
tick thic chekc box and save it.
now when you read the data in Step9 , here you find select options there you enter AD* now you will get the only records start with AD. -
How to read the Key value from the Message using the text value.. Urgent
I need to read the Key valuefrom the message pool using the text value for the Key.. Is it possible.. Please help me with sample code..
Thanks and Regards
AvijitAvijit,
I got your requirement. I really dont know the scenario your working on but its possible to do it. There is no direct way to do so, but complexity is in getting to know the Keys dynamically from interface.
Here you go..
try
Class msgClass = IMessageTestWDApps.class;
//Replace IMessageTestWDApps with IMessage<Your WD Component name>
Field keys[] = msgClass.getFields();
IWDTextAccessor textAccessor = wdComponentAPI.getTextAccessor();
if(keys != null)
String key = "";
for(int index=0;index<keys.length;index++)
key = keys[index].getName();
wdComponentAPI.getMessageManager().reportSuccess("Key= "+key);
if(textAccessor.getText(key).equals("My message text"))
//your logic.
catch(Exception cnfe)
wdComponentAPI.getMessageManager().reportException("Exe "+cnfe.getMessage(),false);
Regards
Abhilash
Message was edited by:
Abhilash Gampa -
How to read the HTML code from a webpage
Hi, I want to be able to read the HTML code of a web page
In order to extract some info from some pages.
How can I do that?
is it using cl_http_client ? I played with that class a bit, but wih no sucess to what I need...Hi RagnaRock,
You can use the following form, hope it helps you.
Regards,
Ozcan.
form get_data_from_url using iv_url type clike changing iv_data type string.
DATA: HTTP_CLIENT TYPE REF TO IF_HTTP_CLIENT .
clear iv_data.
CALL METHOD CL_HTTP_CLIENT=>CREATE_BY_URL
EXPORTING
URL = IV_URL
* PROXY_HOST = '10.1.1.1'
* PROXY_SERVICE = '1234'
* SSL_ID =
IMPORTING
CLIENT = HTTP_CLIENT
EXCEPTIONS
ARGUMENT_NOT_FOUND = 1
PLUGIN_NOT_ACTIVE = 2
INTERNAL_ERROR = 3
OTHERS = 4.
CHECK SY-SUBRC = 0.
CALL METHOD HTTP_CLIENT->SEND
EXCEPTIONS
HTTP_COMMUNICATION_FAILURE = 1
HTTP_INVALID_STATE = 2.
CHECK SY-SUBRC = 0.
CALL METHOD HTTP_CLIENT->RECEIVE
EXCEPTIONS
HTTP_COMMUNICATION_FAILURE = 1
HTTP_INVALID_STATE = 2
HTTP_PROCESSING_FAILED = 3.
CHECK SY-SUBRC = 0.
iv_data = HTTP_CLIENT->RESPONSE->GET_CDATA( ).
endform. "get_data_from_url
Edited by: Ozcan Gurdal on Aug 11, 2010 4:07 PM -
How to get the order type from notification number
Hi,
i have the notification number,
fromthis number how can i get the Maintenance Order type.
what is the table name to get the order type.
Please tell me.Hi,
First you read table QMEL with notification number and get AUFNR. Then go to AUFK and get AUART (order type).
Some thing like,
SELECT SINGLE aufnr INTO lv_aufnr FROM qmel WHERE qmnum EQ <your notification>.
IF sy-subrc EQ 0 AND NOT lv_aufnr IS INITIAL.
SELECT SINGLE auart INTO lv_auart FROM aufk WHERE aufnr EQ lv_aufnr.
ENDIF.
Hope this helps..
Sri -
ECC5 How to read the stored value from Team Viewer
Hi,
How can I pick up the stored value from the team viewer from within ECC5?
I would normally use FM 'HR_ASR_WDA_GET_EMPLOYEE' to read mem id MSS01 but this doesn't exist in ECC5.
All help appreciated.
RobHi,
How can I pick up the stored value from the team viewer from within ECC5?
I would normally use FM 'HR_ASR_WDA_GET_EMPLOYEE' to read mem id MSS01 but this doesn't exist in ECC5.
All help appreciated.
Rob -
How to read the hierarchy data from the same table using loop in AMDP method
Hi All,
We have a requirement to get the top partner from BUT050 table.
Here the Top parent is nothing but the top most in the hierarchy of the partners from BUT050.
Example:
For partner 1234 (BUT050-PARTNER1) there is partner 3523(BUT050-PARTNER2) one level above
For partner 3523(BUT050-PARTNER1) there is partner 4544 (BUT050-PARTNER2) last level .
so in this case for the partner 1234 the Top parent is 4544 .
I have created AMDP Procedure method to get the top-parnet and below given is the logic implemented in AMDP method.
Here i have implemented a recursive logic with the WHILE loop to get the top most hierarchy partner from the same table BUT050
IV_Parent is the input partner and ev_top_parent is the output value.
AMDP Procedure Method:
DECLARE lv_date VARCHAR(8) := TO_VARCHAR (current_date, 'YYYYMMDD');
DECLARE found INT := 1;
iv_partner1 = SELECT partner1 FROM but050
WHERE partner2 = iv_partner
AND reltyp = :iv_hierarchy
AND date_to >= :lv_date
AND date_from <= :lv_date;
WHILE found <> 0 do
select partner1 into ev_top_parent from :iv_partner1;
iv_partner1 = SELECT partner1 FROM but050
WHERE partner2 in ( select partner1 from :iv_partner1 where partner1 is not null)
AND reltyp = 'ZBP004'
AND date_to >= :lv_date
AND date_from <= :lv_date;
select COUNT ( partner1 ) INTO found FROM :IV_PARTNER1;
END WHILE;
This method is working fine, but here it is only taking one single partner and getting the top parent as output.
Now i would like to convert this mehtod so as to accept n number of partners (not one single partner) as input and should process each partner to get the top parent.
Could anyone guide me how can i handle the given AMDP method further so as to work some how it is within another loop from other AMDP method.
Thanks.
Regards,
Laxman.PHi
Go to SE11 and enter the hierarchy table name.
/BIC/H....(infoobject name)...and execute the table and select table entry and delete all....
Thanks
TG -
I interfaced ENA 5071B using labview with agena vi. I need to save the s2p file from the network analyzer.. I am requesting you guys to help me and pls suggest wat kind of vi i need to use from agena.....
ThanksThe PNA driver does not have the vi to full support what you want. The SCPI commands to do what you want are:
MMEMTOR:TRAC:FORMNP MA; - to format the data in Mag dB Phase linear.
CALC1ATA:SNPORTsave '1,2' , 'local file name on PNA file system.s2p' - to create PNA local files of s2p data
MMEMory:TRANsfer? 'controllerfilename.s2p' - to transfer the datafile from PNA to test controller using GPIB block transfer.
You will have to create these SCPI commads and VI's for yourself as the driver does not have them built in.
Good luck. -
How to read the EXIF metadata from a .jpg file
hi,every one
Photos which are captured by a digital camera, have some parameters, such as the exposure time,ISO speed rating,camera model,focal length etc.
How to read this parameters???Is it listed in the IIOMetadata?
import java.awt.*;
import java.io.*;
import java.net.*;
import java.util.*;
import javax.imageio.*;
import javax.imageio.metadata.*;
import org.w3c.dom.*;
public class IIOMetaDataExample {
public static void main(String[] args) throws IOException {
URL url = new URL("http://today.java.net/jag/bio/JagHeadshot-small.jpg");
Iterator readers = ImageIO.getImageReadersBySuffix("jpeg");
ImageReader reader = (ImageReader) readers.next();
reader.setInput(ImageIO.createImageInputStream(url.openStream()));
IIOMetadata metadata = reader.getImageMetadata(0);
displayMetadata(metadata);
public static void displayMetadata(IIOMetadata metadata) {
String[] names = metadata.getMetadataFormatNames();
for(int i=0; i<names.length; ++i) {
System.out.println();
System.out.println("METADATA FOR FORMAT: " + names);
displayTree(metadata.getAsTree(names[i]), 0);
public static void displayTree(Node node, int indent) {
indent(indent);
String name = node.getNodeName();
System.out.print("<" + name);
if (node.hasAttributes()) {
NamedNodeMap attrs = node.getAttributes();
for(int i=0, ub=attrs.getLength(); i<ub; ++i) {
Node attr = attrs.item(i);
System.out.print(" " + attr.getNodeName() + "=" + attr.getNodeValue());
if (node.hasChildNodes()) {
System.out.println(">");
NodeList children = node.getChildNodes();
for(int i=0,ub=children.getLength(); i<ub; ++i)
displayTree(children.item(i), indent+4);
indent(indent);
System.out.println("</" + name +">");
} else
System.out.println("/>");
static void indent(int indent) {
for(int i=0; i<indent; ++i)
System.out.print(' '); -
How to read the data in a field that has data type as VARILRAW
Hello friends
I have created a table with one of the field to accept a huge variable lenght field of type 'VARILRAW'.
I have written a short Function to accept the data from an external program.
Is there a way to see the data that Ihave entered in this field?
ALso another problem that I am seeing is that when I send this string back tothe application, I noticed that instead of the data that I have sent, it has stored just a huge strong of letter As (AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA).
If you can please answer these two questions, I would really appreciate it.
Thanks
RamHi Ram,
Check if it help
http://help.sap.com/saphelp_nw70/helpdata/en/cf/21f2e5446011d189700000e8322d00/content.htm
http://help.sap.com/saphelp_46c/helpdata/en/9d/ab1b0f055b11d2806500c04fadbaa1/frameset.htm
Regards,
Atish
Maybe you are looking for
-
Z60t wireless/Internet access problem
I purchased in 2006 at office depot, after a year and a half of using it just stop accessing the internet, I am so desperate since I am not a computer junkie, my needs are simple just to be able to receive and send emails and easy net surfing. I call
-
Locked out of iPad and I can't reset it!
I forgot my passcode to login to my iPad, so I decided to come to the Apple Discussions page to see if anyone else posted about their issue. I found one discussion that was solved and the post that solved the discussion was the following iOS: Device
-
CASE WHEN statement IS NULL THEN ......
-- i've table's acoount and owner create table account ( code-number(30) , name-nvarchar(200)) create table owner ( code-nvarchar2(20 BYTE) , name -nvarchar(100), account_code-number(30)) account_code is foreign key code name account_code 1.1 a 1.1
-
How do I get out of this?
-
I have a project that is approximately 1 hour in length. This is the first project I am attempting to burn. I assigned a theme to the project and then proceeded to burn a DVD. Before the burn could actually start, PE crashed with a "blue screen" d