Problem displaying 4 decimals amount in table control of custom infotype
Hi friends,
i have created a custom infotype 9404. In that i have a amount field ZBASERATE(of type CURR 13, 4 decimals).
When am trying to fill the ZBASERATE with ZOLDRATE(of type CURR 13, 2 decimals).
For example,
ZOLDRATE = 25.68
And am trying to push 25.68 into ZBASERATE, so in my PA9404 table, in the field PA9404-ZBASERATE value is stored as 25.6800 which is as required and correct.
But When i go to tcode PA30 and tried to see this value ZBASERATE. It is displaying as 2568.00 instead of 25.6800.
Which is incorrect.
Kindly help me with your valuable suggestions.
Regards
Anji Reddy
Solved,Thanks
Similar Messages
-
Table control in Custom infotype 9008
Hi,
I need to create a custom infotype with table control in it.
Normally after going to PM01 and genetete it will display all the field as individual field.
Here i need to use 4 of those field into table control format.
Is ther any special process to create table control in custom infotypes??
Thanks in advance,
SatyadevHi Satyadev,
I dont have a solution for your problem, but am curious about the intent of what you are trying to do .... the purpose of the table control is to store multiple records, so if a user enters multiple records for the four fields, how are you planning to store it in the Database (PA9nnn) table considering the key would be unique .... Unless you have defined 4*X times the number of columns in your P9nnn strcutre and hence need X number of rows in table control?
Just trying to bring up a question - so that it might help realize a solution or prospective future problem!
Cheers,
Aditya -
Dynamic tabstrips and table control in custom infotype
Dear Experts,
I have a requirement to create a custom infotype using tabstrips and table control. The tabstripes should also be dynamically populated. For example we have infty 8(Basic pay) used table control and 24(Qualifications) for tabstripes.
Could you please tell me how to do this. Please do the needful ASAP.
Thanks,
Chaitanya.
Moderator message - Please don't just post your requirements and ask the forum to do your work for you...especially ASAP - Thread locked
Edited by: Rob Burbank on Oct 7, 2009 4:16 PMHi Partha,
Pls check the threads:
Best way to store a table control into an infotype
Re: Custom Infotype with table control - Overview/List Screen
Dilek -
Table Control in Custom Infotype
Hi Everyone,
I have created a custom infotype 9200 where i have four field bunching (zband01, zgrade01, zcurrp01, zrmrks01, zbandp02...upto 10 repeations) in PS9200 structure. I have created another structure ZQ9200 with just the above four fields in the structure. This structure field names are assigned to the table control layout fields in the module pool.
I created another internal table and workarea with the same four field structure in the program. In PAI, in the 'loop with control TC', i am populating the internal table first. Then after the loop ends, i am loopinf the internal table and populating the P9200 structure.
Problem here is in pa30, if i want to create a record to IT 9200, i am entering the values in the table control but could not hold the values after I press the 'Enter' button.
PLease do help me.Hi
It would be something like this
PROCESS BEFORE OUTPUT.
* general infotype-independent operations
MODULE before_output.
CALL SUBSCREEN subscreen_empl INCLUDING empl_prog empl_dynnr.
CALL SUBSCREEN subscreen_header INCLUDING header_prog header_dynnr.
* infotype specific operations
MODULE p9991.
LOOP AT g_tabla WITH CONTROL g_d_tc INTO g_wa.
MODULE pbo_tc.
ENDLOOP.
************+
PROCESS AFTER INPUT.
* process exit commands
MODULE exit AT EXIT-COMMAND.
* processing after input
* check and mark if there was any input: all fields that
* accept input HAVE TO BE listed here
CHAIN.
FIELD p9991-begda.
FIELD p9991-endda.
MODULE input_status ON CHAIN-REQUEST.
ENDCHAIN.
* process functioncodes before input-checks *
MODULE pre_input_checks.
* input-checks: *
LOOP.
MODULE pai_tc.
ENDLOOP.
* insert check modules here:
*& Module PBO_TC OUTPUT
* text
module PBO_TC output.
MOVE-CORRESPONDING G_WA TO ZQ9991.
endmodule. " PBO_TC OUTPUT
*& Module PAI_TC INPUT
* text
MODULE pai_tc INPUT.
MOVE-CORRESPONDING zq9991 TO g_wa.
PERFORM tc_update TABLES g_tabla
USING g_wa
g_d_tc-current_line.
ENDMODULE. " PAI_TC INPUT
*& Form TC_UPDATE
* text
* -->P_G_TABLA text
* -->P_G_WA text
* -->P_G_D_TC_CURRENT_LINE text
FORM tc_update TABLES p_tabla
USING value(p_datos)
value(p_linea).
READ TABLE p_tabla
TRANSPORTING NO FIELDS
INDEX p_linea.
IF sy-subrc = 0.
MODIFY p_tabla FROM p_datos INDEX p_linea.
ELSE.
APPEND p_datos TO p_tabla.
ENDIF.
ENDFORM. " TC_UPDATE -
Table control in custom infotypes
Hi,
I have a requirement to add table control in a custom defined infotype. The fields include two date fields, one icon field, number and name fields. I also need to populate my icon field with three different icons according to the modification in the records of the table control fields.
Please suggest regarding adding icons as a field of the table control and any suggestions about this are welcome.
Thanks in advance,
SaipriyaHi,
I tried out as u said but am gettin a run time error. I had created a tablecontrol and a field by the name of icon1. when i call the function module icon_create am getting a runtime error. please help me.
This is my coding.
tables: icon.
DATA : icon_name(20) TYPE c,
icon_text(10) TYPE c.
DATA : flag TYPE i.
DATA : icon1 TYPE icon_text.
in flow logic,
PROCESS BEFORE OUTPUT.
MODULE STATUS_0100.
LOOP AT WI_TABLE1 WITH CONTROL TABLE1.
ENDLOOP.
PROCESS AFTER INPUT.
MODULE USER_COMMAND_0100.
LOOP AT WI_TABLE1.
ENDLOOP.
module icon_pai.
module icon_pai input.
if flag = 1.
icon_name = 'ICON_GREEN_LIGHT'.
icon_text = 'green'.
CALL FUNCTION 'ICON_CREATE'
EXPORTING
name = icon_name
TEXT = icon_text
INFO = 'Status'
ADD_STDINF = 'X'
IMPORTING
RESULT = icon1
EXCEPTIONS
ICON_NOT_FOUND = 1
OUTPUTFIELD_TOO_SHORT = 2
OTHERS = 3
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
endif.
endmodule. " icon_pai INPUT
Please help me out.... -
Problem in displaying o/p in Table Control
Hi ,
while displaying in table control.
its is displaying line twice.
I have some contains in iti itab.
which i am displaying itf itab through table control..
i have coded like this...
PROCESS BEFORE OUTPUT.
MODULE STATUS_0112.
LOOP at itf WITH CONTROL TC CURSOR tc-current_line.
MODULE FILL_TABLE_CONTROL.
ENDLOOP.
PROCESS AFTER INPUT.
MODULE CANCEL AT EXIT-COMMAND.
LOOP at itf.
module read_table_INPUT.
ENDLOOP.
MODULE USER_COMMAND_0112.
*& Module STATUS_0112 OUTPUT
text
MODULE STATUS_0112 OUTPUT.
SET PF-STATUS 'ZTC'.
SET TITLEBAR 'xxx'.
DESCRIBE TABLE iti LINES tc-lines.
ENDMODULE. " STATUS_0112 OUTPUT
MODULE fill_table_control OUTPUT
MODULE fill_table_control OUTPUT.
loop at iti .
READ TABLE itf with key ingr_code = iti-ingr_code
ingr_desc = iti-ingr_desc.
MOVE iti-INGR_CODE TO ITF-INGR_CODE.
MOVE iti-INGR_DESC TO ITF-INGR_DESC.
MOVE iti-CONC TO ITF-CONC.
MOVE iti-QUANTITY TO ITF-QUANTITY.
MOVE iti-UOM TO ITF-UOM.
append ITF ."index tc-current_line.
endloop.
ENDMODULE. "fill_table_control OUTPUT
can any one help meloop at iti .
READ TABLE itf with key ingr_code = iti-ingr_code
ingr_desc = iti-ingr_desc.
MOVE iti-INGR_CODE TO ITF-INGR_CODE.
MOVE iti-INGR_DESC TO ITF-INGR_DESC.
MOVE iti-CONC TO ITF-CONC.
MOVE iti-QUANTITY TO ITF-QUANTITY.
MOVE iti-UOM TO ITF-UOM.
append ITF ."index tc-current_line.
endloop
You dont need to append the data , you have to Modify the data.
Problem is with the above code.
Correct to this...
MODULE fill_table_control OUTPUT.
READ TABLE itf index tc-current_line.
MOVE iti-INGR_CODE TO ITF-INGR_CODE.
MOVE iti-INGR_DESC TO ITF-INGR_DESC.
MOVE iti-CONC TO ITF-CONC.
MOVE iti-QUANTITY TO ITF-QUANTITY.
MOVE iti-UOM TO ITF-UOM.
endloop.
ENDMODULE. "fill_table_control OUTPUT
Regards
Vijay Babu Dudla -
How to display icon status in table control
hi, i trying to display icon in table control its not displaying
i given below statment.
DATA: BEGIN OF WA_MARA,
ICON1(4) TYPE C,
END OF WA_MARA.
INCLUDE <list>.
MOVE ICON_GREEN_LIGHT TO IT_MARA-ICON1.
APPEND IT_MARA..
when i debugging it display green icon but after run the program its display ' @08@ ' in table control.
how to display green icon in table control help me.Hi,
check the link:
Table control in custom infotypes -
Table type not defined for table control "T_CONTROL" (Custom table)
Hi All,
I m facing a problem in ITS mobile service.
The Table control designed by me in R/3 (Module pool program) is
not getting displayed in ITS mobile page.
It is giving me an error "Table type not defined for table control "T_CONTROL" (Custom table) ".
Can you please let me how this issue can be resolved.
With Regards,
MaheshCONTROLS: table_ctr TYPE TABLEVIEW USING SCREEN '0010'.
try using this....
Regards
Vasu -
Listbox displaying dynamic values in table control
Hi Experts,
The requirement that I have is that there are two columns in an internal table out of which second one is a listbox.
There is a need of displaying dynamic values in a row in a listbox according to value entered in first column of the same row, not affecting the listbox values in other rows.
I am using VRM_SET_VALUES for populating listbox, but it results in populating the listbox in all other rows also.
Please help.
Thanks,
GarimaHi Thanks for the link..
But my problem is something else.
I want the same listbox of a column in a table control to show me different values in different rows on the basis of value in another column .
Regards,
Garima -
Problem with Vertical scroll in table control
Dear All,
I am facing a problem with table control in module pool program. currently it displays 6 lines, but it does not display the vertical scroll button, even though when I fill data in the six rows and hit enter.
I have set the vertical scroll option on the table control properties also.
Can someone help me by sending some sample code?
Thanks,
Amit GoyalHI Amit ,
If you have already selected the properties of vertical and horizontal scroll bar then no other operations needed .. if the number of rows increases then that of the table control , you will automatically see the Vertical scroll in your table control ..
if still you dont see it then write back ..
Reward if helpful !
Thanks
Ranjita -
Problem in more than one table control in a BDT screen
HI gurus,
Please help, I have placed two table controls in a BDT screen (same screen), in Business Partner (BP). When I put only one table control then that is working fine but when I place two table controls then problem starts, table don't get scrolled may times, please suggest, its urgent.Hi,
Try to implement the notes
800369
789747
768803
768479
754237
And if this doesnt solve problem, then describe the problem in detail.
Smita. -
How to display Quantity fields in Table control
Hi,
I need to display quantity fields in my table control based on the resb-meins field. i.e. I need a feature similar to qname of ALV Grid Control in Table control.
Can any body help me.
Regards,
Srinivashi,
use the charecter filed and convert u field in to charecter
check this link
Re: character to decimal conversion
~linganna -
Regarding PAI event display of data in table control
Hi all,
I have a drop down list in my module pool screen and based on my selection the value in not getting captured as i have to display table control data (or item level data ) based on the delivery that is selected from the drop down.
The first level of items are getting displayed in the table control for the first time but after i select the delivery for the next time no delivery is getting captured in the screen field and so on no items are getting changed in the table control.
Pls let me know how to capture the delivery number selected from the drop down list box and so on i can write the code for displaying the new set of items in the table control for the new delivery number selected.
Thankyou for your help.
Amar.Hi All,
I have solved my problum of getting the values in the drop down list using the function module vrm_set_values.
Earlier it dint capture the values in the list because i am not aware of the key field its having apart from the text field.
I have passed some numberic value to the key field earlier and the actual text to be displayed in the TEXT field.
Anyways i came to know that we need to pass the same field values in both key field and text field only then the values wud be captured. So my problum is solved.
I have another question on the same now
My requirement is on selecting a value in the dropdown list the delivery items shud come in the dropdown list which is coming.
I have another drop down in the item level so i wrote the vrm set values in the item level for one field based on that value the other fields in the table control needs to get data.
I have provided the drop down item level field also but the problum is let us say we have 3 items and in the table control has 15 items that can be displayed. The dropdown for that field shud come only upto 3 records but it is coming for the entire column as the screen field name is same for the entire column.
example
f1 f2 f3 are the fields
and the table control can accomodate 10 records
Let us say we have 3 line items
now the drop down is appearing for all the 15 records for field f2 where it shud appear for only 3 records.
pls let me know if there any option in such a way that we can restrict upto 3 records.
Thanks in advance.
Amar. -
Help in disabling display of record in table control
Hi all,
I need to disable the display of record from an internal table in table control.
I have the folllowing code:
PROCESS BEFORE OUTPUT.
Set status & title; possibly disable Proceed option
MODULE status_0410.
Fill table control with data
LOOP AT ts_cor
INTO z2rlcr_screen_struc
WITH CONTROL tc_cor
CURSOR tc_cor-current_line.
MODULE modify_screen.
ENDLOOP.
module modify_screen output.
Don't allow any input for lines that would fail:
if z2rlcr_screen_struc-status_code <> c_yellow or
w_proceed = space.
w_help_screen = c_yes.
Iterate through screen
loop at screen.
Set screen input to 'off' if screen element is...
if screen-name = 'Z2RLCR_SCREEN_STRUC-MANCODE' or
screen-name = 'Z2RLCR_SCREEN_STRUC-REASDESC'.
screen-input = c_off.
endif.
modify screen.
endloop.
endif.
Do not show the line if the line is deleted.
if z2rlcr_screen_struc-del_line eq 'X'.
here I need the help if del_line eq 'X' then I should disable the
display of the whole record.
endif.
endmodule. " MODIFY_SCREEN OUTPUT
I hope its clear.
Any help will be appreciated.
Thanks
Sukumar.Hi Sukumar,
Do you mean to say that the entry that you deleted should not be displayed in the table control?
If that is the case,then I think the following code can help you.
I had a similar requirement in my project and this is the code that I used.
Go through it and you will understand it.
CASE SY-COMM.
WHEN 'DELETE'.
****To delete the seleceted line from table control****
LOOP AT tb_schedule. "tb-schedule is the name of the internal table used for table control.
IF tb_schedule-mark = 'X'.
**tb_schedule is the internal table(same structure as tb_schedule) to hold the deleted entries.***
MOVE-CORRESPONDING tb_schedule TO tb_schedule_del.
APPEND tb_schedule_del.
DELETE tb_schedule.
ENDIF.
ENDLOOP.
**to remove the deleted valules in the Ztable**
LOOP AT tb_schedule_del.
ztm09_eket-ebeln = ztm09_ekko-ebeln.
ztm09_eket-ebelp = tb_schedule_del-ebelp.
ztm09_eket-etenr = tb_schedule_del-etenr.
ztm09_eket-menge = tb_schedule_del-menge.
ztm09_eket-eindt = tb_schedule_del-eindt.
****Delete the entries into schedule table***
Delete ztm09_eket.
ENDLOOP.
Hope this code will help you.
Revert for any querries.
Reward points if helpfull.
Regards,
Kashyap -
Problem in Search help in Table control
Dear ABAPers,
I am using the Table control.In that i am using F4 help.the F4 Value should be based o the
another field in the Table control.how to do this.
Thanks & Regards,
Ashok.I had a similar requirement. In this table control the values for the F4 help for the shipping conditions depend on the vendor the user selects in the first column.
Here is my code:
PROCESS ON VALUE-REQUEST.
FIELD gs_pod_screen-ship_cond
MODULE f4_ship_cond.
MODULE f4_ship_cond INPUT.
PERFORM f4_pod_shipping_conditions.
ENDMODULE. " f4_ship_cond INPUT
FORM f4_pod_shipping_conditions .
DATA: lt_return TYPE TABLE OF ddshretval,
ls_return TYPE ddshretval,
lv_line TYPE i,
lv_vendor TYPE bu_partner,
ls_shlp TYPE shlp_descr,
ls_selopt TYPE ddshselopt,
ls_if TYPE ddshiface,
lv_c(132) TYPE c.
* where on the table control did we hit F4?
GET CURSOR LINE lv_line.
READ TABLE gt_pod_sales
INTO gs_pod_screen
INDEX lv_line
TRANSPORTING vendor.
CHECK NOT gs_pod_screen-vendor IS INITIAL.
* the possible values always depend on the vendor => build it every time
* get the search help parameters first
CALL FUNCTION 'F4IF_GET_SHLP_DESCR'
EXPORTING
shlpname = gc_shlp_shipcon
IMPORTING
shlp = ls_shlp.
* now we have to set restrictions based on the vendor
CLEAR ls_selopt.
ls_selopt-shlpname = gc_shlp_shipcon.
ls_selopt-shlpfield = gc_name_vendor.
ls_selopt-sign = gc_i.
ls_selopt-option = gc_eq.
ls_selopt-low = gs_pod_screen-vendor.
APPEND ls_selopt TO ls_shlp-selopt.
* set the field for the output
READ TABLE ls_shlp-interface INTO ls_if
WITH KEY shlpfield = gc_name_ship_cond.
IF sy-subrc EQ 0.
ls_if-valfield = gc_field_shipcon.
MODIFY ls_shlp-interface FROM ls_if
INDEX sy-tabix TRANSPORTING valfield.
ENDIF.
* pass in the base date and call the search help
CALL FUNCTION 'F4IF_START_VALUE_REQUEST'
EXPORTING
shlp = ls_shlp
TABLES
return_values = lt_return.
READ TABLE lt_return INTO ls_return INDEX 1.
IF sy-subrc EQ 0.
gs_pod_screen-ship_cond = ls_return-fieldval.
ELSE.
CLEAR gs_pod_screen-ship_cond.
ENDIF.
* transfer the value
MODIFY gt_pod_sales
FROM gs_pod_screen
INDEX lv_line
TRANSPORTING ship_cond.
ENDFORM. " f4_shipping_conditions
Hope that helps,
Michael
Maybe you are looking for
-
Hi I am getting the following error on link related to Guided procedure step only for few people not for every one. Once i delete the browser cookies are cache it is working fine. Please let me know , if any one could had same issue or if any one k
-
I exported an .ics event from my work calendar and e-mailed it to my Mac at home. It was a vacation starting on Fri 12/18/2009 at 6:30 (when I start my work day), and ending on Mon 12/21/2009 at 3:00. My wife and I share our iCal via our .mac account
-
How to determine which item is currently in focus
Is there a quick javascript way of determining which element on a page is currently in focus??
-
ISSU upgrade of Nexus 9508 impact on OSPF or HSRP?
It is my understanding that if you have dual supervisors, performing a software upgrade using the "software install" command will perform an ISSU upgrade and will be hitless to the dataplane. My question is, what happens to the control plane such as
-
How can i make my pc a server ? Help me.
I m student.I m using apache server for my project. for accessing webpages,i m using in my PC http://localhost:8080/index.html. Now, i want to access my project(or webpages) from any machine(PC) using my IP address(http://myIPaddress:8080/index.html)