Activity long text
Dear All,
In notification updating I need to fill Activity long text through BAPI function module in that BAPI I have parameters like 1. Object type, 2. Object Key, 3. Format column and 4. Long text. If enter all fields also it will not get updated. can you give me suggestion
Thanks and regards,
Krish.....
Currently i am using BAPI_ALM_NOTIFY_DATA_ADD
BAPI_ALM_NOTIFY_SAVE
BAPI_TRANSACTION_COMMIT.
It is adding a activity but long text is not getting updated.
Similar Messages
-
Activity Long Text from Service Notification
Hi,
We are designing a report to fetch some fields from the service notification. I am not able to get 2 fileds which are 'Notification Long Text' and 'Activity Long Text'. Can anyone help us to find out how we can bring these fields into the report?
(I can get activity text from table QMMA, but from where can I get activity long text?)
Please let us know the table names or any fucntional module to fetch these field values?
Regards,
SAMHi,
Thank you very much for your input.
I need to get the notification Activity Long Text .So which are the following parameters I need to pass to the FM READ_TEXT?
Text Name : ?
Language : EN
Text ID : ?
Text Object : ?
Please let me knowfrom where and what values I need to pass to the fileds Text name, Text ID and Text object?
Regards,
SAM -
Activity Long Text from the Notification
Hi,
We are designing a report to fetch some fields from the service notification. I am not able to get 2 fileds which are 'Notification Long Text' and 'Activity Long Text'. Can anyone help us to find out how we can bring these fields into the report?
(I can get activity text from table QMMA, but from where can I get activity long text?)
Please let us know the table names or any fucntional module to fetch these field values?
Regards,
SAMHi,
The same question i think
Language->EN, Text ID:- LTXT ,Text Object : QMMA , Name :- I think starting with 001Notification Number0001
But the simple way to identify all these are , open IW22 -> Open that Activity Longtext and goto menu ->Header -u will find Text Header details ..
Hope this helps u
regards
pushpa -
Can someone please explain how to add activity long text in the notification?
Currently i am using BAPI_ALM_NOTIFY_DATA_ADD
BAPI_ALM_NOTIFY_SAVE
BAPI_TRANSACTION_COMMIT.
It is adding a activity but long text is not getting updated.
thanks and regards,
Krish...Hi Krish,
As suggested by Max as well.. You can use NOTFULLTXT (Present under TABLES)
Declare the internal table of type BAPI2080_NOTFULLTXTI
Fill the values for
OBJTYPE
OBJKEY
FORMAT_COL
TEXT_LINE 132 Chars Only "
and
Append the lines to this internal table then pass it in BAPI BAPI_ALM_NOTIF_DATA_ADD
But Take care as same as SAVE_TEXT ...
Here TEXT_LINE is of length 132 Char...
So if your Long text is having more length then split it in 132 chars and then append one by one to internal table and then pass it to BAPI as internal tabl...
Hope it will solve your problem..
Thanks & Regards
ilesh 24x7
ilesh Nandaniya -
Service / Material Long text Repetation in PO Print,
Dear ALL,
I have a requirement where in the Service activities do have a Long text going up to 1 or 2 paragraphs, these long text gets printed in the POs getting created using this service activities,
but we mainly have many service activities having the same long text description, so when i use these 5-6 service activities in the PO, the service activity long text gets repeated 5- 6 times in the POs, it is filling the PO print page,
can we have a check to restrict PO long text appearing in PO print so that it is not repeated, can we have a check and option to choose which text from Service activity to appear and which can be restricted, any check or tick box which allows to have or not have a specific Service / Material master basic data Long text in print outs.
alternatively can we maintain Long Text at Material Groups level or is there any way to maintain and bring Long texts inside POs
Thanks and regards
S Kumar
Edited by: KumarSAP&SAP on Aug 23, 2011 10:38 AMHi Kumar,
Chek with your ABAPer to achieve the Requirement , I think most of requirement can be achieve through the form set up
But i doubt that you can maintain the long text in Material group level -
Long Text at Activity Level in CJ20N
Hi all,
So, I have a typical newbie question. But somehow Im unable to find an answer to this query even by searching.
I need to print the Long Text Tab at the Activity Level (not at Project/WBS/Network level) in CJ20N using the Read_Text Function Module.
Just need info on what's the ID, Object, Name etc.
pkDzed,
Thanks for that valuable tip. That was exactly what i was looking for.
But unfortunately, my internal table is not getting updated even though im able to input the right parameters to the Function Module.
Here's what I've done:
DATA: BEGIN OF ist_lines OCCURS 0.
INCLUDE STRUCTURE TLINE.
DATA: END OF ist_lines.
select mandt
aufpl
aplzl
ltxa1
vornr
objnr
projn
from afvc into corresponding fields of table ist_afvc
for all entries in ist_prps
where projn = ist_prps-pspnr.
loop at ist_afvc into wa_afvc.
concatenate wa_afvc-mandt wa_afvc-aufpl wa_afvc-aplzl into wa_afvc-con3.
modify ist_afvc from wa_afvc.
endloop.
break br_abap1.
loop at ist_afvc into wa_afvc.
CALL FUNCTION 'READ_TEXT'
EXPORTING
* CLIENT = SY-MANDT
ID = 'AVOT'
LANGUAGE = 'E'
NAME = 'WA_AFVC-CON3'
OBJECT = 'AUFK'
* ARCHIVE_HANDLE = 0
* LOCAL_CAT = ' '
* IMPORTING
* HEADER =
TABLES
LINES = ist_lines
EXCEPTIONS
ID = 1
LANGUAGE = 2
NAME = 3
NOT_FOUND = 4
OBJECT = 5
REFERENCE_CHECK = 6
WRONG_ACCESS_TO_ARCHIVE = 7
OTHERS = 8
IF SY-SUBRC <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
endloop.
Im able to pass the right value for the variable 'WA_AFVC-CON3', but unfortunately the Internal table is not updated.
I know Im missing something here, but obviously Im too blind to notice that.
pk -
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 -
Activating Subscript For Inspection characteristic Long Text in T-code QE11
Hello All
I have maintained the inspection characteristic long text in QP01 as " H2O" where 2 is in Subscript.
No when I see the inspection characteristic long text in T-Code (QE11, QE12 & QE13) it appear as (H2O) & here "2" is not shown in the subscript.
So please tell how can we activate subscript for T-Codes (QE11,QE12 & QE13) so that it is displayed correctly.
Regards
Rahul BhardwajHello All
can anyone please help me out on this. I am there must be a solution for the same. -
Error while uploading Long Text in IA05 through BDC.
Dear Team,
Good Day.
While we are trying to upload the Long Text through BDC for IA05 operations the text is updating in Database but it is not visible in the long Text field. Is it possible to upload the long text through BDC or any bapi's which can be used for the same. Any configuration needed for this please do the needful.
Regards,
Bhanu.Bhanu,
I've modified the previous message with a correction that, I had used this for uploading Activity lines Longtexts.
One more thing: After I faced some problem, I used split text in the code. i.e., Splitting the longtext into several lines (72 char each). Show these code lines to your ABAPer, may be he might be able to draw some clues.
In the BDC lines alongwith other fields the gold line below
PERFORM FILL_BDC_DATA USING ' ' ' ' ' ' 'BDC_OKCODE' '=MX07'.
PERFORM FILL_BDC_DATA USING ' ' ' ' ' ' 'BDC_CURSOR' 'QMICON-LTAKTION(07)'.
PERFORM FILL_BDC_DATA USING ' ' ' ' ' ' 'VIQMMA-MATXT(07)' FS_FIELD-MNTXT7.
PERFORM SPLIT_LONGTEXT USING COL_COUNT.
Code for Form SPLIT_LONGTEXT is attached herewith (MATXT1 to MATXT7 are longtext split into 7lines )
Best of luck
KJogeswaraRao -
How to download and upload long text for project, WBS , Network,
Hi all,
I have two isssues.
1) I am extracting Projects, WBS , Network , Network activity and network activity element from a SAP 4.7 system using bapi's
BAPI_PROJECTDEF_GETDETAIL
BAPI_PROJECT_GETINFO
BAPI_NETWORK_GETINFO
BAPI_BUS2054_GETDATA
I am able to get all the details except long text. I want to know how do i extract the long text other than getting it manually by using select_text and Read_text Function module, is there any bapi to achieve this.
The reason why i am not using Function modules Read_text and Write_text is, object name( TDNAME ) value stored in STXH table for project, wbs and network are the project, wbs and network itself so i dont have any issues with this but the TDname value for activity and activity element are completely different ( Routing number and counter is stored respectively ) which i am not getting as the part of the bapi(BAPI_NETWORK_GETINFO) output.
2) I have to upload the extracted Project and it sub object data to ECC 6.0 system , i am able to achieve this by using BAPI's BAPI_PROJECTDET_CREATE, BAPI_PROJECT_MAINTAIN and BAPI_NETWORK_MAINTAIN. I am not able to load the longtext for the same, is there any way to load the long text .
All help will be greatly appreciated and rewarded.
Thanks & Regards,
Rajanidhi Rajasekeran.I don't think there is any BAPI to do it.
We are doing it by read_text & edit_text . required fields for text name can be fetched by following select
if not e_activity[] is initial.
select aaufnr aaufpl baplzl bobjnr b~vornr
into corresponding fields of table t_longtext
from afko
as a
left join afvc
as b
on aaufpl = baufpl
for all entries in e_activity
where a~aufnr = e_activity-network
and a~aufnr is not null.
endif.
txtname = wa_longtext-objnr.
replace c_nv in txtname with sy-mandt. -
G/L Account Long Text Field in Display
Dear Sir,
I want G/L Account long text field be displayed along with G/L account number in G/L Account line item display report (FBL3N)
I cheched the layout, the option of G/L account number is available but option of G/L account Long text is not available.
Kindly guide me as to how can I do it?
Regards
Chirag ShahYou must do some development for it.
You can add additional field to FBL*N reports with using BTE exit.
First of all, if you don't use BTE before, you must create a product on FIBF.
Call FIBF transaction -> Settings -> Products -> ...of a customer
Create a new line,
Product: ZFI
Text: BTE Products for FI Exit
Product active: tick checks from activation.
Then you must call SE11 for structure RFPOS.
You must use append structure function for this structure and you can define ZFI_RFPOS append structure
Define 4 fields.
Component: KUNNR - Component type: KUNNR
Component: NAMED - Component type: NAME1
Component: LIFNR - Component type: LINFR
Component: NAMEK - Component type: NAME1
Then save and active your RFPOS structure.
After that, you must do same step for structure RFPOSX.
Then go to SE37 and copy from SAMPLE_INTERFACE_00001650 to ZFI_INTERFACE_00001650 FM.
After copy action, you must uncomment this line on ZFI_INTERFACE_00001650 FM's source code. It's very important;
E_POSTAB = I_POSTAB.
Then you should add some ABAP code for getting customer & vendor details.
I give you some examples, you can use it. (Next message on this thread, please check)
Then save and active FM.
Call FIBF transaction again.
FIBF -> Settings -> Process Modules -> ...of a customer
Define a new line.
Process: 00001650
Function Module: ZFI_INTERFACE_00001650
Product: ZFI
and this customizing.
Then you go to SE38 transaction.
start report RFPOSXEXTEND. After starting, a pop-up appears, you must click YES.
After those operations, you can see customer/vendor code and their names on FBL3N.
ABAP source example,
TABLES : bseg, kna1, lfa1.
IF sy-tcode = 'FBL3N'.
CLEAR: bseg.
SELECT SINGLE *
FROM bseg
WHERE bukrs = i_postab-bukrs
AND belnr = i_postab-belnr
AND gjahr = i_postab-gjahr
AND koart = 'K'.
IF sy-subrc EQ 0.
e_postab-lifnr = bseg-lifnr.
CLEAR: lfa1.
SELECT SINGLE *
FROM lfa1
WHERE lifnr = bseg-lifnr.
IF sy-subrc EQ 0.
e_postab-namek = lfa1-name1.
ENDIF.
ENDIF.
CLEAR : bseg.
SELECT SINGLE *
FROM bseg
WHERE bukrs = i_postab-bukrs
AND belnr = i_postab-belnr
AND gjahr = i_postab-gjahr
AND koart = 'D'.
IF sy-subrc EQ 0.
e_postab-kunnr = bseg-kunnr.
CLEAR: kna1.
SELECT SINGLE *
FROM kna1
WHERE kunnr = bseg-kunnr.
IF sy-subrc EQ 0.
e_postab-named = kna1-name1.
ENDIF.
ENDIF.
ENDIF. -
Printing Long text in Send Mail Task
Hi All,
My requirement is to print the long text of particular error message in the send mail task, which will be sent to outlook.
for this i have an activity beforr the mail task, where i have filled the multiline parameter called 'TEXT' and this is exported to workflow also.
In my send mail task, in the body of the message, using insert expression i have inserted the multiline container 'TEXT' with the option of line break, so it came &TEXT##&.
But once the WF is executed , i checked the WF log and found that the mail is sent and i have checked the container 'TEXT' in my previous activity where the TEXT container has 10 lines.
But when i checked the mail in SOST the contents of TEXT is not getting printed.
What will be the issue?
Thanks and Regards,
Swaminathan@Rick
How is TEXT defined in the container? Is it passed in via the binding?
I think if at all you want to use the container element in the mail then binding is not necessary from workflow to task.
@Swaminathan PJ
the multiline container 'TEXT' with the option of line break, so it came &TEXT##&.
Try to print the entire text continuosly with out line breaks then it works. -
How to upload and download Long text for WBS, Project, Network
Hi all,
I have two isssues.
1) I am extracting Projects, WBS , Network , Network activity and network activity element from a SAP 4.7 system using bapi's
BAPI_PROJECTDEF_GETDETAIL
BAPI_PROJECT_GETINFO
BAPI_NETWORK_GETINFO
BAPI_BUS2054_GETDATA
I am able to get all the details except long text. I want to know how do i extract the long text other than getting it manually by using select_text and Read_text Function module, is there any bapi to achieve this.
The reason why i am not using Function modules Read_text and Write_text is, object name( TDNAME ) value stored in STXH table for project, wbs and network are the project, wbs and network itself so i dont have any issues with this but the TDname value for activity and activity element are completely different ( Routing number and counter is stored respectively ) which i am not getting as the part of the bapi(BAPI_NETWORK_GETINFO) output.
2) I have to upload the extracted Project and it sub object data to ECC 6.0 system , i am able to achieve this by using BAPI's BAPI_PROJECTDET_CREATE, BAPI_PROJECT_MAINTAIN and BAPI_NETWORK_MAINTAIN. I am not able to load the longtext for the same, is there any way to load the long text .
All help will be greatly appreciated and rewarded.
Thanks & Regards,
Rajanidhi Rajasekeran.One thread in the correct forum is good enough, no need to double post across ABAP forums. Thanks.
Regards,
Rich Heilman -
Hello,
I have a problem triggering an alert with dynamic text out of a bpm. The alert is triggered correctly (I can't see any dump in tzhe log files), I can see the alert in my alert inbox, but the long text isn't filled. I'm using SAP Netweaver 2004s SP 9 (SAP Basis 7.00).
Then I tried the same preocedure in a SAP Netweaver 2004 SP 15 (SAP Basis 6.40) with the same settings, and it worked fine. I can see the long message in the alert inbox. The only differnce was, that in 2004s the alert classification 'Webflow Alert' didn't exist, so I had to create it.
Does anybody know, where the problem could be?
Thanks,
ThomasHi,
Just check that the length of the message is not more then the required limit. If thats the case it sometimes does not show the message.
Else, just try re-activating that step again by making some dummy chnages.
This problem happens at times when you are using dynamic variables .
Regards
Vijaya -
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
-
Vendor-Customer balances in group currency-table/structure/function module?
Hi All, Which table/structure/function module can be used to get balances for vendors and customers in group currency? We just wnat to extract balances in group currency so FBL1N and FBL5N are not options. Is there any SAP report which can provide th
-
Windows 2008 R2 - Error 2 Server Service wont start
He We tried to start the Server Service on windows 2008 R2 but it wont start error: 2. While we check the service dependency we are unable to see the "SMB 1 xxx Driver" instead it is having name SRV. so how to restore the service back to the original
-
It turns out Leopard uses more RAM when idle then when starting up, so I was wondering if I could free up some RAM by disabling some processes in Leopard. Would anyone kindly walk me through the steps required to free up the RAM that I need? I'm usin
-
[solved] custom kernel in arch?
Can you tell me how its done please, thank you Last edited by tmccaffery (2013-04-10 18:49:04)
-
IWeb crashes whenever I try to select a new font
Anytime I try to change a font type whether it's from the menu bar or from the prompts within a template, the programs shuts down. This is the message that appears. I just copied Thread O: Process: iWeb [60041] Path: /Applications/iWeb.app/Contents/M