How to access a field of a structure with a field symbol?
Dear all,
Currently I'm trying to access the fields of a structure (called "ls_tbl") dynamicly. The code looks as follows (of course the field symbols are defined correctly ;-):
ASSIGN lv_f1 TO <lv_f1>.
ASSIGN lv_f2 TO <lv_f2>.
lv_pp = ls_tbl-(<lv_f1>).
lv_pt = ls_tbl-(<lv_f2>).
Unfortunatly I get the following error message:
<<The data object "LS_TBL" does not have a component called "".>>
I really do not understand why ABAP is trying to interpret the field symbol name as a string. Does anybody have a clue how to access the field of ls_tbl with the help of a field symbol?
Many thanks!!!
Hi ,
Please check the below sample code .
data : begin of st_table,
myfiledname type c value '1',
myfiledname1 type c value '2',
end of st_table .
data : lv_filedname(11) type c value 'MYFILEDNAME'
filed-symbols : <fs> type any,
<fs_table> type any.
assign st_table to <fs_table>.
Assign lv_filedname to <fs> .
assign component <fs> of structure <fs_table> to lv_pp.
Regards,
Ratheesh BS
Similar Messages
-
How to access the ORACLE APPS table structures from SAP
Hi Experts,
How to access the ORACLE APPS table structures from SAP? Is it possible from SAP?
Thanks in advance
ThomasHi Silviya,
you can access this database using a technique called DB Multiconnect - sometimes written as multi-connect.
Search the SAP documentation and notes for this term and you will find how to do it.
Essentially you configure the remote database connection via transaction DBCON.
If your SAP system is not running on Oracle you will need to install the db-specific kernel files for Oracle along with the Oracel db client software - SQL*Net.
Then you can access the Oracle database from ABAP using native-SQL. It works a treat!
Cheers
Graham Robbo -
Concatenate structure with 63 fields
Hi all,
I have a structure with 63 fields. We have to send all this data in text file as an email attachment. What is the best way to concatenate all this field separated by tab?
Thanks.Hello,
Try using Filed Symbols . Let your structure be WA_TEST type ZTEST.
Data string type X
Field Symbol <fs> type any
Do.
ASSIGN COMPONENT sy-index OF STRUCTURE WA_TEST TO <fs>.
If Sy-subrc NE 0.
Exit.
Conactenate STRING <fs> into STRING separated by co_tab.
Endif.
regards
Saket Sharma
EndDo. -
Can I enhance extract structure with standard field?
Friends,
Can I enhance the extract structure with standard field.
Eg. If I want add(append) field PACKNO to Extraction structure MCVGIH. PACKNO is a field from standard table. So Can I do this and populate this without using abap code(customer exit) Should I give foreign key field also in the append stucture.
Please help me
JoeHi Joe,
mostly it works as A.H.P explained, because in the extractor they mostly do a move-corresponding of the fields. Sometimes they don't, specially for newer applications and extractors because the abap statement move-corresponding is on the list of obsolete statements. In that case you need to do some coding.
So basically I would recommend to add the field, regenerate the datasource and check the result with rsa3.
regards
Siggi
Message was edited by: Siegfried Szameitat -
Accessing a field from a structure with out header line
Hi Guys,
I am trying to assign a field from a structure type line of data to another field.
This structure type line don't have a header line.
here is the example.
IT_EKKNU TYPE MMPUR_EKKNU.
when I use following statement..
move IT_EKKNU-kostl to e_cekko-kostl.
Iam getting error "IT_ENKKNU is not a structure or Internal table with header line.
How to access the fields in structure IT_EKKNU.
Thank U for ur time.
Cheers
S KumarHere IT_EKKNU is an internal table without Header line.
You can use a structure for assignment.
DATA: IT_EKKNU TYPE MMPUR_EKKNU,
wa_ekknu type ekknu.
read table it_ekknu into wa_ekknu........
move wa_EKKNU-kostl to e_cekko-kostl.
*modify the code for your conditions*. -
Assigning structures with different fields to a field symbol
Hi,
can anybody give a example code of how to assign a structure to a field symbol in aloop if the structure is containing more than 1 type of data .
i am giving the code please try so that it could run ina unicode environment.and doesnt give dump.
TABLES: SNAP,
SNAP_BEG,
SNAPT.
DATA: BEGIN OF I_SNAP_BEG OCCURS 0.
INCLUDE STRUCTURE SNAP_BEG.
DATA TCODE LIKE SY-TCODE.
DATA REPID LIKE SY-REPID.
DATA TLINE LIKE SNAPT-TLINE.
DATA SIGN(1).
DATA END OF I_SNAP_BEG.
DATA DATUM LIKE SY-DATUM.
DATA: BEGIN OF FCC,
ID(2), LL(3), ERRID LIKE SNAPT-ERRID,
END OF FCC.
FIELD-SYMBOLS: <F> .
SELECT * FROM SNAP_BEG INTO TABLE I_SNAP_BEG.
SELECT * FROM SNAP UP TO 1 ROWS
WHERE DATUM = I_SNAP_BEG-DATUM.
ENDSELECT.
MODIFY I_SNAP_BEG.
LOOP AT I_SNAP_BEG ASSIGNING <F>.
MOVE-CORRESPONDING I_SNAP_BEG TO SNAP.
FCC = I_SNAP_BEG-FLIST.
IF FCC-LL CO '0123456789'.
ASSIGN FCC-ERRID(FCC-LL) TO <F>.
SNAPT-ERRID = <F>.
ELSE.
SNAPT-ERRID = '?????'.
ENDIF.
ENDLOOP.
WRITE : <F>.hi it useful
-
How to access the whole iTunes iCloud Library with an Android phone?
Hello all,
I am a newbie here, so please forgive me if I'm not following protocol here. I searched for the word "Android" in all of the support docs. and got 0 hits! Is there a corporate policy at work here?
I know that Google and Apple (and by extension Android and iOS) are competing hard for all of us techie music lovers out there who use both ecosytems. Well, Google Play wants to have my entire music library, Apple's ever at the ready with iTunes/iCloud/Match, and now I've even gotten solicitations from Amazon which has a "Cloud MP3 Player" with purchases ready to download that I made from Amazon in 2010, before I ever dreamed of getting MP3 files instead of a physical CD. I mean the liner notes had the lyrics to the songs right? Well, I enjoy looking at lyrics. Anyways, . . .
What are the best recommendations for how to access my iCloud music library with my Android phone?
Yes, one solution is to use both Google's and Apple's services and just duplicate everything everywhere. But, I'd just like to settle on iTunes/iCloud solution, but I have a brand new Android phone that I want to use. The iPhone 5 screen doesn't come close to my Motorola Droid RAZR Max HD! :-) Sorry, all you iPhone folks. You have all the app's., so I have to latch on to somethine for a reason why I stayed with Android!
Thanks,
Randall.
San Francisco, CAApple is pretty much the only one who does not support other platforms and it will be their downfall in the future. I have bought a few hundred tracks (and one movie) from iTunes before the competition started to catch up. Their Cloud service just came into Finland but I've already moved on to others. I've also bought music from Spotify, Nokia Music and Xbox Music. I've been a subscriber of Nokia Music, Xbox Music and now Google Music. I'm also a Netflix subscriber and I have a local IPTV service that also provides movie rentals from various providers - and guess what, they also work on all platforms.
The reality is that today was the first time in a long long time that I've actually even bothered to open iTunes. Lack of platform support will destroy iTunes in the long run. Apple is starting to look like Microsoft once did. Today you can even get Office for almost every platform - even mobile devices.
Limited access and/or features is also one of the biggest reasons that turn people away from legit services. DRM protected music was the reason I had over 20,000 MP3s before it was removed from iTunes. When that happened I deleted all the old files and became a honest, paying customer. -
Problem in using a structure with a field of data type 'RAW STRING'
Friends
I have written a ZBAPI that imports a structure which has 5 fields. I have defined this in the IMPORT tab of Tr.Code <SE37>. One of the field of this structure is of data type 'RAW STRING'.
When I try to activate this BAPI, I get an error message as follows:
Function Module ZBAPI_ADD_CONFIG_DNA
"ZDAMPER_CON_DNA" Must be a flat structure. You cannot use internal table
strings, references, or structures as components.
Where ZDAMPER_CON_DNA is the table name that I am using.
FOR TESTING PURPOSE, WHEN I CHANGE THE DATA TYPE FROM 'RAW STRING' TO JUST A CHAR OF LENGHT 5, IT WORKS FINE.
Here is the source code of the simple BAPI that i am trying to activate.
FUNCTION ZBAPI_ADD_CONFIG_DNA.
""Local Interface:
*" IMPORTING
*" VALUE(CONFIG_DNA_DATA) TYPE ZCONFIG_DNA_STRUCTURE
*" EXPORTING
*" VALUE(MESSAGE) TYPE ZRETURNMESSAGE
tables: ZDAMPER_CON_DNA.
ZDAMPER_CON_DNA-CONFIG_ID = CONFIG_DNA_DATA-CONFIG_ID.
ZDAMPER_CON_DNA-STRING_NAME = CONFIG_DNA_DATA-STRING_NAME.
ZDAMPER_CON_DNA-STRING_FORMAT = CONFIG_DNA_DATA-STRING_FORMAT.
ZDAMPER_CON_DNA-STRING_VALUE = CONFIG_DNA_DATA-STRING_VALUE.
ZDAMPER_CON_DNA-OBJECT_NAME = CONFIG_DNA_DATA-OBJECT_NAME.
INSERT ZDAMPER_CON_DNA.
MESSAGE-SUBRC = sy-subrc.
if sy-subrc = 0.
MESSAGE-RETURNMESSAGE = 'SuccessfullyInserted'.
else.
MESSAGE-RETURNMESSAGE = 'Insert Failed'.
endif.
=============
ANY KIND OF FEED BACK WILL BE HIGHLY APPRECIATED.
THANKS
RAMHi ram,
there is no data element exists with the name RAW STRING ,
but check one of these names..
Data element Short text
C2S_RAWSTRING C2-Server: Data Element of Type Rawstring
N2_RAWSTRING Byte String of Variable Length
QISRDRAW_STRING Data in Format RAW Character String
RCF_RAWSTRING Rawstring
RPAP_TEMPLATE_RAWSTRING Blob of Template File
RSRAWSTRING Raw String
RSRD_RAWSTRING Binary Content in the Broadcasting Framework
SWH_RAWSTRING Workflow: Data Type RAWSTRING
WDR_RAWSTRING Byte Sequence of Variable Length
<REMOVED BY MODERATOR>
venkat.
Edited by: Alvaro Tejada Galindo on Mar 7, 2008 5:15 PM -
How to see all the PO payment status with searching field project defin.
Dear all experts,
could you help me on the following issue?
In a large capital project, there are many POs, and all the POs are paid partially
for example, down payment 30%, 30% when the machine is received, 30% when the machine is commissioned, 10% is for warranty after a year.
how can i see the all the POs payment status with searching field project definition. for example, i have paid how much for which PO. i want to see the list by searching the project definition.
is it possible to achieve? or how can i do it?
Please share your opinion or give me some suggestions.
thanks a lot.
Judythanks for all of your replies.
i have activated FM. and i have a PO triggered by the project.
i enter the down payment for the PO using F-48.
i can see the down payment in the PO history.
but i can not see it using the committment item report, such as CJIA
is it correct or not? do i need to change something?
thanks a lot.
Judy -
How to access 802.1x authentication wired nework with digital certificate?
How can I access 802.1x authentication wired network with digital certificate?
I can access the network in windows with the following configutaion:
BUT in my lion, I had import the digital certifacte. While I connected to the network, I was prompted:
Enter the name and password for this 802.1X network
I could not get the opportunity to select my digital certificate? But my colleague can.
iPhone Configuration Utility seemed to provide wireless 802.1X authentication configuration file . And in my work background, most people use the windows. And there isnot a lion server to provide a configuration file.Dear Rune,
Thank you for reaching Small Business Support Community.
If you have already followed the 802.1X Supplicant configuration described in page 112, chapter 6, on the admin guide;
http://www.cisco.com/en/US/docs/wireless/access_point/csbap/wap121/administration/guide/WAP121_321_AG_en.pdf
All I can suggest you is to make sure you are running on the latest firmware release version 1.0.4.2;
http://software.cisco.com/download/release.html?mdfid=284152656&flowid=32563&softwareid=282463166&release=1.0.4.2&relind=AVAILABLE&rellifecycle=&reltype=latest
And then contact the Small Business Support Center to have a TAC engineer figure this out;
https://www.cisco.com/en/US/support/tsd_cisco_small_business_support_center_contacts.html
Please do not hesitate to reach me back if there is anything I may assist you with in the meantime.
Kind regards,
Jeffrey Rodriguez S. .:|:.:|:.
Cisco Customer Support Engineer
*Please rate the Post so other will know when an answer has been found. -
How to create a structure with reserved field
hi :
I meet a problem .
That when I cteate a global structure in ddic . named zgs_outtab .
The requirement that let me create a field . It's description is 'Sales office' and reserved this field ,and don't fill data for this filed .
but I don't know the data type ,so when I check ,I report me the error .
Which data type I should use .?
Thank you .
Description Table Fields Remarks
Sales office reserved field don't fill data
Edited by: chao zhangchao on Feb 16, 2009 3:14 AMtable: TVBUR Sales office
TVKBT Sales office text -
How to extend an address of a BP with more fields ???? EEWB??
Hi Gurus,
I need to extend the address of a BP with some customer fields. I have tried to do it using EEWB but when you have to choose a Business Object for the new extension, the reasonable only possibility is to choose BUPA Object. Thus, the DB table BUT000 is extended with a custom include that contains the customer fields, but what I want to do is extending ADRC DB table. There is some way that I do not know of achieve this in which the system creates automatically all the FM for the BDT events????
If it is not possible, which would be the procedure to do that with my own development???
Thanks in Advance.
Regards,
RosaRosa, you can only extend table BUP000 and not the actual address table. Sorry for that for more details on how to extend the BP itself refer to my WeBLOG I wrote on this. Have fun and let me know whether you need more help, Tiest.
Also do not forget to award points to useful responses.
<a href="/people/tiest.vangool/blog/2005/07/24/pc-ui-and-easy-enhancement-workbench-eew-integration and Easy Enhancement Workbench (EEW) Integration</a> -
How to access frame lable on main stage from a nested symbol
All-
I have two buttons
btnA on the main stage
btnB is nested inside btnA
How do I access a frame lable on the main stage from btnBok i figured this one out.
i created a button symbol 'BTN-NAV-INTRO' and placed it on the main stage.
i created a mouse over/out effect on it's timeline with an object on top called 'MC-HIT-AREA'
i placed the mouse over graphics inside the button and animated them on their own timelines
coded the MC-HIT-AREA to play those timelines 'MC-HIT-AREA' is nested inside the button
then on the main stage (this is what threw me) i set the button ('BTN-NAV-INTRO') to cursor and coded it to call the other button form the main stage. Nesting it wasn't necessary. I didn't realize you could have multiple mouse over/out effect below a mouse over effect from the main stage
Edge rocks when i get it to do my bidding! -
ListCellFactory - how to access an object's data associated with list cell?
I am new to javafx and building a sample app to learn the basics. The app has a list view control and used listcellfactory to create listcells. Each list cell is composed of few labels and image. I populated list view with listViewItems function, where in it sends object[]; I have my own object with data that needs to be populated in the list cell. I have hard coded the object[] and that size is reflected in list view items size. However, I am not able to populate the object data in individual labels.
In the following code, I can only get the string representation of the object and I am unable to figure out how to individually access the object's data. Please help me with this.
function listCellFactory(): javafx.scene.control.ListCell {
var listCell: javafx.scene.control.ListCell;
def offerLbl: javafx.scene.control.Label = javafx.scene.control.Label {
text: bind "{listCell.item}"
def descriptionLbl: javafx.scene.control.Label = javafx.scene.control.Label {
text: bind "{listCell.item}"
def friendLbl: javafx.scene.control.Label = javafx.scene.control.Label {
text: bind "{listCell.item}"
def offerImgView: javafx.scene.image.ImageView = javafx.scene.image.ImageView {
image: imagetrial
fitWidth: 300.0
fitHeight: 250.0
def offerVerticalBox: javafx.scene.layout.VBox = javafx.scene.layout.VBox {
content: [ offerLbl, descriptionLbl, friendLbl, offerImgView, ]
spacing: 6.0
listCell = javafx.scene.control.ListCell {
node: offerVerticalBox
return listCell
}If I understand you question, it should be (listCell.data as YourClassName)
Edited by: AigarsP on Oct 21, 2010 2:10 PM -
I read that it was impossible to use RDA with C++, however, we must use Visual C++, and we must use TCP/IP to access to the PXI (MXI3 solution is not convenient due to its optic fiber). How can we do, which tools should be used and how to use them ?
Thank you very much.RDA is supported in LabWindows/CVI, so you could try to create a new Visual C++ project with the Measurement Studio AppWizard, specifying that you want to create a LabWindows/CVI application, then specify that you want to create a Visual C++ project that incorporates LabWindows/CVI run-time libraries, then leverage CVI's RDA support in your C++ project. For some more general information, see Developing Networked Data Acquisition Systems with NI-DAQ and Networking Two PCs for Remote Data Acquisition.
- Elton
Maybe you are looking for
-
Sign-In msg: iTunes is temporarily not available. Please try again later.
I cannot sign into iTunes with my PC since downloading update. The store loads, but I cannot sign in. The message says: Itunes is temporarily not available. Please try again later. I have windows 7 pro, 64 bit, an authorized computer, and downlo
-
Anyone have the iMac Core Duo Ship Yet?
Hi Everyone. Well, I'm as excited as most everyone about the iMac Core Duo. Just curious, if there are any shipping reports yet? Any of you had yours ship yet? I hope it starts soon!
-
ITunes not capable of shuffling Audiobooks???
Hi. I have a playlist with hundreds of Audiobooks on it. I would like to listen in a random order. (So I don't get sick of one Author) So I turn shuffle on and after one track is finished playing, instead of playing another track at random, the play
-
i followed that directions of how to erase everything on the iphone 4 before selling it and i sold it before 7 days yesterday i connected my new i phone 5s to my laptop or itunes that i used to sync with it the i phone 4 today the friend i sold conta
-
Hi all, I use Panel Tab one page .One tab page contain the Link button.When I click(mean Action) the Link button than Other tab will be active. How Can I solved it. Helping Hands are highly Encouraged. Regards Shekhar Edited by: user12084240 on Nov 1