Funtion module to update Infotype 14
Hi guys,
Is ther any function modules to update infotype 14 other than
HR_INFOTYPE_OPERATION and HR_MAINTAIN_MASTERDATA......
Thanks,
Satya
This FM uses BDC in its code, see the code in SE37 and you will get some idea as how to use it in your program.
There is a table of type SPA_PACKAGE_COMPONENT that you have to populate first and then passto this FM. While populating that table you will be providing the information to update the infotype and the operation like insert, update etc.
Similar Messages
-
HR-ABAP Any BAPI or Function module to update infotypes 167 & 170
Hi,
Can anyone let me know is there any BAPI or Function module to update infotypes 167(Health Plans) & 170(Flexible Spending Accounts).
Thanks,
SandeepHi,
U can use HR_BEN_CREATE_PLANS internally it calls HR infotype operation as specified by suresh.
Suresh : If there are approximately 3000 records to be updated on regular basis do u think is it better to use BAPI's or BDC
regards
Vick -
CRM Funtion Module to update customer
Hi,
My scenario is CRM>XI>Webservice (Async). The customer has their own home grown legacy system where they maintain the customer data (master & transactional).
CRM IC Webclient is used as front end. There is a minimal amount of data that has been replicated from the legacy to CRM system like the customer info and etc. The user will change the CustomerName & Address in the CRM system and upon submit it has to go via XI and call a pre-existing webservice which inturn will update the customer system.
As we want to accomplish this scenario out-of-the-box are there any standard IDOCs or RFCs or BAPIs available in the CRM system. If so please give the name of the module.
Thanks in advance.
KrishnanHi Krishnan,
As you are saying that you have XI adaptor configured, please make necessary configuration and developments in XI.
1 Create proper data type in XI which holds the same input common between XI and CRM.
2 assign data type to message type in XI.
3 assign message type interface type in XI.
4.Configure and open the communication channels between XI and CRM.
All these things shud be done at XI side and preferably an XI resource would do this.
Once this is done or already done, you will have a proxy associated to this particular interface in CRM ...Inside this proxy you will have to develop and built this proxy( write the code for calling FM CRMXIF_PARTNER_SAVE) which will be triggered to XI as an output message.
Siva -
Funtion module to delimit infotype 167
Hello Gurus,
Is there any function module to delimit automatically infotype 167 ???
Best Regards
Bruno SilvaHi,
Pls refer to the following FM, it may help you
CRM_CP_DELIMIT_POSITION
RH_BUF_DELIMIT_USER_POSITIO
RH_DELIMIT_POSITION_OF_USER
RPM_BUPA_DELIMIT_POSITION
regards
ravi -
User-Exit/Badi/Funtion Module for update Batch in transaction CORK
Hi Gurus,
when an IDoc 'Z' is executed to do a confirmation using the FM CO_RU_ORDER_CONFIRMATION, the values of transaction CORK are modified.
I'd like to update the field batch number so when you enter a process order in transaction CORK and then you click on Components, you'll see the list of component and the batch number updated throught the custom IDoc.
Does anyone knows any user-exit or Badi or maybe a FM to implement so when the first confirmation is done, the batch numbers are updated?
Thanks in advance.Hi,
You can copy and paste the Report code below. This will give the list of User Exits and BADIs available for the Transcation code. Very usefull program.
Below code will give a list of BADIs for particular transaction.
=============START
*& Report ZNEGI16 *
REPORT ZNEGI16 .
TABLES : TSTC,
TADIR,
MODSAPT,
MODACT,
TRDIR,
TFDIR,
ENLFDIR,
SXS_ATTRT ,
TSTCT.
DATA : JTAB LIKE TADIR OCCURS 0 WITH HEADER LINE.
DATA : FIELD1(30).
DATA : V_DEVCLASS LIKE TADIR-DEVCLASS.
PARAMETERS : P_TCODE LIKE TSTC-TCODE,
P_PGMNA LIKE TSTC-PGMNA .
DATA wa_tadir type tadir.
START-OF-SELECTION.
IF NOT P_TCODE IS INITIAL.
SELECT SINGLE * FROM TSTC WHERE TCODE EQ P_TCODE.
ELSEIF NOT P_PGMNA IS INITIAL.
TSTC-PGMNA = P_PGMNA.
ENDIF.
IF SY-SUBRC EQ 0.
SELECT SINGLE * FROM TADIR
WHERE PGMID = 'R3TR'
AND OBJECT = 'PROG'
AND OBJ_NAME = TSTC-PGMNA.
MOVE : TADIR-DEVCLASS TO V_DEVCLASS.
IF SY-SUBRC NE 0.
SELECT SINGLE * FROM TRDIR
WHERE NAME = TSTC-PGMNA.
IF TRDIR-SUBC EQ 'F'.
SELECT SINGLE * FROM TFDIR
WHERE PNAME = TSTC-PGMNA.
SELECT SINGLE * FROM ENLFDIR
WHERE FUNCNAME = TFDIR-FUNCNAME.
SELECT SINGLE * FROM TADIR
WHERE PGMID = 'R3TR'
AND OBJECT = 'FUGR'
AND OBJ_NAME EQ ENLFDIR-AREA.
MOVE : TADIR-DEVCLASS TO V_DEVCLASS.
ENDIF.
ENDIF.
SELECT * FROM TADIR INTO TABLE JTAB
WHERE PGMID = 'R3TR'
AND OBJECT in ('SMOD', 'SXSD')
AND DEVCLASS = V_DEVCLASS.
SELECT SINGLE * FROM TSTCT
WHERE SPRSL EQ SY-LANGU
AND TCODE EQ P_TCODE.
FORMAT COLOR COL_POSITIVE INTENSIFIED OFF.
WRITE:/(19) 'Transaction Code - ',
20(20) P_TCODE,
45(50) TSTCT-TTEXT.
SKIP.
IF NOT JTAB[] IS INITIAL.
WRITE:/(105) SY-ULINE.
FORMAT COLOR COL_HEADING INTENSIFIED ON.
Sorting the internal Table
sort jtab by OBJECT.
data : wf_txt(60) type c,
wf_smod type i ,
wf_badi type i ,
wf_object2(30) type C.
clear : wf_smod, wf_badi , wf_object2.
Get the total SMOD.
LOOP AT JTAB into wa_tadir.
at first.
FORMAT COLOR COL_HEADING INTENSIFIED ON.
WRITE:/1 SY-VLINE,
2 'Enhancement/ Business Add-in',
41 SY-VLINE ,
42 'Description',
105 SY-VLINE.
WRITE:/(105) SY-ULINE.
endat.
clear wf_txt.
at new object.
if wa_tadir-object = 'SMOD'.
wf_object2 = 'Enhancement' .
elseif wa_tadir-object = 'SXSD'.
wf_object2 = ' Business Add-in'.
endif.
FORMAT COLOR COL_GROUP INTENSIFIED ON.
WRITE:/1 SY-VLINE,
2 wf_object2,
105 SY-VLINE.
endat.
case wa_tadir-object.
when 'SMOD'.
wf_smod = wf_smod + 1.
SELECT SINGLE MODTEXT into wf_txt
FROM MODSAPT
WHERE SPRSL = SY-LANGU
AND NAME = wa_tadir-OBJ_NAME.
FORMAT COLOR COL_NORMAL INTENSIFIED OFF.
when 'SXSD'.
For BADis
wf_badi = wf_badi + 1 .
select single TEXT into wf_txt
from SXS_ATTRT
where sprsl = sy-langu
and EXIT_NAME = wa_tadir-OBJ_NAME.
FORMAT COLOR COL_NORMAL INTENSIFIED ON.
endcase.
WRITE:/1 SY-VLINE,
2 wa_tadir-OBJ_NAME hotspot on,
41 SY-VLINE ,
42 wf_txt,
105 SY-VLINE.
AT END OF object.
write : /(105) sy-ULINE.
ENDAT.
ENDLOOP.
WRITE:/(105) SY-ULINE.
SKIP.
FORMAT COLOR COL_TOTAL INTENSIFIED ON.
WRITE:/ 'No.of Exits:' , wf_smod.
WRITE:/ 'No.of BADis:' , wf_badi.
ELSE.
FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
WRITE:/(105) 'No userexits or BADis exist'.
ENDIF.
ELSE.
FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
WRITE:/(105) 'Transaction does not exist'.
ENDIF.
AT LINE-SELECTION.
data : wf_object type tadir-object.
clear wf_object.
GET CURSOR FIELD FIELD1.
CHECK FIELD1(8) EQ 'WA_TADIR'.
read table jtab with key obj_name = sy-lisel+1(20).
move jtab-object to wf_object.
case wf_object.
when 'SMOD'.
SET PARAMETER ID 'MON' FIELD SY-LISEL+1(10).
CALL TRANSACTION 'SMOD' AND SKIP FIRST SCREEN.
when 'SXSD'.
SET PARAMETER ID 'EXN' FIELD SY-LISEL+1(20).
CALL TRANSACTION 'SE18' AND SKIP FIRST SCREEN.
endcase.
================END
<b>Reward POints if this helps.
Manish</b> -
Hi all,
Is there any Function module to update infotype 2051. The FM HR_Maintain_masterdate is not working for this infotype.I've done some more research, basically IT2051 data is calculated when you go into the screen and sickness/subsitutions etc feed into this screen. It may be easier to look at loading data into the Time infotypes that get displayed in this Infotype rather than trying to load data directly into it.
Regards
J -
Function to update Infotype 0003
Hi,
I want to update 'Run payroll up to' field of infotype 0003 based on some conditions .
Is there any function module to update Infotype 0003 fields ?
ThanksI have calle the FM with action 'EDQ' .
It did not uloack the pernr .
I am using this code :
SELECT SINGLE STAT2
INTO LV_STAT2
FROM PA0000
WHERE PERNR = INNNN-PERNR AND
ENDDA >= INNNN-BEGDA AND
BEGDA <= INNNN-ENDDA .
IF SY-SUBRC = 0 AND
LV_STAT2 <> '3' .
CALL FUNCTION 'HR_READ_INFOTYPE'
EXPORTING
PERNR = INNNN-PERNR
INFTY = '0003'
IMPORTING
SUBRC = LV_SUBRC_1
TABLES
INFTY_TAB = IT_PA0003
EXCEPTIONS
INFTY_NOT_FOUND = 1
OTHERS = 2.
IF LV_SUBRC_1 = 0 .
READ TABLE IT_PA0003 INDEX 1 .
CHECK SY-SUBRC = 0 .
WA_PA0003 = IT_PA0003 .
IF INNNN-BEGDA > IT_PA0003-ABWD1 .
Reset the "Run payroll for pers.no. up to" date
WA_PA0003-ABWD1 = INNNN-BEGDA .
CALL FUNCTION 'HR_INFOTYPE_OPERATION'
EXPORTING
INFTY = '0003'
NUMBER = INNNN-PERNR
RECORD = WA_PA0003
OPERATION = 'EDQ'
IMPORTING
RETURN = LV_SUBRC_2 .
CALL FUNCTION 'HR_INFOTYPE_OPERATION'
EXPORTING
INFTY = '0003'
NUMBER = INNNN-PERNR
VALIDITYEND = WA_PA0003-ENDDA
VALIDITYBEGIN = WA_PA0003-BEGDA
RECORD = WA_PA0003
OPERATION = 'MOD'
NOCOMMIT = 'X'
IMPORTING
RETURN = LV_SUBRC_2 -
Function modules to update ME01 transaction
Hi,
Can I get the list of Function modules to update ME01 transaction..
Thnx in advance,
ShivaaHi shiva,
Try this funtion module ,
ME_UPDATE_SOURCES_OF_SUPPLY Update source list
ME_UPDATE_SOURCES_OF_SUPPLY_BA Update source list records in background during generation
I hope,it will help you
<=<< Sharing Knowledge is a way to Innovative >>=>
By,
Yoga -
Bapi's or Fun Modules to update vendor related tables
Hi All,
Can any one tell me the Bapi's or funtion modules to update,create or modify vendor related tables without using any call transaction.
Best answers will be rewarded nicely.
Regards,
praveen.Hi
Did below code work for you?
If not the best way to manage Vendor information for UPDATING and CREATING check below class
VMD_EI_API
Which you just use methods INITIALISE and MAINTAIN with the populated structures of vendor tables.
Regards
Tumelo Modise -
How to Update crmd_customer_h TABLE Using CRMV_EVENT Through Funtion Module
Hi
How we can update customer_h table using the CRMV_EVENT Where i implemented logic below in the Funtion Module.
data: lt_doc_flow TYPE crmt_doc_flow_wrkt,
lw_cust_h_com TYPE crmt_customer_h_com,
lw_input_field_names TYPE crmt_input_field_names,
lt_input_field_names TYPE crmt_input_field_names_tab,
lt_objects_to_save TYPE crmt_object_guid_tab,
lw_guid TYPE CRMT_OBJECT_GUID.
DATA : lv_process_type TYPE crmt_process_type.
data: wa_doc_flow type CRMT_DOC_FLOW_WRK.
data: wa_customer_h type crmd_customer_h.
* Function module for retriving the Process type.
CALL FUNCTION 'CRM_ORDERADM_H_READ_OW'
EXPORTING
iv_orderadm_h_guid = iv_header_guid
IMPORTING
ev_process_type = lv_process_type
EXCEPTIONS
admin_header_not_found = 1
OTHERS = 2.
if lv_process_type eq 'ZG01'.
CALL FUNCTION 'CRM_DOC_FLOW_READ_OB'
EXPORTING
IV_HEADER_GUID = iv_header_guid
IMPORTING
ET_DOC_FLOW_WRK = lt_doc_flow.
read table lt_doc_flow with key objtype_a = 'BUS2000116' INTO wa_doc_flow. "gc_object_type-service.
if sy-subrc eq 0. "set flag for service order
lw_cust_h_com-ref_guid = wa_doc_flow-objkey_a.
lw_cust_h_com-ZZTRAIL_FLAG = 'X'.
lw_cust_h_com-mode = 'A'.
lw_cust_h_com-ref_handle = '0000000001'.
lw_guid = wa_doc_flow-objkey_a.
INSERT lw_guid INTO TABLE lt_objects_to_save.
endif.
lw_input_field_names-fieldname = 'REF_GUID'.
lw_input_field_names-fieldname = 'ZZTRAIL_FLAG'.
lw_input_field_names-changeable = ' '.
INSERT lw_input_field_names INTO TABLE lt_input_field_names.
Maintain Customer H
CALL FUNCTION 'CRM_CUSTOMER_H_MAINTAIN_OW'
EXPORTING
is_customer_h_com = lw_cust_h_com
CHANGING
ct_input_field_names = lt_input_field_names
EXCEPTIONS
header_change_error = 1
header_create_error = 2
error_occurred = 3.
ENDIF.
*endif.
*Clearing local variables
clear: lv_process_type,
lw_cust_h_com,
lw_input_field_names.
*Free internal tables
free: lt_doc_flow,
lt_input_field_names.Hi Faisal
I think your not clear with what i am saying anyhow i will again explain you my requirement
As per my requirement
1)in the service order search report i need to add a field called "Has trail order with No Follow up" with values "Yes" & "Blank"
For above Field i added using the structure CRMST_QUERY_SRVO_BTIL and through configuration i am able to display the field in webui as per (Attachement Pic 1)
2)When i search with search criteria as "Has trail order with No Follow up" with "Yes"
Then in result list i need to show the service order those having follow up as trail orders(sales order) only.if for next document trail order having any follow up then those service orders dont want to show in result list.
For above requirement i implemented F.M using CRMV_EVENT & I configured for BUS2000115 And BEFORE_SAVE The Order
The FM Will get trigger when i save the service order and for that service order if create any follow up and try to save the trail order then This FM Will trigger and in this i am doing validations.
3)Add one AET Trail Flag field is added under CUSTOMER_H Table.
4)in the FM I am validating for if the trail order having the preceding document as service order then i need to make flag as "X" For that service order in customer_h
if suppose when i delete trail order from the service order then that flag must need to be "unset" from the CUSTOMER_H.
Why bcoz we are doing above process is do show records in result list based on Flag values
these flag checks are validating in the BADI Which we implemented for search logic.
Please refer below Login for my requirement:-
Proposal to have a custom “flag” field (background at table level,
crmd_customer_h) linked to service order which gets flagged whenever at
least one Trial order is created and saved from the Service Order.
The flag value should be cleared when all the trial orders created and
saved as follow up transactions are deleted from the system.
Similarly for Trial Orders will use the same custom “flag” field
which gets activated when at least one follow up is created and saved from Trial Order.
The flag value should be cleared when all the follow up transactions from
the Trial Order are deleted from the system.
When the above search criteria “Has Trial order with no follow up”
“is” “Yes” is applied then the logic derives all the service
orders which satisfy additional search criteria applied in the search and
for these Service orders checks if the custom flag field is checked to
derive all Service orders which have Trial order. The custom flag values
values are derived from crmd_customer_h table in CRM.
4 )Further for all the Trial Orders determined in Step 3
check if the Trial Order has a follow up by checking if the custom flag field
is checked. The custom flag values are derived from crmd_customer_h table in
CRM.
5) If step 4 is not met populate the preceding Service
Orders in the Result list -
Need a help to Update Infotype.....
Hi Experts,
*am developing HR-ABAP Report inthat, i have data in 2 internal tables, through these (itabs) i want to*
*insert the data into 2 Ztables(Respective tables) and then i want to Update one Custom Infotype.*
how can i procedure for this? is there any FM to update Infotype....
Thanks in Advance,
sudeer.The best way is to use HR_INFOTYPE_OPERATION function module in your program.
Sample code:
call function 'HR_INFOTYPE_OPERATION'
exporting
infty = p0082-infty
number = p0082-pernr
subtype = p0082-subty
validityend = p0082-endda
validitybegin = p0082-begda
record = p0082
operation = 'INS'
tclas = 'A'
dialog_mode = '0'
importing
return = return
key = key.
capture error messages
if return-type = 'E'.
concatenate 'Sub Type:' p0082-infty into messtab-tcode.
move return-message to messtab-param.
append messtab. clear messtab.
endif.
You can use it for modifying the record also. -
Funtion Module in accounting document
Hi All,
Can someone tell what function module is called while creating the accounting document and what are its important import and export parameters?
Regards
VijayHi Vijay,
The most important funtion module responsible to creating accounting documentt is RV_ACCOUNTING_DOCUMENT_CREATE . Below are its important import and export parameters:
Import parameters
CASH_SALE_ACCOUNT : contains the cash clearing account, if this is not to be posted to the customer
CPD_ADRESS: must be filled if you are posting to a one-time customer
DOCUMENT_OLD : contains the $000000x number of the billing document, as VBRK-VBELN already has the final value, XVBRP and so on still contain $000000x
INVOICE_HEADER : Contains the billing header VBRK
I_COMP : Control parameter, if only CO is to be posted
I_COMP_CHECK : Control parameter if only CO is to be posted (check run)
CHECK : Controlling for error messages (issue immediately or in log)
MODE : Change mode ( A = old, B = new)
MODE_TYPES : Scope of change (1=rebate/2=VPRS)
Differences can occur due to the update of cost price conditions or rebate conditions in billing documents that have already been posted. These two fields (MODE and MODE_TYPES) are required to enable the posting of those differences to CO-PA.
RRREL: If this field is set, the billing document contains revenue recognition items
BOKRE : If this field is set, the billing document is rebate-relevant
These two fields (RRREL and BOKRE) are required for the new cancellation function as of Release 4.6A. This is because the new cancellation procedure cannot be implemented for revenue recognition or rebate relevant billing documents.
Export parameters
O_VBRK_RFBSK: This is set if an error has occured in account determination ( characteristic B)
O_KONV_CHANGED: This is set if XKOMV is changed in account determination
Regards
Roop -
Update infotype 0032 in user exit ZXPADU02
Hi All,
I have the following requirement.
Telephone extension number is stored in IT0105 and IT0032. When the extension number is updated through ESS, this is stored in IT0105 but it does not update IT0032 which is displayed in MSS.
I need to update infotype 0032 based on the data in 0105.
I thought I could update infotype 0032 in userexit ZXPADU02 whenever infotype 0105 was saved using the function module HR_INFOTYPE_OPERATION but it is not working for me.
Any help would be appreciated.
ElaineYou have to make the function call a separate unit of work.One other option is to put the function call in a report & SUBMIT it from the User exit.
~Suresh -
Update Infotype 24 with Qualification
Hi Friends,
I have to update infotype 24(qualifications). I am using function module Rh_insert_infty_1001_ext to update but this function only creates a record in hrp1001(i.e. OM side) but does not create any record in PA side i.e. infotype 24.
Is there a different way to update infotype 24?
Thanks
NazishHello Nazish,
check this HR_INFOTYPE_OPERATION with operation = 'COP'
For PD tables,FM - BAPI_HRMASTER-SAVE_REPL_MULT is used and after PD tables are updated , for PA Tables use
FM - HR_INFOTYPE_OPERATION
Check FM - RH_INSERT_INFTY_1001_EXT and also FM - BAPI_HRMASTER-SAVE_REPL_MULT
regards -
I need to update infotype 22, 31 , 68. I am using function module "HR_INFOTYPE_OPERATION". But using this FM i can only upate the fields of infotype which are reflected in the infotype screen. I need to update other fields which are there in the PA table but not reflected in the screen.
Is there any other function module available?Hi,
You can use the Function Module <b>HR_MAINTAIN_MASTERDATA</b>.
This function module enables you to maintain master data for employees and applicants. You can enter field names and contents in the 'proposed values' table. This will then be transferred to the corresponding infotypes. The same validation checks take place as would in the individual maintenance screens for the infotypes. You can enter as much data as you like. You can enter several records or infotypes at once. You are responsible for making sure that the data is consistent. If necessary, the module returns an error message. The error messages are the same as the those which appear in the dialog, in other words, the individual maintenance screen error messages are transferred rather than interpreted by this module.
<u>Exanple</u>
CALL FUNCTION 'HR_MAINTAIN_MASTERDATA'
EXPORTING
pernr = p_0735-pernr
MASSN =
actio = 'MOD'
tclas = 'A'
begda = p_0735-begda
endda = p_0735-endda
objps = p_0735-objps
seqnr = p_0735-seqnr
sprps = p_0735-sprps
subty = p_0735-subty
*Put 0 here when everything is ok. 1 shows dialog on error.
dialog_mode = dialog_mode
luw_mode = luw_mode
NO_EXISTENCE_CHECK = ' '
NO_ENQUEUE = ' '
IMPORTING
return = l_return
RETURN1 =
HR_RETURN =
TABLES
proposed_values = l_value_tab
modified_keys = l_pskey.
Maybe you are looking for
-
Windows 8.1 Driver For MSI 760GM-P21
My Motherboard is MSI 760GM-P21. My Motherboard has build in ATI Radeon 3000 Graphics Adapter. I Want Windows 8.1 Driver For ATI Radeon 3000. Is It possible To Get The Windows 8.1 Driver For ATI Radeon 3000 ?....
-
Is there a fix for the whining MacBook issue?
So, has there been a good and final solution from Apple to the whining MacBook problem? I just received my brothers MacBook as he upgraded to the MBP. It is still under Apple Care so if there is a good solution I would like to send it in to get fixed
-
How to authorize my new pc to re download music?
I bought a new laptop and tried to download a song again but it says I have to authorize this computer. How do I do that?
-
'PREVIEW' screen plug-in?
Where can I find the 'PREVIEW' screen plug-in. The one that says "The following preview' bla bla bla. I have the complete slick transitions set and was upset to find it wasn't in there. However, what it did include was the 'RATING' screen plug-in. An
-
Hi I got an iPod Shuffle yesterday and I am still new to it. Yesterday I charged it all the way to the green light and then hibernated my laptop. Now this morining it's back to orange. It's been orange for about 2.5 hours now. I read this morining I