About the data of table control in tab strip control
hi experts:
I use screen 0001 include one tab strip control,and its include two subscreens,one of it is table control(subscreen is 0003).
I input data in the table control,when I click the button of tab strip control to change to another subscreen 0002.I found that the data I input into table control have not append to internal table.how can I solve this problem?
appreciate your reply.thanks a lot.
Hi,
in the Main Screen
In PAI
call subscreen sub. ---> here it calls the subscreen where the tablecontrol is placed
then call module user_command
In the subscreen where you have your table control
in PAI
Loop at itab.
module modify_tab.
endloop.
module modify_tab,
descirbe table itab lines tc-lilnes.
if tc-lines <= tc-current_line.
modify itab index tc-current_lilne.
else.
append itab.
endmodule.
next you call the module user_command on the main screen
module user_command
case sy-ucomm
WHEN 'TAB1'
TS-ACTIVE_TAB = 'TAB1'
when tab2.
ts-active_tab = 'TAB2'.
endmodule
further you can take the help of CONTROL EXAMPLES in DWDM tcode
Regards
Ramchander Rao.K
Similar Messages
-
TABLE CONTROL IN TAB STRIP CONTROL
hi experts,
I have a problem with table control in tab strip control i have table control in first tab
and some text fields in second tab .
i enter data into table control in first tab and enter into second tab and i fill data into second tab also .
then i press save after filling data into these two tabs at that time table control data is not updating into corresponding table ,Because when the time we enter into second tab data in table control is cleared .
please give me a solution for this problem as early as possible.
Note : saving data is done after filling two tabs only.
Regards,
k.Rajesh.Hi,
go through this code,
DIALOG PROGRAMMING
TABSTRIPS
IN SE51 FLOW LOGIC MAIN SCREEN
PROCESS BEFORE OUTPUT.
CALL SUBSCREEN PER_REF1 INCLUDING 'YMODULE_PR8' '0200'.
CALL SUBSCREEN SALE_REF1 INCLUDING 'YMODULE_PR8' '0300'.
MODULE STATUS_0100.
PROCESS AFTER INPUT.
MODULE USER_COMMAND_0100.
IN SE51 FLOW LOGIC FOR SCREEN 200. 1st TAB IN SUBSCREEN AREA.
PROCESS BEFORE OUTPUT.
MODULE STATUS_0200.
PROCESS AFTER INPUT.
MODULE USER_COMMAND_0200.
IN SE51 FLOW LOGIC FOR SCREEN 300. 2nd TAB IN SUBSCREEN AREA.
PROCESS BEFORE OUTPUT.
LOOP AT ITVBAK WITH CONTROL TABCTRL.
MODULE STATUS_0300.
ENDLOOP.
PROCESS AFTER INPUT.
MODULE USER_COMMAND_0300.
LOOP AT ITVBAK.
ENDLOOP.
IN FLOW LOGIN OF MAIN SCREEN
PROGRAM YMODULE_PR8 .
TABLES : KNA1, VBAK.
DATA : BEGIN OF ITVBAK OCCURS 0,
VBELN LIKE VBAK-VBELN,
ERDAT LIKE VBAK-ERDAT,
ERNAM LIKE VBAK-ERNAM,
NETWR LIKE VBAK-NETWR,
END OF ITVBAK.
CONTROLS : TABCTRL TYPE TABLEVIEW USING SCREEN 300,
TABSTRIP1 TYPE TABSTRIP.
*& Module STATUS_0300 OUTPUT
MODULE STATUS_0300 OUTPUT.
SET PF-STATUS 'xxxxxxxx'.
SET TITLEBAR 'xxx'.
MOVE-CORRESPONDING ITVBAK TO VBAK.
ENDMODULE. " STATUS_0300 OUTPUT
*& Module USER_COMMAND_0100 INPUT
MODULE USER_COMMAND_0100 INPUT.
CASE SY-UCOMM.
WHEN 'EXIT'.
LEAVE PROGRAM.
WHEN 'PERSONAL' OR SPACE.
SELECT * FROM KNA1
WHERE KUNNR = KNA1-KUNNR.
ENDSELECT.
TABSTRIP1-ACTIVETAB = 'PERSONAL'. ## TO ACTIVATE TABSTRIP & MAKE IT
FUNCTIONAL
WHEN 'SALES'.
SELECT VBELN ERDAT ERNAM NETWR
FROM VBAK
INTO TABLE ITVBAK
WHERE KUNNR = KNA1-KUNNR.
DESCRIBE TABLE ITVBAK LINES TABCTRL-LINES.
TABSTRIP1-ACTIVETAB = 'SALES'. ## TO ACTIVATE TABSTRIP & MAKE IT
FUNCTIONAL
ENDCASE.
ENDMODULE. " USER_COMMAND_0100
reward if usefull -
How to insert row in table control and save the data in tables
Hi,
I have one table control i am displaying data into table control ,
my problem is : i want to display data into read mode in table control.
but when i click on insert button on the same screen i want one blank line should inserted into table control , then i want to insert some data into table control on that row , when i click the save button . the new data inserted into the table control is insert that data into ztable ,
please give me solution
main problen is how can know inserted line in table control and pass that data into ztable.Hi,
Follow the below logic,
PROCESS BEFORE OUTPUT.
MODULE STATUS_0001.
MODULE POPULATE_TABLE_CONTROL. --> Get the data from table store in
ITAB
LOOP AT GT_CTRL_LP_D516 INTO GS_WA_CTRL_LP_D516
WITH CONTROL CTRL_LP_D516
CURSOR CTRL_LP_D516-CURRENT_LINE.
The following module moves data to control
MODULE MOVE_TO_CONTROL.--> Move data from ITAB to table control
ENDLOOP.
PROCESS AFTER INPUT.
LOOP AT GT_CTRL_LP_D516.
ENDLOOP.
MODULE EXIT AT EXIT-COMMAND.
MODULE USER_COMMAND_0001. --> Here you have to take out the values from table control and update database table
Reward points if helpful.
Thanks and regards,
Mallareddy Rayapureddy,
Munich, Germany. -
How to know who has created a particular record in the data base table
Hi All...
Can any one tell me how to track the information about who has entered the records in to the data base table....
Thanks in advance...You could check the Created By and Created On fields if your tables contains these fields.
OR
You could check the table DBTABLOG if table logging is enabled for the table
OR
You could check the Change document tables CDHDR and CDPOS.
-Kiran
Please mark useful answers -
How to trace the data dictionary tables used in the standard transaction
Dear all,
Help me to trace the data dictionary tables used in the standard transaction "crm_dno_monitor". I need to find the tables where the data are stored.
or
Tell me generally how to find the tables used in the standard transaction.
Regards,
PremHi,
Open the program of that standard transaction in object navigator or SE80..
Then click on the dictionary structures tab..
U can find the database tables used in this transaction..
\[removed by moderator\]
Regards,
Rakesh
Edited by: Jan Stallkamp on Jul 29, 2008 5:29 PM -
Could anyone tell me the usage of tab strip controls in REUSE_ALV_GRID_DISPLAY. The IS_LAYOUT has parameters called dtc_layout type dtc_s_layo. What exactly would be the use of this, if anybody has worked on this?
Regards,
VijayHi Vijay,
fro better understabding read the FM documentation,
in that they explained it very well about IS_LAYOUT.
IS_LAYOUT
Output list description structure.
The parameters are described under the following headers:
Display options
Exceptions
Totals
Interaction
Detail screen
Display variants (only for hierarchical-sequential lists)
Color
Other
Note the section 'Default'.
Regards
vijay -
How to export the data from table to excel sheet
hi experts i have some problem am trying to export the data fro table to Excel sheet in the view controller i have created one button wit public void onActionCLEAR(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
//@@begin onActionCLEAR(ServerEvent)
//wdContext.nodeBapi_Salesorder_Getlist_Input().
//wdContext.nodeBapi_Salesorder_Getlist_Input().invalidate();
//@@end
//@@begin javadoc:onActionExporToExcel(ServerEvent)
/** Declared validating event handler. */
//@@end
public void onActionExporToExcel(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
//@@begin onActionExporToExcel(ServerEvent)
try{
FileOutputStream fos=new FileOutputStream("Test.xls");
PrintStream ps=new PrintStream(fos);
ps.println("<html><body><table border=1>");
int size=wdContext.nodeBapi_Salesorder_Getlist_Input().size();
Iterator attributes=wdContext.getNodeInfo().iterateAttributes();
ps.println("<tr>");
while(attributes.hasNext()){
ps.println("<th>");
DataAttributeInfo attrName=(DataAttributeInfo)attributes.next();
ps.println(attrName.getName());
ps.println("</th>");
ps.println("</tr>");
for(int i=0; i<wdContext.nodeBapi_Salesorder_Getlist_Input().size();i++)
attributes=wdContext.getNodeInfo().iterateAttributes();
ps.println("<tr>");
IWDNodeElement ele=wdContext.getElementAt(i);
while(attributes.hasNext()){
ps.println("<td>");
DataAttributeInfo attrName=(DataAttributeInfo)attributes.next();
ps.println(""+ele.getAttributeAsText(attrName.getName()));
ps.println("</td>");
ps.println("</tr>");
ps.println("</table></body></html>");
ps.flush();
ps.close();
fos.close();
catch(Exception e){
wdComponentAPI.getMessageManager().reportException(e.getMessage(), false);
finally{
//return("Test.xls") ;
//@@end
}h action and i have return the code
its running sucessfully but am not able to perform the action plz help meHi,
You shouldn't use DataAttributeInfo as it is an internal object, if I'm correct.
Use IWDAttributeInfo instead of DataAttributeInfo and it should work
(See also API doc of IWDNodeInfo.iterateAttributes() at http://help.sap.com/javadocs/nwce/ce711sp02/wdr/com.sap.wdr/com/sap/tc/webdynpro/progmodel/api/IWDNodeInfo.html#iterateAttributes())
Cheers,
Robin -
How can i open a DOC or TXT file and insert the data into table?
How can i open a DOC or TXT file and insert the data into table?
I have a doc file . the doc include some columns and some rows.(for example 'ID,Name,Date,...').
I'd like open DOC file and I'd like insert them into the table with same columns.
Thanks.Use the SQL*Loader utility or the UTL_FILE package.
-
What is the SAFEST SEQUENCE to convert from a Outlook/iPad/iPhone synced with MobileMe to syncing with iCloud (I have 10 years of calendar diary events and 3000 contacts) - I am worried about the data issues that have been posted about iCloud.
This has worked fine with MobileMe with only a couple of minor glitches in the past.
Any experience doing this the "right" way?The warranty entitles you to complimentary phone support for the first 90 days of ownership.
-
Function module updating the data base table
Hi,
This post is regarding the function module not updating the data base table.
I am calling the FM SD_SHIPMENT_HEADER_CHANGE inside the ZFM. It's returning success an changing the table c_xvttk_new with the new TDLNR value. But it's not updating the Shipment table VTTK-TDLBR or VT02N Forwarding agent.
When I directly updating Forwarding agent in VT02N it's updating fine.
Please let me know what the extra step need to be included to update or COMMIT the FM for updating
Forwarding Agent(VTTK-TDLNR).
Best Regards,
Maheshhi friend,
This link wont five u the complete help but if u ananyse it then it might provide u some idea......
BAPI change shipment doc
regards
kanishak -
Hi all,
Can any one has any idea about the implicit fact table, where it is used. Any doc or screenshot with example will be helpful for me.
Thanks once again.I forgot the definition that you can find here :
http://download.oracle.com/docs/cd/E12096_01/books/admintool/admintool_PresentationSetup4.html
If you set an implicit fact column this column will be added to a query when it contains columns from two or more dimension tables and no measures. The column is not visible in the results. It is used to specify a default join path between dimension tables when there are several possible alternatives.
Cheers
Nico -
Need Information about TBD10 data base table
Hi Gurus,
Thanks in advance for looking at the issue.
I require information for the below questions ;
1.How is the data base table TBD10 populated i.e which transaction updates data
into this table.
2.How is this data base table used.
Please send your replies.
Thanks,
Bhanu.HI,
TBD10 --- Def., out of which IDOC fields a filter object is to be read
BD59 maintains that table
Rhea.
Edited by: rhea on Nov 4, 2008 2:09 PM -
How do i save the data in table ??? URGENT
how do i save the data in table ??? URGENT
Hope can attach some example VI for reference =]
Attachments:
data in table.JPG 271 KB
block diagram.JPG 459 KBYou didn't mention which version of LabVIEW you are using. I adapted your method in this example. Not sure this is an efficient method. I just pass the 2d array through in the false case.
Using LabVIEW 2010SP1 and TestStand 4.5
Attachments:
WriteTable.PNG 35 KB -
Delete the data in table then update succesful
I write some code is work, then the update is fail , but if I delete the data in table then update succesful again, what is the possible reason??
Then you need to find out what you did wrong.
As you haven't even posted what you did, let alone what you did wrong, I don't know what magical process you're expecting forum members to engage in now.
This is the second meaningless question you have posted here today. I am locking them both.
In future if you want help here, you will need to provide a description of what you are trying to do, the code, what happened instead, and any error messages and stack traces, complete, cut and pasted rather than transcribed or otherwise mangled. Otherwise posting here is just a complete waste of everybody's time, including your own.
Moderator -
I want to delimit the date of table v_t7int1 for new sap note uploading
Hi
i want to delimit the date of table v_t7int1 for new sap note uploading. wtihout delimit the date i can't create new note for the year 01.04.2009 to 31.12.9999
AnjaliHi
When i select the slab code sl10 and press delimit button system is asking the From Date and i want TO DATE and i have to Delimit the date of slab code SL10, SL11,SL12 and SR02 and then i have to create SL13,SL14 and SL15.
Anjali
Maybe you are looking for
-
I have multiple phones and iPads and all are linked to one iCloud account and one iTunes Account. I want to keep the same iTunes Account so I can share music, etc., however, I want each device to have its own iCloud account. Any help on how I can I
-
Photoshop CS6 Menus and Icons too small on Windows 8.1 with 4K UHD display
Hello, So I have seen that I am not the first one to ask this question, but I have yet to find any true resolutions. I recently bought anew laptop, a Lenovo with a 4K UHD display which I already love for so many things. But, like a few other progra
-
How do i update my safari browser on macbook pro
how do i update my safari browser on my macbook pro?
-
Programmatically Select a Tab in a Tab Navigator
I have an Application with a TabNavigator Component. I am dynamically adding new Tabs to the Navigator, and I want the new tab to be selected and displayed. I can find no way to do this programatically. Any suggestions? I've attached a small version
-
Audio/Bass Control For Mac Mini
Recently bought a new Mac Mini and I have an old Logitech Z-5300 speakers attached to it. Is there anyway to turn the bass down through the OS? I have the bass turned down to 0 on the speaker unit itself and the bass volume is still coming through ve