Doubt in Custom Infotype / Modulepool
Hi all,
I have some doubt in Module pool.
Wuld u plz check let me know on this.
Iam started creating the New Customized Infotype.
In that Infotype i have one name SHIFT. The field SHIFT is having F4 help pop-up.
Basing the F4 help pop-uping, i need to ful-fill and populate the next fields. ( Starttime and end time of Employee).
For that i need to write the Select query to fetch the data from table based on that F4 help data.
My doubt where i have to write the select statement i.e in PAI or PBO.
But the Break point is not going to perticular select statement based on the F4 help field.
wud u plz let me know whr i have to write the SELECT query.
Thanks,
N.L.Narayana
hi Narayana
you have to write the code in the event 'PROCESS ON VALUE-REQUEST'.
FIELD <filedname > MODULE <module name>.
<u>case 1: if you are not writing any select query.</u>
inside this module you can porbably make use of the function module RH_OBJID_REQUEST to get the desired search help..
<u>case 2: if you need to write select query.</u>
write the select query and get the data into an internal table.
use function module F4IF_INT_TABLE_VALUE_REQUEST to populate the F4.
Hope this helps.
Sajan.
Similar Messages
-
Custom Infotype for Org Management
Hi Experts,
I Iam trying to create custom infotype to capture some infomation on an Org Management custom object and I am not sure if I can do this through PM01 because this is neither employee or applicant info but custom object info. Any idea on how to do this?Hi,
For creating OM custom infotype you should start with transaction SE11. PM01 is only for employee and applicant IT.
Go to SE11Create structure Ex:HRI9009 Create all necessary datatypes. (fields for your IT).
Then go to PPCI enter IT name and number. then maintain Table T77I here maintain time constraint for your IT.
If you still have doubts get back to me.
Thanks and Regards,
Shilpa -
hi friends..
i m working in abap wit hr module..
i hav som basic doubts..
is it possible to create our own custom infotype ?
is it possible to delete the already created custom infotype?
plz can u tell me the ways to create and delete the custom infotype?
i want to create my own infotype.. how can i create ?Hi,
Please fallow the below steps to create the custom infotype. If you have any quires let me know.
For Creation of Infotype first Go to Transaction PM01, Enter the custom Infotype number which you want to create, it should be a 4 digit number and have to start with 9xxx.
then select the `Employee Infotype' radio button
after that select the `PS Structure Infotype'
then click on Create A separate table maintenance window appears
then Create a PS structure with all the fields you want on the infotype
Save and Activate the PS structure
now Go back to the initial screen of PM01
Click on `All' push button. It takes a few moments
Click on `Technical Characteristics. Infotype list screen appears
Click on `Change'(pencil) button
Now select your Infotype and click on `Detail' (magnifying glass) button
Give `T591A' as subtype table & also Give `T591S' as subtype txt tab
Give your subtype field as subtype field & Save and come back to PM01 initial screen
Click on `Infotype Characteristics' Infotype list screen appears
Click on `Change' (pencil) button & on New Entries
and then Enter your Infotype number and short text Here we have to set different Infotype Characteristics as per the requirement. (Better open another session with some standard Infotype's infotype characteristics screen and use as the reference
to fill yours). Now save ur entries
Now the Infotype is created and ready to use.
If you want to change the layout of the Infotype as per your
requirement
In the PM01 initial screen Select `Screen' radio button and give
2000 as the screen name, then click on edit.
In the next screen.. Select `Layout Editor' and click `Change'.
Screen default layout appears here you can design/modify the
screen..change the attributes of the fields..etc.
Save and activate. (Don't forget to `Activate at every level)
Thanks,
Reward If Helpful. -
Custom infotype and validations
Hello All,
I am maintaining a custom infotype 9990 for my client, the infotype stores information about stock options and equity plans. Now I have added a field. The requirement is that when user enters the field or even when tries to change it , either using direct entries in SE11 or even through PA30, then I need to make sure that the value is greater than another field in another table. Doubts raised are
1. Do i need a badi or user exit.
2. Whatever I need where do i need to implement it, i mean in particular function module and at wat fcode and wat program?
Spare me if the requirement is too vague. Please ask for specifications if needed.
thanks and regards,
Reena1) go to SE80 and ur module poolprogram for Infotype 9990 say it is - MP999000.
2) go to ur screen of infotype say 2000
3) in the PAI of the screen u will find the below code just below the" Module Exit at Exit command" -
CHAIN.
FIELD P9343-BEGDA.
FIELD P9343-ENDDA.
FIELD P9343-SALARY.
FIELD P9343-DNAME.
FIELD P9343-HDATE.
FIELD P9343-PLANS Module Check_field.
FIELD P9343-ORG.
FIELD P9343-DOB.
FIELD P9343-NAME.
MODULE INPUT_STATUS ON CHAIN-REQUEST.
ENDCHAIN.
4) in above code say for field PLANS i need to check that it shud be greater than field ORG.so i have written a module for field PLans named as 'Check_field'.
5) code of that module -
*& Module Check_field INPUT
text
module Check_field input.
if P9343-PLANS LT P9343-ORG.
MESSAGE E000(000) WITH 'Position can not be smaller than org unit number'.
endif.
endmodule. " Check_field INPUT -
in the modulepool program for my custom infotype 9050, I have defined a field symbol like below in the top include.
FIELD-SYMBOLS: <PNNNN> STRUCTURE P9050
DEFAULT P9050.
still it is showing <PNNNN> is unkown.
Seconldy, can anyone give an simple modulepool code for custom infotypes ( 9xxx).
Regards,
Uday MadhavHi,
check out these..
Re: how to transport infotypes?
https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/60a7586d-edd9-2910-68a8-8204303835a1
Regards
Mudit -
How to integrate custom infotype in IMG
Hi,
I am working on ESS MSS consultant and having a doubt on how the process will take place to embed custom Infotype to Personal Information application at IMG level. I mean how the communication flow will take place between these two?
If anybody having complete steps or flow please share and help me to get familiar on this area.
Appreciate your kind support & thanks in advance.
cheers
DevWe have home page frame work and service specific settings
In the homepage frame work we define how the portal should look like
In the service specific settings we define the settings for various services which are available in portal, such address, time related, payments and benefits this data will come from respective infotypes
thanks -
How to add search help to custom infotype listbox??
Hi All,
How to add search help to custom infotype listbox??
Thanks in advanceHi Vinay,
We have search help and list box as 2 different options.
At a time we can make a field a list box or a search help.List box is restricted and we can pick values from the defined list whereas in search help we can allow more entries and then validate the value entered later.
Implementing a listbox or search help in infotype is same as that of implementing it in a modulepool .
for search help..we can create a custom search help or check for existing search help in se11
then in the screen on infotype field..assign the search help direcly at the screen painter level..
double click on the field in screen painter -> change mode and then in the space for "search help" enter the search helps name
for list box..in the screen painter ,make sure the field is selected as list box..then in PAI of screen we do a
(Process on value-request..field fieldname module module name)..check syntax and other details...
Using function module vrm_set_value fill the field and populate it as required
Pls check and revert
Regards
Byju -
How to upload data for custom infotype
Hi Friends
Can we use HR_INFOTYPE_OPERATIONS FM for custom infotype too or is there other way or other Standard FM to upload data for custom infotype starting with 9000..etc.
Points will be there for sure.
Thanks
Meeta & RoopaThanks for quick response.
my qns is can we use Standard FM like HR_INFOTYPE_OPERATIONS for custom infotype too ?
in my requirment input will come from portal form and in background Java Wd is going to use these FM but i have this big doubt can we use these standard FM for uploading data in custom infotype as well or else is there any other way.. but for sure we can't use BDC and LSMW in this requirement .
Thanks Meeta & Roopa -
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.NarayanaHello 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. -
To trigger ADOBE form from Custom Infotype
hello,
I hae create d ADOBE form and want to trigger it on "Save" record from Custom Infotype....
I need this form to be displied as User my do some changes and save it again...
I have used following code to trigger this from module pool...
Data : lv_fm_name type rs38l_fnam.
Data : gs_sfpoutputparams type SFPOUTPUTPARAMS,
gs_sfpdocparams TYPE sfpdocparams,
gs_formoutput TYPE fpformoutput.
Set output parameters and open spool job
gs_sfpoutputparams-nodialog = 'X'. " suppress printer dialog popup
gs_sfpoutputparams-GETPDF = 'X'. " launch print preview
call function 'FP_JOB_OPEN'
CHANGING
ie_outputparams = gs_sfpoutputparams
EXCEPTIONS
cancel = 1
usage_error = 2
system_error = 3
internal_error = 4
others = 5.
First get name of the generated function module
call function 'FP_FUNCTION_MODULE_NAME'
EXPORTING
i_name = 'Z_ISR_FORM_Z017'
IMPORTING
e_funcname = lv_fm_name.
EXCEPTION
CX_FP_API_REPOSITORY = 1
CX_FP_API_USAGE = 2
CX_FP_API_INTERNAL = 3.
Set form language and country (->form locale)
gs_sfpdocparams-langu = 'E'.
gs_sfpdocparams-country = SY-LANGU.
gs_sfpdocparams-FILLABLE = 'X'.
Now call the generated function module
call function lv_fm_name
EXPORTING
/1bcdwb/docparams = gs_sfpdocparams
IMPORTING
/1BCDWB/FORMOUTPUT = gs_formoutput
EXCEPTIONS
usage_error = 1
system_error = 2
internal_error = 3
others = 4.
Close spool job
call function 'FP_JOB_CLOSE'
EXCEPTIONS
usage_error = 1
system_error = 2
internal_error = 3
others = 4.
But still I'm unable to get form on "Save"..
Please help me.
Regards,
YogeshHi Yogesh,
Just to test ... can you place your code in a report and call the report with submit ... return in your module pool? For the data tables in the interface, you may export them and import them.. this will ensure that everything is good with your code and the place where you call the code from. I believe the issue is Module Pool rather than anything else. But that's just a doubt and we need to do this to confirm it.
Best Regards,
Abd-Al-Aleem -
Error while creating a query for my custom infotype
Hi,
I have created a custom infotype with fields currency amount and currency field .
While I am creating a query for it its giving an error
Message no. AQ_AD_HOC221 Error when generating the report(see long text )
I tried to execute the standard program RPUMS40CCI but still I am facing same error .
I have also maintained table T777i for my infotype but still problem exists.
Please help.
PHi
Check in PM01 -
Error while editing an automaticlly populated record of a custom infotype
hi,
a query in HR ABAP.
i have created a custom Infotype to store the CTC details of an employee. this custom IT needs to get the records auto populated, when they are created in Infotype 0008.
i have used the exit. EXIT_SAPFP50M_002 inside which an include program is written :ZXPADU02
using this, the records made to get create automatically in the custom IT.
but when we try to modify or delete those records thru the tcode PA30,
it does not allow to do so and throws a standard error message. as below.
Specified subtype is invalid
Message no. PG088
please help me out to fix this issue.the exact point of the std error is,
i do the folowing steps.
1)_ for auto creating a record in custom IT Pa**** , i goto transaction, PA30, create record in IT 0008 with a basic Pay., click on save.
on saving , the EXIT_SAPFP50M_002 is called where i ve written a Z inlcude Program, which inserts the record in custom IT PA****. this is successful.
2) when i try to change or delete the same record which i ve created as above, through the Tcode PA30 for custom IT, PA
****, i get the error.
hope the problem is clearly mentioned -
About to use HR_INFOTYPE_OPERATION to create customer infotype issue:
hi
i want to create infotype use function(HR_INFOTYPE_OPERATION).
this infotype is customer infotype.
the first scenario is:
i'm be sure no data about one employee in this infotype(9004).
to call with data upload function and put data into internal table IT_PA9004.
and the table data as follow:
one line: it_pa9004-pernr = '11022887' ,it_pa9004-subty = 'FQ03',
it_pa9004-begda = '20080201' , it_pa9004-endda = '20080930'
it_pa9004-zzvalue = 50 (customer field).
two line:it_pa9004-pernr = '11022887' ,it_pa9004-subty = 'FQ03',
it_pa9004-begda = '20080201' , it_pa9004-endda = '20080930'
it_pa9004-zzvalue = 60 (customer field).
three line:it_pa9004-pernr = '11022887' ,it_pa9004-subty = 'FQ03',
it_pa9004-begda = '20080101' , it_pa9004-endda = '20081031'
it_pa9004-zzvalue = 70 (customer field).
four line:it_pa9004-pernr = '11022887' ,it_pa9004-subty = 'FQ03',
it_pa9004-begda = '20080101' , it_pa9004-endda = '20081031'
it_pa9004-zzvalue = 80 (customer field).
i run the programme and get information is:
11022887 insert ok.
11022887 insert ok.
11022887 insert ok.
11022887 insert ok.
but i use the transation PA30 to view all data:
in database just exist one row:
four line:it_pa9004-pernr = '11022887' ,it_pa9004-subty = 'FQ03',
it_pa9004-begda = '20080101' , it_pa9004-endda = '20081031'
it_pa9004-zzvalue = 80 (customer field).
the second scenario is:
in database the infotype have exist one row:
pa9004-pernr = '11022887' ,it_pa9004-subty = 'FQ02',
pa9004-begda = '20080318' , pa9004-endda = '20080318'
pa9004-zzvalue = X (customer field).
and i create another row:
line:it_pa9004-pernr = '11022887' ,it_pa9004-subty = 'FQ02',
it_pa9004-begda = '20080318' , it_pa9004-endda = '99991231'
it_pa9004-zzvalue = 80 (customer field)
i run the programme and get information is:
11022887 insert ok.
the three scenario is:
set HR_INFOTYPE_OPERATION of import parameter operation = 'MOD'
in any scenario will get error :not exist subtype .
what heppend about HR_INFOTYPE_OPERATION working,i had to use this function to
create other infotype of SAP owner.
and will create successfully.
so i thank it may be config Constraints about customer infotype.
is time Constraints effect?
so i want to how to check it?
and if i want to create one infotype for customer using PM01 what some thing
must be taken into account.
think you advance.
partial source code as follow:
FORM ACTION_INSERT .
DATA: P_FLAG TYPE C.
DATA: WA_LOG LIKE LINE OF DATA_LOG.
DATA: PP_ACTION TYPE PSPAR-ACTIO.
LOOP AT IT_PA9004.
CLEAR P_FLAG.
CALL FUNCTION 'HR_PSBUFFER_INITIALIZE'.
PERFORM lock_employee USING IT_PA9004-pernr CHANGING P_FLAG.
PP_ACTION = IT_PA9004-ACTION.
PERFORM HR_INFOTYPE_OPERATION USING IT_PA9004 PP_ACTION CHANGING P_FLAG.
IF P_FLAG IS INITIAL.
if test_run = space.
COMMIT WORK.
else.
ROLLBACK WORK.
endif.
write:/ it_pa9004-pernr,'insert ok'.
ELSE.
ROLLBACK WORK.
write:/ it_pa9004-pernr,'error'.
ENDIF.
PERFORM unlock_employee USING IT_PA9004-pernr .
ENDLOOP.
ENDFORM. " ACTION_INSERT
FORM LOCK_EMPLOYEE USING P_PERNR
CHANGING PP_FLAG.
CHECK PP_FLAG IS INITIAL.
CLEAR P_RETURN.
CALL FUNCTION 'BAPI_EMPLOYEE_ENQUEUE'
EXPORTING
number = P_PERNR
IMPORTING
return = P_RETURN
EXCEPTIONS
OTHERS = 01.
CALL FUNCTION 'HR_INITIALIZE_BUFFER'
EXPORTING
pernr = P_PERNR.
IF P_RETURN IS NOT INITIAL.
PP_FLAG = '1'.
ENDIF.
ENDFORM. " LOCK_EMPLOYEE
FORM HR_INFOTYPE_OPERATION USING P_PA9004 LIKE IT_PA9004
P_ACTION type PSPAR-ACTIO
CHANGING PP_FLAG.
CHECK PP_FLAG IS INITIAL.
DATA: bapipakey type bapipakey,
P_SUBTY TYPE P9004-SUBTY,
PP_9004 TYPE TABLE OF P9004 WITH HEADER LINE.
CLEAR P_RETURN.
REFRESH PP_9004.
MOVE-CORRESPONDING P_PA9004 TO PP_9004.
IF P_ACTION = 'INS'.
PP_9004-AEDTM = SY-DATUM.
PP_9004-UNAME = SY-UNAME.
ENDIF.
IF P_ACTION = 'MOD'.
PP_9004-AEDTM = SY-DATUM.
PP_9004-UNAME = SY-UNAME.
ENDIF.
APPEND PP_9004.
P_SUBTY = P_LGART.
CALL FUNCTION 'HR_INFOTYPE_OPERATION'
EXPORTING
infty = '9004'
subtype = 'FQ03'
subtype = P_SUBTY
number = PP_9004-pernr
validityend = PP_9004-ENDDA
validitybegin = PP_9004-begda
RECORDNUMBER = pp_9004-seqnr
record = PP_9004
operation = 'INS'
operation = P_ACTION
nocommit = 'X'
IMPORTING
return = P_RETURN
key = bapipakey
EXCEPTIONS
OTHERS = 0.
IF P_RETURN IS NOT INITIAL.
PP_FLAG = '9'.
ENDIF.
ENDFORM. " HR_INFOTYPE_OPERATION
FORM UNLOCK_EMPLOYEE USING P_PERNR.
CALL FUNCTION 'BAPI_EMPLOYEE_DEQUEUE'
EXPORTING
number = p_pernr
IMPORTING
return = P_RETURN
EXCEPTIONS
OTHERS = 01.
ENDFORM. " UNLOCK_EMPLOYEEhi
i want to create infotype use function(HR_INFOTYPE_OPERATION).
this infotype is customer infotype.
the first scenario is:
i'm be sure no data about one employee in this infotype(9004).
to call with data upload function and put data into internal table IT_PA9004.
and the table data as follow:
one line: it_pa9004-pernr = '11022887' ,it_pa9004-subty = 'FQ03',
it_pa9004-begda = '20080201' , it_pa9004-endda = '20080930'
it_pa9004-zzvalue = 50 (customer field).
two line:it_pa9004-pernr = '11022887' ,it_pa9004-subty = 'FQ03',
it_pa9004-begda = '20080201' , it_pa9004-endda = '20080930'
it_pa9004-zzvalue = 60 (customer field).
three line:it_pa9004-pernr = '11022887' ,it_pa9004-subty = 'FQ03',
it_pa9004-begda = '20080101' , it_pa9004-endda = '20081031'
it_pa9004-zzvalue = 70 (customer field).
four line:it_pa9004-pernr = '11022887' ,it_pa9004-subty = 'FQ03',
it_pa9004-begda = '20080101' , it_pa9004-endda = '20081031'
it_pa9004-zzvalue = 80 (customer field).
i run the programme and get information is:
11022887 insert ok.
11022887 insert ok.
11022887 insert ok.
11022887 insert ok.
but i use the transation PA30 to view all data:
in database just exist one row:
four line:it_pa9004-pernr = '11022887' ,it_pa9004-subty = 'FQ03',
it_pa9004-begda = '20080101' , it_pa9004-endda = '20081031'
it_pa9004-zzvalue = 80 (customer field).
the second scenario is:
in database the infotype have exist one row:
pa9004-pernr = '11022887' ,it_pa9004-subty = 'FQ02',
pa9004-begda = '20080318' , pa9004-endda = '20080318'
pa9004-zzvalue = X (customer field).
and i create another row:
line:it_pa9004-pernr = '11022887' ,it_pa9004-subty = 'FQ02',
it_pa9004-begda = '20080318' , it_pa9004-endda = '99991231'
it_pa9004-zzvalue = 80 (customer field)
i run the programme and get information is:
11022887 insert ok.
but in database just exist the first data
pa9004-pernr = '11022887' ,it_pa9004-subty = 'FQ02',
pa9004-begda = '20080318' , pa9004-endda = '20080318'
pa9004-zzvalue = X (customer field).
the three scenario is:
set HR_INFOTYPE_OPERATION of import parameter operation = 'MOD'
in any scenario will get error :not exist subtype .
what heppend about HR_INFOTYPE_OPERATION working,i had to use this function to
create other infotype of SAP owner.
and will create successfully.
so i thank it may be config Constraints about customer infotype.
is time Constraints effect?
so i want to how to check it?
and if i want to create one infotype for customer using PM01 what some thing
must be taken into account.
think you advance.
partial source code as follow:
FORM ACTION_INSERT .
DATA: P_FLAG TYPE C.
DATA: WA_LOG LIKE LINE OF DATA_LOG.
DATA: PP_ACTION TYPE PSPAR-ACTIO.
LOOP AT IT_PA9004.
CLEAR P_FLAG.
CALL FUNCTION 'HR_PSBUFFER_INITIALIZE'.
PERFORM lock_employee USING IT_PA9004-pernr CHANGING P_FLAG.
PP_ACTION = IT_PA9004-ACTION.
PERFORM HR_INFOTYPE_OPERATION USING IT_PA9004 PP_ACTION CHANGING P_FLAG.
IF P_FLAG IS INITIAL.
if test_run = space.
COMMIT WORK.
else.
ROLLBACK WORK.
endif.
write:/ it_pa9004-pernr,'insert ok'.
ELSE.
ROLLBACK WORK.
write:/ it_pa9004-pernr,'error'.
ENDIF.
PERFORM unlock_employee USING IT_PA9004-pernr .
ENDLOOP.
ENDFORM. " ACTION_INSERT
FORM LOCK_EMPLOYEE USING P_PERNR
CHANGING PP_FLAG.
CHECK PP_FLAG IS INITIAL.
CLEAR P_RETURN.
CALL FUNCTION 'BAPI_EMPLOYEE_ENQUEUE'
EXPORTING
number = P_PERNR
IMPORTING
return = P_RETURN
EXCEPTIONS
OTHERS = 01.
CALL FUNCTION 'HR_INITIALIZE_BUFFER'
EXPORTING
pernr = P_PERNR.
IF P_RETURN IS NOT INITIAL.
PP_FLAG = '1'.
ENDIF.
ENDFORM. " LOCK_EMPLOYEE
FORM HR_INFOTYPE_OPERATION USING P_PA9004 LIKE IT_PA9004
P_ACTION type PSPAR-ACTIO
CHANGING PP_FLAG.
CHECK PP_FLAG IS INITIAL.
DATA: bapipakey type bapipakey,
P_SUBTY TYPE P9004-SUBTY,
PP_9004 TYPE TABLE OF P9004 WITH HEADER LINE.
CLEAR P_RETURN.
REFRESH PP_9004.
MOVE-CORRESPONDING P_PA9004 TO PP_9004.
IF P_ACTION = 'INS'.
PP_9004-AEDTM = SY-DATUM.
PP_9004-UNAME = SY-UNAME.
ENDIF.
IF P_ACTION = 'MOD'.
PP_9004-AEDTM = SY-DATUM.
PP_9004-UNAME = SY-UNAME.
ENDIF.
APPEND PP_9004.
P_SUBTY = P_LGART.
CALL FUNCTION 'HR_INFOTYPE_OPERATION'
EXPORTING
infty = '9004'
subtype = 'FQ03'
subtype = P_SUBTY
number = PP_9004-pernr
validityend = PP_9004-ENDDA
validitybegin = PP_9004-begda
RECORDNUMBER = pp_9004-seqnr
record = PP_9004
operation = 'INS'
operation = P_ACTION
nocommit = 'X'
IMPORTING
return = P_RETURN
key = bapipakey
EXCEPTIONS
OTHERS = 0.
IF P_RETURN IS NOT INITIAL.
PP_FLAG = '9'.
ENDIF.
ENDFORM. " HR_INFOTYPE_OPERATION
FORM UNLOCK_EMPLOYEE USING P_PERNR.
CALL FUNCTION 'BAPI_EMPLOYEE_DEQUEUE'
EXPORTING
number = p_pernr
IMPORTING
return = P_RETURN
EXCEPTIONS
OTHERS = 01.
ENDFORM. " UNLOCK_EMPLOYEE -
How to create the custom infotypes in Campus Management
Hi,
Please help me how to create the custom infotypes in campus management.
Thanks,
Lakshmi.Hi,
Steps to create a HR Infotype:
1) Go to Transaction PM01.
2) Enter the custom Infotype number which you want to create (Should be a 4 digit number, start with 9).
3) Select the 'Employee Infotype' radio button.
4) Select the 'PS Structure Infotype'.
5) Click on Create... A separate table maintenance window appears...
6) Create a PS structure with all the fields you want on the Infotype
7) Save and Activate the PS structure
8) Go back to the initial screen of PM01.
9) Click on 'All' push button. It takes a few moments.
10) Click on 'Technical Characteristics'. Infotype list screen appears
11) Click on 'Change'(pencil) button
12) Select your Infotype and click on 'Detail' (magnifying glass) button
13) Give 'T591A' as subtype table
14) Give 'T591S' as subtype txt tab
15) Give your subtype field as subtype field
16) Save and come back to PM01 initial screen
17) Click on 'Infotype Characteristics' ... Infotype list screen appears
18) Click on 'Change' (pencil) button
19) Click on 'New Entries'
20) Enter your Infotype number and short text
21) Here we have to set different Infotype Characteristics as per the requirement. (Better open another session with some standard Infotype's infotype characteristics screen and use as the reference to fill yours)
22) Save your entries.
23) Now the Infotype is created and ready to use.
24) If you want to change the layout of the Infotype as per your requirement...
25) In the PM01 initial screen...Select 'Screen' radio button and give 2000 as the screen name, then click on edit.
26) In the next screen.. Select 'Layout Editor' and click 'Change'.
27) Screen default layout appears...here you can design/modify the screen..change the attributes of the fields..etc.
28) Save and activate. (Don't forget to 'Activate at every level)
Subtype Creation :
Transaction PM01 Goto Subtype Characteristics. Click on Append and then subtype. Enter the name and description of subtype on screen.
Then goto technical Characteristics and maintain the details of subtype there. I.e name of subtype i.e. component name defined in PSnnnn. Subtype table is T591A.
Subty.text tab is T591S and time const tab is T591A.
See:
http://help.sap.com/saphelp_46c/helpdata/en/4f/d5268a575e11d189270000e8322f96/content.htm
HR related site:
http://www.sapdevelopment.co.uk/hr/hrhome.htm
Enhancement of Infotype
Check the following
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/PAXX/PYINT_INFOTYP.pdf
Infotype Enhancement overview screen
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/60a7586d-edd9-2910-68a8-8204303835a1
Cheers,
vasavi.
kindly reward if helpful. -
Custom Infotype - Using Table control in the screen. IN OM
Hi,
I am having a requriement where in I need to create a custom infotype using table control in the screen. I have to create this in OM and I am using PPCI transaction to create the info type. I am able to create the infotype with fields but not table control. Please let me know if any one of you came across and help me with the process I need to follow.
Thanks in advance.
Venkat.Hello,
After you create the info type throug PPCi, you can directly go to the Sceen module program created automatically while creating Info type and edit the screen.
activate it after your changes.
Regards,
Srujan.
Maybe you are looking for
-
Code to get the all Records in Work Book
Hi, I have a Report to show on work book, Now I am used REFERENCE to get the data. In Work book i have used formula for one cell and i draged that to few rows(for example 100). Here my problem If i get below 100 records there is no problem, if it exc
-
Transfer from MP3 disc to PC Music Libr
Can anyone advise on how to transfer tracks from an MP3 disc to PC Music Library in Media source? I use the Media source and transfer the tracks to my PC but can't access the MP3 tracks later to burn a CD or transfer to the Zen Micro. The location of
-
Can anybody tell abt Synchronous Fault messaging....... How mapping is done between them. Thanks Jai
-
Consolidation Monitor: Currency Translation
Hi Folks, Am Doing consolidation of investment where am not able to translate the currency, I had Done the necessary configuration like Business Rules, ownership configuration, But when i run the Currency translation its executing all the process bu
-
How to unlock my disable iphone 4
how can i unlock my disable iphone 4 and keep my pictures?