Calling text element
How to call text lement and standard text in a smart form plz expain me
Thanks
Prasad.
>
Durga Prasad wrote:
> That means here we are calling standard text am i correct
Yes.
check page 46 of this pdf document for more help.
[smartform documentation|http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVSCRSF/BCSRVSCRSF.pdf]
кu03B1ятu03B9к
Edited by: kartik tarla on Feb 16, 2009 11:35 PM
Similar Messages
-
Call text element and command in smart forms
Hi, I have create a smart form that have one text element and one command. The command is for do a page break.
I have seen that you can call the smart form from a program doing:
1.-'SSF_FUNCTION_MODULE_NAME'
2.-call function fm_name
That is not ok for me because I want to call to the smart forms manually as befores it done with sap-script, open form, write , close form...
What function Have I to use to call to the text element?
What function Have I to use to call to the command?
Someone have and example calling a smart form from an abap.
Thanks in advance.
MANUELHi Vinod, I do not understand very good that you propose.
I explain more details of I have to do:
I have a abap program that read and write some data, I want to pass every line of the report to smart form, and in some lines comes a break page that I have to force also in the smart form, the idea
LOOP AT ITAB.
IF ITAB-LINE EQ '<BREAK>'.
BREAK PAGE IN SMART FORM
ELSE.
PASS ITAB-LINE TO SMART FORM
ENDIF.
ENDLOOP.
In order to do that I have created in the smart forms one text element X_LINE that represents every line and a command NEWPAGE that force page break.
Is possible to do that I want by the way that you propose?
Thanks in advance.
MANUEL -
How to call new window and text element without changing print program
Hi Friends,
I have requirement like this . i have a standard print prog and custom form. i want add 2 to 3 extra windows in the form and i have to print some data. but how can v do this with out changing the print program. i know that to pick new fields through subroutines. but how can v call new windows and new text elements with out changing the print program.
usually in the print program we write as follows.
write_form
window = 'HEADER'
textelemtn = 'HEADER'
can we accomplish this one also through subroutines or any other way is there.
can any one pls suggest this.
Thanks in advance.
Rahulu copy the standard print program and make custom program.
write your own codes in it.
assign this program in the place of standard print program.
Reward points, if helpful. -
Calling Script without Text element
Hi All
Can we call script without using text element in driver program.
Ex: in write_form without writing text element only passing window name
Thanks in Advance
Regards
Sujihello
NO, you can not use write_form without TEXT element name .
Regards
Geeta Gupta -
Text element is not getting printed in the output
Hi all,
I'm trying to print address from table KNA1in address window through a text element.
The corresponding code being :
In Delivery Prg,
Data : lv_kna1 type STANDARD TABLE OF kna1,
lv_adr6 type STANDARD TABLE OF adr6.
DATA : WA_ADR6 TYPE ADR6.
SELECT SINGLE * FROM KNA1 WHERE KUNNR = VBPA-KUNNR.
SELECT SINGLE * FROM ADR6 INTO WA_ADR6 where ADDRNUMBER = kna1-adrnr.
CALL FUNCTION 'WRITE_FORM'
EXPORTING
ELEMENT = 'DELIVERY_ADDRESS'
WINDOW = 'DELIVADR'
and calling the same text element 'DELIVERY_ADDRESS' as follows in the Script:
/E DELIVERY_ADDRESS
/: IF &LV_KNA1-TELF1& <> &SPACE&
IL Tel.: &LV_KNA1-TELF1&
/: ENDIF
/: IF &LV_KNA1-TELFX& <> &SPACE&
IL Fax : &LV_KNA1-TELFX&
/: ENDIF
/: IF &LV_ADR6-SMTP_ADDR& <> &SPACE&
IL E-mail : &LV_ADR6-SMTP_ADDR&
/: ENDIF
But,this text element is not printing in the output.
Any pointer on this would be of great help.
Regards,
Vamsee Priya.yes, it is.
I'm trying to get the e-mail address from adr6 table with the corresponding address number from table kna1.
so I created two tables as below:
Data : lv_kna1 type STANDARD TABLE OF kna1,
lv_adr6 type STANDARD TABLE OF adr6.
DATA : WA_ADR6 TYPE ADR6.
SELECT SINGLE * FROM KNA1 WHERE KUNNR = VBPA-KUNNR.
SELECT SINGLE * FROM ADR6 INTO WA_ADR6 where ADDRNUMBER = kna1-adrnr.
now, I'm trying to fill e-mail adress from lv_adr6. but the problem is lv_adr6 is not getting filled.
data is coming to work area wa_adr6.
SAP is not allowing me to write the below statement:
SELECT SINGLE * FROM ADR6 INTO LV_ADR6 where ADDRNUMBER = kna1-adrnr.
Now, will any move-corresponding statement from work area to its table works?? Is that logically correct?? -
How to translate text elements in forms from type : pdf
does anybody know how to translate text elements
in pdf from english to other languages.
i tried the tran. se63 and filled in the desired language,
but there was no effect on the output ,
thanks,
amicall this funcation. crate_text.
CALL FUNCTION 'CREATE_TEXT'
EXPORTING
FID =
FLANGUAGE =
FNAME =
FOBJECT =
SAVE_DIRECT = 'X'
FFORMAT = '*'
TABLES
FLINES =
EXCEPTIONS
NO_INIT = 1
NO_SAVE = 2
OTHERS = 3
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF. -
How to call text editors in smart forms?
In my module pool program,I included text editors for three fields.I want that fields in smart forms too.I need to know how these text editors are called in smart forms?
Hi achu,
Any text that gets saved has a corresponding entry in table STXH table. It usually has the following parameters : TDOBJECT,TDNAME,TDID and TDSPRAS.
What you have to do is create a new text element and under general attributes ---> Type - give Include Text.
And in the include text you give the above four parameters which correspond to the text you want to display.
P.S. Do not forget to check the 'No error if no text exists' checkbox.
Hope this helps.
Regards,
Arun -
Dump error when clicked on text elements in SAP Script window
Hi All,
There is an inclusion in SAP Script. I have written the code in driver program. I need to pass the value to SAP Script in the requested position. But when I go to SE71 > Form Name > Change or Display > MAIN Window > Text Elements > I get a dump error.
Category ABAP Programming Error
Runtime Errors DATA_LENGTH_TOO_LARGE
Except. CX_SY_RANGE_OUT_OF_BOUNDS
ABAP Program SAPLSTXK
Application Component BC-SRV-SCR
Date and Time 30.04.2014 20:00:08
Short text
Invalid partial field access: Length is too large
What happened?
Error in the ABAP Application Program
The current ABAP program "SAPLSTXK" 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
keep them for a long time.
Error analysis
An exception occurred that is explained in detail below.
The exception, which is assigned to class 'CX_SY_RANGE_OUT_OF_BOUNDS', was not
caught in
procedure "TOKEN_COMMENT" "(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:
In the executed program "SAPLSTXK", the system attempted to access the field
"ITF_TOKEN" of the type "C" and with the length 255 using the length 272.
However, a partial field access with a length specification that is
larger than the field length is not allowed.
How to correct the error
Reduce the length used to access the field.
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:
"DATA_LENGTH_TOO_LARGE" "CX_SY_RANGE_OUT_OF_BOUNDS"
"SAPLSTXK" or "LSTXKFRN"
"TOKEN_COMMENT"
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
2937 * todo empty comment ???
2938 if g_tm_open eq true or " Section
2939 g_tm_b_close eq true.
2940 l_token = '\chcbpat0'.
2941 l_len = strlen( l_token ).
2942 token_control = true.
2943 assign l_token to <itf1>.
2944 perform put_itf1_new using l_len.
2945 perform token_line_begin changing l_next_token.
2946 else. " without section
2947 concatenate '\chcbpat0\line' g_cf_string l_cbpat_token into l_token.
2948 l_len = strlen( l_token ).
2949 token_control = true.
2950 assign l_token to <itf1>.
2951 perform put_itf1_new using l_len.
2952 endif.
2953 elseif l_next_token-code eq ')L'. " \par
2954 l_token = '\par'.
2955 l_len = strlen( l_token ).
2956 token_control = true.
2957 assign l_token to <itf1>.
2958 perform put_itf1_new using l_len.
2959 elseif l_next_token-code eq '(C' or " \par + format
2960 l_next_token-code eq ')C' or
2961 l_next_token-code eq '(&' or
2962 l_next_token-code eq 'TA' or
2963 l_next_token-code eq 'SC' or
2964 l_next_token-code eq 'ST'.
2965 concatenate '\chcbpat0\par' g_pf_string g_cf_string l_cbpat_token into l_token.
2966 l_len = strlen( l_token ).
>>>>> itf_token(l_len) = l_token.
2968 token_control = true.
2969 assign l_token to <itf1>.
2970 perform put_itf1_new using l_len.
2971 endif.
2972
2973 * Step 7: (L to disarm
2974 if g_compose eq true and
2975 l_next_token-code eq '(L'.
2976 perform read_next_itf_token(rstxscan) using p_token.
2977 endif.
2978
2979 ENDFORM. " token_comment
2980 *&---------------------------------------------------------------------*
2981 *& Form create_lang_info
2982 *&---------------------------------------------------------------------*
2983 * add default language to rtf
2984 *----------------------------------------------------------------------*
2985 * -->P_HEADER text
2986 * <--P_RESULT text
How do I open the text elements? I need to pass the variable inside SAP Script.
Please Help. The requirement is pending from very long. Not able to rectify this issue.
Regards,
RekhaHi,
There is a SAP Note about this problem
566794 - Runtime error: STRING_OFFSET_TOO_LARGE during conversion
Correction Instructions
Correction Instructions
Software Component
Valid from
Valid to
Number
SAP_BASIS
46B
46D
473267
SAP_BASIS
610
620
473185
Support Packages & Patches
Support Packages
Software Component
Release
Support Package
SAP_BASIS
46B
SAPKB46B48
46C
SAPKB46C39
46D
SAPKB46D28
610
SAPKB61027
620
SAPKB62014
Regards
Miguel -
Issue with printing of multiple text elements in main window
Hi experts,
I have developed a sales order form in SAP script.
I hv got two text elements in the main window. n i m calling these two text elements by using two write form functions in d print program.
The first text element is gettin called n d relevant fields in dat particular text element is being displyed. (Window - Main)
My problem is dat the second text element for the same main window is not gettin called n its relevant fields r not gettin displayed.
Plz help me to solve the querry.
Its urgent.
Thanks n Regards,
PurvaHi,
Are you testing that from in same client where you developed, else make sure that after each change you need to transport the form to testing client.
second thing is check with code did you mention the same text element in window editor and in the program.
Reward if useful,
Thanks,
Sreeram. -
Creation of Text Element in Custom Script for MEDRUCK
hi,
i have a problem in the scripts, the script is customized one but driver program is standard one.
few text element which are in the page windows but not appering in the output, how can we make them to appear in the output.
can we add new text element without modifying driver program in script,
can any one suggest me any thing for solving this problem.
thanks in advance.hi,
i havent found any write_form function call in the standard driver program.i think is it is system generated driver program for MEDRUCK.
in my custom form few text elements are defined alredy but they are not appearing in the output, i tried by putting some hardcoded text in those text elements but it doesnt worked.
what might be the reason.
can any one know about this help me solving this problem.
thanks in advance
regards,
pavan -
How do I Hide the text printed from a standard Text Element in SAP Script?
Hi,
I have created one SAP Script which gets printed from IW33 using a standard print program.
In config the standrad SAP script is replaced by the zsap script.
Since the Zscript is printed from a Standard print program, I had to keep all the text elements used by the original(standard) SAP script.
I only kept the text elemets and commented out the printing part.
But still some values are printing. How do I hide these text element values?
I want to delete whatever its printing from these text element. Icant delete the standard text elemetns , otherwise the standard print program will give error.Hi,
I am not printing any text under these text element in my zscript.
I had to include these standard text elemets as they are called from the standard print program using which my zscript is getting printed.
for example:
/E OPERATION
Under operation i didnot print anything. Still some values which are passed in text element Operation by the print program is being printed in the form. i want to hide/delete these values.
how do I do that? -
Text elements and key figures with multiple restrictions
Hi,
I'd like to display text elements in my query according to the restricted key figures in it. There is a restricted key figure used multiple times with different base of restriction. (For exmple Sales in the past week and yesterday.)
KF restricted by <i>actual calendar week</i>, and
KF restricted by <i>actual calendar day</i>
When displaying text elements, only calendar week appears, however, if KF restricted by calendar week is removed from the query, calendar day is being displayed. (I suppose that both time characteristics are taken as filter values.)
Is that possible to display both filter values at once? Or at least calendar day meanwhile still having the week-based restriction in the query?
Thanx in advance,
GaborOne option would be to not use the *MVAL keyword and load the amount and quantity in separate Data Manager package imports wherby you can easily assign the NA to the appropriate dimension. When you import amount -- assign NA to P_UNIT and when you import quantity -- assign NA to P_CURRENCY.
However I suppose you would prefer to have one import process. Unfortunately I think you will have to find an ABAP custom solution by calling the END_Routine BADI from the transformation file to deal with the currency and unit dimensions.
Best regards,
[Jeffrey Holdeman|http://wiki.sdn.sap.com/wiki/display/profile/Jeffrey+Holdeman]
SAP Labs, LLC
BusinessObjects Division
Americas Applications Regional Implementation Group (RIG) -
Error in script : text elements are missing
Hi ,
In my print programs iam uaing lots of text elements for a
zform. I have copied the zform into zform1 and using the same print program and modified the zform1 according to my needs.
I am not using all the text elements in my zform1 script which is passed from the print program.
When i execute my zform1 by using the transaction which inturn uses that print program it gives more messages saying 512, 513 , 515 text elements are missing in form Zform1.
Can anyone tell without touching the print program can i do anything on the script zform1 to reslove this problem.
Please help me on this.Thanks...
Regards,
Rose.Hi,
Ya, whatever Narendra told is right. U nedd to have the text elements in the script if you are calling the same from print program. Just maitain all the text elements with no text it.
Eg:
/: 513
/: 515
Regards,
KK -
How can I get the content of a text element to insert in a different block
I have two blocks. The first one (block_control) is a non based block with a text element (EXERCICE). When I go to the second block (block_data) and I want to insert a new record, I need in my record the value of EXERCICE who is in the first block (block_control). How can I get this balue if I want to be able to do an execute_query too on the second block ? Because if I use pre-block or post-block or when-new-record-instance trigger to make the content of EXERCICE follow from block_control to block_data in a hidden field, I can't execute_query.
Thank'sFirst , when you want to insert a record in the second block , override the default commit_form processing and create a commit-form trigger which is called by a button to commit your form. The when-button-pressed trigger of this button should be : do_key('commit_form'); . And you create the key-commit trigger on the second block. Inside the key-commit trigger write this :
:second_block.item_name := name_in('block_control_name.exercice');
commit_form;
In this way you get the exercice data into your record.
Secondly, in the post-query trigger of the second block, set the exercice column of the second block to the exercice column of the block_control.
And that's it. -
How to display standard text element of main window in next page
hi all
In scripts we have standard script medruck for purchase order.
i want to pull text elements ( terms and payment terms ) in to main window of next page.
i have included main window in page windows of next page ,but im unable to print text elements of terms and payment terms in next page...
any one give your valuable inputs.
Thanks
deepika.Hi deepika,
First copy standard MEDRUCK to ZMEDRUCK and do the necessary changes.
Then check in driver program when exactly Terma and condition text element is called. Generaly its after printing all items but just check once to confirm.
If TERMS and condition element is called ate end just put a NEW-PAGE command at end of the text element which is called before terms.
Hope this will help You.
Thanks
Dhiraj.
Maybe you are looking for
-
I will type in google let say tree the search will click on to one of the searches and instead of tree web page showing up a ad page will come up this happens with very thing can you help.
-
Hi, I want to increment the vertical line dynamically according to the line items in SAP SCRIPT. How will I do it?? Pooja
-
Event ID 19542 Cannot take snapshot for 'xxxxxxxxxxxx' because one or more synthetic fibre channel controllers are attached. (Virtual machine ID xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx) I get this error when trying to take a snapshot of a VM that does have
-
Hi, How can export outline and members to excel. I have large group of proit center, if it is export to excel, I can do some work on excel that will reduce my process. Please help me for sort out this. Thank You EP
-
EDI/XML translator in WLI 2.0
are any translator for EDI to XML available in WLI 2.0, to allow developers to use EDI software as a service and/or integrate whole B2B solution based on WLI 2.0 with existing EDI systems ? thanx in advance ...