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_CAUSES
Hi 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
Similar Messages
-
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 -
Function module does not update the storage location in delivery
Hello,
I've been trying to use SD_DELIVERY_UPDATE_PICKING to update the storage location in SD return deliveries, without any success. Any clues? The FM works fine when it comes to updating the picking quantity, but the storage location issue still persists.
Thanks in advance,
JoaoHi 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 -
Function Module (ENQUEUE_ES_PROG) not working in Background
I scheduled a job which runs every 15 mins in the the background to fetch data from an external system,depending on the data volume ,the program can sometimes run for over 15 minutes.To avoid data conflict I used a function module ENQUEUE_ES_PROG on the program to first check if the job started is still running before another job gets kicked.The problem I have is the fact that this function module does not seem to work in the background but in the looks perfect in foreground. Does anyone have a clue on how to use this FM for background job?
Hello Mochabo,
Consider the following scenario:
Your job is running for more than 15 minutes. Since it is running in the background, it will be executed by a work-process of type BACKGROUND. If there's only one BACKGROUND work process configured for your application server, then the second job will have to be waiting till the first one finishes and releases the background work process.
But when you are executing this in the foreground, the DIALOG work-process does the processing. So you are not finding any problem.
So, to my knowledge, there will be a problem when there's only one BACKGROUND work process. Please go to transaction SM50 and see how many of them are configured for the current application server.
Also, in case there's only one BACKGROUND work-process, you will not have toworry that the second job will start before the first has finished. It simply can't. It has got to wait.
Hope this explanation helps.
Regards,
Anand Mandalika. -
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 "GM_DOCUMENT_REVERSE" not found. after Patch Update
Hi Abapers/Basis
After patch update i am not able to do FBCJ reversal entry getting below error message.
Runtime Errors CALL_FUNCTION_NOT_FOUND
Exception CX_SY_DYN_CALL_ILLEGAL_FUNC
Date and Time 25.05.2011 14:43:26
Short text
Function module "GM_DOCUMENT_REVERSE" not found.
What happened?
The function module "GM_DOCUMENT_REVERSE" is called,
but cannot be found in the library.
Error in the ABAP Application Program
The current ABAP program "SAPLRWCL" had to be terminated because it has
come across a statement that unfortunately cannot be executed.
What can you do?
Note down which actions and inputs caused the error.
To process the problem further, contact you SAP system
administrator.
Using Transaction ST22 for ABAP Dump Analysis, you can look
at and manage termination messages, and you can also
Error analysis
An exception occurred that is explained in detail below.
The exception, which is assigned to class 'CX_SY_DYN_CALL_ILLEGAL_FUNC', was
not caught in
procedure "CALL_DISPATCHER_STORNO_R" "(FORM)", nor was it propagated by a
RAISING clause.
Since the caller of the procedure could not have anticipated that the
exception would occur, the current program is terminated.
The reason for the exception is:
The program "SAPLRWCL" contains the CALL FUNCTION statement.
The name of the function module to be called is "GM_DOCUMENT_REVERSE".
No function module exists with the name "GM_DOCUMENT_REVERSE".
All function modules are listed in the Function Library (SE37).
Possible reasons:
a) Wrong name specified. Pay particular attention to
upper/lower case and underscores ("_").
or
b) Transport error
c) In the case of an enqueue/dequeue module,
the lock object may not have been activated
(ABAP/4 Dictionary).
How to correct the error
Check the last transports to the SAP System.
Is the program "SAPLRWCL" currently being changed?
If an enqueue/dequeue module is involved, is the activation
of the lock object missing in the ABAP/4 Dictionary?
If the error occures in a non-modified SAP program, you may be able to
find an interim solution in an SAP Note.
If you have access to SAP Notes, carry out a search with the following
keywords:
"CALL_FUNCTION_NOT_FOUND" "CX_SY_DYN_CALL_ILLEGAL_FUNC"
"SAPLRWCL" or "LRWCLF10"
"CALL_DISPATCHER_STORNO_R"
Function modules with names similar to "GM_DOCUMENT_REVERSE":
GM_DOCUMENT_CLOSE
GM_DOCUMENT_RECORD
GM_DOCUMENT_DELETE
GM_DOCUMENT_POST
GM_DOCUMENT_CHECK
G_DOCUMENT_RECORD
GJ_DOCUMENT_RECORD
GM_DOCUMENT_PROJECT
GET_DOCUMENTS
GM_DOCUMENT_DISPLAY
If you cannot solve the problem yourself and want to send an error
notification to SAP, include the following information:
If you cannot solve the problem yourself and want to send an error
notification to SAP, include the following information:
1. The description of the current problem (short dump)
To save the description, choose "System->List->Save->Local File
(Unconverted)".
2. Corresponding system log
Display the system log by calling transaction SM21.
Restrict the time interval to 10 minutes before and five minutes
after the short dump. Then choose "System->List->Save->Local File
(Unconverted)".
3. If the problem occurs in a problem of your own or a modified SAP
program: The source code of the program
In the editor, choose "Utilities->More
Utilities->Upload/Download->Download".
Moderator message: please don't just dump your dumps, search for SAP notes or open a call with SAP instead.
Edited by: Thomas Zloch on May 25, 2011 2:16 PMHi Karthik,
Thank you for ur reply.
I did not implement any user exit/ badi. Dump is saying that my smarform function module does not exist in the se37 library.
I have excuted my form through se38, that time is working fine. When i tried through output type it is going to dump.
Regards,
Kusuma. -
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.
-
Function module to determine the date for the nth weekday of the mth month
Hey folks,
Is there a function module which determines the date for the mth weekday of the nth month in the pth year.
For instance, if I input 2nd thursday of the 4th month in 2008, it should return me, 04/10/2008 (MM/DD/YYYY).
Thanks and Best Regards,
Puja.Hi Ravi,
Hadn't been able to work on this lately...You solution was quite close, but did not work for a few scenarios....I tweaked the logic a bit to take care of them as well...
So here goes the code:
================================================
DATA first_day_of_month TYPE datum.
DATA day TYPE p.
CONCATENATE year month '01' INTO first_day_of_month.
CALL FUNCTION 'DAY_IN_WEEK'
EXPORTING
datum = first_day_of_month
IMPORTING
wotnr = day.
DATA day_number TYPE numc2.
IF day = weekday.
IF recur = 1.
DATA ls_date(10) TYPE c.
CONCATENATE month '/01/' year INTO ls_date.
CALL FUNCTION 'CONVERT_DATE_TO_INTERNAL'
EXPORTING
date_external = ls_date
IMPORTING
date_internal = date.
ELSE.
day_number = ( ( recur - 1 ) * 7 ) + 1.
ENDIF.
ELSEIF day < weekday.
day_number = ( ( recur - 1 ) * 7 ) + ( weekday - day ) + 1.
ELSE.
day_number = ( ( recur - 1 ) * 7 ) + ( 7 - day ) + weekday + 1.
ENDIF.
IF date IS INITIAL.
CONCATENATE year month day_number INTO date.
ENDIF.
====================================
There still could be some loopholes in this....am not sure....but it sure did seem to work for a couple of random checks that I performed.
Brownie points to you for giving me a direction.
Thanks,
Puja. -
Keynote document saved in icloud not updating with data from Numbers? is icloud the problem
keynote document saved in icloud not updating with data from Numbers? is icloud the problem.
If both files are held locally on the computer it looks like there is no problem however if you try and do it though icloud (ie your docs are saved on icloud) you dont get the "source" oprion besides the graph etc. Is this a but or a broken function due to the new implementation of icloud.Hi sebnor31,
This is Visual C# forum, but your question seems not related to Visual C# language itself. It most likely related to the bluetooth message transaction protocal or with the device itself.
I'll move your question to [where is this forum for...] forum where the morderator may direct you to the correct forum.
Thanks for your understanding.
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
I can not count the data from the module. Can prompt as it to make. It is desirable with examples (data read-out from the module and data transmission between channels. It is in advance grateful.
Hello. Most of the engineers in developer exchange are more familiar
with NI products. Contacting ICS for technical support is a better
course of action. -
Unfortunately, I lost by an update all the apps on my iPad 2. Now I can not pull the data from the cloud to my iPad. How is this possible?
If you just installed iCloud does that mean you updated the iOS that's running on your iPad? If so, you'll want to restore all the programs you have from the backup you hopefully made.
Refer to these articles for help.
iTunes: Backing up, updating, and restoring iOS software.
If you don't want to use iCloud, simply don't activate it.
You can also download the programs again.
If you live in a country that supports re-downloading apps then you can re-download them. You can refer to this article for more help.
Downloading past purchases from the App Store and iTunes Store
What to know if your country supports downloading past purchases?
iTunes in the Cloud Availability -
Function module to get the dates from the year and the period
Is there a function Module to get the dates from the year and the period
Check with :
To get last day of period use .
LAST_DAY_IN_PERIOD_GET.
To get last of month Use :
RE_LAST_DAY_OF_MONTH
HRVE_LAST_DAY_OF_MONTH
LAST_DAY_OF_MONTHS
ISB_PREVIOUS_PERIOD_DATE_GET
Thanks
Seshu -
PC Sync could not update the data to the mobile ph...
Ok now I am a little annoyed with my Nokia 6680.
For the last four months it has been working fine but all of a sudden it has stopped synching with either of my PC's.
The phone connects ok and I can do file transfers etc however when I try to sync it fails with the message
"The Synchronisation has been Terminated!"
and
"PC Sync could not update the data to the mobile phone."
I updated PC Sync to latest version on both PC's and I have tried cable and bluetooth connections but get the same issue.
In the end I bit the bullet and re-initialised the phone and it began working again.... for three days and then its doing the same thing again. It still connects ok but no sync.
My Laptop is using WinXP SP2 and my home PC is on WinXP SP1.
Anyone able to help with this please, my phone is effectively now a paper weight and I will go back to Pocket PC phones again.Thanks for the tip I had the SAME problem on the 6822 same error. The phone had been fine for a month or so. Then nothing would synch, thought it was the PC fixed / reinstalled the software changes options nothing would work same error.
Read your note, powered down the phone and Bingo all synched fine!
Thanks very much. I'm using a Nokia 6822 -
Unable to create rule Error:Function Module does not meet the workflow conv
Hi Workflow experts,
Could any one help me with rule creation. Below is my Function Module Interface.
""Local Interface:
*" TABLES
*" AC_CONTAINER STRUCTURE SWCONT OPTIONAL
*" ACTOR_TAB STRUCTURE SWHACTOR OPTIONAL
*" EXCEPTIONS
*" NOBODY_FOUND
The function module test is successful with all required conventions for workflow but while i try to create a rule with the funtion module i get the error "Function Module does not meet the workflow conventions"
I Also have included the following in FM
INCLUDE <cntn01>.
Any suggestions would be helpful. Thanks in Advance,
ImranHi,
I am not sure whether the rule accepts the optional flag. Remove the optional flag for the tables parameters and try again. According to the documentation you have implemented the right interface. It might be the issue with the tables parameter being optional.
Hope this helps,
Sudhi -
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
Maybe you are looking for
-
Hi again: I am new to this dual-band wireless stuff in TC having just replaced my AE with a new TC. I have a few questions regarding wireless setup. 1. When selecting the "Radio Mode" you are presented with options like "802.11a/n - 802.11b/g". Does
-
Date format problem in Flat file extraction
My flat file is send date like this DD/MM/YYYY HH:MM:SS how can i extract date and time to my ODS. i need date if posible time in seperate object how can i create my info object and how to map it. Thanks Babu
-
Hello - so far my adjustment brush is having issues engaging. I select the brush, the drop down menu appears, I make my adjustment and nothing registers. I open, close, open, close and open again and sometime it works and sometimes it doesn't. Sugges
-
Why doesn't Photoshop recognize changes made to file in Lightroom?
Hi, I am new to Lightroom and have used Photoshop for many years. I have made many adjustments to a psd file in Lightroom, made sure to save metadata to file... but when I open the file in Photoshop CS6 it reverts to the original version without the
-
Changes to department-approvers in EAM not saved.
Dear friends, I face a peculiar problem in EAM which suddenly sprang up. I am not able to save changes made to department-approvers in EAM. While saving it opens a 'Note' window with an OK button and does not save at all. I would appreciate any help