Problem in Tabstrip Control in Custom Infotype Creation
Hi All,
Can any body tell me how to process with Tabstrip Control in an Custom Infotype.
Iam creating Customizing Infotype With Tabstip Control.The Tabstrip Control have 2tabs.Each tab have Custom some fields.
But iam not able activating the sample Tabstrip control.
Can u tell me how to approach to create this in Modulepool programming for my Custom Infotype.
Points wil be rewarded.
Thanks,
N.L.Narayana
Hello Swapna,
Thanks for your reply.
This is my code for tabstrip control.
AT SELECTION-SCREEN.
CASE SSCRFIELDS-UCOMM.
WHEN 'BOOK'.
tabb1-prog = 'ZAXOMM005_V1'.
tabb1-dynnr = 1.
tabb1-activetab = 'TABS1'.
option = '1'.
WHEN 'SUMM'.
tabb1-prog = 'ZAXOMM005_V1'.
tabb1-dynnr = 2.
tabb1-activetab = 'TABS2'.
option = '2'.
WHEN 'POST'.
tabb1-prog = 'ZAXOMM005_V1'.
tabb1-dynnr = 3.
tabb1-activetab = 'TABS3'.
option ='3'.
*CH01 start
WHEN 'RSET'.
tabb1-prog = 'ZAXOMM005_V1'.
tabb1-dynnr = 4.
tabb1-activetab = 'TABS4'.
option = '4'.
ENDCASE.
case option.
when '1'.
IF SSCRFIELDS-UCOMM = 'ONLI'.
if p1_werks is initial or p1_lgort is initial or
p1_bstar is initial or p1_gjahr is initial.
message e000(vz) with text-001.
endif.
ENDIF.
when '2'.
IF SSCRFIELDS-UCOMM = 'ONLI'.
if p2_gjahr is initial.
message e000(vz) with text-005.
endif.
ENDIF.
when '3'.
IF SSCRFIELDS-UCOMM = 'ONLI'.
if p3_gjahr is initial.
message e000(vz) with text-005.
endif.
ENDIF.
*CH01 start
when '4'.
IF SSCRFIELDS-UCOMM = 'ONLI'.
if s4_werks is initial or p4_gjahr is initial.
message e000(vz) with text-001.
endif.
if p4_book is initial and
p4_summ is initial.
message e000(vz) with text-022.
endif.
ENDIF.
endcase.
I can give you some more information.
If I execute from program it is working fine, if I execute from T.code it is not working properly.
Regards.
Krishna.
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 -
Problem in creating help input for custom infotype creation
Hi,
I had the task of creating a custom infotype for storing recruitment test result.
I created it using the following structure:
Component ______________Data Element
TEST_TYPE______________ZTEST_TYPE
TEST_DATE
LOCATION
PIC_____________________RFPER
EX_PIC
TEST_RESULT____________ZRESULT_TYPE
STATUS_________________ZSTATUS_TYPE
OTHER_POSITION_________PLANS
Now for the component other_position for the entry help i use is H_T528B with check table T528B. My objective is, when the infotype is accessed through pa30 and user is inputting the entry, when they press F4 on the inputbox for other_position, help search should show the list of all position within the system. But rather than that, the input help display such message:
No values selected
Maintain entries?
Yes No Cancel
When I choose yes, the input help suddenly prompt me to "Choose customizing project" which i believe is from SPRO.
How do I fix this problem so that when I press f4, the help will shows all position within the system.
Thanksnot answered, but found another work around
-
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 ReddySolved,Thanks
-
Hi All,
i had created an Custom Infotype.
In that infotype i had created Tabstrip control with 2tabs.
Each Tab contain 4 fields.
When creating( F5) a record in transaction PA30, it allowing me create a record and the record is available in Data base table.
1. My doubt is, when Display the Record through F7 and Change mode (F6), Still the fields are in editable mode. But not in Display Mode ( Editable Mode ).
How to Disable the Fields for this Tab Strip Control. I have not used any Group Field for this. Can we need to Main tain anything.
But SAVE option is automatically disabled.Iam not able to SAVE when i press F7 but in Editable is the My Problem.
2. And one more query is, when press F5 or F6 or F7 it is show the following message at End screen,i.e.
Protected tab titles are not supported (tab MENU_TABSTRIP title PUSH1) . But MENU_TABSTRIP is My Tab Strip control text Name and PUSH1 is my Tab1 , Function code.
How to remove this message.
Points will be rewarded.
Thanks,
N.L.Hi,
Try this ....In the Table Control, double click on a field. In the attributes make that field as output only...
Hope it helps,
Swathi -
Custom infotype creation issue
Hi Experts,
I have a requirement to create a custom infotype based on certain conditions. But there is a problem while saving data in the infotype. The infotype is populated from another infotype automatically through dynamic actions.
But while saving the data for the first time it happens as per the requirements and data gets saved properly.
But when the data is saved for the second time for the same pernr , the previous data is over written even though the new record starts with a different begin data.Also i have created the infotype with time constraint '1'.
can you please let me know if i am missing anything while creating or is this a logic issue .? all the logic has been coded in the flow logic part of the screen.
also if i dont save the data in the infotype it does not pop up any message like 'data not saved' which usually happens with every infotype. Please clarify me on this as well...
Thanks,
Raj Thilak.Hi,
Check the logic how it is updating the custom infotype . I think it is nothing to do with creation of custom info type
Regards
Krishna -
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 update problem in tabstrip control
Hi experts.
i have one tabstrip control having 4 tabs.
in those tabs i am updating one table say ztable(database table).
my problem is this is happening in pai of every tab.
but what ever i am updateing table those changes will reflect in other tabs.
where i have to write code like pbo or what i should do.
what ever i am updateing in tab1 i have to see in tab2.what ever i have update i should see in tab3.
but it is not showing the updates when we will go for other tabs.
ThanksHi,
Please check the following things :
1 . The Fucntion code type for each tab is blank
2 . Same subscreen area is assigned to each tab
3 . Corresponding subscreen is dynamically incorporated into the subscreen area CALL SUBSCREEN in the flow logic
If you are not doing this, then you are scolling in SAP GUI, not in your program. In this case the values entered in TAB1 won't get reflected in TAB2.
If this is the case in your program, fix the above three points. then it will work. -
Module pool F4-Help problem for a field in custom Infotype(HR).
Dear Gurus,
I have created a custom Infotype and fields are like
P9015-NAM01.
P9015-NAM02.
P9015-NAM03.
all are fields for name.
I want F4 help for these fields with values same as Family Members-First name given in 21 Infotype .
for all 3 fields same f4 help values.
But when i see in the screen for first field the values are populating as selected but for second field the selected value is not picking..
DATA: BEGIN OF it_val1 OCCURS 7,
nam01 LIKE p9015-nam01,
rel01 LIKE p9015-rel01,
END OF it_val1.
SELECT * FROM t591s INTO TABLE it_t591s WHERE
sprsl = 'EN' AND
infty = '0021'.
*SUBTY
*STEXT
SELECT * FROM pa0021 INTO wa_21 WHERE pernr = p9015-pernr .
READ TABLE it_t591s WITH KEY subty = wa_21-famsa.
it_val1-rel01 = it_t591s-stext.
CONCATENATE wa_21-favor wa_21-fanam INTO it_val-nname SEPARATED BY space.
it_val1-nam01 = wa_21-favor.
APPEND it_val1.
CLEAR : it_val1, it_t591s.
ENDSELECT.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
DDIC_STRUCTURE = ' '
retfield = 'NAM01'
PVALKEY = ' '
dynpprog = sy-cprog
dynpnr = sy-dynnr
dynprofield = 'P9015-NAM01'
STEPL = 0
WINDOW_TITLE =
VALUE = ' '
value_org = 'S'
multiple_choice = ' '
display = 'F'
CALLBACK_PROGRAM = ' '
CALLBACK_FORM = ' '
MARK_TAB =
IMPORTING
USER_RESET =
TABLES
value_tab = it_val1[]
field_tab = t_fields[]
return_tab = t_return[]
DYNPFLD_MAPPING = t_DYNPFLD_MAPPING
EXCEPTIONS
PARAMETER_ERROR = 1
NO_VALUES_FOUND = 2
OTHERS = 3
In the same way i am calling for P9015-NAM02. & P9015-NAM03.
Is there any wrong in calling this FM...kindly help.....Write the FM inside,
at selection-screen on value-request for <nam1>.
It seems that you are calling the funtion module for only first field. Repeat it for other two fields also-
at selection-screen on value-request for <nam2>
call FM.
at selection-screen on value-request for <nam3>
call FM.
Sumit -
Problem in getting the new custom infotype in test client
Hi All,
I have created a new custom infotype. I can execute the infotype from the development system thru PA30.
But when I tried to check in the test client (same system), it shows me that the infotype does not exist.
Do I need to transport it to other client? If so please let me know how...You will need to import the Customizing TR(generated for Infotype) into other client. Use tcode SCC1 for importing TR without releasing it in the same system.
Cheers,
Rupesh -
Custom Infotype Creation in ORG Management
Vijay,
Can you send me the steps so I can assign the points.
Thanks,
ParinaHere are the steps that I followed:
Enter the transaction code PPCI
Enter a four digit infotype number (9nnn) and an infotype name.
Select Field Infotype
Choose Infotype Create.
Choose Check environment to maintain the required entry in table T777I (Infotypes per object type).
Choose the Entry 'T777I' under the list of 'Table Entries' (This list is produced when you choose 'Check' on the First screen of the Transaction PPCI.
Press the 'Change' button and you will be taken to the 'Maintain Table Views' Transaction (SM30).
Press the Maintain button.
From the list of Infotypes locate the custom infotype created and select the entry for that.
Click on the 'Time Constraint' folder appearing on the left hand corner of the screen.
The screen for Change View Time Constraint would appear.
In the object type field put in: O,P,S whatever is relevant to your requirement.Also add the time constraint.
Save it and double click on the 'Infotypes per object type' folder (on the left hand side again).
Create a new entry here for your infotype and save it.
Come back to the Transaction PPCI and you are all set.
This is all I did and it worked.
Thanks,
Vijay -
Error in custom infotype creation
Hi
I have created a custom infotype IT9100 .
When I am seeing the screen layout in se51 information message
Element PSPAR-ITTXT touches or overlaps other element
ITTXT stores the infotype text
Now when I am activating my screen its showing error
Collision at target location.*
Could you please let me know how to deal with such prob.
PHi,
please check whether in the layout set may be those fields are overlaping.
generally i didnt get those type of messages. -
Hi,
I am creating a customized infotype, when i activate the layout shows me the error message "Input/output field not defiend"
But am unable to input the check in screen painter already the field is disabled. Pls Assist. URGENT.Hi,
For this you need to go to the change mode on the screen painter and then click on input/output field..
Or you can go directly yo the element list of your screen and check the I/O option there for that field.
Regards
Sonu Gupta -
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....
Maybe you are looking for
-
SOA FTP Adapter stops working abruptly
Hi All, I have a ftp service which provides XML file streams real-time on a remote machine. I connect to this FTP server using the SOA FTP adapter and process files by polling based on timestamp every 3 seconds. The issues I face are 1) The ftp adapt
-
Can't boot with zfs root - Solaris 10 u6
Having installed Solaris 10 u6 on one disk with native ufs and made this work by adding the the following entries /etc/driver_aliases glm pci1000,f /etc/path_to_inst <lang pci string for my scsi controller> glm which are needed since the driver selec
-
It's not letting me play my songs in itunes. They are all listed but will not play
Why will itunes not let me play my songs? I see all my purchases listed in gray but it will not let me look at them or play them from my music.
-
How to change Auto-reaction method automatically?
Hi all, I want change the Auto-reaction method for few systems in the landscape,How to change the method automatically for all the system with out doing Manually in eash of the system. Regards, Neni
-
PO Price Change after Goods receipt
What is the config settings for not allowing the price(Net price) change at item level in Purchase order after the GR or partial GR is made. Thanks