Table or infotype number
Can any one tell me the table name or infotype from where i can pic up father's name.
i think PA0021.
otherwise
goto PA30--->any EMP numer
take Fmaily data--->
check here , by pressing F1 on member name
Regards
Prabhu
Similar Messages
-
Regarding database table to infotype
hi experts,
sorry i m going to ask a typical question i m working on hr-abap ,i have developed a module pool in which the database table is updating with some data,what i want that after updation i want to store that data in a infotype,,so plz tell me how to create infotype and how to store the data into it from a database table...thnx in advance.i know it is a configuration part but rt nw my company doesnt have hr consultant.....plz help me.Hi
<b>Creating an Infotype</b>
Using the TCODE PM01 you can create an Infotype. As per SAP standard you can use only 9000 series. The below procedure explains you how to create an Infotype.
1.Go the transaction PM01 and give the Infotype Number lets say 9999 and press button. It will ask you a messaging window,
2.Press create button to continue further. It will take you to create the structure.
3.Give the components and SAVE & ACTIVATE the structure and come back.
An Infotype attributes window will appear; you create a new entry with the Infotype No and give the appropriate description.
and give the data and press ENTER key. The Technical data will appear automatically, here you have to maintain the Single screen as 2000 and List screen as 3000 and then SAVE the info and press BACK button, you will reach the main screen.
After that using the Menu option Infotype
4.Generate the structure, dialog module and include.
Click the button from application tool bar to check the Infotype attributes. Select the 9999 Infotype and check the data.
If every thing is error free, you can use the Infotype using PA30 transaction.
5.Use the Create button you can create New Entries for the Infotype.
You can view the entries in table PA9999 using the TCODE SE11/SE16.
Validating Code in Module pool: - If you want to validate the user inputs,
You need to write the validate code procedure in the module program MPXXXX00 screen 2000 (here XXXX is user Infotype, in our case 9999).
In PAI.
MODULE P9999.
MODULE HIDDEN_DATA.
FIELD P9909-PRATE MODULE PRATE. Create a module routines.
In PBO
MODULE PRE_INPUT_CHECKS.
input-checks: *
insert check modules here:
CHAIN.
FIELD P9909-PRATE MODULE PRATE.
ENDCHAIN.
Double click on PRATE it will ask you the include name, SELECT the include MP999930 from the input window.
*& Module PRATE OUTPUT
text
MODULE prate OUTPUT.
IF NOT p9909-prate IS INITIAL.
PERFORM check_prate.
ENDIF.
ENDMODULE. " PRATE9 OUTPUT
Again check_prate subroutine, write down the below code in MP999940 include.
*& Form check_prate
FORM check_prate .
CLEAR zprate_t.
SELECT SINGLE * FROM zprate_t WHERE prate = p9909-prate.
IF sy-subrc > 0.
CLEAR zprate_t.
MESSAGE e016(rp) WITH 'Entry does not exist in ZPRATE_T table'.
ENDIF.
ENDFORM. " check_prate
After that check the module, if it is error free then ACTIVATE the same. You can check the Infotype validations using the PA30 transaction.
Regards
Raj -
How to create a table with varied number of columns?
I am trying to create a balance table. The colunms should include years between the start year and end year the user will input at run time. The rows will be the customers with outstanding balance in those years.
If the user input years 2000 and 2002, the table should have columns 2000, 2001, 2002. But if the user input 2000 and 2001, the table will only have columns 2000 and 2001.
Can I do it? How? Thanka a lot.Why did you create a new thread for this?
How to create a table with varied number of columns? -
Hi everyone, again landed up with a problem.
After trying a lot to do it myself, finally decided to post here..
I have created a form in form builder 6i, in which on clicking a button the data gets exported to excel sheet.
It is working fine with a single table. The problem now is that i am unable to do the same with 2 tables.
Because both the tables have same number of columns & column names.
Below are 2 tables with column names:
Table-1 (MONTHLY_PART_1)
Table-2 (MONTHLY_PART_2)
SL_NO
SL_NO
COMP
COMP
DUE_DATE
DUE_DATE
U-1
U-1
U-2
U-2
U-4
U-4
U-20
U-20
U-25
U-25
Since both the tables have same column names, I'm getting the following error :
Error 402 at line 103, column 4
alias required in SELECT list of cursor to avoid duplicate column names.
So How can i export the data to excel which has 2 tables with same number of columns & column names?
Should i paste the code? Should i post this query in 'SQL and PL/SQL' Forum?
Help me with this please.
Thank You.You'll have to *alias* your columns, not prefix it with the table names:
$[CHE_TEST@asterix1_impl] r
1 declare
2 cursor cData is
3 with data as (
4 select 1 id, 'test1' val1, 'a' val2 from dual
5 union all
6 select 1 id, '1test' val1, 'b' val2 from dual
7 union all
8 select 2 id, 'test2' val1, 'a' val2 from dual
9 union all
10 select 2 id, '2test' val1, 'b' val2 from dual
11 )
12 select a.id, b.id, a.val1, b.val1, a.val2, b.val2
13 from data a, data b
14 where a.id = b.id
15 and a.val2 = 'a'
16 and b.val2 = 'b';
17 begin
18 for rData in cData loop
19 null;
20 end loop;
21* end;
for rData in cData loop
ERROR at line 18:
ORA-06550: line 18, column 3:
PLS-00402: alias required in SELECT list of cursor to avoid duplicate column names
ORA-06550: line 18, column 3:
PL/SQL: Statement ignored
$[CHE_TEST@asterix1_impl] r
1 declare
2 cursor cData is
3 with data as (
4 select 1 id, 'test1' val1, 'a' val2 from dual
5 union all
6 select 1 id, '1test' val1, 'b' val2 from dual
7 union all
8 select 2 id, 'test2' val1, 'a' val2 from dual
9 union all
10 select 2 id, '2test' val1, 'b' val2 from dual
11 )
12 select a.id a_id, b.id b_id, a.val1 a_val1, b.val1 b_val1, a.val2 a_val2, b.val2 b_val2
13 from data a, data b
14 where a.id = b.id
15 and a.val2 = 'a'
16 and b.val2 = 'b';
17 begin
18 for rData in cData loop
19 null;
20 end loop;
21* end;
PL/SQL procedure successfully completed.
cheers -
Table with varying number of columns
Hello experts,
my issue:
I need to print a table with varying number of columns. Depending on if all cells of a certain column are initial the
whole column should disappear. Hiding is not enough.
If this columns is in the middle of the table the following columns should move left to fill the gap.
my approach: (maybe there is an easier one)
There are 4 different possible situations. My approach was to create 4 different tables with different amount of
columns. In the interface I fill the table that is really needed from the source table data and fill a flag that characteristics
the situation, possible values (1,2,3,4).
In the form I'd like to print the appropriate table depending on the situations.
my problem:
How to place all 4 possible tables lying upon each other in the form and print only the needed one depending on the flag value?
my question:
Is my approach ok? Or is there an easier one?
If it is ok. How can I solve the problem regarding printing the right table.
Thanks in advance!
HeinzHi Heinz,
You can handle it with FormCalc Script at initialization.
Suppose you have a table with name TABLE having a header HEADER and data row DATA:
TABLE-->HEADER(Cell1...Cell2...Cell3...Cell4)
--->DATA(Cell1...Cell2...Cell3...Cell4)
Suppose you want to hide Cell3 for null values, then write below code at initialization of DATA:
if(DATA[*].Cell3.rawValue eq null)
then
DATA[*].Cell3.presence = "hidden"
HEADER.Cell3.presence = "hidden"
else
DATA[*].Cell3.presence = "visible"
HEADER.Cell3.presence = "visible"
endif
Hope it would help.
Regards,
Vaibhav -
Which table stores VAT number entered for a company code using T Code oby6?
Hi
Which table stores VAT number entered for a company code using T Code oby6?
please advice.
Thanks,
VaishnaviT001
-
HRFORMS - Custom table and Infotype Fields
Hi,
I am trying to add Custom table and Infotype Fields to the HRFORMS but i couldn not...
1) I have created Custom MetaNet in HRFORMS_METADATA
2) Created Meta Dimension and MetaStar for thr new fields
3) When I use these custom metenet to crate Info stars in HRFORMS transaction, I am getting erros for DDIC activation.
Does anyone has any idea or am i missing any steps?
...NaddyNo issues when did it again.
-
Displaying tables with dynamic number of columns
Hello,
I'm pretty new to JSF. Currently I'm working on a project where I have to select a table from a list, and then make it browsable/editable. The problem I have is that the different tables also have a different number of columns.
I have no problem displaying different tables if the number of coulumns stays the same (using h:datatable) but when it's dynamic, I don't know how I can have my JSP to adjust to support the varying number of columns.
Has anyone got an example of dynamic datatable or maybe someone can point me in the right direction.
BrimborianHi daniel,
1. There is an INDEPENDENT FORM
whose inputs are FIELD LIST
and from those, it consructs dynamic table.
2. Here is the program.
the dynamic table name will be
<DYNTABLE>.
3. U can use this program (FORM in this program)
to generate any kind of internal table
by specifying some inputs (ie. field list)
4.
REPORT abc.
COMPULSORY
FIELD-SYMBOLS: <dyntable> TYPE ANY TABLE.
FIELD-SYMBOLS: <dynline> TYPE ANY.
DATA: lt TYPE lvc_t_fcat.
DATA: ls TYPE lvc_s_fcat.
FIELD-SYMBOLS: <fld> TYPE ANY.
DATA : fldname(50) TYPE c.
PARAMETERS : infty(4) TYPE c OBLIGATORY.
DATA : iname LIKE dd02l-tabname.
START-OF-SELECTION.
GET INFO
CONCATENATE 'P' infty INTO iname.
DATA : ddfields LIKE ddfield OCCURS 0 WITH HEADER LINE.
CALL FUNCTION 'DD_NAMETAB_TO_DDFIELDS'
EXPORTING
tabname = iname
TABLES
ddfields = ddfields.
CONSTRUCT FIELD LIST
LOOP AT ddfields.
ls-fieldname = ddfields-fieldname.
APPEND ls TO lt.
ENDLOOP.
PERFORM
PERFORM mydyntable USING lt.
BREAK-POINT.
INDEPENDENT FORM
FORM mydyntable USING lt TYPE lvc_t_fcat .
Create Dyn Table From FC
FIELD-SYMBOLS: <fs_data> TYPE REF TO data.
FIELD-SYMBOLS: <fs_1>.
FIELD-SYMBOLS: <fs_2> TYPE ANY TABLE.
DATA: lt_data TYPE REF TO data.
ASSIGN lt_data TO <fs_data>.
CALL METHOD cl_alv_table_create=>create_dynamic_table
EXPORTING
it_fieldcatalog = lt
IMPORTING
ep_table = <fs_data>
EXCEPTIONS
generate_subpool_dir_full = 1
OTHERS = 2.
IF sy-subrc <> 0.
ENDIF.
Assign Dyn Table To Field Sumbol
ASSIGN <fs_data>->* TO <fs_1>.
ASSIGN <fs_1> TO <fs_2>.
ASSIGN <fs_1> TO <dyntable>.
ENDFORM. "MYDYNTABLE
regards,
amit m. -
How to view the OM infotypes number
Hi Experts,
How and where can i see the infotype number in OM?
Regards
TSHello TS,
For example you can see it from transaction PP02.
Regards,
Guillermo. -
Table containing serial number of a material
Hi Friends,
I have activated serial number for materials. When I do GR, i give serial number for the material. I just want to know in which Table does these serial numbers specific to one material is stored. Information for the serial number for each specific materials is required for a developed report. Can anybody please let me know the table name where I can find the serial number for a specific material?
Thanks & Regards
SatyaDear Sahoo,
Check these tables,
SER00 General Header Table for Serial Number Management
SER01 Document Header for Serial Numbers for Delivery
SER02 Document Header for Serial Nos for Maint.Contract (SD Order)
SER03 Document Header for Serial Numbers for Goods Movements
SER04 Document Header for Serial Numbers for Inspection Lot
SER05 Document Header for Serial Numbers for PP Order
SER06 Document Header for Serial Numbers for Handling Unit-Content
SER07 Document Header for Serial Numbers in Physical Inventory
Regards
Mangalraj.S -
Where can I find Tables for Infotype 24 (Skills) & 34 Subtype 3 (Awards)
Hi I've been looking for these tables for almost a week.
I'm trying to look for transparency tables of Infotype 24 and 34. I already have the structure HRPE-PROFQ of PA30. Here are my requirements.
STRUCTURE: HRPE_PROFQ
COMPONENT:COMPTYPE
CLASS_TEXT : HRPDV_STEXT_QK : Name of Qualification Group
TTEXT : STEXT
PROFC_TEXT : PROFC_TEXT
STRUCTURE: RP50M
COMPONENT : COMPTYPE
TEXT1 : ITXTZ
TEXT2 : ITXTZ
TEXT3 : ITXTZHere's what I did>>>
Get Skills
DATA: BEGIN OF lt_skills OCCURS 0.
INCLUDE STRUCTURE zhr_bapi_pd_skills.
DATA: END OF lt_skills.
LOOP AT lt_skills.
Qualification Name - QID, QNAME
READ TABLE lt_skills.
IF lt_skills-qid IS NOT INITIAL.
SELECT SINGLE x~objid
y~stext
x~adatanr
INTO (lt_skills-qid,
lt_skills-qname,
lt_skills-adatanr)
FROM HRP1001 as x JOIN HRP1000 as y
ON xobjid = yobjid
AND xotype = yotype
WHERE y~langu = 'E'
AND x~sobid = employee_no
AND x~subty = 'B032'
AND x~otype = 'Q'.
Qualification Group - QKID, CHARA
IF lt_skills-qid IS NOT INITIAL.
SELECT SINGLE x~objid
INTO lt_skills-qkid
FROM HRP1001 as x JOIN HRP1000 as y
ON xobjid = yobjid
AND xotype = yotype
WHERE y~langu = 'E'
AND x~sobid = lt_skills-qid
AND y~otype = 'QK'.
SCALE - SCALE
IF lt_skills-qkid IS NOT INITIAL.
SELECT SINGLE scale
INTO lt_skills-scale_id
FROM HRP1033
WHERE objid = lt_skills-qkid
AND otype = 'QK'.
RATING - RATING
IF lt_skills-scale_id IS NOT INITIAL.
SELECT SINGLE chara
INTO lt_skills-rating
FROM HRPAD31
WHERE adatanr = lt_skills-adatanr.
PROFICIENCY - PROFICIENCY TXT
IF lt_skills-rating IS NOT INITIAL.
SELECT SINGLE pstext
INTO lt_skills-pstext
FROM T77TP
WHERE scale_id = lt_skills-scale_id
AND rating = lt_skills-rating.
IF sy-subrc ne 0.
APPEND lt_skills.
CLEAR lt_skills.
ENDIF.
ENDIF.
ENDIF.
ENDIF.
ENDIF.
ENDIF.
ENDLOOP.
Move Internal Table to SKILLS
skills[] = lt_skills[]. -
Relationship between HR Tables or Infotypes
Dear All,
i am looking for a flow which shows the relation between SAP HR tables or Infotypes.
Or how they are connected?
Do you have such documents? Or where can i check such settings in the system?
Thak youHi friend!
I have an excellent tip for checking database with infotype. Please following some steps below:
1. Go to T-Code sm31 or Sm30.
2. Input view V_T582A.
3. choose your Infotype u want to check.
4. Double click & find the Database table in bottom.
-> that's all. Really simple.
Usually database of infotype is PA+ infotype: PA0000 for action infotype. PA0001 for org unit.But TEVEN for infotype 2011: time event.
Hope you have a good way now.
Regards!
Woody. -
Find - tables with largest number of records?
Hi,
I need to find tables with largest number of records. Any transaction show this details?
aRsGo to transaction DB02, then click on the button that reads, "Space Statistics", the dialog box, click ok, leave the "*" for all tables, In the next screen put your cursor in the appropriate column labeled as Rows and click the sort button. Now you will see your biggest tables at the top of the list.
Regards,
Rich Heilman -
Table filtering on number columns
Hi!
Is it possible to do table filtering on number columns such as: > 10
Br
Casper
Edited by: Casper Thrane on 05-May-2011 05:13Hi,
I have never tried filtering by equality or relational operators, but with some tinkering I think it might be possible.
If you haven't already checked, there are some really good how-to's on customizing the ADF table filter at Oracle ADF Code Corner.
Specifically, Custom Table Filter and Filter by date range
Edited by: Paendrag on May 5, 2011 7:39 AM -
Link between User Name in user table and Personla number in HR
Hi
Could any one let me know the link between the User Name field in User table and Personal number in HR table. Pls let me know the table name which shows the relation between these two fields.
Regards,
RamHI Ram
The table which contains this data is PA0105. The value of field USRTY should be '0001'. For example if u want to get the UNAME related to an employee.
SELECT usrid
FROM pa0105
WHERE pernr EQ p_pernr
AND usrty EQ '0001'.
Please award points if u found this helpful
Maybe you are looking for
-
Hi I am trying to implement a sample of TLF with feature of Tab for paragraph like word document. If user click in paragraph and press 'Tab' then it should work like same as we experience in Word. Can any one guide me ? Bharat Patel
-
Runtime error in Elements 9, editor will not work
I have Windows Vista. The organizer seems to work fine. But right after a photo opens in editor, a window appears saying: Microsoft Visual C++, Runtime Library. It says Runtime Error! Program....PhotoshopElementsEditor.exe This application ha
-
When I connect my phone to a dock there is no sound
Music won't play on dock
-
Data Collection Form broken in ZCM 11.3.1 FRU1?
Hello Forum! We just installed the 11.3.1 FRU1 for fixing BUG 888008 - "User login force run bundles do not run after device". Server installation didn't cause any trouble and the bug is fixed. We are happy so far. While testing the new agent on some
-
I'VE BEEN TRYING TO SPOT IT IN THE SUPPORT CENTER BUT IN THE APPLE WEB SUCH DOWNLOAD IT'S NOT AVALIABLE, HOW COULD I DO IT ? DO YOU HAVE ANY LINK WHERE I COULD FIND THE DOWNLOAD ?