Modifying table control in MIGO
Hi,
I'm trying to modify MIGO transaction, and I found the MB_MIGO_BADI Badi, but I have no idea how to modify the central table control, They want to show new column on it. If anybody had done this stuff before I will be very grateful.
Thanks in advance.
Jano
Hi,
They do not want to modify the lines, They wants to put another field on the table control, I'm seeing the sap sample (CL_EXM_IM_MB_MIGO_BADI) in the method line_modify it just to modify the line data just in case you want to change any data, am I wrong?
Thanks
Similar Messages
-
Add columns with custom fields in the table control of MIGO
Hi,
I have to add custom fields in the table control view of item in the MIGO. I have added the fields in the GOITEM structure and i am able to display it in the item details tab. I want the same fields to be visible as columns in the table control view of the items.
I found that TV_GOITEM is the control in SAPLMIGO program referring to the table control of items but it is referring only to the standard fields available in Screen 200.
Please let me know if there is any screen exit or option to add the custom fields in the control TV_GOITEM.
Thanks.Hi,
Thanks for your reply. I have added the custom fields in the item detail. But the customer wants the custom fields in the table view also.
Is there any screen exit available to modify the table control of MIGO?
Thanks. -
Adding a new column in table control of MIGO
Hello,
I want to add a column in the itemlist table control (screen 200) of MIGO to show the batch's case qty. I used an example in BAdI MB_MIGO_BADI to add a new header tabstrip but the itemlist table is still pointing to MIGO's table control screen 200 ( used in subscreen SUB_ITEMLIST ). I want to show my table control which has the added column instead.
Does anyone have any ideas how to do this ?
Thanks.
TTranHi....
1. Goto that screen layout and make it change mode.
2. Follow the menu path -> goto-> secondary window-> dictionary/ program fields
3. select the reuired field
4. drag that into your table control , cretes new column
5. Also capture icon in the left side i.e. T for text make that in header area of new field.
6. Double click on this , give some name.
7. Save check activate
Thanks,
Naveen.I -
Hi,
I want to modify the column display. I mean, I create a table control but after that, I want to change the column order (for example, I add a new field). If I do that, the columns does not appears properly (not appears in the correct order).
Does anybody know what is the problem?
ThanksHi,
The problem is with a TC of a standard dynpro for infotypes (3000). When I debug the code, the table CXTAB_CONTROL has the table field COLS with the right order but in this table the field COLS-INDEX is not correct.
For example CXTAB_CONTROL-COLS is
CXTAB_CONTROL-COLS[1]-SCREEN-NAME = FIELD1
CXTAB_CONTROL-COLS[2]-SCREEN-NAME = FIELD2
CXTAB_CONTROL-COLS[3]-SCREEN-NAME = FIELD3
CXTAB_CONTROL-COLS[1]-INDEX = 1
CXTAB_CONTROL-COLS[2]-INDEX = 3
CXTAB_CONTROL-COLS[3]-INDEX = 2
but it might be
CXTAB_CONTROL-COLS[2]-INDEX = 2
CXTAB_CONTROL-COLS[3]-INDEX = 3
I know that you can modify this, because for non standard TC you can change the column order. -
Modifying table control in standard program
Hi ,
Can any one tell me how to add a column in table control? My requirement is to add two columns ( custom fields ) into table control ( It is a standard program). I have added the column in the table and also in the table control. But when I am running the standard program, The newly added column is not there. But I have added in the perticular screen. Change is not reflected.
Actually in the standard screen totally 94 columns are there but where as when you run the program it is showing only 15 columns. can you tell me the reason?
I am working on Invoice payments F-28 screen 6102.
Can anyone help me on this please.In the IMG (transaction SPRO), look at the path:
Financial Accounting
Accounts receivable and accounts payable
Business transactions
Incoming Invoices/Credit Memos
Carry out and Check document settings.
There may be something there that will help.
Rob -
Custom fields in migo table control not updating
hi ,
This is to have your valuable suggestion , wrt , following issue..
In transaction MIGO , i have to add two fields uebto and untto in table control .
I am able to add them in table control, but some how not able to pick data for these fields .
error coming is :
" System error: Incorrect Customizing for field
ZZUEBTO".
if any face such type of issue , answer me .
Thanx,
jeetHi,
Thanks for your reply. I have added the custom fields in the item detail. But the customer wants the custom fields in the table view also.
Is there any screen exit available to modify the table control of MIGO?
Thanks. -
Dymanic Columns in Table Control
Hallo Experts,
I need to create dymanic columns in a Table Control. The column has to by dymanically created based upon a flag entry in one master table.
We have a master table with some rows with a flag entry as shown below,
TEXT FLAG
AAAA X
BBB X
CCC
DDD X
I have to show the above entries which are set (AAAA, BBB and DDD) as a columns in the table control.
My Table Control, already have many columns and on the top of that i have to populate this rows as a columns dymamically..
The sample table control structure should looks like the below,
PERNR NAME LAND1 AAAA BBB DDD
How to acheive this?Hi
U need to change the attribute of the colunms of the table control, your table control is defined like the type TABLEVIEW:
CONTROLS <table contrl> TYPE TABLEVIEW USING SCREEN <screen number>.
The type TABLEVIEW is based on the type CXTAB_CONTROL, here there's the field COLS (like the type CXTAB_COLUMN) where the attribute of the columns are stored: u need to change the attribute of COLS.
COLS is an internal table, so u need to define a workarea based on CXTAB_COLUMN and set the attribute INVISIBLE in order to hide a certain colunm.
TYPE-POOLS: CXTAB_COLUMN.
DATA: WA_COL TYPE CXTAB_COLUMN.
LOOP AT <table control>-COLS INTO WA_COL.
IF WA_COL-SCREEN-NAME = ...........
WA_COL-INVISIBLE = 'X'.
MODIFY <table control>-COLS FROM WA_COL.
ENDIF.
ENDLOOP.
Now u need to insert the right condition in order to show or hide a certain column
Max -
How make Invisible a particular Cell in the TAble Control.
Dear Freinds,
I have requirement where in on a particular conditon i have to close one of the fields in the TAble contorl . That is i have to make it as invisible ....iam able only to make only display (greyed out) only iam not able to make invisible.
Please could any one let me know how can we make invisible a particular field.
regards
divya.Hi,
Try this it works,
LOOP AT tc_release_ord-cols INTO wa_cols. "tc_release_ord-----> table control
CASE wa_cols-screen-name.
WHEN 'ZRELEASE_ORDER-SPOTS1'.
IF spots1 = ' '. > use your condition here
wa_cols-invisible = 'X'. > set property to invisible
MODIFY tc_release_ord-cols FROM wa_cols. >modify table control
ENDIF.
WHEN 'ZRELEASE_ORDER-SPOTS2'.
IF spots2 = ' '.
wa_cols-invisible = 'X'.
MODIFY tc_release_ord-cols FROM wa_cols.
ENDIF.
WHEN 'ZRELEASE_ORDER-SPOTS3'.
IF spots3 = ' '.
wa_cols-invisible = 'X'.
MODIFY tc_release_ord-cols FROM wa_cols.
ENDIF.
endcase.
Endloop.
Hope it helps you,
Regards,
Abhijit G. Borkar -
How to modify changes of table control data in PAI
I have a table control where the columns are brought by dict fields.I am able to bring data into table control through an itab.
Now what i want is whenever user edits data in table control and clicks on save button the corresponding changes should be made in database.
For this according to my understanding we need to (in PAI) modify the changes in itab from the table control and then in SY-UCOMM of SAVE button we need to update in database table using itab.
For this , I am not able to write code for modifying the changes in itab from table control. Here is my code below.Please tell me how to do this.
PROCESS BEFORE OUTPUT.
MODULE FILL_DATA.
LOOP AT ITAB INTO ZEMPLOYEE_MASTER WITH CONTROL EMPTABLE CURSOR
EMPTABLE-CURRENT_LINE.
ENDLOOP.
MODULE STATUS_0001.
PROCESS AFTER INPUT.
LOOP AT ITAB.
MODULE MODIFY_ITAB.
ENDLOOP.
MODULE USER_COMMAND_0001.
REPORT ZDATA_FORM1.
TABLES: ZEMPLOYEE_MASTER.
CONTROLS EMPTABLE TYPE TABLEVIEW USING SCREEN 0001.
data: begin of itab occurs 0,
emp_no like zemployee_master-emp_no,
name like zemployee_master-name,
city like zemployee_master-city,
end of itab,
rowno TYPE I VALUE 1.
*& Module STATUS_0001 OUTPUT
* text
MODULE STATUS_0001 OUTPUT.
* SET PF-STATUS 'xxxxxxxx'.
* SET TITLEBAR 'xxx'.
ENDMODULE. " STATUS_0001 OUTPUT
*& Module USER_COMMAND_0001 INPUT
* text
MODULE USER_COMMAND_0001 INPUT.
MESSAGE 'Inside INPUT' TYPE 'I'.
CASE SY-UCOMM.
WHEN 'SAVE'.
UPDATE zemployee_master.
WHEN 'EXIT'.
LEAVE PROGRAM.
ENDCASE.
ENDMODULE. " USER_COMMAND_0001 INPUT
*& Module fill_data OUTPUT
* text
MODULE fill_data OUTPUT.
select emp_no name city from zemployee_master into TABLE itab ORDER BY emp_no.
Describe table itab lines EMPTABLE-LINES.
ENDMODULE. " fill_data OUTPUT
*& Module modify_itab INPUT
* text
MODULE modify_itab INPUT.
* MODIFY itab from zemployee_master index
* MESSAGE 'Inside modify_itab' TYPE 'I'.
ENDMODULE. " modify_itab INPUTHi
In the following module of your code
MODULE modify_itab INPUT.
MODIFY itab from zemployee_master index tc-current_line " Where TC is the name of the Table control on the Screen
ENDMODULE.
Table control data gets refreshed on *enter*
http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/2165e990-0201-0010-5cbb-b5c2ad436140
Cheerz
Ramchander Rao.K -
Internal table not getting modified from Table Control
Hi Guys,
I am developing a <b>Module Pool </b>Program where I am inserting data directly in table control of the main screen.
In the flow logic of the Table control I have written :
PROCESS BEFORE OUTPUT.
LOOP AT itab WITH CONTROL tc1 CURSOR tc1-current_line.
MODULE read_data.
ENDLOOP.
MODULE status_0100.
PROCESS AFTER INPUT.
LOOP AT itab.
MODULE mod_data.
ENDLOOP.
MODULE user_command_0100.
Module mod_data input.
MODIFY itab INDEX tc1-current_line.
Endmodule.
At modify, when I am debugging it's showing sy-subrc = 4 (Entry not appending in Int Table though it is there in the header line). But, if I use append itab, it's working (Problem is that while inserting 2nd record a copy of first record is also appending which I don't want).
Please let me know what's wrong in Modify statement or what is solution for inserting records of tablecontrol in internal table.
TIA,
NitinHi Nitin,
use the following code wor module.
Module mod_data input.
READ ITAB INDEX TC1-CURRENT_LINE.
IF SY-SUBRC = 0.
MODIFY itab INDEX tc1-current_line.
ELSE.
APPEND ITAB.
ENDIF.
Endmodule. -
Modify data in the table control
hello:
i would like to ask a favor , i am working with a table control (it already has the information i need) all the fields all my table control are present in output form only, but i need when the user press a pushbutton to modify a specific data one of the cell of the table control permit to be change.
my output is:
field1 field2 field3 (only output )
if the user press the button 'CHANGE DATA' it will be present as
field1 field2 fiel3(ready to recibe new data ).
but i don´t know how to do it, if somebody knows how to do it
thanks a lot.this will be your's main program
*& Report ZEMP
REPORT ZEMP.
TABLES: ZEMP." Z TABLE
CONTROLS: TAB_CONTROL TYPE TABLEVIEW USING SCREEN 1000.
DATA: IT LIKE ZEMP OCCURS 0 WITH HEADER LINE.
SELECT * FROM ZEMP INTO CORRESPONDING FIELDS OF TABLE IT.
CALL SCREEN 1000.
*& Module STATUS_1000 OUTPUT
text
MODULE STATUS_1000 OUTPUT.
SET PF-STATUS 'xxxxxxxx'.
SET TITLEBAR 'xxx'.
ENDMODULE. " STATUS_1000 OUTPUT
*& Module USER_COMMAND_1000 INPUT
text
MODULE USER_COMMAND_1000 INPUT.
IF SY-UCOMM = 'BACK'.
LEAVE PROGRAM.
endif.
ENDMODULE. " USER_COMMAND_1000 INPUT
*& Module MODIFY INPUT
text
MODULE MODIFY INPUT.
MODIFY IT INDEX TAB_CONTROL-CURRENT_LINE.
MODIFY ZEMP FROM IT.
ENDMODULE. " MODIFY INPUT
and this should be your flow logic
PROCESS BEFORE OUTPUT.
MODULE STATUS_1000.
LOOP AT IT WITH CONTROL TAB_CONTROL.
ENDLOOP.
PROCESS AFTER INPUT.
MODULE USER_COMMAND_1000.
LOOP AT IT.
MODULE MODIFY.
ENDLOOP.
Regards
Prakash Varun -
How to modify data in table control
hi
i have created table control where i have displayed data into table control
logic used
screen 200
PROCESS BEFORE OUTPUT.
MODULE SELECT_RECORD.
*&SPWIZARD: PBO FLOW LOGIC FOR TABLECONTROL 'TBC_200'
MODULE TBC_200_CHANGE_TC_ATTR.
*&SPWIZARD: MODULE TBC_200_CHANGE_COL_ATTR.
LOOP AT IT_MARA
INTO WA_MARA
WITH CONTROL TBC_200
CURSOR TBC_200-CURRENT_LINE.
MODULE TBC_200_GET_LINES.
*&SPWIZARD: MODULE TBC_200_CHANGE_FIELD_ATTR
ENDLOOP.
MODULE STATUS_0200.
PROCESS AFTER INPUT.
*&SPWIZARD: PAI FLOW LOGIC FOR TABLECONTROL 'TBC_200'
LOOP AT IT_MARA.
CHAIN.
FIELD WA_MARA-MATNR.
FIELD WA_MARA-ERSDA.
FIELD WA_MARA-ERNAM.
MODULE TBC_200_MODIFY ON CHAIN-REQUEST.
ENDCHAIN.
FIELD WA_MARA-MARK
MODULE TBC_200_MARK ON REQUEST.
ENDLOOP.
MODULE TBC_200_USER_COMMAND.
*&SPWIZARD: MODULE TBC_200_CHANGE_TC_ATTR.
*&SPWIZARD: MODULE TBC_200_CHANGE_COL_ATTR.
module -
MODULE SELECT_RECORD.
MODULE SELECT_RECORD OUTPUT.
SELECT MATNR ERSDA ERNAM
FROM MARA
INTO CORRESPONDING FIELDS OF TABLE it_mara.
ENDMODULE. " SELECT_RECORD OUTPUT
and
another thing
i have made field MARA-ERSDA. and FIELD WA_MARA-ERNAM editable by
input possible using layout
so
now those 2 fields contents are editable
i want to know how to edit and save the data
some body guide.
and i want to put the lock so that i can update
can tell how to implement lock.
Thanks
Edited by: viju bangalore on Jan 27, 2011 10:40 AMHi Viju,
In PAI do something like this
LOOP AT itab.
MODULE mod_table_control.
ENDLOOP.
MODULE user_command_0100.
at module mod_table_control put this
MODULE mod_table_control INPUT.
MODIFY itab FROM demo_conn INDEX flights-current_line.
if sy-subrc ne 0.
insert itab.
endif.
ENDMODULE.
for saving you can create at custom gui status with a save button, and at MODULE user_command_0100 save the data. -
Modifying data in Table Control thr' BDC
Hi,
I have a following requirement.
I need to modify(update/delete) the data in the table control through BDC. The number of records of the table control, seen on the screen are only 4. If i need to modify 11th record, how do i go forward?
Your help is highly appreciated.
Regards
ShankarDue to rudeness, your thread is denied.
Note. If you want help from people it's best to a) follow the rules, and b) not antagonise those who could help you.
locked. -
Problem in modifying the existing record in table control
Hi Experts,
I have one table control.I have entered one record and save it.When I am modifying the same record a duplicate record is created.I need if I modify the same record that record should only modify.How to delete the duplicate record.Hi,
In Flow logic.
LOOP .
MODULE tbc_modify ON CHAIN-REQUEST.
MODULE tbc_mark.
ENDLOOP.
In module.
MODULE tbc_modify INPUT.
MODIFY t_data
FROM fs_data
INDEX tbc-current_line.
IF sy-subrc NE 0.
APPEND fs_data TO t_data.
ENDIF.
ENDMODULE.
MODULE tbc_mark INPUT.
DATA: tbc_wa2 LIKE LINE OF t_data.
IF tbc-line_sel_mode = 1
AND fs_data-mark = 'X'.
LOOP AT t_data INTO tbc_wa2
WHERE mark = 'X'.
tbc_wa2-mark = ''.
MODIFY t_data
FROM tbc_wa2
TRANSPORTING mark.
ENDLOOP. .
ENDIF.
MODIFY t_data FROM fs_data
INDEX tbc-current_line
TRANSPORTING mark.
ENDMODULE.
Edited by: sapabap403 on Aug 31, 2011 9:29 AM -
Add new field in detail table control MIGO
Hi Gurus,
We are able add the new(custom) field in MSEG table and it is able to view at line item lebel in transaction MIGO.
However the user requirement is he need the field shoud be in detail table control.
Could you please help me out. Thanks in advance.
Thanks & Regards
Tirumula Rao Chinnihi
Please go through these links
How to Add Field to MIGO : Urgent
MIGO How to add new screen field
Adding custom fields in the MIGO screen
Thanks..
Maybe you are looking for
-
How to differentiate between Radio Buttons with the same name?
My form has two fields, to which I gave the same name ("Radio Button 1.0") in order to achieve mutual exclusivity. Now, I would like to use JavaScript to retrieve the value of one the two fields: var checkMark = this.getField("Radio Button1.0"); if (
-
Dear Friends, Can someone help me with this issue when ever am trying to backup my data to my Laptop Pc through Blackberry Destop software it keeps hanging when it get to this stage (Backing Up Smart Card Option 1of1 Record) Thank You Afolarin o
-
How this all started... I have a lot of fonts. I use them for design purposes, and recently added a bunch of new ones. As a result, I had a problem with an Adobe program and the font displayed in the workspace. I figured out which one caused it and d
-
Regarding excel download from ALV report tree
Hi Experts, I have a ALV report tree program. In that i need the functionality to download report output in excel file. Can any body suggest how can i achieve download to excel functionality in it. Any useful suggestion will be appreciated. Thanks in
-
Anyone know of a tutorial for jxinput?
I really need to learn how it works but i dont know how! Does anyone know of any tutorials or something to learn it? Ant...