Function Module/Class to Update HRP1005
I have a request to create new HRP1005 records for every job that uses a particular T710-SLGRP field whenever a new T710 entry is created with new amounts or dates. I have an old program that does this via a BDC, but I was looking for a Function Module or CLASS that would do it instead.
Hi
Use below FMs.
RH_INSERT_INFTY
RH_UPDATE_INFTY
~~~ Ganesh Kumar K.
Similar Messages
-
RFC enabled function module for insert update and delete in a Ztable..
friends..
Is there any standatd RFC enabled function module to insert , update and delete data in a custom database-table (Ztable)? if not how can we create it? plz give me the details steps..
what are the import, export parameters and how to develop and process it.. (for example: suppose fields in the table is Emp_Id, Name, Address)
Thanks and RegardsHi,
Try this code.
REPORT ZMMC071Z_RMV.
TYPE-POOLS : ABAP.
FIELD-SYMBOLS: <DYN_TABLE> TYPE STANDARD TABLE,
<DYN_WA>,
<DYN_FIELD>,
<LV_CONDI>.
DATA: DY_TABLE TYPE REF TO DATA,
DY_LINE TYPE REF TO DATA,
XFC TYPE LVC_S_FCAT,
IFC TYPE LVC_T_FCAT.
SELECTION-SCREEN BEGIN OF BLOCK F1 WITH FRAME TITLE TEXT-001.
PARAMETERS: P_TABLE LIKE DD02L-TABNAME OBLIGATORY.
SELECTION-SCREEN END OF BLOCK F1.
Evento: At Selection Screen *
START-OF-SELECTION.
PERFORM GET_STRUCTURE.
PERFORM CREATE_DYNAMIC_ITAB.
PERFORM GET_DATA.
END-OF-SELECTION.
*& Form get_structure
text
FORM GET_STRUCTURE.
DATA : IDETAILS TYPE ABAP_COMPDESCR_TAB,
XDETAILS TYPE ABAP_COMPDESCR.
DATA : REF_TABLE_DES TYPE REF TO CL_ABAP_STRUCTDESCR.
DATA VL_LENGHT(30).
Get the structure of the table.
REF_TABLE_DES ?=
CL_ABAP_TYPEDESCR=>DESCRIBE_BY_NAME( P_TABLE ).
IDETAILS[] = REF_TABLE_DES->COMPONENTS[].
LOOP AT IDETAILS INTO XDETAILS.
CLEAR XFC.
XFC-FIELDNAME = XDETAILS-NAME .
XFC-DATATYPE = XDETAILS-TYPE_KIND.
XFC-INTTYPE = XDETAILS-TYPE_KIND.
XFC-INTLEN = XDETAILS-LENGTH.
XFC-DECIMALS = XDETAILS-DECIMALS.
APPEND XFC TO IFC.
ENDLOOP.
ENDFORM. "get_structure
*& Form create_dynamic_itab
text
FORM CREATE_DYNAMIC_ITAB.
Create dynamic internal table and assign to FS
CALL METHOD CL_ALV_TABLE_CREATE=>CREATE_DYNAMIC_TABLE
EXPORTING
IT_FIELDCATALOG = IFC
IMPORTING
EP_TABLE = DY_TABLE.
ASSIGN DY_TABLE->* TO <DYN_TABLE>.
Create dynamic work area and assign to FS
CREATE DATA DY_LINE LIKE LINE OF <DYN_TABLE>.
ASSIGN DY_LINE->* TO <DYN_WA>.
ENDFORM. "create_dynamic_itab
*& Form get_data
text
--> p1 text
<-- p2 text
FORM GET_DATA .
*Get data from p_table into internal table <DYN_TABLE>
SELECT * INTO TABLE <DYN_TABLE>
FROM (P_TABLE)
Here you can implemente function DELETE, INSERT.
ENDFORM. " De_para -
Function Module to Change / Update BOM Line Items
Hi,
I need a Function Module to Change / Update BOM Line Items.
Please help.
Thanks.Try this FM - CSAP_MAT_BOM_MAINTAIN
-
Function Module 'Save_text' in update task of Vl01n
Hi Friends,
My requirement is, when i save a delivery document, the 'Material Sales text' in delivery has to be updated with custom details.
It is good that we can code the function module 'Save_text' in update task in the exit provided for VL01n - Delivery creation right.
At saving of delivery, we can use the set, get parameters to get the delivery document no and pass it to the Function module 'Save_text' in update task. Hope this will work.
Correct me if i am wrong.
Highly appreciate your valuable responses.
Thanks,
Jaffer Ali.SHi,
You are going in a correct method proceed. Its been good to know whether you are going correct or wrong.
Cheers!!
VEnk@ -
RFC enabled function module to insert , update and delete data in a ZTABLE
friends..
Is there any standatd RFC enabled function module to insert , update and delete data in a custom database-table (Ztable)?
if not how can we create it? plz give me the details steps..
what are the import, export parameters and how to code and process it.. (for example: suppose fields in the table is Emp_Id, Name, Address. I need to develop a RFM which does the 3 tasks, insert update delete in the same RFM)
Thanks and Regardscreate a f.n mod in se37 and make it rfc enabled. ur import parameters are Emp_Id, Name, Address and TASK and u can have an export parameter like result which gives the status of the update. based on task u can insert using keyword INSERT....and update using UPDATE or MODIFY and delete using DELETE. these keyword are not compelte with syntax but need to refer the SAP documentation.
-
BAPI function module for FUNDS Update
Hi All,
Anybody can help us on BAPI function module for FUNDS Update in FI funds management module please.
Thanks & Regards
SriniHi,
We are writing a program to change / update the existing funds in table FMFINCODE funds master. Here we are using a function module called FM_FUND_CHANGE but we are not able to capture the return messages. So please suggest me any BAPI function module availble for the same. Tcode : FM5U
Regards
Srini -
Rfc enabled function module for the updating the database table
Hi,
I need one rfc enabled function module for the updating the database table from the legacy system.currently i am using the rfc_read_table to read the database table.similarly i need for the update.Hi
I believe you need to create one by yourself
Max -
Any Function Module/Class to get Program's Package Name??
Hi Guys,
Are there any Function Modules/Classes that return the Package name of any given Program?
I have had a look but have been unable to find any...
thanks,
C
PS POINTS WILL BE REWARDEDHi,
1)u can get Package name from SE93
go to SE93>give transaction code>display
2)you can also get from
go to t-code>system>status>d.click on program name>goto-->attributes
Thanks
Ankur Sharma -
Function Modules / Classes to change cProject item
Hello,
I'am searching for function modules or classes to change the cProject item.
Ich want to change some fields in the task of cProject. Can everbody help me?
Kind regards AxelDear Thomas,
I've following requirements:
- Automated Creation of a cFolders folder structure/hierarchy from a structured uploaded from an excel file
from R/3 ABAP program
- Search for a particular document in cFolders using R/3 ABAP program
Would it be possible to do the above tasks using the BAPIs mentioned in your post.
Thanks. -
Save_text Function module is not update the data in the notification, Help!
Here is the code snippet, does anybody know why? Thanks!
form update_root_causes
tables p_it_root_causes type zqmtxt_t
using notif_no.
data:
ls_header type thead,
lit_lines type standard table of tline,
lwa_line like line of lit_lines,
lv_index type i value 0.
field-symbols:
<fs> like line of p_it_root_causes.
fill the header
ls_header-tdobject = 'QMEL'.
ls_header-tdname = notif_no.
ls_header-tdid = 'LTXT'.
ls_header-tdspras = sy-langu.
fill the lines table
fill from line #2 ...
lv_index = 0.
loop at p_it_root_causes assigning <fs>.
if lv_index gt 0.
lwa_line-tdformat = '*'.
lwa_line-tdline = <fs>-qmtxt.
append lwa_line to lit_lines.
endif.
lv_index = lv_index + 1.
endloop.
update the save_text
call function 'SAVE_TEXT'
exporting
header = ls_header
insert = 'x'
tables
lines = lit_lines.
call function 'COMMIT_TEXT'
exporting
object = ls_header-tdobject
name = ls_header-tdname
id = ls_header-tdid
language = ls_header-tdspras.
endform. " UPDATE_ROOT_CAUSESHi Anthony,
Two things you can check:
1. Ensure the notification number you are passing is valid, i.e. it has the requisite number of leading 0s (apply CONVERSION_EXIT_ALPHA_INPUT to ensure to the field notif_no before passing it to ls_header)
2. In the function module to SAVE_TEXT - INSERT should be 'X' not 'x'
Please check.
Adi -
How to automate the creation of Function Module & Class Object (SE24)
Experts,
I have the requirement to automate the creation of any type of programs: ie function module (like how we normally create in SE37 together with the parameters), class object (like how we normally create in SE24 together with attribute & method), normal report (like how we did in SE38), module pool and so on.
For example. I backuped my program into a flat file (the entire source code in txt formal or HTML) through a download program and I need to upload back this flat file into another installation of SAP.
Does SAP provide any predefined FM to cater for the above cases or better still, does anyone know of any upload program which I can use for the above requirement.
Thanks in advance.Hi Kris, I can't use the transport system as these are 2 separate SAP installation in a different place. The requirement came in the form of creation of program to be able to generate FM/Class/Report on the go.
-
How to use Function module generated to update CDHDR CDPOS
Hi,
I have a Z-table, and I want to tracks the value changes in some fields,
the data elements for those specific fields are marked for "Change document".
I created a Change document object using the transaction SCDO and I got the function module.
now can any one tell me how to use these function modules like ( what values need to be passed to function module. what value do we need to pass for OBJECTID,..value for tables ...etc )
I have a custom program to update/delete entries in the custom table so should I use the function module in my custom program to result an entry in CDHDR & CDPOS.
how to display the old value and new values for the fields specified to changes.
Regards,
Nagu.check in SE37
RV_ORDER_FLOW_INFORMATION
SD_SALES_DOCUMENT_READ
SD_SALES_DOCUMENT_READ_POS
SD_DOCUMENT_PARTNER_READ
SD_DETERMINE_CONTRACT_TYPE
SD_SALES_DOCUMENT_COPY
SD_SALES_DOCUMENT_SAVE
SD_SALES_DOCUMENT_ENQUEUE
SD_PARTNER_READ
RV_DELIVERY_PRINT_VIEW
SD_PACKING_PRINT_VIEW
SD_DELIVERY_VIEW
RV_BILLING_PRINT_VIEW
RV_PRICE_PRINT_HEAD
RV_PRICE_PRINT_ITEM
Rewards if useful...........
Minal -
Function Module/BAPI for updating Document Status.
Hi Experts,
Is there any Function Module/BAPI available for updating the document status ?
Thank You,
Radhika.unresolved!
-
How to control sequence of Function Modules processed in update task?
Hello,
I've some questions regarding following process that needs to be extended: a Function Module (FM) 'Save' calls several other FM e.g. 'X1' and 'X2' in update task. Those update modules are independent from each other and write data to the database that finalize the save process.
Now a third FM 'X3' needs to be called in update task. This one is also independent from 'X1' and 'X2' but it calls a further FM 'X4' in background task as separate unit which starts a job. This job requires the data from FM 'X1' and 'X2' already persistent on the database. By the way: the FM 'X3' triggers the Access Control Engine (ACE) notification that calculates the authorization data in the mentioned job. Therefore this process needs to be the last FM call in update task in the queue of calls in FM 'Save'.
Questions:
(1) Is it possible to control the process sequence of the FM 'in update task' simply by the sequence they are called in FM 'Save'.
(2) Presumed that all FM beside 'X3' have processing type "Update with immediate start" or "Immediate start, no restart" (in short V1) would it be another solution to specify FM 'X3' with type 'Delayed' to control the process sequence? When a delayed FM will be processed?
(3) Is it uncritical to call in FM 'X3' (already running in update task) the FM 'X4' with addition in background task as separate unit that furthermore starts a job by an event? I'm afraid that this nesting could lead to unexpected errors.
Thank you in advance for your help!
Best regards,
Oliverya it will this be in the same sequence only...........
Regards
Anbu -
Function modules called in update task
Hi,
I am calling two function modules in update task sequentially. I want to know whether these two function modules are also called sequentially in update debugging also?
My code is like this
1. call FM1 in update task
2. Call FM2 in update task
will this be the same sequence at the time of execution also? or will it be random?
Thanks in advance.ya it will this be in the same sequence only...........
Regards
Anbu
Maybe you are looking for
-
Document doesn't have document category C in follow up document
Hi, I have created a Return order in Services, Now on the Return order i have a requirement to create a follow up document in case of warranty,1st either we can issue a credit Note Or we can make a subsequent delivery free of charge on the same Retur
-
The title says it all. I received a few movies from a friend and some of them were in formats such as .mkv or others, but I couldn't quicklook them with the preview function in finder. I tried to change the extension to .avi since with that format I
-
Fusion Middleware Provisioning Deployment Procedure - Failing
Hi, I have been trying to run the Fusion Middleware Provisioning (version 4.1) deployment procedure by choosing the existing installation as Fusion Middleware Home. Going through the logs, the perl script (applyclone.pl) is unable to create the desti
-
Any help would be much appreciated. Thank you.
-
Confirmation question - advice needed
Hi would just like some confirmation before i buy an airport express and can't seem to find this question directly answered. Ok i have a cable modem that runs into the WAN port of a linksys router - which then connects up two pc's using standard RJ45