Exit to create long text of notification by IW31
Hi
We have requirement , where we have to pass some fixed text to notification's long text when notification is being created by TCS service order(Tcode- iw31).
Is there any exit/bapi/ fm to achieve same?
issue is solved.
I had to do implicit enhancement at end of FM ' IQS0_CREATE_NOTIF_TO_ORDER'.
Code is as below.
ENHANCEMENT 1 ZENH_IW31. "active version
* Declaration of local variables, workareas and internal tables
DATA: LTA_LINES TYPE STANDARD TABLE OF TLINE,
LWA_LINES TYPE TLINE,
ltp_zaccesstime TYPE zaccesstime.
IF SY-TCODE = 'IW31'. " Put condition for code
SELECT SINGLE zaccesstime
FROM equi
into ltp_zaccesstime
WHERE equnr = VIQMEL-equnr.
IF sy-subrc Eq 0.
LWA_LINES-TDFORMAT = '*'.
CONCATENATE 'Access Time:' ltp_zaccesstime INTO LWA_LINES-TDLINE SEPARATED BY space.
APPEND LWA_LINES TO LTA_LINES.
CLEAR: LWA_LINES.
ENDIF.
CALL FUNCTION 'IQS0_ADD_NOTIFICATION_LONGTEXT'
EXPORTING
i_qmnum = VIQMEL-QMNUM
* I_POST = ' '
* I_RESET =
tables
t_inlines = LTA_LINES
EXCEPTIONS
SHOW_MESSAGES = 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.
ENDIF.
ENDENHANCEMENT.
Similar Messages
-
Put Fixed guide line in long text of Notification: IW21
Hi,
I have an requirement where I need to put some fixed guide line in the notification long text whenever notification order gets created.
For an example below guidelines need to be incorporated automatically in the long text of notification whenever they get created
Ex:
Long Text Template as follows:
Detailed description of fault:
What caused the fault?
Action taken to date:
Who:
Suggested Repair / resourcec:
Please suggest how can I implement this requirement?
Appreciate your help in advance.
Thanks,
Jay.
Moderator message : Duplicate post locked. Continue with original thread.
Edited by: Vinod Kumar on Sep 14, 2011 11:29 AMHi,
Check the user exit :- QQMA0025 PM/SM: Default values when adding a notification
For wiring into longtext i think u can update via WRITE_TEXT
You should also ensure that this information should not be changed
regards
pushpa -
How to create long text in production order?
Hi,
i have found that i could only change long text in the
production order by 'SAVE_TEXT'.
but i want to create long text and any advice?DATA:TEXT_HEADER LIKE THEAD.
DATA:TEXT_LINES LIKE TLINE OCCURS 0 WITH HEADER LINE.
data: t_ponum like BAPI_ORDER_KEY-ORDER_NUMBER.
t_ponum = '000040000068'.
TEXT_HEADER-TDID ='KOPF'.
TEXT_HEADER-TDOBJECT = 'AUFK'.
TEXT_HEADER-TDSPRAS = sy-LANGU .
CONCATENATE SY-MANDT t_ponum INTO TEXT_HEADER-TDNAME.
clear text_lines.
refresh text_lines.
text_lines-TDFORMAT = '*'.
text_lines-TDLINE = '12567'.
append text_lines.
text_lines-TDFORMAT = '*'.
text_lines-TDLINE = 'lg'.
append text_lines.
text_lines-TDFORMAT = '*'.
text_lines-TDLINE = 'prh'.
append text_lines.
text_lines-TDFORMAT = '*'.
text_lines-TDLINE = 'ueue'.
append text_lines.
CALL FUNCTION 'CREATE_TEXT'
EXPORTING
FID = TEXT_HEADER-TDID
FLANGUAGE = sy-LANGU
FNAME = TEXT_HEADER-TDNAME
FOBJECT = TEXT_HEADER-TDOBJECT
SAVE_DIRECT = 'X'
FFORMAT = '*'
TABLES
FLINES = text_lines
CALL FUNCTION 'SAVE_TEXT'
EXPORTING
CLIENT = SY-MANDT
HEADER = TEXT_HEADER
INSERT = ' '
SAVEMODE_DIRECT = 'X'
TABLES
LINES = text_lines.
CALL FUNCTION 'COMMIT_TEXT'
EXPORTING
OBJECT = TEXT_HEADER-TDOBJECT
NAME = TEXT_HEADER-TDNAME
ID = TEXT_HEADER-TDID
LANGUAGE = sy-LANGU
SAVEMODE_DIRECT = 'X'. -
How can I print long text in Notification
Dear All,
I want to take Long Text of notification in my printout . Please tell me where this is stored and how can I access it as I am unable to find out it in notification table.
RegardsIn the long text screen
Go to header
Here all the details of the text are available. -
Create long text for network activity
Hello,
I'll create a long text for a network activity, but I found no BAPI for that.
When I create long text for an order activity I use the BAPI BAPI_ALM_ORDER_MAINTAIN. There it is possible to specifiy the long text lines.
In the BAPI BAPI_NETWORK_MAINTAIN there ist no table for specifying long text.
Did anyone know how to create a long text for an network activity?Hello Vivek,
I'll tried this too. My problem was, if I add long text to a existing network activity, everything works well. But in my programm I create a new network plan with one network activity (0010). After commit I become the correct network plan number. Then I try to add long text to the network activity. I get correct return codes but if I look in the transcation CJ20N I could not see some text. If I use the READ_TEXT function with the key I insert the text, I see the text, but not with the transaction CJ20N.
I compared the key I used in my program with the key if I insert text with transaction CJ20N. I could'nt found some differences.
SELECT SINGLE afvcp~mandt afvcp~aufpl afvcp~aplzl
INTO (mandant,aufpl,aplzl)
FROM afvcp INNER JOIN
afko ON
afko~mandt = afvcp~mandt
AND afko~aufpl = afvcp~aufpl
AND afko~aufnr = ordernumbernew.
"*Create Identifier
CONCATENATE
mandant aufpl aplzl
INTO lv_name.
header-tdobject = 'AUFK'.
header-tdname = lv_name.
header-tdspras = sy-langu.
header-tdform = 'SYSTEM'.
header-tdid = 'AVOT'.
header-mandt = sy-mandt.
header-TDLINESIZE = '079'.
CALL FUNCTION 'SAVE_TEXT'
EXPORTING
client = sy-mandt
header = header
insert = 'X'
savemode_direct = 'X'
owner_specified = ' '
local_cat = ' '
IMPORTING
function = func
newheader = newheader
TABLES
lines = lines
EXCEPTIONS
id = 1
language = 2
name = 3
object = 4
OTHERS = 5.
CALL FUNCTION 'COMMIT_TEXT'
EXPORTING
OBJECT = header-tdobject
SAVEMODE_DIRECT = 'X'
IMPORTING
COMMIT_COUNT = commit_count
COMMIT WORK AND WAIT.
For example in the debug the header ist filled with:
1 TDOBJECT C 10 AUFK
2 TDNAME C 70 210000044156300000001
3 TDID C 4 AVOT
4 TDSPRAS C 1 D
5 TDTITLE C 50
6 TDFORM C 16 SYSTEM
7 TDSTYLE C 8
8 TDVERSION N 5 00000
9 TDFUSER C 12
10 TDFRELES C 4
11 TDFDATE D 8 00000000
12 TDFTIME T 6 000000
13 TDLUSER C 12
14 TDLRELES C 4
15 TDLDATE D 8 00000000
16 TDLTIME T 6 000000
17 TDLINESIZE N 3 079
18 TDTXTLINES N 5 00000
19 TDHYPHENAT C 1
20 TDOSPRAS C 1
21 TDTRANSTAT N 1 0
22 TDMACODE1 C 16
23 TDMACODE2 C 16
24 TDREFOBJ C 10
25 TDREFNAME C 70
26 TDREFID C 4 4
In CJ20N the header is filled with
1 TDOBJECT C 10 AUFK
2 TDNAME C 70 210000044156300000001
3 TDID C 4 AVOT
4 TDSPRAS C 1 D
5 TDTITLE C 50
6 TDFORM C 16 SYSTEM
7 TDSTYLE C 8
8 TDVERSION N 5 00000
9 TDFUSER C 12
10 TDFRELES C 4
11 TDFDATE D 8 00000000
12 TDFTIME T 6 000000
13 TDLUSER C 12
14 TDLRELES C 4
15 TDLDATE D 8 00000000
16 TDLTIME T 6 000000
17 TDLINESIZE N 3 079
18 TDTXTLINES N 5 00007
19 TDHYPHENAT C 1
20 TDOSPRAS C 1
21 TDTRANSTAT N 1 0
22 TDMACODE1 C 16
23 TDMACODE2 C 16
24 TDREFOBJ C 10
25 TDREFNAME C 70
26 TDREFID C 4 -
Update long text in notification
Hi experts,
I try to update (add next entry) to the long text in notification header. I tried with BAPI 'BAPI_ALM_NOTIF_DATA_ADD' to fill table NOTFULLTXT, but it seems that it can only add an entry and not append another one (one entry already exists). In 'BAPI_ALM_NOTIF_DATA_MODIFY' there is no table NOTFULLTXT. Could you advice me how to do it? Thank you in advance.
BR
PaulJust found something. Have a look at class CL_ILM_BE_WOC, Method NOTIF_TEXT_UPDATE, as they do this here.
-
Create Long Text in MM01 for material
Hi,
I'm trying to create long text in MM01. After entering industry sector and material type and also the necessary views, i hit EDIT --> Long Text , the create text option is greyed out (inactive)..
How can i make this work ? Or is there any other field where i can use long text ?
thank you..Our client's material master data for material text is longer than 40 characters.. and it's impossible for them to reduce this to 40 charac.
So i need to find another field which they can use..
I wonder if i use po text, can i use it for developed reports, in search helps .. etc.. I'm not sure..
And also I have no clue about how will i use the long text in EDIT menu.. -
Empty long text in notification
Hello Everyone,
Here is my problem.
We create a notification via IW21following these steps :
- Fill the mandatory fields
- Fill the Subject LONG Text
- Create the order
After saving the created notification and while trying to display/modify our notification, we find that the LONG Text previously filled EMPTY.
Can you please propose a solution to get the LONG Text once we save the notification?
For you information, I tried the solution Import FROM MEMORY ID 'SAPLSTXD000001' but the customer isn't satisfied with it and wants something more efficient.
Thank you for your help.
KimaHi kima,
I feel this thread has the answer. Long text not saving data
Jogeswara Rao K -
Customer exit to modify long text icon
Hi to all.
as you already know, I'm trying to make a program to modify the icon long text in reference to the number of digits in the long text.
I have found the enhancement SEUMP001 with function exit EXIT_SAPLSMPE_002, I have created the include ZXseuu11 and I have written the follow program:
IF rsmpe-menu = 30 .
rsmpe-icon_id = ' '.
ENDIF.
(that is the nuber of digit in the long text is equal 30 let the icon be blank else let the icon be underlined because in the standard program the icon long text remains blank unless the user write in).
But I receveid the following error when I execute the syntax check:'Field "RSMPE-MENU" is unknown.' Why?How must I write this program in according to the importing structure 'RSMPE-STATUS'? Thanks in advance bye
MaximilianIt looks like the EXIT_SAPLSMPE_002 does not have RSMPE-MENU as an importing parameter, and the value is not available in the program. The only value passed to the FM is OBJECT (RSMPE-STATUS).
You can use the importing parameter instead, as:
IF object = 30.
ENDIF.
Hope this helps.
Sudha
Message was edited by:
Sudha Mohan -
Do I need to call CREATE_TEXT if the Long Text does not exist or does EDIT_TEXT implicitly creates the Long Text?
Should I first Read and if sy-subrc NE 0, then call CREATE_TEXT or what?So you need to call EDIT_TEXT (this fm should save the text by itself) in both situation:
- If the text exist you should read it by FM READ_TEXT and then call EDIT_TEXT (with data from READ_TEXT) and DISPLAY equal to X
- if the text doesn't exit you need to call EDIT_TEXT only, but you need to fill header data (HEADER) by your self
Max -
How to create Long Text in Module Pool Program
Hi all,
I want to develop a new module pool program and I want to use Long text screen in this program and also want this text will store in table.I never develop such type of module pool before.This long text will like sales order long text.Please let me know the steps how I can develop such type of program and how I save long text huge data in table.
Thanks & Regards
NirmalHai ,
here you have to use custom control, for this
DATA: line(256) TYPE c,
text_tab LIKE STANDARD TABLE OF line,
field LIKE line.
1) Create custom control in your screen
2) CREATE OBJECT: container EXPORTING container_name = 'TEXTEDIT', "--> (this is custom control name in screen)
editor EXPORTING parent = container.
3) CALL METHOD editor->get_text_as_stream "This method reads data from custom control , inserts into itab 'text_tab'
IMPORTING
text = text_tab. "
READ TABLE text_tab INTO line INDEX 1. read the text into wa 'line'
if you want more clarity , see 'ABAPDOCU' >ABAP USER DIALOGS> COMPLEXSCREEN ELEMENTS--> DEMO CUSTOM_CONTROL -
Allow modifications over "Long Text" in notifications until it's released
Hi friends!!!
It is possible to allow modifications over field LONG TEXT until the notification is released??, I know you can disable a field in customizing but I don't know how to restrict the action just until the notification is released,
I need your help!!!!!
Thanks so much,
FrineePeculiar - I was just looking at this (for a different problem). Look at OSS note #876698.
Rob -
How to create long text in selectio texts.
Hi,
In Selectio ntexts its allowing me to create upto some 35 charcters. If i want to write more than that, what is the procedure.
Thanks in advance
EswarHi Eswar,
Defin a text and asign to your selection parameters. Text will allow you up to 132 CH.
Ex:
SELECTION-SCREEN BEGIN OF BLOCK SEL01 WITH FRAME TITLE TEXT-001.
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT 1(48) TEXT-007.
SELECTION-SCREEN POSITION 49.
SELECT-OPTIONS : S_PROD FOR AUFK-AUFNR NO INTERVALS.
SELECTION-SCREEN END OF LINE.
Lanka -
Long text indicator against Notification task & SubOrder creation
Hi all,
We are using BAPI_ALM_NOTIF_ADD to create long texts against the notification tasks. Though the long texts are created and can be viewed through IW22, the long text indicator in QMSM table is not set and hence when I display the notification through IW23 and navigate to the tasks, the long text available icon is not displayed. I tried to use CREATE_TEXT and SAVE_TEXT as well. Somehow the long text indicator doesn't get set. Do I need to explicitly set this indicator after the BAPI call? Please provide your valuable inputs.
Also, I have one more issue. Is there a way of creating Sub Order against the PM order through a BAPI? We have a requirement to create a Sub Order against the superior PM order through transaction IW36. Could you please suggest if any of you have come across any BAPI that supports this requirement?
Thanks & Regards,
VidyaI know I am posting answer to very old thread as did not find any answer so far, so giving clue. See if new solution seekers this helps you now…
Cause:
As the create_text or save_text does creation of text at data base level and does not pass through all the screens of the particular transaction, so the text editor icon is not enabled [like in tcode IW23 (IW33) Notification display text editor, tables holding damage text and cause text indicator qmfe-indtx & qmur-indtx I ]
Solution:
Read existing text using FM READ_TEXT i.e. retain existing text in internal table, say IT_READ
Delete existing text using FM 'DELETE_TEXT'. Remember to set save_direct = x
Perform BDC to add dummy text doing call transaction. This will set text indicator to ‘X’.
Append your new ext to IT_READ.
Now create text again using FM 'CREATE_TEXT'. Remember to set save_direct = x
If you have requirement that created text should not be editable then you need to change format of IT_READ.
Like IT_READ-tdformat = ‘>X’ & IT_READ-tdline = ‘*<one space><your text>’ [may use CONCATENATE '*' IT_READ-tdline INTO IT_READ-tdline SEPARATED BY space.].
Below are above steps code snap shots.
Bdc part for IW22
PERFORM bdc_dynpro USING 'X' 'SAPLIQS0' '7200'.
PERFORM bdc_field USING 'BDC_OKCODE' '=TXPS'. "DAMAGE_TXT icon
or PERFORM bdc_field USING 'BDC_OKCODE' '=TXUR'. "CAUSE_TXT icon
Based on your text editor configured to keep track of timestamp log, use one of the option. My case first two lines of text editor shown timestamp log lines and they are non editable.
* PERFORM bdc_dynpro USING 'X' 'SAPLSTXX' '1100'.
* PERFORM bdc_field USING 'BDC_CURSOR' 'RSTXT-TXLINE(02)'.
* PERFORM bdc_field USING 'BDC_OKCODE' '=POSF'.
* PERFORM bdc_field USING 'RSTXT-TXPARGRAPH(02)' '*'.
* PERFORM bdc_field USING 'RSTXT-TXLINE(02)' 'Dummy text for indicator line 2'.
* PERFORM bdc_dynpro USING 'X' 'SAPLSTXX' '1100'.
* PERFORM bdc_field USING 'BDC_CURSOR' 'RSTXT-TXLINE(03)'.
* PERFORM bdc_field USING 'BDC_OKCODE' '=POSF'.
* PERFORM bdc_field USING 'RSTXT-TXPARGRAPH(03)' '*'.
* PERFORM bdc_field USING 'RSTXT-TXLINE(03)' 'Dummy text for indicator line 3'.
PERFORM bdc_dynpro USING 'X' 'SAPLSTXX' '1100'.
PERFORM bdc_field USING 'BDC_CURSOR' 'RSTXT-TXLINE(04)'.
PERFORM bdc_field USING 'BDC_OKCODE' '=POSF'.
PERFORM bdc_field USING 'RSTXT-TXPARGRAPH(04)' '*'.
PERFORM bdc_field USING 'RSTXT-TXLINE(04)' 'Dummy text for indicator line 4'.
PERFORM bdc_field USING 'BDC_OKCODE' '=TXBA'.
FORM bdc_dynpro USING value1
value2
value3.
CLEAR bdcdata.
bdcdata-dynbegin = value1.
bdcdata-program = value2.
bdcdata-dynpro = value3.
APPEND bdcdata.
ENDFORM. " BDC_DYNPRO
form DELETE_EXISTINGTEXT.
CALL FUNCTION 'DELETE_TEXT'
EXPORTING
CLIENT = sy-mandt
ID = LTXT
LANGUAGE = E
name = <notification number + suffix>
– determine from text editor header damage text need suffixed 0001 , cause text need suffixed 00010001
object = QMFE = damage or QMUR = CAUSE
savemode_direct = 'X'
* TEXTMEMORY_ONLY = ' '
* LOCAL_CAT = ' '
EXCEPTIONS
not_found = 1
OTHERS = 2.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
WAIT = gc_x
endform. " DELETE_EXISTINGTEXT
CALL FUNCTION 'CREATE_TEXT'
EXPORTING
fid = LTXT
flanguage = E
fname = <notification number + suffix>
– determine from text editor header damage text need suffixed 0001 , cause text need suffixed 00010001
object = QMFE = damage or QMUR = CAUSE
fobject = QMFE = damage or QMUR = CAUSE
save_direct = x
fformat = ‘>X’
TABLES
flines = t_editor_text
EXCEPTIONS
no_init = 1
no_save = 2
OTHERS = 3.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
wait = gc_x. -
Long Text not transfered from Notification to Order
Hi Experts,
We have 4.6 c version where in the Long Text from Notification created does not gets transfereed to Order if Order is created through Notification.
Does any one knows about any config missing or any note which needs to be applied.
Also if we go for E.C.C 6.0 do we need to maintain the config
Plant Maintenance and Customer Service->Maintenance and Service Processing->Maintenance and Service Order >Functions and Settings for Order Types>Define Notification and Order Integration
instead of or in addition to the config
Plant Maintenance and Customer Service->Maintenance and Service Processing->Maintenance and Service Notifications >Notification Creation>Notification Types-->Assign Notification Types to Order Types
Appreciate your valuable input in this regards
Thanks
ManishHi
These are the some of the notes related to ur issue...
I am not sure its gonna solve... but check it.. u might get some idea
[445628|https://websmp230.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=445628]
[661800|https://websmp230.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=661800]
Pl Note : i think in 4.6c it not available kindly check in Define notification and order data in one screen whether option is available or not
- Pithan
Maybe you are looking for
-
Hi All, I have an excel file in a sharepoint which I can read using ALSM_EXCEL_TO_INTERNAL_TABLE. The problem is that I need to run the ABAP program that reads this file in background. Unfurtunately ALSM_EXCEL_TO_INTERNAL_TABLE is not designed to r
-
Workflow Approval Configuration
Hi all, we are implementing ESS/MSS on ECC5.0,EP6 and I am having difficulty in implementing the PCR workflow with approval step of 1 and 2 approvers. please provide me some link or documentation about the configuration steps to be done. Need help on
-
What is a tracking cookie as opposed to a normal one on the hard drive. I tried a trial MacScan and it found a few and I'm wondering if it would be wise to buy the program or just not worry about it? Thanks for any help. Rich
-
Hi guys, I have a Windows 7 ISO copied from my original Windows 7 CD. I have alot of blank CD's and i had a few questions. 1. Is it necessary to back up my Macintonish HD drive? 2. Should i be concerned about boot up's? Because, every now and then, w
-
I have a virus in my MacBook Pro. I can't open my Facebook account because this virus may take my passwords how can i solve this problem? Thanks.