Any alternate function to EDIT_TEXT?
Hi!
is there any alternate function to EDIT_TEXT?
I want to change the text length of a standard text/long text, which function module to use?
Also, which function module SAP standard progam used to display a text and change a text length?
REPORT ZTEXT .
TABLES: PBIM.
stxh, stxl, stxb - trans tables for text
ttxit - text on text-ids
ttxot - Short texts on text objects
Transaction MD63
SELECT-OPTIONS: S_MATNR FOR PBIM-MATNR,
S_WERKS FOR PBIM-WERKS.
DATA: BEGIN OF HTEXT.
INCLUDE STRUCTURE THEAD.
DATA: END OF HTEXT.
DATA: BEGIN OF LTEXT OCCURS 50.
INCLUDE STRUCTURE TLINE.
DATA: END OF LTEXT.
DATA: BEGIN OF DTEXT OCCURS 50.
DATA: MATNR LIKE PBIM-MATNR.
INCLUDE STRUCTURE TLINE.
DATA: END OF DTEXT.
DATA: TNAME LIKE THEAD-TDNAME.
SELECT * FROM PBIM WHERE WERKS IN S_WERKS.
MOVE PBIM-BDZEI TO TNAME.
CALL FUNCTION <b><b>'READ_TEXT'</b></b>
EXPORTING
CLIENT = SY-MANDT
ID = 'PB'
LANGUAGE = 'E'
NAME = TNAME
OBJECT = 'PBPT'
ARCHIVE_HANDLE = 0
IMPORTING
HEADER = HTEXT
TABLES
LINES = LTEXT
EXCEPTIONS
ID = 1
LANGUAGE = 2
NAME = 3
NOT_FOUND = 4
OBJECT = 5
REFERENCE_CHECK = 6
WRONG_ACCESS_TO_ARCHIVE = 7
OTHERS = 8.
LOOP AT LTEXT.
IF LTEXT-TDLINE NE ''.
MOVE LTEXT-TDLINE TO DTEXT-TDLINE.
MOVE PBIM-MATNR TO DTEXT-MATNR.
APPEND DTEXT.
ENDIF.
ENDLOOP.
ENDSELECT.
LOOP AT DTEXT.
WRITE:/ DTEXT-MATNR, DTEXT-TDLINE.
ENDLOOP .
regards
vinod
Similar Messages
-
Any alternate function for FLD in NW7.5
Hi All
Is there any alternate function for FLD in NW7.5.
I can't use FLD in NW.
In one my script logic i need to get value from property and multiply with an account.
Edited by: satish193 on Mar 29, 2011 2:15 PMHi,
You can try using something like:
<member ID>.<property name>
Hope this helps. -
Any alternate function for FLD
Hi All
Is there any alternate function for FLD in NW7.5.
I can't use FLD in NW.
In one my script logic i need to get value from property and multiply with that account.
EX:
Account Tax
A -
50%
B -
60%
Any ideaHi,
You can try using something like:
<member ID>.<property name>
Hope this helps. -
Hi All,
Can anyone tell me is there any alternate function for rpad in pl sql.I am using rpad in my application but there seems to be some problem as the query is returning some data but in the front end , it is showing as null.REGEXP is available from oracle 10g , its not present in 9i.
Please check out for the alternative here -
Possibility of installing regexp for 9i
Hope this helps -
tempdbs :)
www.dwforum.net -
Function module 'EDIT_TEXT'. still not working
first i called READ_TEXT.
EDIT_TEXT.
SAVE_TEXT.
COMMIT_TEXT.
PLEASE CHECK THIS CODE ONCE ..PLEASE LET ME KNOW THE PROBLES.
gv_vlsch = gs_bmw_std_a1020-vlsch.
gv_lng = 'DE'.
CALL FUNCTION 'READ_TEXT'
EXPORTING
client = sy-mandt
id = 'SUBM'
language = gv_lng
name = gv_vlsch
object = 'WORKST'
ARCHIVE_HANDLE = 0
LOCAL_CAT = ' '
IMPORTING
header = gs_thead
TABLES
lines = gt_text
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.
DATA:lv_clnt TYPE sy-mandt.
********CHANGE 5/7**********
CLEAR gv_index.
CLEAR gt_line[].
SET PF-STATUS 'VIEW'.
LOOP AT gt_bmw_std_a1020 INTO gs_bmw_std_a1020 WHERE ch = 'X'.
gv_index = gv_index + 1.
ENDLOOP.
IF gv_index GE 2.
MESSAGE s000.
leave to screen 0.
CLEAR gv_index.
ELSEIF gv_index LT 1.
MESSAGE s001.
leave to screen 0.
ELSE.
CLEAR gv_index.
CLEAR gs_bmw_std_a1020.
READ TABLE gt_bmw_std_a1020 INTO gs_bmw_std_a1020 WITH KEY ch = 'X'.
IF sy-subrc EQ 0.
gv_vlsch = gs_bmw_std_a1020-vlsch.
gv_lng = 'DE'.
PERFORM read_text.
ENDIF.
CALL FUNCTION 'EDIT_TEXT'
EXPORTING
display = ' '
EDITOR_TITLE = ' '
header = gs_thead
PAGE = ' '
WINDOW = ' '
save = 'X'
LINE_EDITOR = ' '
CONTROL = ' '
PROGRAM = ' '
LOCAL_CAT = ' '
IMPORTING
FUNCTION =
NEWHEADER =
RESULT =
TABLES
lines = gt_text
EXCEPTIONS
ID = 1
LANGUAGE = 2
LINESIZE = 3
NAME = 4
OBJECT = 5
TEXTFORMAT = 6
COMMUNICATION = 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.
*****************5/7******************
lv_clnt = sy-mandt.
CALL FUNCTION 'SAVE_TEXT'
EXPORTING
client = lv_clnt
header = gs_thead
INSERT = ' '
SAVEMODE_DIRECT = ' '
OWNER_SPECIFIED = ' '
LOCAL_CAT = ' '
IMPORTING
FUNCTION =
NEWHEADER =
TABLES
lines = gt_text
EXCEPTIONS
ID = 1
LANGUAGE = 2
NAME = 3
OBJECT = 4
OTHERS = 5
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CALL FUNCTION 'COMMIT_TEXT'
EXPORTING
OBJECT = '*'
NAME = '*'
ID = '*'
LANGUAGE = '*'
SAVEMODE_DIRECT = ' '
KEEP = ' '
LOCAL_CAT = ' '
IMPORTING
COMMIT_COUNT =
TABLES
T_OBJECT =
T_NAME =
T_ID =
T_LANGUAGE =Hi Kranthi,
I have sample code pls can you compare with this and check what went wrong :
data: header type thead.
data: txt_lines type table of tline with header line.
data: mode(1) type c.
parameters: p_edit radiobutton group grp1 default 'X',
p_disp radiobutton group grp1.
* Set up the text header
header-tdobject = 'AUFK'.
header-tdname = '001000000001'.
header-tdid = 'LTXT'.
header-tdspras = sy-langu.
header-tdlinesize = 70.
* First read the text, if there is any.
call function 'READ_TEXT'
exporting
* CLIENT = SY-MANDT
id = header-tdid
language = sy-langu
name = header-tdname
object = header-tdobject
* ARCHIVE_HANDLE = 0
* LOCAL_CAT = ' '
* IMPORTING
* HEADER =
tables
lines = txt_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.
if p_edit = 'X'.
mode = space.
else.
mode = 'X'.
endif.
* throw editor, allow user to change
call function 'EDIT_TEXT'
exporting
display = mode
* EDITOR_TITLE = ' '
header = header
* PAGE = ' '
* WINDOW = ' '
save = 'X'
* LINE_EDITOR = ' '
* CONTROL = ' '
* PROGRAM = ' '
* LOCAL_CAT = ' '
* IMPORTING
* FUNCTION =
* NEWHEADER =
* RESULT =
tables
lines = txt_lines
* EXCEPTIONS
* ID = 1
* LANGUAGE = 2
* LINESIZE = 3
* NAME = 4
* OBJECT = 5
* TEXTFORMAT = 6
* COMMUNICATION = 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.
* When user comes back from editor, save the text
* Only for edit mode.
check mode = space.
call function 'SAVE_TEXT'
exporting
client = sy-mandt
header = header
* INSERT = ' '
* SAVEMODE_DIRECT = ' '
* OWNER_SPECIFIED = ' '
* LOCAL_CAT = ' '
* IMPORTING
* FUNCTION =
* NEWHEADER =
tables
lines = txt_lines
* EXCEPTIONS
* ID = 1
* LANGUAGE = 2
* NAME = 3
* OBJECT = 4
* OTHERS = 5
if sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.
write : 'Hi'.
Reward pts if found usefull:)
Regards
Sathish -
How do I access websites that warn: "Firefox is NOT compatible with this application. For best performance, please use Internet Explorer 5.0 and above...."? When I try to download any alternate browser, all I get is another warning that the alternate is "not compatible with your operating system." Is Firefox preventing this? The site listed below is a job application site. I've had this same problem with other job application sites also.
== URL of affected sites ==
https://storefront.kenexa.com/lithia/cc/Home.ssThere should be a User Agent Switcher menu item under Tools, which gives you the browser names you can impersonate.
The menu item name changes to the browser UA you are presently using.
There is also a User Agent Switcher button, you can add it using View -> Toolbars -> Customize, and dragging the button to your toolbar.
See http://chrispederick.com/work/user-agent-switcher/features/ and http://chrispederick.com/work/user-agent-switcher/help/
You can just start trying IE versions (or the versions it says on the site) until it lets you in. -
I have pdf file with 500 pages created from AutoCad file. In all pages, I have different document numbers.The file is not editable in pdf. How to change all the document numbers using "Comment" feature? Any alternate method? alternate method? I have Adobe Acrobat X Pro and Windows -7 platform.
Yes, I just want to cover up all the pages for those particular area of document numbers.
Nothing sensitive about it. I just want to show the correct document numbers on all pages in print out.
So, I wanted to cover up by comments, but commenting on each page will be difficult. So, I wanted to comment the same on all pages. -
Is there any inbuilt function to split a comma seperated text
Dear Friends,
Is there any inbuilt function to split a comma seperated text for inserting the values thus split in to a table.
Text Ex: Mango, Orange, Pinapple, Jack Fruit
Output: Mango
Orange
Pineapple
Jack Fruit
Thanking you,
With regards,
FranklinUsing DBMS_UTILITY.COMMA_TO_TABLE:--
DECLARE
l_tab dbms_utility.uncl_array;
l_tablen number;
BEGIN
dbms_utility.comma_to_table('A,B,C', l_tablen, l_tab);
dbms_output.put_line('TABLE LENGTH : '|| l_tablen);
dbms_output.put_line('TABLE COUNT : '|| l_tab.COUNT);
for i in 1..l_tablen
loop
dbms_output.put_line(l_tab(i));
end loop;
END;
source --google. -
Is there any alternate transaction for ME05 ?
Hi All,
In ME05, i will have to input material and plant data. Is there any alternater transaction where the input data would include - Vendor as well as purchasing organisation ?
Thanks & Regards,
PSSDear PSS,
ME01 if you want to maintain Source List
ME11 if you want to maintain Infor Record
<b>Source List</b>
A source list specifies the possible sources of supply for a material over a given period of time. It shows the time period in which a material may be ordered from a given vendor or under a certain long-term purchase agreement.
The source list supports the user in answering the question: "Which vendors or internal suppliers can supply a material at a given point in time?" It is also used in the automatic selection of vendors for a material.
<b>Info Record</b>
Info record is short for information record. The info record contains concise information about a vendor and a material that Purchasing already procures from that vendor. An info record thus represents a material-vendor relationship.
For example, the info record indicates the units of measure in which materials are ordered from the vendor, and the applicable reminder levels. It also shows price changes affecting the material in question. This information can be useful in the process of evaluating quotations to determine the successful bidder.
Info records are created automatically when you order a material. You can also create, change, and delete info records.
Hope this will help.
Regards,
Naveen. -
Hi,
Is there any alternate solution for setting up the MDM Process, without following the Device Enrollment Program (DEP) and managing the devices by creating our own setup controlling through the server, Please let me know.
Thanks for the help.Finally I found the solution for the MDM, after doing some research work with the Apple Configurator, iPhone configuration utility and came across with the Profile Manager after installing Mac OS Server and able to manage, configure, remote access and send the commands using push notifications.
-
Any Mod function in JAVA?
I did not find 'MOD' function in the Math class. Is there any 'MOD' function in Java?
Thanks!What is your MOD function?
Does the %-operator do what you need or do you want a strict mathematical modulus that returns only positive values? -
Can't find any BPF function in BPC for ADMIN for NW 7.0
Hi experts,
I am studying BPC for NW 7.0. and can't find any BPF function option at Action pane in BPC for ADMIN for NW 7.0.
Can anyone help me?
any thanks.Hello,
As far as i know, there is no BPF option for BPC NW 7.0 but at 7.5 version we will be able to use BPFs.
Peter -
Is there any recursive function in DB2
Hi all,
Could you please tell me is there any recursive function in DB2 and if yes then please provide me a sample code.
I want to write a function as below but it's giving me following error:
>[Error] Script lines: 1-33 -
( DB2 SQL error: SQLCODE: -440, SQLSTATE: 42884, SQLERRMC: SCF_MC2;FUNCTION
Message: No authorized routine named "SCF_MC2" of type "FUNCTION" having compatible arguments was found.
Line: 11 )
create FUNCTION scf_mc2 (@@certname varCHAR(20),@@assignee varCHAR(20),@@currentUser varCHAR(20), @@javaLocale
varCHAR(20) )RETURNS float
LANGUAGE SQL
READS SQL
DATA format:
BEGIN ATOMIC
declare @n_cost float;
declare @n_cost1 float;
set @n_cost1 =0.00;
FOR @n_cost as
select
COALESCE ((CASE substr(ep.part_id,1,5) when 'cours' then tp2.scf_nc(ep.part_id,@@assignee,@@currentUser,@@javaLocale) else
tp2.scf_mc2(ep.part_id,@@assignee,@@currentUser,@@javaLocale) end ),0) cost
from
tpt_ext_ce_certification certi
inner join tpt_ext_ce_track tr on tr.certification_id = certi.id
inner join tpt_ext_ce_group gr ON gr.track_id = tr.id
inner join tpt_ce_education_plan ep ON ep.owner_id = gr.id
WHERE
tr.locale_id = @@javaLocale
AND
gr.locale_id = @@javaLocale
AND
certi.locale_id = @@javaLocale
and
substr(tr.flags,2,1) = '1'
and
certi.id=@@certname
DO
SET @n_cost1 = @n_cost+@n_cost1;
END FOR;
return @n_cost1;
end format
Regards
VishalJava is an object-oriented language, so you're not just searching for a method to do what you want, but for a Class, that provides that ability.
And since you don't define what "the date that I want" means I can only guess.
If you've got the date value in a String in some format, then you might look into the DateFormat or SimpleDateFormat classes. -
Hi Guru's
Any know if there any Partner Function of SPRO in CRM that simulate the standar rule 00000157 of PFAC ?
I need aplicate this Partner Function in my Policies rules, but I don't know how to do it.
Thank you very much advance,
Carlos Castillo.Hi, use FM RH_ACT_LEADING_POSITION.
Regards -
Is there any RFC function module to read domain fixed value
Hi,
Is there any RFC function module to read domain fixed value from remote system in basis layer?
As we cannot simply wrap DD_DOMVALUES_GET with a new RFC module,because remote system will not install our component, our wrap function module is not there.
We may need a RFC fm from basis layer.HI,
Try using Function Module:
DD_DOMA_GET , If it is RFC enabled it can be used for reading the domain,
Kindlly go through this link below:
How to get "Fixed Domain Values" from other system by RFC-Call?
Hope it helps,
Regards
Mansi
Maybe you are looking for
-
NVidia Settings for Two Different Graphics Cards?
I just built a new system for video editing with Adobe CC 2014 including both the Quadro K4000 AND the GeForce GTX780 DirectCU II OC graphics cards. I was wondering what are the best settings in the NVidia control panel for apps such as Premiere Pro,
-
My Working Solution: 1 Time Capsule + 2 AEBs on One Network
Over the past two weeks, I have probably spent 10+ hours messing around with one Time Capsule and 2 AEBs in an attempt to create a single roaming network. I tried everything and I searched for hours on the forums for solutions. Thanks to many others
-
i seen every one using media link but i dont want to pay to use it. any apple apps out there for free?
-
I try integrate Struts and Hibernate. I create a simple blank project... You can download it from http://rapidshare.com/files/49730760/StrutsPlusHibernate.zip.html ( 20 KB you should add lib) . When I start Tomcat 5.5 I have an exeptions : SEVERE: Er
-
Importing java class in to xml
is there any way to import a java class into an xml file.suppose if I have a class containing all static constants .Anfd if I want this constant vlaues in xml how to do that