How to load text for Z-objects?
Hello Experts!!
I am implementinh HR for BI reports.
Now in some of the Zobjects created for details like bank details(for acoount number etc) i am getting only the key values from the attribute datasource.
How to get the releated text values.
do i need to create a text datasource? How to link the text and attributes , so that we can load text and see it in reporting as well
Thanks
Shilpa
Generally, you dont always need to create a text datasource if it is not relevant. Just uncheck the checkbox "With text" in the InfoObject itself. Otherwise if you need a text datasource, you need to identify the text table in source system or identify the table where the key value (and maybe other attributs) is existing and you can read the text. Then create a generic text datasource (if no standard text datasource is available).
But your question seems to be, how to get more attribute and text in the same ZObject? Just adding attribut objects you need and match them with the attribut datasource. You can also use a charateristic field here for the text field. The text field will be a attribut of that ZOBJECT and you dont need to create an extra text datasource.
Similar Messages
-
How to get Text for nodes in Tree Structure
Hi Friends,
How to get Text for nodes in Tree Structure
REPORT YFIIN_REP_TREE_STRUCTURE no standard page heading.
I N I T I A L I Z A T I O N
INITIALIZATION.
AUTHORITY-CHECK OBJECT 'ZPRCHK_NEW' :
ID 'YFIINICD' FIELD SY-TCODE.
IF SY-SUBRC NE 0.
MESSAGE I000(yFI02) with SY-TCODE .
LEAVE PROGRAM.
ENDIF.
class screen_init definition create private.
Public section
public section.
class-methods init_screen.
methods constructor.
Private section
private section.
data: container1 type ref to cl_gui_custom_container,
container2 type ref to cl_gui_custom_container,
tree type ref to cl_gui_simple_tree.
methods: fill_tree.
endclass.
Class for Handling Events
class screen_handler definition.
Public section
public section.
methods: constructor importing container
type ref to cl_gui_custom_container,
handle_node_double_click
for event node_double_click
of cl_gui_simple_tree
importing node_key .
Private section
private section.
endclass.
*& Classes implementation
class screen_init implementation.
*& Method INIT_SCREEN
method init_screen.
data screen type ref to screen_init.
create object screen.
endmethod.
*& Method CONSTRUCTOR
method constructor.
data: events type cntl_simple_events,
event like line of events,
event_handler type ref to screen_handler.
create object: container1 exporting container_name = 'CUSTOM_1',
tree exporting parent = container1
node_selection_mode =
cl_gui_simple_tree=>node_sel_mode_multiple.
create object: container2 exporting container_name = 'CUSTOM_2',
event_handler exporting container = container2.
event-eventid = cl_gui_simple_tree=>eventid_node_double_click.
event-appl_event = ' '. "system event, does not trigger PAI
append event to events.
call method tree->set_registered_events
exporting events = events.
set handler event_handler->handle_node_double_click for tree.
call method: me->fill_tree.
endmethod.
*& Method FILL_TREE
method fill_tree.
data: node_table type table of abdemonode,
node type abdemonode.
types: begin of tree_node,
folder(50) type c,
tcode(60) type c,
tcode1(60) type c,
tcode2(60) type c,
text(60) type c,
text1(60) type c,
text2(60) type c,
end of tree_node.
data: wa_tree_node type tree_node,
t_tree_node type table of tree_node.
wa_tree_node-folder = text-001.
wa_tree_node-tcode = text-002.
wa_tree_node-text = 'Creditors ageing'.
wa_tree_node-tcode1 = text-003.
wa_tree_node-text1 = 'GR/IR aging'.
wa_tree_node-tcode2 = text-004.
wa_tree_node-text2 = 'Bank Balance'.
append wa_tree_node to t_tree_node.
clear wa_tree_node .
wa_tree_node-folder = text-005.
wa_tree_node-tcode = text-006.
wa_tree_node-text = 'Creditors ageing'.
wa_tree_node-tcode1 = text-007.
wa_tree_node-text1 = 'Creditors ageing'.
wa_tree_node-tcode2 = text-008.
wa_tree_node-text2 = 'Creditors ageing'.
append wa_tree_node to t_tree_node.
clear wa_tree_node .
wa_tree_node-folder = text-009.
wa_tree_node-tcode = text-010.
wa_tree_node-text = 'Creditors ageing'.
wa_tree_node-tcode1 = text-011.
wa_tree_node-text1 = 'Creditors ageing'.
wa_tree_node-tcode2 = text-012.
wa_tree_node-text2 = 'Creditors ageing'.
append wa_tree_node to t_tree_node.
clear wa_tree_node .
node-hidden = ' '. " All nodes are visible,
node-disabled = ' '. " selectable,
node-isfolder = 'X'. " a folder,
node-expander = ' '. " have no '+' sign forexpansion.
loop at t_tree_node into wa_tree_node.
at new folder.
node-isfolder = 'X'. " a folder,
node-node_key = wa_tree_node-folder.
clear node-relatkey.
clear node-relatship.
node-text = wa_tree_node-folder.
node-n_image = ' '.
node-exp_image = ' '.
append node to node_table.
endat.
at new tcode .
node-isfolder = ' '. " a folder,
node-n_image = '@CS@'. "AV is the internal code
node-exp_image = '@CS@'. "for an airplane icon
node-node_key = wa_tree_node-tcode.
node-text = wa_tree_node-text .
node-relatkey = wa_tree_node-folder.
node-relatship = cl_gui_simple_tree=>relat_last_child.
endat.
append node to node_table.
at new tcode1 .
node-isfolder = ' '. " a folder,
node-n_image = '@CS@'. "AV is the internal code
node-exp_image = '@CS@'. "for an airplane icon
node-node_key = wa_tree_node-tcode1.
node-relatkey = wa_tree_node-folder.
node-relatship = cl_gui_simple_tree=>relat_last_child.
node-text = wa_tree_node-text1.
endat.
append node to node_table.
at new tcode2 .
node-isfolder = ' '. " a folder,
node-n_image = '@CS@'. "AV is the internal code
node-exp_image = '@CS@'. "for an airplane icon
node-node_key = wa_tree_node-tcode2.
node-relatkey = wa_tree_node-folder.
node-relatship = cl_gui_simple_tree=>relat_last_child.
node-text = wa_tree_node-text2.
endat.
append node to node_table.
endloop.
call method tree->add_nodes
exporting table_structure_name = 'ABDEMONODE'
node_table = node_table.
endmethod.
endclass.
*& Class implementation
class screen_handler implementation.
*& Method CONSTRUCTOR
method constructor.
create object: HTML_VIEWER exporting PARENT = CONTAINER,
LIST_VIEWER exporting I_PARENT = CONTAINER.
endmethod.
*& Method HANDLE_NODE_DOUBLE_CLICK
method handle_node_double_click.
case node_key(12).
when 'Creditors'.
submit YFIIN_REP_CREADITORS_AGING via selection-screen and return.
when 'Vendor'.
submit YFIIN_REP_VENDOR_OUTSTANDING via selection-screen and return.
when 'Customer'.
submit YFIIN_REP_CUSTOMER_OUTSTANDING via selection-screen and
return.
when 'GR/IR'.
submit YFIIN_REP_GRIR_AGING via selection-screen and return.
when 'Acc_Doc_List'.
submit YFIIN_REP_ACCOUNTINGDOCLIST via selection-screen and return.
when 'Bank Bal'.
submit YFIIN_REP_BANKBALANCE via selection-screen and return.
when 'Ven_Cus_Dtl'.
submit YFIIN_REP_VENDORCUST_DETAIL via selection-screen and return.
when 'G/L_Open_Bal'.
submit YFIIN_REP_OPENINGBALANCE via selection-screen and return.
when 'Usr_Authn'.
submit YFIIN_REP_USERAUTHRIZATION via selection-screen and return.
endcase.
endmethod.
endclass.
Program execution ************************************************
load-of-program.
call screen 9001.
at selection-screen.
Dialog Modules PBO
*& Module STATUS_9001 OUTPUT
text
module status_9001 output.
set pf-status 'SCREEN_9001'.
set titlebar 'TIT_9001'.
call method screen_init=>init_screen.
endmodule. " STATUS_9001 OUTPUT
Dialog Modules PAI
*& Module USER_COMMAND_9001 INPUT
text
module user_command_9001 input.
endmodule. " USER_COMMAND_9001 INPUT
*& Module exit_9001 INPUT
text
module exit_9001 input.
case sy-ucomm.
when 'EXIT'.
set screen 0.
endcase.
endmodule.
exit_9001 INPUTyou can read the table node_table with nody key value which imports when docubble click the the tree node (Double clifk event).
Regards,
Gopi .
Reward points if helpfull. -
How to extract text of info object
how to extract text of info object ?
Example text of project defination from 0PROJECTHi Siri,
I think you can't display the text element if you display the data in the dso.
In the dso, you will see only the key part.
So you don't have to load the infoobject text into the DSO, you just have to load the infoobject.
In Bex you have the option to see either key,text or both.
Refet the below thread for details.
Link: [Loading Master Data Text to DSO.;
Hope it helps you in clearing your doubt.
Regards,
Nikhil Joy -
How to extract TEXT for archived Purchase Orders ?
Hi Friends,
Can any one tell me how to extract TEXT for archived Purchase Orders ?
I have used READ_TEXT but that is not fetching texts for archived PO's. Whenever I am trying to fetch data from STXH against archived PO, no value is coming and resulting SY_SUBRC <> 0.
Any demo code will be highly appreciated.
Thanks in advance..
SivajiHi,
You can see that table STXH is linked to archiving object MM_EKKO (you can see it in tcode DB15).
My suggest is that you must get the data. See the demo object BC_SBOOK in tcode AOBJ. You can see the report to reload data. The object is get the data in an internal table. So for report SBOOKR you can see this function module:
* get data records from the data container
* SBOOK
CALL FUNCTION 'ARCHIVE_GET_TABLE'
EXPORTING
archive_handle = lv_handle
record_structure = 'SBOOK'
all_records_of_object = 'X'
TABLES
table = lt_sbook_tmp
EXCEPTIONS
end_of_object = 0. "not entries of this type
* check lt_sbook_tmp entries against selections. Delete not
* requested entries
LOOP AT lt_sbook_tmp ASSIGNING <ls_sbook>
WHERE carrid IN s_carrid
AND connid IN s_connid
AND fldate IN s_fldate.
APPEND <ls_sbook> TO lt_sbook.
ENDLOOP.
REFRESH lt_sbook_tmp.
The idea is that you get the same data that you handle in READ_TEXT (because you don't have the data in database) and recovery the text.
I hope this helps you
REgards
Eduardo -
How to load text file data to Oracle Database table?
By using Oracle Forms, how to load text file data to Oracle Database table?
Metalink note 33247.1 explains how to use text_io as suggested by Robin to read the file into a Multi-Row block. However, that article was written for forms 4.5 and uses CREATE_RECORD in a loop. There was another article, 91513.1 describing the more elegant method of 'querying' the file into the block by transactional triggers. Unfortunately this more recent article has disappeared without trace and Oracle deny its existence. I know it existed as I have a printed copy in front of me, and very useful it is too.
-
Change the SWF loading text for a single presentation
This question was posted in response to the following article: http://help.adobe.com/en_US/Presenter/7.0/WS8815BC0A-5D22-4f29-87B9-D9047B5B57E4.html
Hi,
I have Adobe Presenter 7.0.5, in which with recently updating to 7.0.7 version.
When I tried the fix of this "Change the SWF loading text for a single presentation" workaround fix, I passed to have the error:ReferenceError: Error #1069: Property ADOBE_PRESENTER not found on Pool_P75.Resource.UIText
But before this error comes, I see that the loading text is changes from the original 2Adobe Presenter" to the one defined by me on the UIText, as the fix said.
And what's happen is that the scrren with the loading text is not being changed by the learning first slide....
Is there any workaround to correct that error?
Many thanks in advance for any feedback from the adobe support team or from any other colleagues that are using Adobe Presenter (;-)). -
How we enter text for materials in purchase order smartform
hi guru
how we enter text for materials in purchase order smartform
my requirement is create smartform for purchase order.
in this i have to create item-text, by using which tcode we can give item data
plz give more expalnation for this plzzzzzzzzzHi,
You can use read_text function module for readind text of material and store this value in internal table later pass this internal table to smartform will solve your problem.
otherwise there is direct option for text element property that is include text u can use that also
Regards
Gagan -
How to load text data in BI 7
Hi Mark.
You can load text like you load the data to Master data attributes.
The flat file format foe text is like 'EN', 'MAT001', 'MATERIAL1'.
Cheers
Sunil -
plz tell me .. how to load and compare two text files using file popup's . example file i have attached..
Attachments:
testW_FF.txt 2 KBI don't understand whether your question is on how to load text files or how to show them on a panel or how to compare them... or all aspects together!
The first operation (loading the file) can be accomplished with functions included in the Formatting and I/O Library like OpenFile, ReadFile and so on; with a file like yours even FileToArray could be an option.
How to show the data on screen is heavily dependent on what you intend to do with them: data can be shown in textboxes, listboxes, tables or graphs so... what do you want to do?
The same applies with comparison: without additional details is difficult to give you the proper hint.
Proud to use LW/CVI from 3.1 on.
My contributions to the Developer Zone Community
If I have helped you, why not giving me a kudos? -
How to load data from info object to ODS
Hello BW Gurus,
Is their any way to load data from info object to ODS and I am unable to fine the Info source for that particulate info object master data.
For ex: we have 0PROFITCENTER as info object which is getting loaded everyday. We want same data in ODS too but I don't find any info source related to this info object to create update ruled.
Please advise me how to proceed with this,
Thanks,
Swathi.hi Swathi,
as mentioned, if you just need the master data text or attribute update, then it's sufficient to load 0PROFITCENTER master data. (don't forget to 'apply hierarchy/attribute change' - rsa1->tools)
if you are going to update attribute in ods with attribute from 0PROFITCENTER, you can choose look up master data attribute method in update rules.
if the requirement is really need 0PROFITCENTER to assign to update rules, then first you have to 'generate export datasource' for infoobject 0PROFITCENTER, right click the infoobject and 'generate export datasource', then do 'replicate datasource' from bw myself, after that it will available. to display it you may go to rsa1->infosource, and menu settings->display generated objects.
hope this helps. -
How do I compensate for display objects jumping when screen scaling
I am building an application that is to run at 2 difference stage sizes. 960x640 and 1024x768 (for those paying attention, you may note that those are the high res settings for the iPhone and iPad2)
The app was designed and build to run on a stage of 960x640 and when running at this size, there are no problems.
When the app loads in the 1024x768 window, it "strechs" the stage to fill the window, but keeps the aspect ratio. Everything looks good and the application runs without any problems expect for one thing.
Sometimes, display objects on the stage "jitter" when moving or animating. I have discovered that this is because the stage is "scaling" the x and y values, and is not pixel snapping the objects on the screen, even though the x and y values of the display object are indeed whole numbers.
A prime example of this is I have 2 bitmapData images. bmData_s and bmData_h.
bmData_s is 192x388 in size.
bmData_h is created from a copy of bmData_s with a glow filter stroke on it, resulting in a image that is 198x394 (6 pixels bigger due to a 3 pixel stroke)
I place it on the screen using the following code:
(Background is a bitmap object that is 960x480 and places at 0,0)
(ObjOffset is a point in my app data to position the object, it's a point set to 53,195)
MyObj.x = Background.x + ObjOffset.x + (bmData_s.width/2);
MyObj.y = Background.y + ObjOffset.y + (bmData_s.height/2);
now, when the mouse rolls over the object, I have an event listener to change MyObj.bitmapData to bmData_h
MyObj.bitmapData = bmData_h;
MyObj.x = Background.x + ObjOffset.x + Math.floor(bmData_h.width/2);
MyObj.y = Background.y + ObjOffset.y + Math.floor(bmData_h.height/2);
and back to the _s image on mouse out.
Now, when the app runs on the iPhone which is a 960x640 screen size, or on the PC which is using a window of similiar size, the image doesn't appear to move at all... the "stroke" appears and disappears exactly as it is suppose to
However, when I run it in a window that is 1024x768, the _h image appears to "jump" one pixel up.
I have encountered many other similiar things that only occure when the stage is scaled. There is a spot in the app where I am animating a bitmap by manipulating it's scrollrect x and width (have it's do a wipe in from right to left like a peice of paper unrolling on a table) and due to the scaling, the right edge of the image jumps left and right 1 pixel... but on 960x640 screens, it looks perfect.
Does anyone know how I can compensate for this effect so that this jumping doesn't occur when the stage is stretched to fit the window it's running in?Sounds like a x-browser rendering problem
my guess would be to scale down the inner div's so they add up to less than 100%.
If you floated div's and gave them a %, give one of the div's a smaller.
ie: 2 divs floated in a Header, give one 50% and the other 49.5% -
Problem while loading texts and authorization objects file in RAR
Hi all,
i am getting internet explorer error while loading the texts and authorization objects text files in RAR .actually we uploaded rule file before this,does this step causes any error ?if so how to resolve this error.do i need to remove all rules/risks and then load text and authorization files? is there any shortcut to renove all risks generated in one shot? please reply me soon to resolve this.
Thanks,
Joseph.Hi Joseph,
Please make sure to convert both the files in UTF-8 encoding format and then try to upload the files again. This should resolve the issue and if not then please paste the logs here.
Regards
Harleen -
Error Loading Text for an Infoobject
Hi all,
I get the following error when loading a Text for a given Object, it is someting related to 0LANGUAGE , any inputs greatly accepted.
"The data record 1 & with the key '000000000012 &' for characteristic
ZMATERIAL" & has a blank language key.
Thank you.Hi Murali thanks for the response but can you please be more detail , Should I have to manitain 0LANGU , currently it is not maintained in our system , and all the values I checked in PSA (ZMATERIAL_TEXT) for Language Key is "EN".
thank you. -
How to load text data into internal table
I have a text file to load txt data into internal table. So how to read text data with validation and to load all text data into the internal table?
Say this is the text file:
IO_NAME, IO_TYPE, IO_SHTXT, IO_LONGTEXT, DATATYPE, DATA LENGTH
ZIO_TEST1, CHA, IO TEST1, IO TEST 1, CHAR, 20
ZIO_TEST2, CHA, IO TEST2, IO TEST 2, CHAR, 20
Regards,
MauHi,
U can use GUI_UPLOAD for this...
Declare an internal table like
data: begin of itab occurs 0,
string(1200),
end of itab.
check the sample code:
cange as you need
DATA: DATEI_PC TYPE STRING VALUE 'C:\MATNR.TXT'.
DATA: BEGIN OF ITAB occurs 0,
TXT(1024),
END OF ITAB.
CALL METHOD CL_GUI_FRONTEND_SERVICES=>GUI_UPLOAD
EXPORTING
FILENAME = DATEI_PC
FILETYPE = 'ASC'
CHANGING
DATA_TAB = ITAB[]
EXCEPTIONS
FILE_OPEN_ERROR = 1
FILE_READ_ERROR = 2
NO_BATCH = 3
GUI_REFUSE_FILETRANSFER = 4
INVALID_TYPE = 5
NO_AUTHORITY = 6
UNKNOWN_ERROR = 7
BAD_DATA_FORMAT = 8
HEADER_NOT_ALLOWED = 9
SEPARATOR_NOT_ALLOWED = 10
HEADER_TOO_LONG = 11
UNKNOWN_DP_ERROR = 12
ACCESS_DENIED = 13
DP_OUT_OF_MEMORY = 14
DISK_FULL = 15
DP_TIMEOUT = 16
NOT_SUPPORTED_BY_GUI = 17
ERROR_NO_GUI = 18
OTHERS = 19.
IF SY-SUBRC NE 0. WRITE: / 'Error in Uploading'. STOP. ENDIF.
WRITE: / 'UPLOAD:'.
LOOP AT ITAB. WRITE: / ITAB-TXT. ENDLOOP. -
Hi. I am relatively new to DW and I am trying to find a simple solution to this issue. I have 2 situations in which I need to load text:
1) I have 2 side by side div tags. The left will have links, that when clicked, I need an image to show in the right div. How can I do that?
2) I need to load text via a text document to a div on the site. How do I code to "get text" from the doc on my ftp?
I appreciate any advice you can offer.1) I have 2 side by side div tags. The left will have links, that when clicked, I need an image to show in the right div. How can I do that?
2) I need to load text via a text document to a div on the site. How do I code to "get text" from the doc on my ftp?
I appreciate any advice you can offer.
For the first, you can use a 'disjoint' rollover technique. Clicking on the link will swap an image that is present anywhere else on the page with a new incoming image. You need to have a 'static' or holding image there already to hold that location for the incoming image. You do this exactly the same way as you do a rollover, using DW's swap image behavior, except that you scroll through the list of images on your page to find the holding image by name before browsing to find the incoming swap image.
To load text from a text document to a div on the site is more complex. However it could be done pretty easily by using the DW "Change Property" behavior to change the 'src' property of an IFRAME that has been placed inside the target div. The bugger here is your requirement to use an external text file. If you didn't want to do that, it could be done more simply using DW's Set Text of Container behavior.
Maybe you are looking for
-
Export page numbers found in a search? [edited by host]
I used Acrobat Pro 9 to search for a term in a pdf, and found where it occurs by page number. How do I export those page numbers to a text file?
-
Windows Live Mail - While Launching - Error - 0x80041161
Windows Live Mail could not be started. It may not be installed correctly. Make sure that your disk is not full or that you are not out of memory. (0x80041161) Steps followed: 1. Uninstalled from appwiz. failed with Error:0x80070641. Exact error mess
-
How to put list items in a numbers collumn? HelpxD
Hey guys, I have made a list of extracted finance.yahoo data containing all the numbers on a balance sheet in applescript and i want to put it in numbers cells What i need to do now is to set value of cell E2 tp item 1 of list2010 set value of cell E
-
HT1551 can you stream facetime to flat screen using apple tv?
can you stream facetime to flat screen using apple tv?
-
For some reason all of the forms created by ADDT in my app seem to have tables that collapse in on themselves. They display all the fields and labels, but the total width of the box containing them wants to squish in and enclose only about half of th