To update Longtext in QP03
Hi,
I am saving the long texts for Inspection Characteristics using SAVE_TEXT.
The Text is getting saved but i am not able to see it in Display (QP03).
Inorder to solve the issue I am updating a field LTEXTZ in PLMK table manually using UPDATE SET.
But now the user wants to run this program online with 10,000 records, which is giving a time out issue.
Can we run that many records in Online??
If so, Please let me know the optimisation technique, so that the requirement can be met.
Thanks,
Priyanka
Get the selectionModel for the JTable and add a ListSelectionListener to it. The listener is notified for changes in the row selctions in the table. You can use JTable methods inside the listeners valueChanged method to get the information you need to update your JTextArea.
Similar Messages
-
SRM POWL - How to add/update longtext (internal note) of invoice
created powl for mass approval/rejection of invoice
For Rejection 'm adding 'reason for rejection' & 'internal note' fields
Which i need to update in invoice --> notes & attachment --> 'reason for rejection' & 'internal note'
I am doing it as --
TRY.
CALL METHOD lo_pdo_notes->add_longtext
EXPORTING
iv_p_guid = i_guid
iv_tdid = 'NOTE'
iv_tdspras = sy-langu
iv_tdformat = 'X'
iv_text_preview = 'Internal Note'
CHANGING
co_message_handler = lr_message.
CATCH /sapsrm/cx_pdo_abort .
ENDTRY.
TRY.
DATA text_id TYPE tdid VALUE 'RREJ'.
CALL METHOD lo_pdo_notes->add_longtext
EXPORTING
iv_p_guid = i_guid
iv_tdid = text_id
iv_tdspras = sy-langu
iv_tdformat = 'X'
iv_text_preview = 'Price Difference' " drop down value
CHANGING
co_message_handler = lr_message.
CATCH /sapsrm/cx_pdo_abort INTO lx_abort .
* mo_cll_message_handler->set_a1bort( io_pdo_abort_exception = lx_abort ).
ENDTRY.
But message handler is returning Initial value - & 'm unable to update it in invoice...
Can you help ??Thanks Pedro & Pradeep. I understand now how to add fields to SRM. Appreciate all your support. I have another question. I have to add fields to the following structures. Some structures have include structures and some does not. How to add fields which does not have include structures. Do I have to create my own Z include structure or any other way?
Table include structure
1) BBP_PDIGP CI_BBP_ITEM
2) BBP_PDHGP CI_BBP_HDV
3) BBP_PDHSB <NONE>
4) CRMD_ORDERADM_H INCL_EEW_ORDERADM_H
5) CRMD_ORDERADM_I INCL_EEW_ORDERADM_I
6) BUT000 INCL_EEW_BUT000
7) BBP_PDPSET <NONE>
8) ADDR3_DATA <NONE>
9) BBP_PDISS INCL_EEW_PD_ITEM_SSF
Look forward to hear from you.
Thanks,
GS -
Longtext update by using save_text F.M
Hi All ,
I am updating longtext using F.M save_text the problem is
my longtext is in the form longtext type c length 1000.
Now how do i split this longtext such that i can pass the data in save_text.
the parameter TDLINE is only 132 character.
i tried using F.M tr_split_text at 132 char but the input parameter of this F.M can only take data of certain
length
Do any bdy know hw to go about it?
Regards
BhanuHi,
If your long text is in multiple lines of an internal table use the below code and take the text into some string varaible (lv_text_string here).
Concatenate the text into a string variable
LOOP AT lt_lines INTO lw_lines.
CONCATENATE lv_text_string lw_lines-tdline INTO
lv_text_string SEPARATED BY space.
CLEAR : lw_lines.
ENDLOOP.
Split the text into 132 char lines
CALL FUNCTION 'RSDG_WORD_WRAP'
EXPORTING
textline = lv_text_string
delimiter = space
outputlen = 132
IMPORTING
out_line1 = lv_outline1
out_line2 = lv_outline2
out_line3 = lv_outline3
TABLES
out_lines = lt_text_lines
EXCEPTIONS
outputlen_too_large = 1
OTHERS = 2.
Now use lt_text_lines for calling save_text FM. (Here lt_text_lines should be delared as an internal table of char132).
Hope this helps you !!!
Regards,
Ganga -
Hello Experts,
I am using RFBIBL00 program to post documents through FB01.
I have a requirement to update longtexts.
I updated BBKPF, BBSEG structures and wrote to a file which is the input for the program RFBIBL00.
Everything is working fine but i could not able to find the way to update the long text.
Please guide me how to deal with this issue.
I seen some posts for this type of issues but no where I got solution.
Thanks in Advance,
VenkatSince there is no option in RFBIBL00, I have developed a program separately using Save_text and run the program take text from flat file and create long text
-
Hello,
we are working on a process to download longtexts from one system and to upload into another system to add missing long text there for different objects.
We are using SAVE_TEXT and it is working fine for documents in DRAW/DRAT.
Here we got what we expected. Long texts are uploaded and can be edited in the
transaction CV02N.
But then we started with material and with BOMs (bill of material).
Result of upload:
STXH is filled with entries but in MM02 and CS02 we cannot see the added long texts.
Seems that the connection between material and bom and their texts is missing.
For BOM we are not totally wrong. If there is a longtext in the BOM we can add longtext (we READ_TEXT the existing longtext and add our text. Then we do a update) and can see the added longtext in CSxx transactions.
But if there is only a short text, our insert via SAVE_TEXT is not working.
Is there something we are doing wrong or don´t we understand something?
Any help is appreciated.
Best regard
DirkHello Naren,
oh, this answer was bringing light into my confusion.
My problem is that there will be some import files with any long text for any object in R/3 like
material with x textids , bom, equipment etc...
Is there any chance to find out easily which text object combination with textid belongs to a specific long text. The TTXID table is only a listing w/o any explanantion???????
Update longtext in BOM header -> set STZU-LTXSP
Update longtext alternative in BOM header -> set STKO-LTXSP
Update longtext in BOM position -> set STPO-LTXSP
And what is the text ID DPO for?
My other problem now is with Material long text import.
I checked the SDN threats but could not find the answer.
This is my abap that is not running for material.
I can see the long text entries from READ_TEXT, but not in STXH and STXL.
zs_textline_c [ ] = zs_textline_b [ ] .
CALL FUNCTION 'INIT_TEXT'
EXPORTING
id = wa_header-tdid
language = wa_header-tdspras
name = wa_header-tdname
object = wa_header-tdobject
IMPORTING
header = wa_header_b
TABLES
lines = zs_textline_c
EXCEPTIONS
id = 1
language = 2
name = 3
object = 4
OTHERS = 5.
IF sy-subrc <> 0.
ENDIF.
CALL FUNCTION 'SAVE_TEXT'
EXPORTING
client = sy-mandt
header = wa_header_b
insert = 'X'
savemode_direct = 'X'
owner_specified = 'X'
local_cat = ' '
IMPORTING
function = l_result
NEWHEADER =
TABLES
lines = zs_textline_b
EXCEPTIONS
id = 1
language = 2
name = 3
object = 4
OTHERS = 5
IF sy-subrc <> 0.
ENDIF.
CALL FUNCTION 'COMMIT_TEXT'.
COMMIT WORK.
Your help is welcome!
Best regards
Dirk
Edited by: Dirk Meinhard on Mar 31, 2009 4:33 PM -
How can I send an update to CRM Middleware after changing BUPA longtext
Hi folks,
I am looking for the easiest way to send an update/insert of BP longtext change to SAP CRM Middleware (& MobileSales). I have implemented save of the text with function save_text within of a CRM application for changing bp data.
Text is available to standard CRM transaction bp, but now updates have been send to subscribed Mobile Sales clients.
I have already checked the bapi_bupa* functions, but it seems that they contain no notes/longtext segment.
Thanks for any help.
DanielHi Daniel,
just wondering if you had a solution for this as I have the same issue to solve as well.
thanks, regards. -
Hi,
we are using in LSMW CRMXIF_PARTNER_SAVE for updating long texts on business partner (bp).
it works, but alreadyexistent_ long texts on bp will be overwritten by LSMW
(so we lost them!).
Have anybody a hint how to avoid this?
We need an update(=append) without loosing existent data.
It seems to be a bug in LSMW CRMXIF_PARTNER_SAVE?
thanks,
AlexDear Alexander,
There is no bug here. LSMW is actually a recording tool. So which ever fields you have selected will get recorded. I guess you have run the same in background and found all existing data getting overwritten too.
Now the best way to solve this problem is to get the help of the ABAP person.
In LSMW there is a place where we can write an ABAP code.
There we should request the ABAP person to write a code for the field Long Text that if Value="Null" then to get the value from the tab delimited file else if value is not null then it will jump to the next recording element.
Please try this out. It works.
Regards,
Anirban -
Longtext update on BusiPartner via LSWM
Hi,
we are using in LSMW CRMXIF_PARTNER_SAVE for updating long texts on business partner (bp).
it works, but alreadyexistent_ long texts on bp will be overwritten by LSMW
(so we lost them!).
Have anybody a hint how to avoid this?
We need an update(=append) without loosing existent data.
It seems to be a bug in LSMW CRMXIF_PARTNER_SAVE?
thanks,
AlexDear Alexander,
There is no bug here. LSMW is actually a recording tool. So which ever fields you have selected will get recorded. I guess you have run the same in background and found all existing data getting overwritten too.
Now the best way to solve this problem is to get the help of the ABAP person.
In LSMW there is a place where we can write an ABAP code.
There we should request the ABAP person to write a code for the field Long Text that if Value="Null" then to get the value from the tab delimited file else if value is not null then it will jump to the next recording element.
Please try this out. It works.
Regards,
Anirban -
hi all
In transaction me61, there is a text tab in the toolbar.
this follows to a page where we can enter evaluate a vendor based on conditions defined.
The text entered is a longtext, my requirement is to catch this text. I checked tables CDPOS - which has stored my change but has failed to store text.
I came to know that SAP does not store longtext for all changes but only the last one, which i am able to get via FM READ_TEXT (returns current entry).
Any suggestions or corrections to my conclusion are welcome.
Thankx in advance for ur help.hi ravi
Thanks for your reply. I have already got the text using READ_TEXT. I just wanted to get the history of changes to the text.
That is once i change it, i need the new text which of course i can get using the FM, i also need the old one. I checked CDPOS table which stores my change but not the texts invloved in the change.
I believe in that case the FM could not be used for as the object text-name remain the same, u just getting what the text is now present.
I also checked for user-exists if i could trigger saving the old one before updating the new one but found none.
Thanks. looking fwd for your reply -
Planner group is not updated in service notification using BAPI
Hi,
Planner group is not updated in service notification using BAPI BAPI_ALM_ORDER_MAINTAIN.
I have written the below code, but planner group is not updated in the service notification.
Please advice which parameters do i need to pass to update planner group in the service notification.
wa_methods-refnumber = '000001'.
wa_methods-objecttype = 'PARTNER'.
wa_methods-method = 'CREATE'.
wa_methods-objectkey = wa_subscr1-aufnr.
APPEND wa_methods TO i_methods.
wa_methods-refnumber = '000002'.
wa_methods-objecttype = 'HEADER'.
wa_methods-method = 'CREATE'.
wa_methods-objectkey = wa_subscr1-aufnr.
APPEND wa_methods TO i_methods.
wa_methods-refnumber = '000000'.
wa_methods-objecttype = ' '.
wa_methods-method = 'SAVE'.
APPEND wa_methods TO i_methods.
REFRESH i_partner.
CLEAR wa_partner.
wa_partner-orderid = wa_subscr1-aufnr.
wa_partner-partn_role = 'VW'.
wa_partner-partn_role_old = ''.
wa_partner-partner = wa_subscr1-parnr.
wa_partner-partner_old = ''.
APPEND wa_partner TO i_partner.
REFRESH i_planrgrp.
CLEAR wa_planrgrp.
wa_planrgrp-orderid = wa_subscr1-aufnr.
wa_planrgrp-plangroup = wa_subscr1-ingpr.
APPEND wa_planrgrp TO i_planrgrp.
REFRESH i_planrgrp_up.
CLEAR wa_planrgrp_up.
wa_planrgrp_up-orderid = wa_subscr1-aufnr.
wa_planrgrp_up-plangroup = 'X'.
APPEND wa_planrgrp_up TO i_planrgrp_up.
*----Change order details with Technician name
CALL FUNCTION 'BAPI_ALM_ORDER_MAINTAIN'
TABLES
it_methods = i_methods
it_header = i_planrgrp
it_header_up = i_planrgrp_up
it_partner = i_partner
return = i_return.
Thanks & regards,
KrishnaTry this way
CALL FUNCTION 'BAPI_SERVNOT_CREATE'
EXPORTING
* EXTERNAL_NUMBER =
notif_type = 'S3'
notifheader = ls_notif_h
* TASK_DETERMINATION = ' '
* SENDER =
* ORDERID =
IMPORTING
NOTIFHEADER_EXPORT = ls_notif_e
TABLES
* NOTITEM =
* NOTIFCAUS =
* NOTIFACTV =
* NOTIFTASK =
* NOTIFPARTNR =
* LONGTEXTS =
* KEY_RELATIONSHIPS =
return = lt_return
* IF lt_return IS INITIAL. " <<< Comment this lie
read table lt_return into ls_return with key type = 'E'. " << Change
if sy-subrc ne 0. " << Change
COMMIT WORK AND WAIT.
write: / ls_notif_e-NOTIF_NO.
ELSE.
LOOP AT lt_return INTO ls_return.
WRITE:/ 'errors'.
* ls_return.
ENDLOOP.
endif.
a® -
Error when copying update rules!!!
Hello All,
I am trying install 0SD_C03 from business content, however I am getting following error. Cube got installed properly.
Error when copying update rules
Patch levels are
SAP_BW - 0014
BI_CONT - 0005
Please help me in solving this error.
Regards,
PNKHi,
The error message show as below. There is no longtext
Error when copying update rules
Message no. RSAU457
But, when I installed FI-AP cubes, update rules are installed without any error. Is there any settings differs from FI to logistics datasources?
Regards,
PNK -
Updation/Creation of service notification
I want to create a service notification using transaction iw51& iw52. The notification has a few custom fields to be updated I am using BAPI_SERVNOT_CREATE to create the notification but i am not able to update the custome fields the BAPI doesnot have Extension_In/Extension_out fields also. I have tried using BAPI_ALM_NOTIF_DATA_ADD , BAPI_SERVNOT_MODIFY_DATA , BAPI_SERVNOT_ADD_DATA these too have the same issue. I want to know the BAPI which can be used for updating the custom fields
I am prefering to use BAPI instead of BDC.
Kindly Respond urgently.
Thanks.Hi Ayushi,
In the Include MV45AFZZ you need to write you code.
First check for whcih service notification. I mean Notification Type.
Then use you BAPI if it is correct for the notification type.
CALL FUNCTION 'BAPI_ALM_NOTIF_CREATE'
EXPORTING
notif_type = p_header-tables-mnmisc-notif_type
notifheader = p_header-tables-mnhead
task_determination = p_header-tables-task_determination
orderid = p_header-tables-mnmisc-orderid
IMPORTING
notifheader_export = l_head
TABLES
notitem = l_it_item " Since you dont have any items to create leave it blank.
notifcaus = l_it_caus " Since you dont have any causes to create leave it blank.
notifactv = l_it_act " Since you dont have any activities to create leave it blank.
notiftask = l_it_task " Since you dont have any tasks to create leave it blank.
notifpartnr = l_it_part "etc ditto
longtexts = l_it_text
return = l_it_return.
read table it_return index 1 / read table it_return TYPE = 'S'
if sy-subrc = 0.
lv_notNumber = MESSAGE_V1 / MESSAGE_V2 .
message 'Notification created' with lv_notnumber type 'S'.
endif.
The above logic is a Psuedo or a hint only. Hope this helps.
Thanks & regards,
Bhargav.
Finally in the user exit give the message -
Work Manager 6.2 (CS) - Longtext not set for multiplie Notification Activities
Hi all,
I am trying to post multiple activities, each with its own long text from the work manager. The thing is that only the first activity will have the long text. While debugging /SYCLO/IF_CORE_DO_HANDLER~CREATE (/SMERP/CL_CS_NOTIFICATION_DO), I found a curious piece of code, that basically does the following:
Loop over activities (outer loop)
Get a fresh sort number
Loop over long texts (inner loop)if the long text sort number matches the activity sort number (the activity from the outer loop)
then replace the long text sort number by the fresh sort number and remove the long text from the list of long texts and copy its values to another list
else remove the long text from the list of long texts and copy its values to another list
replace the activity sort number (the activity from the outer loop) with the fresh sort number
What happens with multiple activities is that in the inner loop, all the long texts are removed from the list of long texts (even those that are matching the second, third, ... activity in the activity list). Therefore, only for the first activity, long texts are added. Did anyone else encounter this problem (if this is working for anyone, could you provide me with your BAPI parameters)? Any idea on what SAPWM-911 is about (would it be safe to get rid of that part)?
LOOP AT me->tab_notif_activity ASSIGNING <notif_activity>.
ADD 1 TO lv_sort_no.
LOOP AT lt_notif_longtext INTO ls_notif_longtext WHERE objtype = lc_ltext_notif_activity.
lv_index = sy-tabix.
IF ls_notif_longtext-objkey+4(4) = <notif_activity>-act_sort_no.
ls_notif_longtext-objkey+4(4) = lv_sort_no.
APPEND INITIAL LINE TO me->tab_notif_longtext ASSIGNING <notif_longtext>.
MOVE-CORRESPONDING ls_notif_longtext TO <notif_longtext>.
DELETE lt_notif_longtext INDEX lv_index.
"<--Ins 332_700 SP1 - SAPWM-911 - Start
ELSE.
"Check for remaining longtext rows not matching with parent table
"is considered as update to the existing activity notes
APPEND INITIAL LINE TO me->tab_notif_longtext ASSIGNING <notif_longtext>.
MOVE-CORRESPONDING ls_notif_longtext TO <notif_longtext>.
DELETE lt_notif_longtext INDEX lv_index.
"<--Ins 332_700 SP1 - SAPWM-911 - End
ENDIF.
ENDLOOP.
<notif_activity>-act_sort_no = lv_sort_no.
ENDLOOP.
Thanks in advance for any contribution to this problem.
Regards, DanielHi Daniel,
I would suggest you raise an OSS message to get this fixed if you believe its bug.
With Regards
Murali -
Update Time confirmation and Long text of Work Order in single FM or BAPI
Hi,
I would like to know, which standard FM or BAPI will update the longtext along with the confirmation text while doing the time confirmation of a work order.
I have tried with standard BAPI BAPI_ALM_CONF_CREATE for updating the time confirmation. This is updating the time and confirmation text properly but not the long text. I would like to know how can I update the long text while doing the time confirmation. Is there any other standard FM/BAPI will update both?
Thanks in Advance,
Mohan.There is no standard SAP enhancement we can use for this purpose.
We have developed another program to maintian the long text in production order.
This call can be closed.
Cheers,
Qiang -
BAPI_SERVNOT_ADD_DATA-update long text of activities in Change Notification
Hi All,
I am trying to use this "BAPI-BAPI_SERVNOT_ADD_DATA" call to change a Service Notification.
The partners,activities get updated. I am unable to update the long text of each of the actvities item.
I am using the following code to update the longtext.
Defects/activities table
data: activities like table of bapi2080_notactvi with header line.
long text table
data: longtext like table of bapi2080_notfulltxti with header line.
*partnr table
data: notifpartnr like table of bapi2080_notpartnri with header line,
longtext-objtype = 'QMFE'.
longtext-objkey = activities-act_sort_no.(item # of the activity)
longtext-format_col = 'U1'.
longtext-text_line = zwin-misc_text1.
append longtext.
longtext-format_col = 'U1'.
longtext-text_line = zwin-misc_text2.
append longtext.
longtext-format_col = 'U1'.
longtext-text_line = zwin-misc_text3.
append longtext.
call function 'BAPI_SERVNOT_ADD_DATA'
exporting
number = zwin-qmnum
I_BAPI = ' '
IMPORTING
NOTIFHEADER =
NOTIFHDTEXT =
tables
notfulltxt = longtext
NOTITEM =
NOTIFCAUS =
notifactv = activities
NOTIFTASK =
notifpartnr = notifpartnr
KEY_RELATIONSHIPS =
return = lt_return
Any help appreciated.
Thanks
MalaHi Neil,
Thanks for the update. The issue has been resolved.
The BAPI- 'BAPI_SERVNOT_ADD_DATA' cannot be used to update the item long text. (activities long text ) . The length of the object key is only 8 characters.
I used the following function module('IQS0_ADD_ACTIVITY_LONGTEXT') to update the item>>activties>> long text after the BAPI call to 'BAPI_SERVNOT_ADD_DATA' .
data: v_line like table of tline with header line.
call function 'IQS0_ADD_ACTIVITY_LONGTEXT'
exporting
i_qmnum = wa_qmnum
i_manum = wa_item_no
i_post = 'X'
I_RESET =
tables
t_inlines = v_line
EXCEPTIONS
SHOW_MESSAGES = 1
OTHERS = 2
The call to 'BAPI_SERVNOT_ADD_DATA' took care of all changes to the Notification except the update of the item>> long text. After committing this transaction, I did a BAP call to 'IQS0_ADD_ACTIVITY_LONGTEXT' to update the item>>actvities>>long text.. This has been working fine and is currently in productin.
Appreciate all your feedback .
Thanks
Mala
Maybe you are looking for
-
How do I find iclouds music on my macbook pro?
I just put 23,000 + songs in icloud from my PC, now I want to get them from my new macbook pro, how do I do that?
-
I recently updated to OS 6 and since then I cannot use BB Apps World. I tried re-downloading it and I keep getting a message that my operating system is unsupported. Any idea what the problem is?
-
VPRS price needs to be same in invoice
Hi Folks, I had created sales order on 25.01.2011 and created invoice on today...the cost price for material X on 25.01.2011 is RS 10 but today CP is RS 15 as default system pick the current price as CP but my requirement is should pick the CP rs 10
-
I do not understand a simple concept on Motion
I hate to admit it, but I just can't understand this concept. All I want to do is use the red button (keyframe record) to move a simple graphic. Say my timeline is 10 seconds. I just want to move an element from the middle to the lower left. But, I d
-
Greetings, could you please tell me if you know about the call logs software which be able to shows the recent call logs? thank you.