Adding additional text field to infotype in SQ02
Hi ,
I am trying to create an additional text filed to the infotype 0034 in a customized infoset, in Tx SQ02 as shown in the link below:
http://help.sap.com/saphelp_nw04/helpdata/en/d2/cb4468455611d189710000e8322d00/content.htm
Here the question is :
The check box "Detemine LIKE reference using text field" is grayed out and I couldn't able to check the box.
Can any one help me to resolve this and let me know what is the significance of that check box?
Hi Suresh,
I tried running the query after deleting the newly added text fields to the infoset, the query is running properly with out any short dump, where as with the additional fields added it is going to short dump and the shot dump states as shown:
An exception occurred. This exception is dealt with in more detail below
. The exception, which is assigned to the class 'CX_SY_DYN_CALL_ILLEGAL_FUNC',
was neither
caught nor passed along using a RAISING clause, in the procedure "%_GET_PERNR"
"(FORM)"
Since the caller of the procedure could not have expected this exception
to occur, the running program was terminated.
The reason for the exception is:
The program "!QZZ/SAPQUERY/H2AAVULA27174228" contains a CALL FUNCTION
statement. The name
of the function module to be called is "RPAQ_GET_AF_0034".
No function module exists with the name "RPAQ_GET_AF_0034".
All function modules are stored in the Function Library (SE37).
Possible reasons:
a) Wrong name specified. Particular attention should be paid
to upper/lower case and underscores ("_")
b) Transport error
c) If an enqueue/dequeue module has been used, the lock object
may not have been activated (ABAP Dictionary)
Any help?
Best regards
Vamsi
Similar Messages
-
Additional text field in Infoset deleted but not reflected in field selection in Query
Hi,
I have deleted an additional text field in infoset. It was used in one query.
Even in the query it is deleted, but when in field selection screen i am not able to delete.
If i try to execute the query, I get dump (syntax error) saying in field type(additional field) doesnot exist.
Can anyone pleassseee help me in this.Hi San,
I am trying to understand. How could you separately delete an additional text field associated with a main field?
Jogeswara Rao K -
Exchange 2010 Conference Room Resource mailbox. Additional text field HTML images
In the same vein as this question:
http://social.technet.microsoft.com/Forums/systemcenter/en-US/338b4fff-e8df-41aa-8066-a32a9f76fa92/exchange-2010-conference-room-resource-mailbox-additional-text-field
Have successfully created Additional text messages that actually work with a surprising amount of HTML in it (Tables, link colours, hyperlinks etc...)
The one thing we can't seem to crack is the ability to show images, is this possible?
(have tried the usual suspects of:
img src="x.jpg"
also tried making sure the img tag was self closing, no luck
td background="x.jpg"
td background (css property)
but no joy and ran out of ideas, any help out there?
Many thanks in advance!Have you tried the same formatting that is required to add an image in a disclaimer:
http://technet.microsoft.com/en-us/library/bb124352.aspx#Images -
Adding a text field in a custom infotype
Hi,
I have a custom infotype which deals with sickness data of the employee
My requirement is that the user will enter an explaianation for his sickness...etc. Thus I need to incorporate a text field in my infotype.
What I am planning is to give a button on the screen of infotype, so when user clicks it a text editor will open and and he can insert or update his sickness text data.
Please tell me how do i do that and also if there is any alternate better approach.
Regards,
Nehayou need to make a custom container on which you have to put editor
use class cl_gui_custom_container, cl_gui_text_editor, first define instances in top include then create objects. if you want this to be done when you click on any button then put this coding in the function code of that button.
aditya -
Adding unlimited Text field in Shopping Cart in SRM 4.0
Hi All,
I am using SRM 4.0 and I need help adding the unlimited custom text field in the shopping cart screen similar to Internal note in the shopping cart. I am able to add field with fixed character length but I need the custom field with unlimited text.
Please let me know if you have any suggestions.
Thanks in advance
VijayHi,
You can try with the TEXT schemas, you can configure this as i mentioned below:
First, you need to create a text schema since BBP_PD_PO SPRO --> Supplier Relationship Management --> Cross aplication Basic Settings --> Text Schema --> Define Text Schema.
There you can create your own text schema with the characteristics that you want for example: If you want that text schema appears in the header of the document or in the item or both, If you want that text schema is able for modifications or is only a view ....................
Secod, when you have the name of your text schema you need to asign for the document that you want in
PD_PO SPRO --> Supplier Relationship Management --> Cross aplication Basic Settings --> Define transaction types for every document type you can specify the text schema that you want to assign.
If this solution doesn´t solve your issue maybe you can create a custom field ("Z") with data type "LRAW" this type is very big.
Thanks -
Adding Additional Custom Fields to Alerts
in the Custom Fields tab of the alert properties, there are 10 custom fields. a few questions regarding "custom fields"
is there a way to add addtional custom fields?
can variables be placed in the custom fields so data that changes from alert to alert can be passed?
is there a way to add additional custom fields and give them a more formal name (e.g. MyHomeGrownField)
thanks.Yes you can put values in these custom fields. but you cannot change the field names to something else.
Values can be put in these fields through OpsMgr PowerShell. Check the links -
https://social.technet.microsoft.com/Forums/systemcenter/en-US/dde47a28-ce70-4144-b7f3-70cb8a3d3cb9/using-custom-fields-in-scom-alerts?forum=operationsmanagergeneral
http://scug.be/dieter/2012/01/23/scom-2012-pass-data-to-custom-fields-with-monitors/
Thanks, S K Agrawal -
How can i get the additional text fields in the ALV methods
Hi all,
I have 2 different layouts in the same screen, here i am using the 2 custom containers,for each container having the method called SET_TABLE_FOR_FIRST_DISPLAY, in this i have used the Title through the gridtitle field, now i need to display some more texts under the title OR in the top of the layouts.
Please suggest me.
Thanks
GiridharHi,
check this code, here i developed using splitter container, and implemented top of page event. check it. and i documented it also.
REPORT ZTEST1234_ALV_TOP MESSAGE-ID ZZ .
DATA: G_GRID TYPE REF TO CL_GUI_ALV_GRID.
DATA: L_VALID TYPE C,
V_FLAG,
V_DATA_CHANGE,
V_ROW TYPE LVC_S_ROW,
V_COLUMN TYPE LVC_S_COL,
V_ROW_NUM TYPE LVC_S_ROID.
DATA: IT_ROW_NO TYPE LVC_T_ROID,
X_ROW_NO TYPE LVC_S_ROID.
DATA:BEGIN OF ITAB OCCURS 0,
VBELN LIKE LIKP-VBELN,
POSNR LIKE LIPS-POSNR,
CELLCOLOR TYPE LVC_T_SCOL, "required for color
DROP(10),
END OF ITAB.
"The Below Definitions Must.....
DATA:
* Reference to document
DG_DYNDOC_ID TYPE REF TO CL_DD_DOCUMENT,
* Reference to split container
DG_SPLITTER TYPE REF TO CL_GUI_SPLITTER_CONTAINER,
* Reference to grid container
DG_PARENT_GRID TYPE REF TO CL_GUI_CONTAINER,
* Reference to html container
DG_HTML_CNTRL TYPE REF TO CL_GUI_HTML_VIEWER,
* Reference to html container
DG_PARENT_HTML TYPE REF TO CL_GUI_CONTAINER.
"up to here
* CLASS lcl_event_handler DEFINITION
CLASS LCL_EVENT_HANDLER DEFINITION .
PUBLIC SECTION .
METHODS:
**Hot spot Handler
HANDLE_HOTSPOT_CLICK FOR EVENT HOTSPOT_CLICK OF CL_GUI_ALV_GRID
IMPORTING E_ROW_ID E_COLUMN_ID ES_ROW_NO,
**Double Click Handler
HANDLE_DOUBLE_CLICK FOR EVENT DOUBLE_CLICK OF CL_GUI_ALV_GRID
IMPORTING E_ROW E_COLUMN ES_ROW_NO,
TOP_OF_PAGE FOR EVENT TOP_OF_PAGE "event handler
OF CL_GUI_ALV_GRID
IMPORTING E_DYNDOC_ID.
* END_OF_LIST FOR EVENT end_of_list "event handler
* OF CL_GUI_ALV_GRID
* IMPORTING E_DYNDOC_ID.
ENDCLASS. "lcl_event_handler DEFINITION
* CLASS lcl_event_handler IMPLEMENTATION
CLASS LCL_EVENT_HANDLER IMPLEMENTATION.
*Handle Hotspot Click
METHOD HANDLE_HOTSPOT_CLICK .
CLEAR: V_ROW,V_COLUMN,V_ROW_NUM.
V_ROW = E_ROW_ID.
V_COLUMN = E_COLUMN_ID.
V_ROW_NUM = ES_ROW_NO.
* MESSAGE I000 WITH V_ROW 'clicked'.
CLEAR IT_ROW_NO[].
X_ROW_NO-ROW_ID = V_ROW.
APPEND X_ROW_NO TO IT_ROW_NO .
CALL METHOD G_GRID->SET_SELECTED_ROWS
EXPORTING
IT_ROW_NO = IT_ROW_NO.
ENDMETHOD. "lcl_event_handler
*Handle Double Click
METHOD HANDLE_DOUBLE_CLICK.
CLEAR: V_ROW,V_COLUMN,V_ROW_NUM.
V_ROW = E_ROW.
V_COLUMN = E_COLUMN.
V_ROW_NUM = ES_ROW_NO.
IF E_COLUMN = 'VBELN'.
SET PARAMETER ID 'VL' FIELD ITAB-VBELN.
CALL TRANSACTION 'VL03N' AND SKIP FIRST SCREEN.
ENDIF.
IF E_COLUMN = 'POSNR'.
SET PARAMETER ID 'VL' FIELD ITAB-VBELN.
CALL TRANSACTION 'VL03N' AND SKIP FIRST SCREEN."
ENDIF.
ENDMETHOD. "handle_double_click
* METHOD END_OF_LIST. "implementation
** Top-of-page event
* PERFORM EVENT_TOP_OF_PAGE USING DG_DYNDOC_ID.
* ENDMETHOD. "top_of_page
METHOD TOP_OF_PAGE. "implementation
* Top-of-page event
PERFORM EVENT_TOP_OF_PAGE USING DG_DYNDOC_ID.
ENDMETHOD. "top_of_page
ENDCLASS. "LCL_EVENT_HANDLER IMPLEMENTATION
*& Global Definitions
DATA: G_CUSTOM_CONTAINER TYPE REF TO CL_GUI_CUSTOM_CONTAINER,"Container1
G_HANDLER TYPE REF TO LCL_EVENT_HANDLER. "handler
DATA: OK_CODE LIKE SY-UCOMM,
SAVE_OK LIKE SY-UCOMM,
G_CONTAINER1 TYPE SCRFNAME VALUE 'TEST',
GS_LAYOUT TYPE LVC_S_LAYO.
data: v_lines type i.
data: v_line(3) type c.
*- Fieldcatalog for First and second Report
DATA: IT_FIELDCAT TYPE LVC_T_FCAT,
X_FIELDCAT TYPE LVC_S_FCAT,
LS_VARI TYPE DISVARIANT.
* START-OF_SELECTION
START-OF-SELECTION.
SELECT VBELN
POSNR
FROM LIPS
UP TO 20 ROWS
INTO CORRESPONDING FIELDS OF TABLE ITAB.
describe table itab lines v_lines.
END-OF-SELECTION.
IF NOT ITAB[] IS INITIAL.
CALL SCREEN 100.
ELSE.
MESSAGE I002 WITH 'NO DATA FOR THE SELECTION'(004).
ENDIF.
*& Form CREATE_AND_INIT_ALV
* text
FORM CREATE_AND_INIT_ALV .
DATA: LT_EXCLUDE TYPE UI_FUNCTIONS.
"attention.....from here
"split your container here...into two parts
"create the container
CREATE OBJECT G_CUSTOM_CONTAINER
EXPORTING CONTAINER_NAME = G_CONTAINER1.
"this is for top of page
* Create TOP-Document
CREATE OBJECT DG_DYNDOC_ID
EXPORTING STYLE = 'ALV_GRID'.
* Create Splitter for custom_container
CREATE OBJECT DG_SPLITTER
EXPORTING PARENT = G_CUSTOM_CONTAINER
ROWS = 2
COLUMNS = 1.
* Split the custom_container to two containers and move the reference
* to receiving containers g_parent_html and g_parent_grid
"i am allocating the space for grid and top of page
CALL METHOD DG_SPLITTER->GET_CONTAINER
EXPORTING
ROW = 1
COLUMN = 1
RECEIVING
CONTAINER = DG_PARENT_HTML.
CALL METHOD DG_SPLITTER->GET_CONTAINER
EXPORTING
ROW = 2
COLUMN = 1
RECEIVING
CONTAINER = DG_PARENT_GRID.
* CALL METHOD DG_SPLITTER->GET_CONTAINER
* EXPORTING
* ROW = 2
* COLUMN = 1
* RECEIVING
* CONTAINER = DG_PARENT_HTML.
* CALL METHOD DG_SPLITTER->GET_CONTAINER
* EXPORTING
* ROW = 1
* COLUMN = 1
* RECEIVING
* CONTAINER = DG_PARENT_GRID.
"you can set the height of it
* Set height for g_parent_html
CALL METHOD DG_SPLITTER->SET_ROW_HEIGHT
EXPORTING
ID = 1
HEIGHT = 5.
"from here as usual..you need to specify parent as splitter part
"which we alloted for grid
CREATE OBJECT G_GRID
EXPORTING I_PARENT = DG_PARENT_GRID.
* Set a titlebar for the grid control
CLEAR GS_LAYOUT.
GS_LAYOUT-GRID_TITLE = TEXT-003.
GS_LAYOUT-ZEBRA = SPACE.
GS_LAYOUT-CWIDTH_OPT = 'X'.
GS_LAYOUT-NO_ROWMARK = 'X'.
GS_LAYOUT-CTAB_FNAME = 'CELLCOLOR'.
CALL METHOD G_GRID->REGISTER_EDIT_EVENT
EXPORTING
I_EVENT_ID = CL_GUI_ALV_GRID=>MC_EVT_ENTER.
CREATE OBJECT G_HANDLER.
SET HANDLER G_HANDLER->HANDLE_DOUBLE_CLICK FOR G_GRID.
SET HANDLER G_HANDLER->HANDLE_HOTSPOT_CLICK FOR G_GRID.
* SET HANDLER G_HANDLER->END_OF_LIST FOR G_GRID.
SET HANDLER G_HANDLER->TOP_OF_PAGE FOR G_GRID.
DATA: LS_CELLCOLOR TYPE LVC_S_SCOL. "required for color
DATA: L_INDEX TYPE SY-TABIX.
"Here i am changing the color of line 1,5,10...
"so you can change the color of font conditionally
LOOP AT ITAB.
L_INDEX = SY-TABIX.
IF L_INDEX = 1 OR L_INDEX = 5 OR L_INDEX = 10.
LS_CELLCOLOR-FNAME = 'VBELN'.
LS_CELLCOLOR-COLOR-COL = '6'.
LS_CELLCOLOR-COLOR-INT = '0'.
LS_CELLCOLOR-COLOR-INV = '1'.
APPEND LS_CELLCOLOR TO ITAB-CELLCOLOR.
MODIFY ITAB INDEX L_INDEX TRANSPORTING CELLCOLOR.
LS_CELLCOLOR-FNAME = 'POSNR'.
LS_CELLCOLOR-COLOR-COL = '6'.
LS_CELLCOLOR-COLOR-INT = '0'.
LS_CELLCOLOR-COLOR-INV = '1'.
APPEND LS_CELLCOLOR TO ITAB-CELLCOLOR.
MODIFY ITAB INDEX L_INDEX TRANSPORTING CELLCOLOR.
ENDIF.
ENDLOOP.
* setting focus for created grid control
CALL METHOD CL_GUI_CONTROL=>SET_FOCUS
EXPORTING
CONTROL = G_GRID.
* Build fieldcat and set editable for date and reason code
* edit enabled. Assign a handle for the dropdown listbox.
PERFORM BUILD_FIELDCAT.
PERFORM SET_DRDN_TABLE.
* Optionally restrict generic functions to 'change only'.
* (The user shall not be able to add new lines).
PERFORM EXCLUDE_TB_FUNCTIONS CHANGING LT_EXCLUDE.
**Vaiant to save the layout
LS_VARI-REPORT = SY-REPID.
LS_VARI-HANDLE = SPACE.
LS_VARI-LOG_GROUP = SPACE.
LS_VARI-USERNAME = SPACE.
LS_VARI-VARIANT = SPACE.
LS_VARI-TEXT = SPACE.
LS_VARI-DEPENDVARS = SPACE.
**Calling the Method for ALV output
CALL METHOD G_GRID->SET_TABLE_FOR_FIRST_DISPLAY
EXPORTING
IT_TOOLBAR_EXCLUDING = LT_EXCLUDE
IS_VARIANT = LS_VARI
IS_LAYOUT = GS_LAYOUT
I_SAVE = 'A'
CHANGING
IT_FIELDCATALOG = IT_FIELDCAT
IT_OUTTAB = ITAB[].
"do these..{
* Initializing document
CALL METHOD DG_DYNDOC_ID->INITIALIZE_DOCUMENT.
* Processing events
CALL METHOD G_GRID->LIST_PROCESSING_EVENTS
EXPORTING
I_EVENT_NAME = 'TOP_OF_PAGE'
I_DYNDOC_ID = DG_DYNDOC_ID.
"end }
* Set editable cells to ready for input initially
CALL METHOD G_GRID->SET_READY_FOR_INPUT
EXPORTING
I_READY_FOR_INPUT = 1.
ENDFORM. "CREATE_AND_INIT_ALV
*& Form EXCLUDE_TB_FUNCTIONS
* text
* -->PT_EXCLUDE text
FORM EXCLUDE_TB_FUNCTIONS CHANGING PT_EXCLUDE TYPE UI_FUNCTIONS.
* Only allow to change data not to create new entries (exclude
* generic functions).
DATA LS_EXCLUDE TYPE UI_FUNC.
LS_EXCLUDE = CL_GUI_ALV_GRID=>MC_FC_LOC_COPY_ROW.
APPEND LS_EXCLUDE TO PT_EXCLUDE.
LS_EXCLUDE = CL_GUI_ALV_GRID=>MC_FC_LOC_DELETE_ROW.
APPEND LS_EXCLUDE TO PT_EXCLUDE.
LS_EXCLUDE = CL_GUI_ALV_GRID=>MC_FC_LOC_APPEND_ROW.
APPEND LS_EXCLUDE TO PT_EXCLUDE.
LS_EXCLUDE = CL_GUI_ALV_GRID=>MC_FC_LOC_INSERT_ROW.
APPEND LS_EXCLUDE TO PT_EXCLUDE.
LS_EXCLUDE = CL_GUI_ALV_GRID=>MC_FC_LOC_MOVE_ROW.
APPEND LS_EXCLUDE TO PT_EXCLUDE.
LS_EXCLUDE = CL_GUI_ALV_GRID=>MC_FC_LOC_COPY.
APPEND LS_EXCLUDE TO PT_EXCLUDE.
LS_EXCLUDE = CL_GUI_ALV_GRID=>MC_FC_LOC_CUT.
APPEND LS_EXCLUDE TO PT_EXCLUDE.
LS_EXCLUDE = CL_GUI_ALV_GRID=>MC_FC_LOC_PASTE.
APPEND LS_EXCLUDE TO PT_EXCLUDE.
LS_EXCLUDE = CL_GUI_ALV_GRID=>MC_FC_LOC_PASTE_NEW_ROW.
APPEND LS_EXCLUDE TO PT_EXCLUDE.
LS_EXCLUDE = CL_GUI_ALV_GRID=>MC_FC_LOC_UNDO.
APPEND LS_EXCLUDE TO PT_EXCLUDE.
ENDFORM. " EXCLUDE_TB_FUNCTIONS
*& Form build_fieldcat
* Fieldcatalog
FORM BUILD_FIELDCAT .
DATA: L_POS TYPE I.
L_POS = L_POS + 1.
X_FIELDCAT-SCRTEXT_M = 'Delivery'(024).
X_FIELDCAT-FIELDNAME = 'VBELN'.
X_FIELDCAT-TABNAME = 'IT_FINAL'.
X_FIELDCAT-COL_POS = L_POS.
X_FIELDCAT-NO_ZERO = 'X'.
X_FIELDCAT-OUTPUTLEN = '10'.
X_FIELDCAT-HOTSPOT = 'X'.
APPEND X_FIELDCAT TO IT_FIELDCAT.
CLEAR X_FIELDCAT.
L_POS = L_POS + 1.
X_FIELDCAT-SCRTEXT_M = 'Item'(025).
X_FIELDCAT-FIELDNAME = 'POSNR'.
X_FIELDCAT-TABNAME = 'IT_FINAL'.
X_FIELDCAT-COL_POS = L_POS.
X_FIELDCAT-OUTPUTLEN = '5'.
APPEND X_FIELDCAT TO IT_FIELDCAT.
CLEAR X_FIELDCAT.
L_POS = L_POS + 1.
X_FIELDCAT-SCRTEXT_M = 'Drop'(025).
X_FIELDCAT-FIELDNAME = 'DROP'.
X_FIELDCAT-TABNAME = 'IT_FINAL'.
X_FIELDCAT-COL_POS = L_POS.
X_FIELDCAT-OUTPUTLEN = '5'.
X_FIELDCAT-EDIT = 'X'.
X_FIELDCAT-DRDN_HNDL = '1'.
X_FIELDCAT-DRDN_ALIAS = 'X'.
APPEND X_FIELDCAT TO IT_FIELDCAT.
CLEAR X_FIELDCAT.
ENDFORM. " build_fieldcat
*& Module STATUS_0100 OUTPUT
* text
MODULE STATUS_0100 OUTPUT.
SET PF-STATUS 'MAIN100'.
SET TITLEBAR 'MAIN100'.
IF G_CUSTOM_CONTAINER IS INITIAL.
**Initializing the grid and calling the fm to Display the O/P
PERFORM CREATE_AND_INIT_ALV.
ENDIF.
ENDMODULE. " STATUS_0100 OUTPUT
*& Module USER_COMMAND_0100 INPUT
* text
MODULE USER_COMMAND_0100 INPUT.
CASE SY-UCOMM.
WHEN 'BACK'.
LEAVE TO SCREEN 0.
ENDCASE.
ENDMODULE. " USER_COMMAND_0100 INPUT
*& Form SET_DRDN_TABLE
* text
FORM SET_DRDN_TABLE.
DATA:LT_DRAL TYPE LVC_T_DRAL,
LS_DRAL TYPE LVC_S_DRAL.
LOOP AT ITAB .
* First listbox (handle '1').
IF SY-INDEX = 1.
LS_DRAL-HANDLE = '1'.
LS_DRAL-VALUE = ' '.
LS_DRAL-INT_VALUE = ' '.
ELSE.
LS_DRAL-HANDLE = '1'.
LS_DRAL-VALUE = ITAB-POSNR.
LS_DRAL-INT_VALUE = ITAB-POSNR.
ENDIF.
APPEND LS_DRAL TO LT_DRAL.
ENDLOOP.
**Setting the Drop down table for Reason Code
CALL METHOD G_GRID->SET_DROP_DOWN_TABLE
EXPORTING
IT_DROP_DOWN_ALIAS = LT_DRAL.
ENDFORM. " set_drdn_table
*& Form EVENT_TOP_OF_PAGE
* text
* -->DG_DYNDOC_ID text
FORM EVENT_TOP_OF_PAGE USING DG_DYNDOC_ID TYPE REF TO CL_DD_DOCUMENT.
"this is more clear.....check it
"first add text, then pass it to comentry write fm
DATA : DL_TEXT(255) TYPE C. "Text
* Populating header to top-of-page
CALL METHOD DG_DYNDOC_ID->ADD_TEXT
EXPORTING
TEXT = 'Test Report'
SAP_STYLE = CL_DD_AREA=>HEADING.
* Add new-line
CALL METHOD DG_DYNDOC_ID->NEW_LINE.
CLEAR : DL_TEXT.
* Move program ID
CONCATENATE 'Program Name :' SY-REPID
INTO DL_TEXT SEPARATED BY SPACE.
* Add Program Name to Document
PERFORM ADD_TEXT USING DL_TEXT.
* Add new-line
CALL METHOD DG_DYNDOC_ID->NEW_LINE.
CLEAR : DL_TEXT.
* Move User ID
CONCATENATE 'User ID :' SY-UNAME INTO DL_TEXT SEPARATED BY SPACE
* Add User ID to Document
PERFORM ADD_TEXT USING DL_TEXT.
* Add new-line
CALL METHOD DG_DYNDOC_ID->NEW_LINE.
CLEAR : DL_TEXT.
* Move count (no of records).
move v_lines to v_line.
CONCATENATE 'No of records :' v_line INTO DL_TEXT SEPARATED BY SPACE.
* Add Client to Document
PERFORM ADD_TEXT USING DL_TEXT.
* Add new-line
CALL METHOD DG_DYNDOC_ID->NEW_LINE.
CLEAR : DL_TEXT.
* Move date
WRITE SY-DATUM TO DL_TEXT.
CONCATENATE 'Date :' DL_TEXT INTO DL_TEXT SEPARATED BY SPACE.
* Add Date to Document
PERFORM ADD_TEXT USING DL_TEXT.
* Add new-line
CALL METHOD DG_DYNDOC_ID->NEW_LINE.
CLEAR : DL_TEXT.
* Move time
WRITE SY-UZEIT TO DL_TEXT.
CONCATENATE 'Time :' DL_TEXT INTO DL_TEXT SEPARATED BY SPACE.
* Add Time to Document
PERFORM ADD_TEXT USING DL_TEXT.
* Add new-line
CALL METHOD DG_DYNDOC_ID->NEW_LINE.
* Populating data to html control
PERFORM HTML.
ENDFORM. " EVENT_TOP_OF_PAGE
*& Form ADD_TEXT
* To add Text
FORM ADD_TEXT USING P_TEXT TYPE SDYDO_TEXT_ELEMENT.
* Adding text
CALL METHOD DG_DYNDOC_ID->ADD_TEXT
EXPORTING
TEXT = P_TEXT
SAP_EMPHASIS = CL_DD_AREA=>HEADING.
ENDFORM. " ADD_TEXT
*& Form HTML
* text
FORM HTML.
DATA : DL_LENGTH TYPE I, " Length
DL_BACKGROUND_ID TYPE SDYDO_KEY VALUE SPACE. " Background_id
* Creating html control
IF DG_HTML_CNTRL IS INITIAL.
CREATE OBJECT DG_HTML_CNTRL
EXPORTING
PARENT = DG_PARENT_HTML.
ENDIF.
* Reuse_alv_grid_commentary_set
CALL FUNCTION 'REUSE_ALV_GRID_COMMENTARY_SET'
EXPORTING
DOCUMENT = DG_DYNDOC_ID
BOTTOM = SPACE
IMPORTING
LENGTH = DL_LENGTH.
* Get TOP->HTML_TABLE ready
CALL METHOD DG_DYNDOC_ID->MERGE_DOCUMENT.
* Set wallpaper
CALL METHOD DG_DYNDOC_ID->SET_DOCUMENT_BACKGROUND
EXPORTING
PICTURE_ID = DL_BACKGROUND_ID.
* Connect TOP document to HTML-Control
DG_DYNDOC_ID->HTML_CONTROL = DG_HTML_CNTRL.
* Display TOP document
CALL METHOD DG_DYNDOC_ID->DISPLAY_DOCUMENT
EXPORTING
REUSE_CONTROL = 'X'
PARENT = DG_PARENT_HTML
EXCEPTIONS
HTML_DISPLAY_ERROR = 1.
IF SY-SUBRC NE 0.
MESSAGE I999 WITH 'Error in displaying top-of-page'(036).
ENDIF.
ENDFORM. " HTML
Regards
vijay -
Adding a Text Field to inline text
Using Adobe LifeCycle Designer, I'm wondering if there's an easy way to insert substitution text. I need to do this:
"Thank you for your recent donatoin of ${Amount}. We would like..."
The above example uses a floating field, but this type of object (or placeholder) is not available as an AcroForm variable (using iText). Thus far it appears that my only option is to use a Text Box but this seems VERY clunky because it's nearly impossible to visually line up the text box properly, plus, it doesn't size the sentence to the right -- i.e., it just sits on top of the text.
What am I missing? My needs, to me, seem VERY simple but I can't seem to figure out how to make this work.I really wish I could agree with you because I REALLY want this to work. This is the ONLY thing keeping me from using Adobe. However, it's becoming clear that I'll have to scrap all the research I've done because I need to find a completely new solution (outside of Adobe Acrobat).<br /><br />I believe we need to think Post PDF Creation and Pre PDF rendering. Say a PDF is just sitting there in a folder. It has AcroForm variables in it -- Cool! This means I can fetch those variables, load them with whatever data I want, copy the PDF and wala! I have a new PDF with complete data and I've preserved my template PDF for another day.<br /><br />A floating field is dissolved the moment you click <Save> in Adobe LC. Binding happens right then. This means when it is rendered in a Reader the data is already there and if that data happens to be a script the script behaves accordingly. None of this works for me.<br /><br />One way to think of this is that the actual "text" in a PDF is fully compiled/flattened while AcroForm variables are uncompiled and dimensional. I can pop data in the AcroForm variables but whatever I do with these variables, it has no bearing on the compiled text.<br /><br />This means compiled text cannot interact with an AcroForm variable (i.e., it can't adjust left and right to size properly to an AcroForm variable).<br /><br />I find this lack of functionality to be surprising.
-
Urgent: Validation on additional units field in Infotype 15: Points assured
hi all
I am implementing enhancement PBAS0001using function exit EXIT_SAPFP50M_002
for putting validation on number of additional units entered.
In our company, a predefined no. of units is allotted to every PS group for the whole year. Now i need to validate if the no. of add. units entered for an employee for a given year against the limit set for the PS group he belongs to.
I have created two ztables. One is a master table for the PS group and the annual limit.
and the other one is for storing the month wise additional units and the total add. units conusmed . Its structure is : pernr, lgart, entry_date, add. units, total units consumed, year, month.
Now in the exit i am coding statement like
lv_new_tot = innnn-anzhl + lv_tot.
where lv_new_tot denotes the new sum of add. units consumed and lv_tot is the previous
total of add. units consumed.
But it gives an error saying: INNNN does'nt have a component anzhl.
Now please tell me how to refer to the additional units for the current entry being made.
<b>Points will be awarded surely.</b>
thanksHi,
Have a look at this thread regarding the coding in userexit-EXIT_SAPFP50M_002.
User Exit for Infotype 0019
Reward points if Helpful.
Revert back if u need anything else.
Regards,
Manoj. -
Adding one header text field in FBL5N output
Hi Experts,
I hava a requirment to show one extra field of length 200 character in the FBL5N transaction output. When I analyzed the program I found its using "FI_ITEMS_DISPLAY" Fm to display the output. The table passed to this FM is of type structure "RFPOSXEXT", which dont have any field of 200 length.
can anybody suggest me a better way to do the change rather then going for a 'Z' FM and 'Z' program.
Regards,
Puja Patil.Hi,
a. Add the news fields in structure RFPOS and RFPOSX by APPEND structure
b. Run the report RFPOSXEXTEND in order to update the structure RFPOSXEXT from RFPOSX
(this report has to be run in every enviroment, dev, test and prod)
c. Active the BTE 00001650 in order to create a fm as copy of SAMPLE_INTERFACE_00001650:
d. here insert the code you need to fill your new field.
e. Use trx FIBF to active the BTE, trx SE37 to create the new fm
Just now I have incorporated a requirement of adding additional customer field in FBLN5 using BTE enhancement. It works fine.
Please reward points if helpful.
Regrads
Mohamed Aboobacker Siddique. -
Merging seperate date and time fields into a unique text field.
I have a dropdown Calendar Date field and a dropdown Time Field in a form and I want to create an additional Text Field that displays the combination of these two fields as a unique form field that would look like this...
Arrival Date: 1/27/2009 Arrival Time: 11:30 AM
Record Number: This would be calculated from the two fields as (012720091130)
Also when you press the submit button the XML file name would be the Record Number (this would be a coded filename to correspond to the time of arrival).
Any Ideas?Creating the Arrival time string should be easy. Its a case of adding a number of strings together. Assuming the date is held ina field called dateField and the time is in a field called timeField the javascript expression woudl look like this:
TargetField.rawValue = "Arrival Date: " + dateField.rawValue + " Arrival Time: " + timeField.rawValue;
To get the recordNumber you will have to parse the unwanted chars out of the strings then add the two together just like above.
The data file name will be the same as the PDF file that it came from. You cannot change the name of it easily without certifying the document (and that brings in its on set of problems). -
How to create an "L" shaped text field
I need to insert a text field in an Acroform with a label that starts part way in on one line and then continues on the next line, as shown below.
Is it possible to insert an L-shaped text field? If not, is it possible to automatically move the text cursor to the next field when the person filling out the form runs out of space on the first line? I'm using Acrobat XI Pro on Windows 7.Actually if you create the form in a Third pary Program called FileMaker It allows you when you create the field you can insert the title of the field (which is the same as the Field name) either to left side or above. Then when PDF is created Even though its rectangular shape it will show with question or what ever above the actual acrea that will be filled out.
Or you can use Word
In word you
Create on each line item and set tab for proper distance of each item on line.
Then go to Format Tabs and set each tab to show underline.
hit tab just at end of title.
Set ine spacing to 1.5 or 2
Next hit return and hit tab number times
Repeat with each line you may have to readjust tabs in Tab format or drag tab marker in top ruler to desired spacing.
Hit retun and and hit desired number of spaces
When finished seting up Form go back to first line with text
Go to tab format and remove the underline hit set if you have more than one line. When finished hit okay.
Go to next line with text and repeat removal of underline.
When finished you should have line that have text only
And, just bellow lines on spaced so the start just under the text above.
Now go to Print Menu > PDF > choose Adobe PDF.
Open in Acrobat in tools click Forms > Create form
Choose current document
Then choose to use current document again.
When finished The Form fields should be Properly named.
Edit each field appropriately whether for text or Numbers or Phone numbers or zip codes
Save under a different name.
Here are samples:
http://www.4shared.com/download/RIbUOSnjce/Microsoft_Word_-_Last_Namedocx.pdf Created by Word
http://www.4shared.com/download/z0Yj9Ouoba/Untitled2.pdf Created with FileMaker.
If you ever want to change form in version created by word and just retype text as desired
print as PDF under different name.
Either recreate fields, or if your just changing spelling or added additional text but didn't cahge what it its, choose Replace pages. -
Problem with characters in text field
hi all
i am missing a few characters, once i load text into a dynamic text field. chars are not missing per say; they are being replaced with empty squares.
characters like the euro sign and accentuated german a letter.
whats is weird is that other accentuated german letters do appear. so only a few selected are missing.
How ive set up the fla:
1) i've added 4 text fields to the stage in the font im using, Arial, one for each font style: normal, italic, bold and bold italic, and in all 4 fields ive embedded all latin characters (to include the german accentuaded characters and im guessing it's in the punctuation group that holds the euro sign, so that one is also embedded), besides lowercase, uppercase, numerical, and all the default groupd to include basic text.
2) i've got a dynamic text field, created with createTextField, and setup the following ActionScript (2):
this.createTextField("T_text",1,0,10,Stage.width-60,50);
var myFmt = new TextFormat();
myFmt.size = 12;
myFmt.leading = 3;
myFmt.font = "Arial";
T_text.html = true;
T_text.autoSize = "left";
T_text.multiline = true;
T_text.wordWrap = true;
T_text.selectable = false;
T_text.embedFonts = false;
T_text.textColor = "0x666666";
T_text.htmlText = _global.gallery_1_image_text_1; // this holds the text im displayed, called in from a database.
T_text.setNewTextFormat(myFmt);
now, im calling text from a database.
when calling the text from the browser url bar, there's no chars missing.
its just when i make this call from flash and load the text into the dynamic text field, that characters go missing.
below is a link to a print screen of the faulty text that is displayed in flash's dynamic text field.
http://img210.imageshack.us/img210/340/utf8.png
any ideas? i mean, it seems that the arial font is missing a few accentuated characters! because the code i have setup loads other accentuated characters.
anyone has seen this issue before and know how to solve it?
regardsno.
you assigned your embedFonts property to be false.
look, you can test if you've embedded fonts correctly by using:
T_text._rotation=3;
if you see no text, you're not embedding fonts correctly.
so, use:
T_text.embedFonts=true;
and then test. if you see no text, use:
click on the upper right of your library panel > new Font > select Arial and tick the symbols you need to embed > tick export for actionscript and assign a linkage id (eg, ArialID). click ok. then use:
this.createTextField("T_text",1,0,10,Stage.width-60,50);
var myFmt = new TextFormat();
myFmt.size = 12;
myFmt.leading = 3;
myFmt.font = "ArialID";
T_text.html = true;
T_text.autoSize = "left";
T_text.multiline = true;
T_text.wordWrap = true;
T_text.selectable = false;
T_text.embedFonts = true;
T_text.textColor = 0x666666; // no quotes here. this is a number
T_text.htmlText = _global.gallery_1_image_text_1; // this holds the text im displayed, called in from a database.
T_text.setTextFormat(myFmt); // to format the above text, use setTextFormat(). if you want to format text added after this line, use setNewTextFormat() -
How to create a pdf/a-1b with a text field
hello, I'm trying to execute a very simple task: create a pdf/a-1b containig a text field.
using Acrobat XI pro, I created a simple pdf form with 1 form field of type text , then tried to save as pdf/A-1b. The pdf is saved but the form field is removed from resulting pdf.
Here in detail the steps I made:
0) configure adobe pdf printer to save as pdf/A-1b
1) creat a test.txt with notepad
2) print using acrobat pdf printer
3) open the generated pdf with Acrobat XI
4) in 'Standards' panel I see that pdf conform
5) now go to 'Tools\Modules' and 'Modify'
6) add a textbox field
7) exit from 'Modify' mode and save
8) in 'Standards' panel I see that pdf doesn't conform.
9) I opened the preflight tool and see two errors
a) "XMP property for a page object not predefined and no extension schema present".
page reports the following Trigger values:
- Extension schema is present in XMP: is not true
- Property exists in PDF/A Standard: is not true
b) Form field does not have an appearance dictionary
page reports the following Trigger values:
- Form field has an appearance dictionary: is not true
I'm quite new to Acrobat: simply downloaded the Actobat XI evaluation version, created the file and added the text field. No special settings nor other configurations was applied,
I'm wondering if someone else was able to reproduce this behavior.
thank you for any commentFirst, about invalidating the PDF/A. I was told, but never had this confirmed nor tested, that editing a PDF/A will automatically cause the PDF/A status to be deleted from the file. This is because Acrobat does not know about the compatibility of every edit with every current (and future) PDF subset standard, so it is safest just to remove the indicator - if you turn off Adobe's PDF/A view mode which will prevent editing anyway.
Now, you have a problem with the signatures. Possibly a very big one. Your description "2) fill the text field with some annotations and then sign the signature field 3) save the pdf" is a little too separated. At the time a file is signed it is saved, the hash calculated, and written to the file. So signing and saving are just one action. Yet an unsigned digital signature needs, it seems to me, no appearance.
I think the solution is a simple one. Sign it, but not with a signature field. If it is PDF/A when you start it is probably PDF/A when you finish. Signature fields seem a distraction and obstacle to the important thing, signing. -
Line Spacing in text field.
Hi,
I have added many text fields to my pdf document. Some of them need following:
1.
Adjust the line spacing between two lines.
2.
Make the text "justified".
I can not find any way to accomplish these things. Can anyone tell me how to do these things?
Thanks,
VijayGeo,
Are you talking about check box "Allow Rich Text Formatting" in the Text Field Properties dialog box? I have it checked.
But still it does not give me ability to adjust line spacing or "justify"ing the text.
Thanks,
Vijay
Maybe you are looking for
-
Delete multiple files from multiple locations using config file
Hello All, I am fairly new to .net and I have to make a windows application to delete files older than 90 days from multi ple locations. these multiple locations cant be hard coded and have to be configurable, also the number of days to delete the fi
-
Can I export itunes files to windows media player?
itunes lets me import music tracks from my windows media player, but I can't seem to get itunes tracks to go the othe way, into my windows media player. I'd like to be able to do both, as sometimes I buy tracks online at MSN, and sometimes at itunes,
-
ME9F - Prints only one message
Hi all, I'm having a problem when printing more than one purchase order message in ME9F. When I select all messages to be printed, only one is going to printer, and the other ones stay in spool list with status "-" (not yet sent to the host system).
-
After installing the new Lion OSX, I get "power PC applications no longer supported" on things. How to fix?
-
StopAllSounds created in class
I have got 2 sounds created and started in functions in a class. When I try to stopAllSounds, it does not stop the sounds. Do I have to reference to the stop the sound inside each function? My code is attached (.as and .fla) fi somebody would be will