Need to include Table Control in Tabstrip (which is present in selection sc
Hi Friends,
I have a tab strip in my selection screen. I need to include a Table control in one of the tab of the tab strip. Is it possible? If yes How to do that?
Note: I cant use a module pool program.
Regards,
Sudheer
Hi ,
We can do that.
You have created the Tab strips in Module Pool program.Select that tab Place the table control in your tabstrips.Assign the Table control name to the table control.
In this program We have a field in selection screen When we submit the screen the tabstrip will come and using with in that we table controls.we filled that table controls.
include zsalesordertop . " global Data
tables: zstr_vbak,zstr_vbap,zstr_vbep.
data:ok_code type sy-ucomm,
ok_cod type sy-ucomm,
l_vbeln type vbak-vbeln,
no_rows1 type i,
no_rows2 type i,
no_rows3 type i.
data: itab1 type table of zstr_vbak,
wa1 type zstr_vbak,
itab2 type table of zstr_vbap,
wa2 type zstr_vbap,
itab3 type table of zstr_vbep,
wa3 type zstr_vbep.
*& Module STATUS_0100 OUTPUT
text
module status_0100 output.
set pf-status 'BACK'.
SET TITLEBAR 'xxx'.
case ok_code.
when 'BACK'.
leave program.
endcase.
endmodule. " STATUS_0100 OUTPUT
*& Module STATUS_0101 OUTPUT
text
module status_0101 output.
set pf-status 'EXIT'.
SET TITLEBAR 'xxx'.
case ok_cod.
when 'EXIT'.
leave program.
when 'TAB1'.
tabstrip-activetab = 'TAB1'.
when 'TAB2'.
tabstrip-activetab = 'TAB2'.
when 'TAB3'.
tabstrip-activetab = 'TAB3'.
endcase.
endmodule. " STATUS_0101 OUTPUT
*& Module USER_COMMAND_0100 INPUT
text
module user_command_0100 input.
case ok_code.
when 'SUBMIT'.
if l_vbeln is not initial .
select vbeln erdat erzet ernam angdt bnddt audat vbtyp trvog auart from vbak into table itab1 where vbeln = l_vbeln.
if itab1 is not initial.
select vbeln posnr matnr matwa pmatn charg matkl arktx pstyv posar from vbap into table itab2 for all entries in itab1 where vbeln = itab1-vbeln.
select vbeln posnr etenr ettyp lfrel edatu ezeit vrkme from vbep into table itab3 for all entries in itab1 where vbeln = itab1-vbeln.
else.
message i000(000) with 'no data in item and schedule information table'.
endif.
else.
message i000(000) with 'not allowed'.
endif.
endcase.
endmodule. " USER_COMMAND_0100 INPUT
*& Module STATUS_1101 OUTPUT
text
module status_1101 output.
SET PF-STATUS 'xxxxxxxx'.
SET TITLEBAR 'xxx'.
describe table itab1 lines no_rows1.
tablecontrol1-lines = no_rows1.
endmodule. " STATUS_1101 OUTPUT
*& Module STATUS_2101 OUTPUT
text
module status_2101 output.
SET PF-STATUS 'xxxxxxxx'.
SET TITLEBAR 'xxx'.
describe table itab2 lines no_rows2.
tablecontrol2-lines = no_rows2.
endmodule. " STATUS_2101 OUTPUT
*& Module STATUS_3101 OUTPUT
text
module status_3101 output.
SET PF-STATUS 'xxxxxxxx'.
SET TITLEBAR 'xxx'.
describe table itab3 lines no_rows3.
tablecontrol3-lines = no_rows3.
endmodule. " STATUS_3101 OUTPUT
*& Module FILL_TABLECONTROL1 OUTPUT
text
module fill_tablecontrol1 output.
read table itab1 into zstr_vbak index tablecontrol1-current_line.
endmodule. " FILL_TABLECONTROL1 OUTPUT
*& Module FILL_TABLECONTROL2 OUTPUT
text
module fill_tablecontrol2 output.
read table itab2 into zstr_vbap index tablecontrol2-current_line.
endmodule. " FILL_TABLECONTROL2 OUTPUT
*& Module FILL_TABLECONTROL3 OUTPUT
text
module fill_tablecontrol3 output.
read table itab3 into zstr_vbep index tablecontrol3-current_line.
endmodule. " FILL_TABLECONTROL3 OUTPUT
Include zsalesordertop
program zmodule_pool_salesorder.
controls tabstrip type tabstrip.
controls tablecontrol1 type tableview using screen '1101'.
controls tablecontrol2 type tableview using screen '2101'.
controls tablecontrol3 type tableview using screen '3101'.
Sure this will help you.
Please reward points if it helps to you.
Thanks,
Swapna.
Similar Messages
-
Need to include Custom control in Tabstrip (which is present in selec scren
Hi All,
Is it possible to create a custom control in the selection screen of a report program.?
Its not possisble to use a module pool program.
Regards,
SudheerYes you can. There are several options depending on what you are trying to do.
1. If you are trying to do some field validations then look for a field exit.
2. Other option is to look for a appropriate enhancement point which is easily avilable in ECC.
- Guru
Reward points if useful -
What are the uses of table control and tabstrip control
can anyone tell me the uses of table control and tabstrip control
Hi,
table control is more comfortable for customizing.scroll bars all possible in this.where as it is not possible in step loops.
check this example.
PROGRAM ZBHTCTRL.
TABLES: LFA1, EKKO.
DATA: OKCODE1 LIKE SY-UCOMM,
OKCODE2 LIKE SY-UCOMM.
CONTROLS TABC TYPE TABLEVIEW USING SCREEN 1001.
DATA: BEGIN OF ITAB OCCURS 0,
MANDT LIKE EKKO-MANDT,
EBELN LIKE EKKO-EBELN,
BSTYP LIKE EKKO-BSTYP,
BSART LIKE EKKO-BSART,
END OF ITAB.
MODULE USER_COMMAND_1000 INPUT.
CASE OKCODE1.
WHEN 'BACK'.
SET SCREEN 0.
WHEN 'NEXT'.
SET SCREEN 1001.
SELECT * FROM EKKO INTO CORRESPONDING FIELDS OF TABLE ITAB WHERE
LIFNR = LFA1-LIFNR.
ENDCASE.
ENDMODULE. " USER_COMMAND_1001 INPUT
MODULE MOVE_DATA OUTPUT.
EKKO-MANDT = ITAB-MANDT.
EKKO-EBELN = ITAB-EBELN.
EKKO-BSTYP = ITAB-BSTYP.
EKKO-BSART = ITAB-BSART.
ENDMODULE. " MOVE_DATA OUTPUT
MODULE USER_COMMAND_1001 INPUT.
CASE OKCODE2.
WHEN 'BACK'.
SET SCREEN 1000.
ENDCASE.
ENDMODULE. " USER_COMMAND_1001 OUTPUT
MODULE STATUS_1001 OUTPUT.
SET PF-STATUS 'MENU'.
SET TITLEBAR 'TIT'.
ENDMODULE. " STATUS_1001 OUTPUT
MODULE STATUS_1000 OUTPUT.
SET PF-STATUS 'DMENU'.
SET TITLEBAR 'xxx'.
ENDMODULE. " STATUS_1000 OUTPUT
FORM ON_CTMENU_FORM1 USING CMENU TYPE REF TO CL_CTMENU.
CALL METHOD CMENU->LOAD_GUI_STATUS
EXPORTING
PROGRAM = ' ZBHTCTRL'
STATUS = 'CMENU'
MENU = CMENU.
CALL METHOD CMENU->ADD_FUNCTION
EXPORTING
FCODE = 'RX'
TEXT = 'RECIEVE'.
ENDFORM.
FLOW LOGIC:
PROCESS BEFORE OUTPUT.
MODULE STATUS_1000.
PROCESS AFTER INPUT.
MODULE USER_COMMAND_1000.
PROCESS BEFORE OUTPUT.
MODULE STATUS_1001.
LOOP AT ITAB WITH CONTROL TABC CURSOR TABC-TOP_LINE.
MODULE MOVE_DATA.
ENDLOOP.
PROCESS AFTER INPUT.
MODULE USER_COMMAND_1001.
LOOP AT ITAB.
ENDLOOP.
for more info check this link.
http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/dbac1d35c111d1829f0000e829fbfe/content.htm
thanks
Ashu. -
Need solution for Table control
Hey Guru's,
I need to develop a Table control in which I have a column that might be something like a TextBox/TextArea(in HTML), able to introduce more than one line, for each entry in the table control!
I know it is possible to use the custom control option to create a TextArea in a screen, but I need the something similar inside a Table Control.
Regards,
Marcelo MoreiraHi,
I think this is related to HR ABAP. It may be related to Master Data also.
Please have a look into this thread.
HR ABAP dump - CX_SY_PROVIDE_TABLE_NOT_SORTED
Shiva -
I need to know table for field CLASS , which is coming in cl30n
Hi,
I have to create a report customer meterial price.For this I need one coloumn i.e Finished Good material(coming from cl30n transaction and field name CLASS). I want to know in which table this field "CLASS" is getting stored.AS I am getting
structure CLSELINPUT where this field is stored but I need to know table .
Regards.Hi Ian ,
Thanks for your support.I need to fetch spare part meterial on basis of this class .which is the correct table to get spare parts details and how we can link klah with it.
Regards. -
Need to include table name,schema name in select output
I need to output the table name and schema name of the current user into a table.. I have tried including
within a select statement..
table_name,
from user_tables
where table_name='mnme';
no rows returnedHi,
Its in upper case 'MNME'
Best.
EA -
Can we design a table control inside a tabstrip.I have been learning the various options,but am not able to find the exact sequence of events for writing the code.
Please send me any zcode / pdf which could solve my doubt.hi shena,
I will send a sample code for creating a table control in tabstrip..check it once. i will send SE38, SE51 CODE.
SE38 CODE:
*& Module pool YMODULEPOOL_TABCTRLTABSTRIP *
*& DEVELOPER : KIRAN KUMAR.G *
*& PURPOSE : PLACING TABLE CONTROL IN TABSTRIPS *
*& CREATION DT : 18/12/2007 *
*& T.CODE : YMODTABCTRLTABS *
*& REQUEST : ERPK900035 *
PROGRAM YMODULEPOOL_TABCTRLTABSTRIP.
Tables
tables :
yvbak, "Sales Document: Header Data
yvbap. "Sales Document: Item Data
Controls
controls: my_tab type tabstrip, "For Tabstrips
my_table type tableview using screen 110.
Internal Table
*Item Data.
data: begin of gt_item occurs 0,
vbeln like vbap-vbeln,
posnr like vbap-posnr,
matnr like vbap-matnr,
matkl like vbap-matkl,
arktx like vbap-arktx,
cflag, "Deletion Flag
end of gt_item.
*Header Data
data: begin of gt_head occurs 0,
vbeln like vbak-vbeln,
erdat like vbak-erdat,
auart like vbak-auart,
vkorg like vbak-vkorg,
vtweg like vbak-vtweg,
cflag,
end of gt_head.
Global Variables
*Table Control(MY_TABLE)
data: gv_number like sy-dynnr, "Screen Number
gv_mode type c value 'D', "C:Change D:Display
gv_temp type i, "Temporary Variable
gv_lines type i. "NO.OF Records in the Table
*& Module STATUS_0100 OUTPUT
text
module STATUS_0100 output.
SET PF-STATUS 'ZTAB'.
endmodule. " STATUS_0100 OUTPUT
*& Module active_tab OUTPUT
text
module active_tab output.
*Default Active Tab Selection.
if my_tab-activetab is initial.
my_tab-activetab = 'INFO'.
gv_number = '0110'.
endif.
endmodule. " active_tab OUTPUT
*& Module copy_data1 OUTPUT
text
module copy_data1 output.
*Read the data from the Internal Table and place them in Table control
read table gt_item index my_table-current_line.
if sy-subrc eq 0.
gt_item-vbeln = gt_item-vbeln.
gt_item-posnr = gt_item-posnr.
gt_item-matnr = gt_item-matnr.
gt_item-matkl = gt_item-matkl.
gt_item-arktx = gt_item-arktx.
endif.
endmodule. " copy_data1 OUTPUT
*& Module copy_dat OUTPUT
text
module copy_dat output.
refresh : gt_item.
select vbeln
posnr
matnr
matkl
arktx
from yvbap
into table gt_item
where vbeln = vbak-vbeln.
if sy-subrc eq 0.
describe table gt_item lines gv_lines.
my_table-lines = gv_lines + 20.
endif.
endmodule. " copy_dat OUTPUT
*& Module USER_COMMAND_0100 INPUT
text
module USER_COMMAND_0100 input.
case sy-ucomm.
when 'INFO'.
my_tab-activetab = 'INFO'.
gv_number = '0110'.
when 'EXIT' or 'CANCEL'.
call transaction 'SESSION_MANAGER'.
endcase.
endmodule. " USER_COMMAND_0100 INPUT
*& Module USER_COMMAND_0110 INPUT
text
module USER_COMMAND_0110 input.
case sy-ucomm.
*Insert New Record
when 'INSE'.
*NO.OF Recors in the Internal Table
describe table gt_item lines gv_lines.
read table gt_item index my_table-current_line.
gv_temp = gv_temp + 1.
if gv_temp gt gv_lines.
*Insert Record into Internal Table
insert table gt_item.
*Insert Record into Database Table
insert into yvbap values gt_item.
endif.
*Save the Data
when 'SAVE'.
*Modify Data in the Internal Table
modify gt_item index my_table-current_line.
if sy-subrc eq 0.
*Modify Data in the Database Table
modify yvbap from table gt_item.
endif.
*Delete the Record
when 'DELE'.
if gt_item-cflag = 'X'.
*Delete the Record from the Database Table
delete from yvbap where vbeln = gt_item-vbeln
and posnr = gt_item-posnr
and matnr = gt_item-matnr
and matkl = gt_item-matkl
and arktx = gt_item-arktx.
*Delete the Record from the Internal Table
delete gt_item index my_table-current_line.
endif.
endcase.
endmodule. " USER_COMMAND_0110 INPUT
*& Module clear_data OUTPUT
text
module clear_data output.
*Clear the data when ever u enter into Table Control
clear gv_temp.
endmodule. " clear_data OUTPUT
*& Module clear_data1 OUTPUT
text
module clear_data1 output.
clear gv_temp1.
endmodule. " clear_data1 OUTPUT
SE51 CODE(SCREEN 100)
PROCESS BEFORE OUTPUT.
MODULE STATUS_0100.
*Initial TabStrip Selection
MODULE active_tab.
*Placing Table Control data in Internal Table
module copy_dat.
*Display Mode
*calling subscreen
call subscreen subs including sy-cprog gv_number.
PROCESS AFTER INPUT.
MODULE USER_COMMAND_0100.
call subscreen subs.
SE51(SCREEN 110)
PROCESS BEFORE OUTPUT.
MODULE STATUS_0110.
loop at gt_item with control my_table cursor my_table-current_line.
module copy_data1.
endloop.
*CLEAR the Temporary variable value
module clear_data.
PROCESS AFTER INPUT.
*Populate data into internal Table
loop at gt_item.
MODULE USER_COMMAND_0110.
endloop.
Award points if helpful.
kiran kumar.G
Have a Nice Day.... -
Problem in SCROLLING of TABLE CONTROL which is designed using WIZARD
Hello Friends ,
I have designed a entry screen by using table control with wizard. My table control layout has 11 rows. I have used all 3 facilities i.e. SCROLLING , INSERT/DELETE & SELECT/DESELECT by cheking ( ticking ) check boxes while designing table control with wizard.
Now i have 3 problems.
1> In my entry screen , if 11 entries are entered , they are displayed in entry screen and are saved correctly in DB.
But when i copy a file of suppose 15 entries into entry screen then it displays only 11 entries in entry screen and after that if i click/move VERTICAL SCROLL BAR to see remaining/next 4 entries then it does not display 12th 13th 14th &15th entry in entry screen. So the problem is i am unable to display remaining/next 4 entries in entry screen & also to save them DB.
2> At the same time when i click/move VERTICAL SCROLL BAR to see remaining/next 4 entries then earlier 11 entries are disappeared/ get cleared from entry screen.
3> The FIRST PAGE, PREVIOUS PAGE , NEXT PAGE , LAST PAGE and INSERT , DELETE push buttons are dispalyed in my entry screen . But they are not working or doing their opertions on table control though there is system generated code for them written in module pool program and PBO & PAI OF SCREEN 100 on which table control is present.
So eagerly waiting for POSITIVE replies & Correct solutions from all ABAP techies.
THANKS & REGARDS,
Ashish.Hi friend,
I have visited the link u have given . But it is a report program .it is available in ABAPDOCU tcode.
ABAPDOCU----
>ABAP User Dialogs -
>Screens -
>Complex Screen Elements -
>Table Control with Scrolling .
It is a REPORT program. and not a module pool program. plz check this in ur link also.
REPORT demo_dynpro_tabcont_loop. &
*SELECT * FROM spfli INTO CORRESPONDING FIELDS OF TABLE itab.* -
> this statement is used only in report program and system does not allow us to use in module pool program.
Second thing here data is retrived from spfli table where as my data will be whatever enduser enters it may be 15 lines , may be 50 lines or may be 200 lines and it shold be displayed on entry screen before clicking SAVE or any other user action.
My main problem is that I am unable to enter more than 11 entries in my entry screen. I want dynaamic table. Mean whichever enteries are entered they should be displayed on entry screen as well as can be scrolled up & down before saving and get saved after clicking SAVE button. here table control design is not imp because entry data depends on table control layout rows & which has limit. It can not be extended beyond certain level. i think max will be 20 Or 25 rows in layout. How to make it dynamic so that we can get any no. of entries in entry screen hiich canbe scrolled up & down.
Anyways thanks for ur reply And send some other soln.
Thanks & regards,
Ashish -
Please advise: if it's possible to include a table control in step loop
Dear Gurus,
Currently, our user want to output a result list after calling BAPI: BAPI_BILLINGDOC_CREATEMULTIPLE.
Because this BAPI could create multiple invoices, and the result is asked to be displayed in a special format (both header information and item information). I just think if it is possible that make the header(text boxes) and item (table control ) in to a step loop.
Could you please kindly advise?
Thanks & RegardsDear all,
As I tried, it is not possible to include table control or subscreen area in the step loop. -
In tabstrip control to display table control
Hi,
I want to to display a table control under tabstrip tab , How can i write the programm.
if any one knows pls reply me.hi Sridevi,
-->create sub screen with 100 with some screen number.
-->Create Table control..
--> append table control screen to Tab Strip.
--------------------- . . . . > > > > see the example below
Scenario:
Screen 601 has a table control named CTRL_ANVSTED.
The table should be filled with records from the table zanvstedm
For this purpose you use an internal table called TBL_ANVSTED
* Declare the table control
CONTROLS CTRL_ANVSTED TYPE TABLEVIEW USING SCREEN 601.
*Internal table used to hold data
DATA: TBL_ANVSTED LIKE ZANVSTEDM OCCURS 100 WITH HEADER LINE,
* Flag for initial reading
Data: FLAG_INITIAL TYPE I VALUE 0.
PROCESS BEFORE OUTPUT.
* Read data into the table control and the internal table
* PF status etc.
MODULE INITIALIZE_601.
* Read data from table anvstedm into internal table tbl_anvsted.
MODULE INIT_TBL_ANVSTED.
* Fill control with data from ythe internal table
LOOP WITH CONTROL CTRL_ANVSTED.
MODULE FILL_CTRL_ANVSTED.
ENDLOOP.
MODULE INIT_TBL_ANVSTED OUTPUT.
* Read data from table anvstedm into internal table tbl_anvsted.
IF FLAG_INITIAL = 0.
FLAG_INITIAL = 1.
SELECT * FROM ZANVSTEDM INTO TABLE TBL_ANVSTED.
ENDIF.
ENDMODULE.
MODULE FILL_CTRL_ANVSTED OUTPUT.
* Fill control with data from the internal table
READ TABLE TBL_ANVSTED INDEX CTRL_ANVSTED-CURRENT_LINE.
IF SY-SUBRC NE 0.
EXIT FROM STEP-LOOP.
ENDIF.
ENDMODULE.
PROCESS AFTER INPUT.
* Write changes in table control to internal table
LOOP WITH CONTROL CTRL_ANVSTED.
MODULE CTRL_ANVSTED.
ENDLOOP.
MODULE CTRL_ANVSTED INPUT.
* Write changes in table control to internal table
MODIFY TBL_ANVSTED INDEX CTRL_ANVSTED-CURRENT_LINE.
ENDMODULE.
Regards,
Prabhudas -
Hi,
Currently using SAP 4.7 SAPKB62011
The need was to develop a program, which based on a selection-criteria displays a table(editable) and some changes will be done in the table and data should get saved.
The best approach I assumed was to
a) Create a report, define the selection screen parameters
b) Do validation in at selection-screen
c) If all validations are proper, select values to be shown in table control
d) call screen 9000
Everything is working perfectly, except for adding new lines in table control.
When I execute select query in AT SELECTION-SCREEN event before calling the screen 9000, then I am not able to add values to table control.
But if I put the select query in the PBO of screen 9000, I am able to add new values. Only those values which are already present in table control can be changed. I am not able to add any new entries.
In my opinion, there should not be a select query in PBO, because that query would hit the database in all possible events.
Any particular reason, why.
<b>AT SELECTION-SCREEN code</b>
AT SELECTION-SCREEN.
CASE sy-ucomm.
WHEN 'ONLI'.
lv_pernr = p_pernr.
lv_lifnr = p_lifnr.
* SELECT *
* FROM zpersoninfo
* INTO TABLE lt_zpersoninfo
* WHERE personno = lv_pernr.
* IF sy-subrc <> 0.
* ENDIF.
* APPEND INITIAL LINE TO LT_ZPERSONINFO.
CALL SCREEN 9000.
ENDCASE.
<b>Dynpro code</b>
PROCESS BEFORE OUTPUT.
MODULE pbo_9000.
LOOP AT lt_zpersoninfo INTO zpersoninfo WITH CONTROL tablecontrol CURSOR
tablecontrol-current_line.
MODULE pbo_tc_9000.
ENDLOOP.
PROCESS AFTER INPUT.
LOOP.
MODULE pai_tc_9000.
ENDLOOP.
MODULE pai_9000.
<b>PBO_9000</b>
MODULE pbo_9000 OUTPUT.
SET PF-STATUS lv_pfstatus.
pa0315-pernr = lv_pernr.
SELECT *
FROM zpersoninfo
INTO TABLE lt_zpersoninfo
WHERE personno = lv_pernr.
IF sy-subrc <> 0.
ENDIF.
APPEND INITIAL LINE TO LT_ZPERSONINFO.
ENDMODULE. " PBO_9000 OUTPUT
<b>PBO 9000 - Table Control Code</b>
MODULE pbo_tc_9000 OUTPUT.
LOOP AT SCREEN.
IF lv_pfstatus = 'DISPLAY'.
CASE screen-name.
WHEN 'ZPERSONINFO-SERVICENO'.
screen-input = '1'.
screen-active = '1'.
WHEN 'ZPERSONINFO-MANDATORY'.
screen-input = '1'.
screen-active = '1'.
ENDCASE.
ELSEIF lv_pfstatus = 'CHANGE'.
CASE screen-name.
WHEN 'ZPERSONINFO-SERVICENO'.
screen-input = '0'.
WHEN 'ZPERSONINFO-MANDATORY'.
screen-input = '0'.
ENDCASE.
ENDIF.
MODIFY SCREEN.
ENDLOOP.
ENDMODULE.
Let me know if I have skipped some information, which you may find it useful to find the solution.
Regards,
Subramanian V.That is because I didn't upate the 'LINES' field in tablecontrol. How silly !!
Regards,
Subramanian V. -
How to display a table data on Screen having a Table control
Hi ,
I am new to ABAP.I would like to display a table data (Eg: ZDemo) on a screen at run time.I have defined a Table control in screen. Now I want to populate data from ZDemo to table control.How can I do that?Please help moving forward in this regard.Hi Gayatri,
After creating table control do the following steps.
1. In the flow logic section write the following code:
PROCESS BEFORE OUTPUT.
MODULE STATUS_0200.
LOOP AT I_LIKP WITH CONTROL LIKP_DATA CURSOR LIKP_DATA-CURRENT_LINE.
MODULE ASSIGN_DATA.
ENDLOOP.
PROCESS AFTER INPUT.
MODULE USER_COMMAND_0200.
LOOP AT I_LIKP.
ENDLOOP.
I_LIKP is the internal table which is used to display table data in the table control.
2. In Process Before Output, in the module STATUS_0200 write the following code:
DESCRIBE TABLE I_LIKP LINES FILL.
LIKP_DATA-LINES = FILL.
In Process After Input, in the module USER_COMMAND_0200 write the following code:
CASE SY-UCOMM.
WHEN 'LIPS'.
READ TABLE I_LIKP WITH KEY MARK = 'X'.
SELECT VBELN
POSNR
WERKS
LGORT
FROM LIPS
INTO TABLE I_LIPS
WHERE VBELN = I_LIKP-VBELN.
IF SY-SUBRC = 0.
CALL SCREEN 200.
ENDIF.
WHEN 'BACK'.
SET SCREEN 200.
ENDCASE.
In Process Before Output and in the module ASSIGN_DATA which is there inside the loop write the following code:
MOVE-CORRESPONDING I_LIKP TO LIKP.
So, Totally your flow logic code should be like this.
TABLES: LIKP, LIPS.
DATA: BEGIN OF I_LIKP OCCURS 0,
VBELN LIKE LIKP-VBELN,
ERNAM LIKE LIKP-ERNAM,
ERZET LIKE LIKP-ERZET,
ERDAT LIKE LIKP-ERDAT,
MARK TYPE C VALUE 'X',
END OF I_LIKP,
BEGIN OF I_LIPS OCCURS 0,
VBELN LIKE LIPS-VBELN,
POSNR LIKE LIPS-POSNR,
WERKS LIKE LIPS-WERKS,
LGORT LIKE LIPS-LGORT,
END OF I_LIPS,
FILL TYPE I.
CONTROLS: LIKP_DATA TYPE TABLEVIEW USING SCREEN 200,
LIPS_DATA TYPE TABLEVIEW USING SCREEN 300.
DATA: COLS LIKE LINE OF LIKP_DATA-COLS.
*& Module USER_COMMAND_0100 INPUT
text
MODULE USER_COMMAND_0100 INPUT.
CASE SY-UCOMM.
WHEN 'LIKP'.
SELECT VBELN
ERNAM
ERZET
ERDAT
FROM LIKP
INTO TABLE I_LIKP
WHERE VBELN = LIKP-VBELN.
IF I_LIKP[] IS INITIAL.
CALL SCREEN 200.
ENDIF.
WHEN 'EXIT'.
LEAVE PROGRAM.
ENDCASE.
ENDMODULE. " USER_COMMAND_0100 INPUT
*& Module assign_data OUTPUT
text
MODULE ASSIGN_DATA OUTPUT.
MOVE-CORRESPONDING I_LIKP TO LIKP.
ENDMODULE. " assign_data OUTPUT
*& Module STATUS_0200 OUTPUT
text
MODULE STATUS_0200 OUTPUT.
DESCRIBE TABLE I_LIKP LINES FILL.
LIKP_DATA-LINES = FILL.
ENDMODULE. " STATUS_0200 OUTPUT
*& Module USER_COMMAND_0200 INPUT
text
MODULE USER_COMMAND_0200 INPUT.
CASE SY-UCOMM.
WHEN 'LIPS'.
READ TABLE I_LIKP WITH KEY MARK = 'X'.
SELECT VBELN
POSNR
WERKS
LGORT
FROM LIPS
INTO TABLE I_LIPS
WHERE VBELN = I_LIKP-VBELN.
IF SY-SUBRC = 0.
CALL SCREEN 200.
ENDIF.
WHEN 'BACK'.
SET SCREEN 200.
ENDCASE.
ENDMODULE. " USER_COMMAND_0200 INPUT
Save and Activate the program along with the screen in which you have included table control.
Hope this will help you.
Regards
Haritha. -
Table Control Icon appearing in Personal Data in ESS in Portal
Hello All,
We are on SAP Enterprise Portal 6.0 SPS09 with version details as
J2EE Engine 6.40 PatchLevel 87289.311
Portal 6.0.9.0.0
After installation of Portal system we installed Business Package for
Employee Self-Service 4.6C - 4.7 on our Portal system and installed ITS
6.20 patch 22 over Portal inorder for connecting Portal with Backend R/3 system.Ours is a development serverand Portal application and ITS are installed
on the same server.
When we access ESS on Portal ,and navigate to Personal Information /Personal Data / , there a small table control icon appears which we donot want to appear and which does not appear on R/3 side.Simultaneously for this transaction in R3 a selection row appears which doesnot appear in Portal.This problem is given even when we run ESS transactions through ITS on webgui.Wt might be the cause of this error ,do we need to make any settings ( Table specific) in ITS or R/3 or somewhere else. Kindly plz suggest.Plz revert at earliest.My email Id is [email protected] .
Regards,
SaumyaHi Somya,
Did you solved this problem. If you solved this issue then please let me know because iam also getting the same problem. you can send me an email at [email protected]
Thanks,
Abdul Hadi. -
Table Control - Cursor placed on same field
Hi,
I am facing one problem in a User defined Screen that having Table control.
I written some validations for each and every field in Screen including Table control.
But each & every time i am pressing Enter , the cursor is going to first field in the screen . I want to restrict this one...i want to be cursor on the field which i entered value at that time or next navigation field.
How i can achieve this...cursor should stay on the same field , it should not go to first field.
Pls give ur suggestions...
Thanks in Advance,
Best Regards,
pavan.Hello Pavan,
This is the first time I'm coming across this problem and I find it quite peculiar. Anyways, I can think of one option that you can try out.
Use the option GET CURSOR FIELD to get the cursor in the PAI event and then use the SET CURSOR FIELD statement in the PBO to set the cursor to the appropriate field.
Regards,
Anand Mandalika. -
Module Pool table controle row level prob
Hi Experts,
I am working in a module pool program where in table controle i want a perticular row should become in display mode if a specific field is NE SPACE. is it possible if possible than please sugest me how.
Thanks and Regards,
D Tarun KumarIn this case all the rows will be in display mode
Exactly My Requirement I am describing with example
Suppose in table control I have three Records and the first field is main field which is if initial than the row should in change mode otherwise is should be in display mode.
Field1 Field2 Field3 Field4 Field5
1abc2 1abc3 1abc4 1abc5 Record 1
2xyz1 2xyz2 2xyz3 2xyz4 2xyz5 Record 2
3pqr2 3pqr3 3pqr4 3pqr5 Record 3
So here the second rowu2019s first field is not initial so I need here in table control the second row should be in display mode and next first and second row should be in change mode.
Now You tell me is it possible or not if possible than please suggest me what I have to do
Thanks & regards,
D Tarun Kumar
Edited by: Devalla T Kumar on Oct 24, 2009 9:17 AM
Maybe you are looking for
-
HT204291 Mirroring my ipad on apple tv does not work
I've just purchased Apple tv and tried to mirror my ipad, I see the Airplay Icon in the task bar of my ipad and I click on it and it turns blue then a few seconds later it goes off. Am I doing something wrong ? Do you need to go on a certain screeen
-
Dear All, I have configured remote access vpn without using split tunnel.Everything is working fine.I can access all the inside network which is allowed in acl. I am facing strange issue now. I have created a pool for remote access vpn with a range 1
-
FCP 7.0.3 OUT OF MEMORY?!!
I bought a 12 core mac pro, 16gb ram and when I try to put an HD video clip into my viewer, I immediately get a pop up saying, 'General Error,' followed by 'Out of Memory.' The info on the video clips are as follows: 1920x1080 H.264 Compressor, 23.98
-
Ever since I was with my iPad in France, it goes to the French app store instead of to the Netherlands' one. As a consequence, I am unable to download any app. Not in France, because my bank account number is Dutch (it says), not in the Nteherlands b
-
I have a dmp file from other database. I am trying to import it to sys in my database The import went successfull without warnings but when i check the tables it says object does not exist. I created the tablespaces as per requirement but still the s