Function module to update the SPRPS field in infotypes
Hi Guru's
I m developed the workflow for personal data maintain in ESS with single approval. Employee can able to update his personal data and saved.
Now the workflow will trigger to HR for approval .Before the workitem send to approval i need to update the PA0002-SPRPS = X and after getting approval i have to remove the flag.
Is the any function module / BAPI to upadte PA0002-SPRPS = X.
Thanks,
Pasumpon Karuppaiah
Hello,
Use BAPI_PERSDATA_CHANGE with LOCKINDICATOR = 'X'.
Below are call sequence,
BAPI_EMPLOYEE_ENQUEUE
BAPI_PERSDATA_CHANGE
BAPI_EMPLOYEE_DEQUEUE
Regards,
Sameer
Similar Messages
-
Creation of function module for updating the ztable
Hi,
I am sending the requirement for ceation of function module for updating the ztable.
Requirement----
Table Updation rule (New record)
While creating a new record the calling function will export the following to the table handling function.
Table field Probable Values
ZORDERNO-------> Sales Delivery no in case of sales orderShipment no in case of transfer order
UNAME----
> User ID
ZORDTYPE----
> SALEOR in case of sales orderTRANSF in case of transfer order
ZREFDOCNO----
>Sales Order no in case of sales orderPurchase Order no in case of transfer order
ZREFDOCNO1----
>Delivery no in case of transfer order
The table handling function will calculate the following fields
Table field Probable Values
ZREQNO----
>Running serial number (incremented by 1 for each new record)
ZREQDAT -
>System date
ZREQTIME----
> System time
ZSTATUS----
>OPEN (for all new records)
Before inserting a new record the table handling function will always check if a previous record exists for the same order / shipment no. if record exists the function will not insert a new record.
Table Updation rule (Status Update)
While updating a record the calling function will export the following to the table handling function.
Table field Probable Values
ZORDERNO----
>Sales order no in case of sales orderShipment no in case of transfer order
ZSTATUS----
>CANCEL if cancellation successfulERROR if cancellation not possible (order already processed)
The table handling function will calculate the following fields
Table field Probable Values
ZSTATDAT----
>System date
ZSTATTIME----
> System timeDo you have to create/update new record in Ztable through Function Module ?
or you need to write FM only for validation?
Any how, you need to create a Program with Input values for the fields of Ztable, and for rest of fields the Value can be calculated based on input as per your requirement.
Let me know clearly what exactly u need ?
Regards,
Kiran -
CRM function module to update the attribute in the classification TAB of BP
Hi All,
Can any body let me know if there is any functionmodule to update the CRM function module to update the attribute in the classification TAB of BP tcode.
I have searched a lot i get FM to update the marketing attribute and not the attributes in the classification tab.
Thanks in Advance
Edited by: Sharath Kumar on Dec 2, 2010 4:48 PMFor material bom: CSAP_MAT_BOM_CREATE
and CSAP_ORD_BOM_CREATE for Order BOM.
Regards,
Ravi -
Hi All,
Can any one tell me is there any Remote function module to update the values of components in STPO table while creating Sales order BOM, Material BOM, and WBS BOM. For example I want to update the Spare Part Indicator for Item components based on Plant.
Please do the needful..
Regards
YathishHi Naren,
Thanks for ur reply,
The BAPI that you have gave is to update only Material BOM. But I want to Change and create spare part indicator for 4 BOM's, ie Sales Order BOM, Eqipment BOM and also Material BOM and WBS BOM.
Can u please shed some light on it,so that it would be helpfull to me.
Thanks
Yathish -
Hi All,
Can any one tell me is there any Remote function module to update the values of components in STPO table while creating Sales order BOM, Material BOM, and WBS BOM. For example I want to update the Spare Part Indicator for Item components based on Plant.
Please do the needful..
Regards
YathishFor material bom: CSAP_MAT_BOM_CREATE
and CSAP_ORD_BOM_CREATE for Order BOM.
Regards,
Ravi -
Function Module to update the FI and Logistics Invoice
Hi All,
Is there any function module which updates the FI and Logistics Invoice simultaneously?
Regards,
Adapala MFor material bom: CSAP_MAT_BOM_CREATE
and CSAP_ORD_BOM_CREATE for Order BOM.
Regards,
Ravi -
Function Module to update the sales order header status
Hi,
I am looking for a function module to update the Sales order header status.
Pls. let me know if anybody has used any FM to update the SO status.
Thanks,By mentioning status do you mean Object status or Document status??
For Object status you may use FM: STATUS_MAINTAIN
For document status it changes according to flow.
Regards
Eswar -
To find function module to update the field kbetr.
hello friends ,
i have a problem , i want to update kbetr field in konp table and i am searching for a function module . Is there any function module with which we can update kbetr field in konp table.Hi,
check th thread:
Problem with BAPI_PRICES_CONDITIONS -
Function module for updating the values in table VTTK
Hi,
I am working on a report in which I need to update the value of field tdlnr of table vttk for a particular shipment number. I need to do this using functional module and I am not been able to find one. If anyone knows answer to this plz help.
Thanks in advance,
Priyanka.As noted above, RETURN table must be supplied empty, it is for BAPI to return the messages back to the calling program. You simply need to define an internal table, pass it to BAPI as is and then analyze this table after the BAPI call. For example:
DATA: BEGIN OF it_return OCCURS 0.
INCLUDE STRUCTURE bapiret2.
DATA: END OF it_return.
CALL FUNCTION 'BAPI_SHIPMENT_CHANGE'
<...>
TABLES
<...>
return = it_return.
LOOP AT it_return.
MESSAGE
ID it_return-id
TYPE it_return-type
NUMBER it_return-number
WITH
it_return-message_v1
it_return-message_v2
it_return-message_v3
it_return-message_v4.
ENDLOOP.
Hope this helps. -
BAPI or Function Module to Update the Alternative Payer (KNZA) of Customer
Hi Experts,
My client requirement is to update the Customer Permitted Alternative Payer during creation of BP
Would you please let me know the any BAPI or Fictional Module available to UPDATE the u201CPermitted Alternative Payer (KNZA)u201D of Customer Master.
iam trying SD_CUSTOMER_MAINTAIN_ALL function module, its failed to update the KNZA tables. please help to close the issue.
Thanks in Advance.
Venkatesh M.Hi Ravi,
Thanks for the quick reply.
The Function Module, what you are given is BTE. it will not trigger when creating of contract.
My Requirement is when creating the contract for the particular BP, we need to UPDATE the Alternative Payer of Customer.
Here i required BAPI or Function Module to change or Update the customer master Alternative Payer (KNZA).
Regards,
Venkatesh M -
Function Module to update the file path/name into Infopackage
Hi Experts,
I have some flat files which will be loaded to the directly daily. My requirement is to update the file name into the infopackage dynamically. Please suggest any function module or program for it.
Thanks,
KittuIn Higher versions, we can use the below code:
call method CL_GUI_FRONTEND_SERVICES=>ENVIRONMENT_GET_VARIABLE
exporting
VARIABLE = 'TEMP'
importing
VALUE = LV_TMP
exceptions
CNTL_ERROR = 1
others = 2.
if SY-SUBRC <> 0.
message id SY-MSGID type SY-MSGTY number SY-MSGNO
with SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.
call method CL_GUI_CFW=>FLUSH
exceptions
CNTL_SYSTEM_ERROR = 1
CNTL_ERROR = 2
others = 3.
if SY-SUBRC <> 0.
Error handling
endif.
concatenate lv_tmp '\' into folder_path.
But need to know in the lower versions like 3.1h and 4.0, -
Function module to update the classification of each of the devices 'IQ02'
Can any one please tell me if there is any Function module or BAPI that can be used to update the device classification details. I am referring to the classification details that are updated for each of the device serial numbers using Transaction 'IQ02'
Please see the following code
log initialization
CALL FUNCTION 'BAPI_LOG_INIT'.
do some initializations
CLEAR db_update.
create classification data
CALL FUNCTION 'CACL_OBJECT_ALLOCATION_MAINT'
EXPORTING
object_type = x_auto-header-object_type
class = x_auto-header-class
class_type = x_auto-header-class_type
STATUS =
STANDARD_CLASS =
DELETE_ALLOCATION =
CHANGE_NO =
I_OBJ_NOT_CHK = ' '
I_DATUV =
I_NO_DEFAULTS = ' '
TABLES
object_identification = x_auto-data
EXCEPTIONS
error = 1
warning = 2
OTHERS = 3.
IF sy-subrc NE 0.
CALL FUNCTION 'BAPI_LOG_CLOSE'
TABLES
return = lt_return.
LOOP AT lt_return INTO wa_return WHERE type = 'E'.
mac_msg_putx co_msg_error wa_return-number
wa_return-id
wa_return-message_v1
wa_return-message_v2
wa_return-message_v3
wa_return-message_v4
space.
ENDLOOP.
RAISE input_error.
ENDIF.
* transfer validation data
CALL FUNCTION 'CACL_OBJECT_VALIDATION_MAINT'
EXPORTING
object_type = x_auto-header-object_type
class = x_auto-header-class
class_type = x_auto-header-class_type
CHANGE_NO =
I_OBJ_NOT_CHK = ' '
I_DATUV =
I_NO_DEFAULTS = ' '
TABLES
object_identification = x_auto-data
validation_maint = x_auto-value
EXCEPTIONS
error = 1
warning = 2
OTHERS = 3.
IF sy-subrc <> 0.
CALL FUNCTION 'BAPI_LOG_CLOSE'
TABLES
return = lt_return.
LOOP AT lt_return INTO wa_return WHERE type = 'E'.
mac_msg_putx co_msg_error wa_return-number
wa_return-id
wa_return-message_v1
wa_return-message_v2
wa_return-message_v3
wa_return-message_v4
space.
ENDLOOP.
RAISE input_error.
ENDIF.
* transfer to data base without commit
CALL FUNCTION 'CACL_CLASSIFICATION_SAVE'
EXPORTING
i_commit = ' '
i_no_upd_task = 'X'.
close internal log
CALL FUNCTION 'BAPI_LOG_CLOSE'
TABLES
return = lt_return.
set update flag if everything went well
db_update = 'X'. -
Function Module to Update the Profit Center in Profit Segment of SO?
Hi,
I am updating the profit center with help of user exit in the sales order at the time of saving it. But my problem is it doesnt appear in the Profit Segment in the Account Assignment.
So if i go to the change mode of a Sales Order do some change and save it, the profit center get determined automatically. Now if one goes into the display mode of the same order and goes into Account Assignment of a particular item we can see that the Profit Center in the Profit Segment pop-up is not updated.
My question here is, is there a function module to derive/update the profit segment so all the details get updated in the user exit used to update the profit center?Hi Deepika,
Did you find any way to update the discount pricing in camapign.
Thanks,
Satya -
Function module to update the territory in the Transaction.
Hi All,
I was using bapi_busprocessnd_changemulti, and crm_order_maintain to update the territory which appears in partner tab. In this case it picks up the territory automatically, but if there are multiple territories, it picks up the first territory and updates the transaction which is wrong. If I need to pick the 2nd territory, and update the transaction, how would I be able to do the same, any suggestions?
Please let me know how i could update the correct territory based on a transaction. Helpful answers will certainly be avoid points.
Thanks and Regards,
ThiruHi Naren,
Thanks for ur reply,
The BAPI that you have gave is to update only Material BOM. But I want to Change and create spare part indicator for 4 BOM's, ie Sales Order BOM, Eqipment BOM and also Material BOM and WBS BOM.
Can u please shed some light on it,so that it would be helpfull to me.
Thanks
Yathish -
Function modules for updating,modifying etc for OM infotypes (1000,1001)
Hi experts,
can anybody help me by giving some FM s which will be used to Insert,Update etc for OM infotypes. i need to update HRP1000,HRP1001 AND HRT1222 tables. i tried with 'HR_INFOTYPE_OPERATION' & 'HR_MAINTAIN_MASTERDATA'. but these two FMs require PERNR as parameter. but i do not have here.
regards,
MurthyHi Murthy,
Here's a sample code to update IT1000.
DATA wa_1000 TYPE p1000.
populate wa_1000 with updated data.
CALL FUNCTION 'RH_PNNNN_MAINTAIN'
EXPORTING
act_fcode = 'AEND' " AEND to modify, INSE to insert
act_otype = wa_1000-otype
act_objid = wa_1000-objid
act_infty = '1000'
act_pnnnn = wa_1000
suppress_dialog = '2' " you can use 0 if you want Dialog mode
EXCEPTIONS
infty_not_valid = 1
no_plvar = 2
object_not_defined = 3
otype_not_valid = 4
no_authority = 5
action_rejected = 6
no_gdate = 7
fcode_not_supported = 8
OTHERS = 9.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Hope that helps,
Hanna
Maybe you are looking for
-
OS 10.8.5 Apple Mail fails to find POP Mail folder in Library?
Six weeks ago I transferred my wife's Mail account from iBook 10.4 to new MacBook Pro OS 10.8.5 w/considerable difficulty and help from senior Apple advisor. Yesterday Mail showed a welcome screen and could not find its Library Mail folder. I've been
-
New AJA Kona drivers for CS6 are posted for download. Link to PC version. http://www.aja.com/en/support/kona/pc/kona-3/ Link to Mac version http://www.aja.com/en/support/kona/mac/kona-3/
-
My Photoshop CS2 has suddenly begun to crash on opening. After a few seconds it says " Unable to continue because of a hardware or systems failiure". All my other programs work OK (I think!). My most recent install was Office 2007. I am running Windo
-
Infinite 2D Background Possible?
Guys/Girls, I have this project (see below) just like in Marks Deep Dive lesson where he uses key frames to animate camera, he has an infinite background with the color pink. I know he selects in the Pref to have the background pink, but what if you
-
Pharma: shelf life with remaining 4 months should not be considered for planning
Hi, Implementation in Pharma : FG Shelf life with remaining 4 months should not be considered for FG planning. How to exclude this stock while planning for FG. FG planning is Make to stock. BR Subbu.