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.S
Hi,
You are going in a correct method proceed. Its been good to know whether you are going correct or wrong.
Cheers!!
VEnk@
Similar Messages
-
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 -
Function Module called in Update Task
Hi Gurus,
We are calling Sales Order Change in update task inside the user Exit MV50FZ1. We can see that the FM is called in update task after the commit work and the return of the FM shows the success message. But still the changes are not saved to the DB.
Can any one help me out with this one.
RashitHi,
If two commit works are called in update task the update will end up with error. Check whether any Commit work is present in the funtion module? If so you may use it in some other method like at save or something like that.
Regards,
Renjith Michael. -
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.
-
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
-
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 -
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 -
SAVE_TEXT in update task
hi,
In my program i have a requirement to save all the text after using COMMIT_TEXT.
can anyone give me a sample code for using COMMIT_TEXT after SAVE_TEXT or give me an idea how and which FM to call in UPDATE TASK and do i required to use explicitly COMMIT WORK after calling FM COMMIT_TEXT.
<< Please do not offer rewards >>
sandy
Edited by: Rob Burbank on Mar 26, 2009 10:28 AMHi,
do this like this.
u don't need to call as Update task and no need to have COMMIT WORK also.
CALL FUNCTION 'SAVE_TEXT'
EXPORTING
* CLIENT = SY-MANDT
header = gs_comm_thead
insert = 'X'
savemode_direct = 'X'
* OWNER_SPECIFIED = ' '
* LOCAL_CAT = ' '
* IMPORTING
* FUNCTION =
* NEWHEADER =
TABLES
lines = gt_commtline
EXCEPTIONS
id = 1
language = 2
name = 3
object = 4
OTHERS = 5.
Regards,
Bharat. -
WS_DELIVERY_UPDATE Function Module is not updating the Handling unit
Hi Experts,
I am using the Function Module WS_DELIVERY_UPDATE for PGI and packing outbond delivery . I am getting the PGI date , Route.
but i am not getting the time in delivery field-WAUHR and i am getting the message 'Reqiured HU could not be found'.
Please find the attach code below:
FORM update_packing USING wa_index.
wa_index = wa_index + 1.
w_track = int_delivery_data-zn12+0(20).
itaverko-exidv = w_track.
ltahus-exidv = w_track.
itaverko-vhilm = p_shpmtl. " from screen select parm
ltahus-vhilm = p_shpmtl.
w_brgew = int_delivery_data-brgew.
SHIFT w_brgew LEFT DELETING LEADING ' '.
itaverko-brgew = w_brgew.
ltahus-brgew = w_brgew.
SHIFT int_delivery_data-inhalt LEFT DELETING LEADING ' '.
w_fcosts = int_delivery_data-inhalt.
SHIFT w_fcosts LEFT DELETING LEADING ' '.
itaverko-inhalt = w_fcosts.
ltahus-inhalt = w_fcosts.
itaverko-gewfx = int_delivery_data-gewfx.
ltahus-gewfx = int_delivery_data-gewfx.
INSERT itaverko INDEX wa_index.
INSERT ltahus INDEX wa_index.
ENDFORM. " UPDATE_PACKING
FORM update_delivery .
CLEAR : i_vbkok,ita_prot.
REFRESH : i_vbpok,ita_prot.
CLEAR: d_return.
CLEAR: ef_error_in_item_deletion_0 ,
ef_error_in_pod_update_0 ,
ef_error_in_interface_0 ,
ef_error_in_goods_issue_0 ,
ef_error_in_final_check_0 .
READ TABLE int_delivery_data INDEX wa_index.
IF sy-subrc = 0.
carry out goods issue
i_vbkok-vbeln_vl = int_delivery_data-vbeln. " Delivery nbr
i_vbkok-vbeln = int_delivery_data-vbeln. " Pick Order
i_vbkok-vbtyp_vl = int_delivery_data-vbtyp.
i_vbkok-wabuc = 'X'. " post goods movement automatically
L_VBKOK-KOMUE = 'X'. " overwrite delvry qty with picking qty
CONCATENATE 'US' INT_DELIVERY_DATA-ZN13 INTO W_ROUTE.
i_vbkok-route = int_delivery_data-route.
i_vbkok-kzroute = 'X'.
i_vbkok-spe_kzgeoroute = 'X'.
i_vbkok-packing_final = 'X'.
i_vbkok-wabuc = 'X'.
w_in_date = int_delivery_data-dattm+0(8).
i_vbkok-wadat = w_in_date.
L_VBKOK-WADAT_IST = W_in_DATE.
w_gi_time = int_delivery_data-dattm+8(6).
i_vbkok-wauhr = w_gi_time.
w_track = int_delivery_data-zn12+0(20).
t_sernr = w_track.
SET UPDATE TASK LOCAL and Perform PGI.
CALL FUNCTION 'WS_DELIVERY_UPDATE'
EXPORTING
vbkok_wa = i_vbkok
synchron = 'X'
no_messages_update = ' '
update_picking = 'X'
commit = 'X'
delivery = int_delivery_data-vbeln
nicht_sperren = 'X'
if_error_messages_send_0 = space
IT_SERNR_UPDATE = T_SERNR
IMPORTING
ef_error_any_0 = ef_error_any_0
ef_error_in_item_deletion_0 = ef_error_in_item_deletion_0
ef_error_in_pod_update_0 = ef_error_in_pod_update_0
ef_error_in_interface_0 = ef_error_in_interface_0
ef_error_in_goods_issue_0 = ef_error_in_goods_issue_0
ef_error_in_final_check_0 = ef_error_in_final_check_0
ef_error_sernr_update = ef_error_sernr_update
TABLES
*" VBPOK_TAB STRUCTURE VBPOK OPTIONAL
prot = ita_prot
verko_tab = itaverko " STRUCT VERKO
*" VERPO_TAB STRUCTURE VERPO OPTIONAL
*" VBSUPCON_TAB STRUCTURE VBSUPCON OPTIONAL
IT_VERPO_SERNR = T_VERPO_SERNR
*" IT_PACKING STRUCTURE REPACK_HU_WM OPTIONAL
*" IT_PACKING_SERNR STRUCTURE HUM_REP_SERNR OPTIONAL
*" IT_REPACK STRUCTURE HUM_REPACK OPTIONAL
*" IT_HANDLING_UNITS STRUCTURE HUM_REHANG_HU OPTIONAL
*" IT_OBJECTS STRUCTURE PGR_OBJECTS OPTIONAL
et_created_hus = ltahus "STRUCTURE VEKPVB
EXCEPTIONS
error_message = 1
OTHERS = 2.
IF sy-subrc <> 0.
ENDIF.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
WAIT =
IMPORTING
RETURN =
ENDIF.
ENDFORM. " UPDATE_DELIVERY
Could please help on this.
Thanks,
Rohit
Edited by: Rohit Sharma on Jul 24, 2009 3:25 PM
Edited by: Rohit Sharma on Jul 24, 2009 3:29 PMHi Joao,
I have the same problem. I tried to find the FM SD_OUTB_DELIVERY_CHANGE but couldn't find it. Have you by any change specified the incorrect FM name here? If yes, can you please communicate the correct FM name?
Regards,
Divyaman -
Regarding calling the fuctional module Using 'in update task'
Hi ,
I want to call a Functional module Z-PS_VK11_FRC using the statement IN UPDATE TASK .
What is procedure to work with . can anybodt tell me how to proceed or give me some sample program .
Regards,
Shilpa TalluriFunction modules that run in update task can not return any values because your program has no longer control over the function module (the update task has).
UPDATE TASK fm mostly used to update database tables.
You don't any special coding other than calling fm UPDATE TASK
And in the attributes of function module you need to tick the Update mode and "Coll Run" so that it can be used to run individually in the V2 update process can be grouped together and run collectively.
a® -
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 -
Send mail using CL_BCS through function module, run in background task.
Hi,
I am running a function module in Background task. in this function module I am sending mail using CL_BCS class.
but mail is not generated. if I run the same function Module in foreground mail generated successfully....
can anyone please tell me the reason behind this.Hi i realise that The LIST_TO_ASCII thing is not working correctly in background because the the list-processing in beckground is working not the same as in dialog i think.
I can only get the last page of the list out when running in background. Any solution to this?
my code:
CALL FUNCTION 'LIST_TO_ASCI'
EXPORTING
list_index = sy-lsind
TABLES
list_dyn_ascii = downtab
EXCEPTIONS
empty_list = 1
list_index_invalid = 2
OTHERS = 3.
IF sy-subrc NE 0.
EXIT.
ENDIF.
Thanks ,
LH
Maybe you are looking for
-
Printout of excise invoice for depot created in J1IJ
dear gurus, as we create an excise invoice in j1iin and take the print in j1ip, similarly i have created a excise invoice for depot in j1ij and tried to get the print out in j1ip but i m not able to get the printout. hence pls guide me that
-
I do not use and do not want an iCloud account and I keep getting requests to sign in....how do I stop the request?
-
Unable to download OS X using Zapping PRAM index.
Unable to download OS X using Zapping PRAM index. Gives OS X Mavericks failed to download use the purchases page to try again - But cant see Mac app store icon as screen has completely gone grey Since yesterday my Macbook Pro is not working - rather
-
Is there a way to remove extensive echo from auido clip?
This clip was recorded in an open hall in a veteran's memorial museum. As you can hear the echo is extensive. Is there a way to effectively remove the echo from the meeting hall echo? http://www.filexoom.com/showfile-32865/call4action_.wav Thanks J
-
Can I mirror my computer on my TV? I have an Apple TV 2d generation
Can I mirror my computer on my TV. I am using an ATV 3d Gen