How to create custom control in SE51
Hi,
Can any1 help me out to create a custom control in se51.
Thanks in advance.
*****Class variables*********
DATA:
GO_GRID type ref to cl_gui_alv_grid,
go_custom_container type ref to cl_gui_custom_container.
*& Module STATUS_0100 OUTPUT
text
MODULE STATUS_0100 OUTPUT.
SET PF-STATUS 'ZMENU'.
PERFORM CREATE_OBJECTS.
PERFORM DISP_DATA.
ENDMODULE. " STATUS_0100 OUTPUT
*& Form CREATE_OBJECTS
text
--> p1 text
<-- p2 text
FORM CREATE_OBJECTS .
CREATE OBJECT GO_CUSTOM_CONTAINER
EXPORTING
CONTAINER_NAME = 'CUST_CONTROL'.
CREATE OBJECT GO_GRID
EXPORTING
I_PARENT = GO_CUSTOM_CONTAINER.
*& Form DISP_DATA
text
--> p1 text
<-- p2 text
FORM DISP_DATA .
CALL METHOD GO_GRID->SET_TABLE_FOR_FIRST_DISPLAY
EXPORTING
IS_LAYOUT = LS_LVCLAYOUT
IS_PRINT = LS_PRINT
IT_TOOLBAR_EXCLUDING = IT_EXCLUDE
CHANGING
IT_OUTTAB = <TEMP_TAB>
IT_FIELDCATALOG = LT_LVCFIELDCAT[]
IT_SORT = LVC_TSORT[].
Similar Messages
-
How to create custom controls?
I created some 3D automation symbols using AutoCad 2000, saved them in BMP, then open in Photoshop and imported into Labview using Ring but i didn't get what i wanted. I can't change colors and can't eliminate frame around the picture (ring). I read help but i didn't find so much help.
Does anyone wont to explain in step by step how to do that.Which picture format is the best for that. I found at the discusion forum poor explanation with just one example. I know how to create control (simply import couple images into same Ring, but i need to do cosmetics.
Any help i appreciate.
Attached is .VI (labview 6.1)with valve i vanted to make as control, so please show me on that example how to do that.
Attachments:
Valve.vi 12 KBJust some tips here:
1)First of all, if you want to create a custom control, it's better to work with LabView control files ("ctl" extension) rather than VI's. (Select a control you want to customize on the front panel, and choose "Customize control" from the "Edit" menu - you will be presented with a new special window where you have much more possibilities to change the appearance of your control. Two modes are available there - "edit" to set the data type of your control and "customize" (or personalise) - to change its appearance).
2)I think that the problem you mention about - can't change colors and can't eliminate frame around the picture (ring)- is that near by all LV controls use two colors - foreground and background (toggled by F and B keys on the
color selection panel) and by default you change only one of them for 3D borders. To elimate the frame you must make then both transparent.
And here is your control - ctl file - a bit changed by me.
Attachments:
valve.ctl 11 KB -
How to create customized controls in LabWindows CVI
Hello,
I would like to create more "user friendly" controls in LabWindows. For example I would like to use a "Round command button" and add a picture on it.
Do you know if there is a way to do it?It should be possible: In the classic-style controls, there is a round command button; you can set the button color to transparent and place it on top of a suitable picture...
-
How to create a container in se51
hi,
i have two doubts
1. how to create a container in se51.
2. For eg: while calling a function i click on pattern which and give the function module name it will give the function module with the exporting and the importing parameter.
My question is how to create an object.Hello Preethi,
First in the code:
DATA container TYPE REF TO cl_gui_custom_container.
create the custom container
CREATE OBJECT container
EXPORTING container_name = 'CUSTOM'.
Second in graphical screen painter you must build an custom control with same name: 'CUSTOM'
An example of this is the program: RSDEMO_CUSTOM_CONTROL
Regards. -
How to create custom report plugin using child region report metadata
Hi,
I want to ask for help on how to create custom report plugin using child region report metadata. My idea is to create a child region, a classic report and set the condition to never.
Then i will query the child report metadata from apex view and use it to create a custom report like using jquery jq-grid. Any idea how i can create a process that will use the child report
metadata? I dont know how i can create a process just like how apex work, how apex render report, coz i want it to be control using the standard apex report attribute. This plugin will
render according to the child report attribute.
Is there anybody here had ever done this?Hi Nicolette,
Thanks for the reply. I know where to find the metadata, just asking for idea on how the rendering process will be.
Start from determining column heading, column order until finish rendering the report. The same way how apex
render the classic report.
Previously this imy my rendering process:
FUNCTION GETCOLUMN(P_REGION IN APEX_PLUGIN.T_REGION,
P_PLUGIN IN APEX_PLUGIN.T_PLUGIN,
P_VALUE IN VARCHAR2) RETURN SYS.DBMS_SQL.DESC_TAB2 IS
VSQLHANDLER APEX_PLUGIN_UTIL.T_SQL_HANDLER;
VCOLCOUNT NUMBER;
VCOLNAMES VARCHAR2(2000);
VAJAXIDENTIFIER VARCHAR2(100);
VPAGESIZE TYPEATTR := P_REGION.ATTRIBUTE_04;
VJSCODE VARCHAR2(32767);
BEGIN
VSQLHANDLER := APEX_PLUGIN_UTIL.GET_SQL_HANDLER(P_SQL_STATEMENT => 'select * from s_emp',
P_MIN_COLUMNS => 1,
P_MAX_COLUMNS => 999,
P_COMPONENT_NAME => P_REGION.ID);
VCOLCOUNT := VSQLHANDLER.COLUMN_LIST.COUNT();
FOR I IN 1 .. VCOLCOUNT LOOP
VCOLNAMES := VCOLNAMES || '{name: "' ||
UPPER(VSQLHANDLER.COLUMN_LIST(I).COL_NAME) || '",';
END LOOP;
APEX_PLUGIN_UTIL.FREE_SQL_HANDLER(VSQLHANDLER);
RETURN VSQLHANDLER.COLUMN_LIST;
EXCEPTION
WHEN OTHERS THEN
APEX_PLUGIN_UTIL.FREE_SQL_HANDLER(VSQLHANDLER);
RAISE;
END GETCOLUMN;
So this is how i get the header for my report plugin. The same method is use to get the value / data for each column. This process is work. So now
i want to extend my plugin so that i will use all attributes from the child report to render my plugin. So the column header, column order, all will depend
on the child report. And the column display condition is set, it will also check the condition before render the column. Sounds like i want to reinvent
the normal apex rendering process but this is what i want to achieve.
I need help to find the correct logic for my render process. Don't want too much for starting, just want to render the plugin correctly, same with child report,
same columns alias, column ordering and column conditional display.
Thanks,
akulala -
How to use custom control.
hi all,
how to use custom controls in screen painter.
can i add image to my screen using custom control.
is there any other way to display image on screen.
give me some notes about custom control.
and sample programs to display image and also the use of custom control.
regards,
bhaskar.hi vinod,
u can use the class <b>cl_gui_picture</b> to work around with pictures on the screen
just define a custom control on the screen
create an object of custom container.
create another object of cl_gui_picture giving container name as the parent name...
u can check out the class using the transn se24....
pls post if additional info is required...
Regards,
Vs -
How to save Custom control records through module pool program ?
Hi guru ,
1. How to save Custom control records through module pool program ?
I wrote multiple lines of record in custom control
Who to save that records ?
thanking you.
Regards,
Subash.Hi,
can refer following code -
IN PAI , CODE is as follows-
*& Form editor_output
FORM editor_output .
NARRATION1 is name of custom controller
IF v_editor IS INITIAL.
Create obejct for custom container
CREATE OBJECT v_custom_container
EXPORTING
container_name = 'NARRATION1'
EXCEPTIONS
cntl_error = 1
cntl_system_error = 2
create_error = 3
lifetime_error = 4
lifetime_dynpro_dynpro_link = 5
OTHERS = 6.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE 'I' NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
Create obejct for the TextEditor control
CREATE OBJECT v_editor
EXPORTING
wordwrap_mode = cl_gui_textedit=>wordwrap_at_fixed_position
wordwrap_position = line_length
wordwrap_to_linebreak_mode = cl_gui_textedit=>true
parent = v_custom_container
EXCEPTIONS
error_cntl_create = 1
error_cntl_init = 2
error_cntl_link = 3
error_dp_create = 4
gui_type_not_supported = 5
OTHERS = 6.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE 'I' NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
ENDIF.
ENDFORM. " editor_output
getting textdata in internal table as follows
*& Form create_text
FORM create_text .
REFRESH : it_texttable,
it_text.
IF v_doc_number IS NOT INITIAL.
IF v_editor IS NOT INITIAL.
CALL METHOD v_editor->get_text_as_r3table
IMPORTING
table = it_texttable
EXCEPTIONS
error_dp = 1
error_cntl_call_method = 2
error_dp_create = 3
potential_data_loss = 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.
Now, our final text data is in internal table it_texttable.
pls, Reward if found helpful. -
How to save Custom control records ?
Hi guru ,
1. How to save Custom control records module pool program ?
I wrote multiple lines of record in custom control
Who to save that records ?
thanking you.
Regards,
Subash.REPORT ZCUSTOMC.
CLASS event_handler DEFINITION.
PUBLIC SECTION.
METHODS: handle_f1 FOR EVENT f1 OF cl_gui_textedit
IMPORTING sender,
handle_f4 FOR EVENT f4 OF cl_gui_textedit
IMPORTING sender.
ENDCLASS.
DATA: ok_code LIKE sy-ucomm,
save_ok LIKE sy-ucomm.
DATA: init,
container TYPE REF TO cl_gui_custom_container,
editor TYPE REF TO cl_gui_textedit.
DATA: event_tab TYPE cntl_simple_events,
event TYPE cntl_simple_event.
DATA: line(256) TYPE c,
text_tab LIKE STANDARD TABLE OF line,
field LIKE line.
DATA handle TYPE REF TO event_handler.
START-OF-SELECTION.
line = 'First line in TextEditControl'.
APPEND line TO text_tab.
line = '----
APPEND line TO text_tab.
line = '...'.
APPEND line TO text_tab.
CALL SCREEN 100.
MODULE status_0100 OUTPUT.
SET PF-STATUS 'SCREEN_100'.
IF init is initial.
init = 'X'.
CREATE OBJECT: container EXPORTING container_name = 'TEXTEDIT',
editor EXPORTING parent = container,
handle.
event-eventid = cl_gui_textedit=>event_f1.
event-appl_event = ' '. "system event
APPEND event TO event_tab.
event-eventid = cl_gui_textedit=>event_f4.
event-appl_event = 'X'. "application event
APPEND event TO event_tab.
CALL METHOD: editor->set_registered_events
EXPORTING events = event_tab.
SET HANDLER handle->handle_f1
handle->handle_f4 FOR editor.
ENDIF.
CALL METHOD editor->set_text_as_stream EXPORTING text = text_tab.
ENDMODULE.
MODULE cancel INPUT.
LEAVE PROGRAM.
ENDMODULE.
MODULE user_command_0100 INPUT.
save_ok = ok_code.
CLEAR ok_code.
CASE save_ok.
WHEN 'INSERT'.
CALL METHOD editor->get_text_as_stream IMPORTING text = text_tab.
WHEN 'F1'.
MESSAGE i888(sabapdocu) WITH text-001.
WHEN OTHERS.
MESSAGE i888(sabapdocu) WITH text-002.
CALL METHOD cl_gui_cfw=>dispatch. "for application events
MESSAGE i888(sabapdocu) WITH text-003.
ENDCASE.
SET SCREEN 100.
ENDMODULE.
CLASS event_handler IMPLEMENTATION.
METHOD handle_f1.
DATA row TYPE i.
MESSAGE i888(sabapdocu) WITH text-004.
CALL METHOD sender->get_selection_pos
IMPORTING from_line = row.
CALL METHOD sender->get_line_text
EXPORTING line_number = row
IMPORTING text = field.
CALL METHOD cl_gui_cfw=>set_new_ok_code "raise PAI for
EXPORTING new_code = 'F1'. "system events
CALL METHOD cl_gui_cfw=>flush.
ENDMETHOD.
METHOD handle_f4.
DATA row TYPE i.
MESSAGE i888(sabapdocu) WITH text-005.
CALL METHOD sender->get_selection_pos
IMPORTING from_line = row.
CALL METHOD sender->get_line_text
EXPORTING line_number = row
IMPORTING text = field.
CALL METHOD cl_gui_cfw=>flush.
ENDMETHOD.
ENDCLASS.
aniruddh -
How to save Custom control records module pool program ?
Hi guru ,
1. How to save Custom control records module pool program ?
I wrote multiple lines of record in custom control
Who to save that records ?
thanking you.
Regards,
Subash.Hi Subasha,
Please check the format below since it is based on a working code
**************data declarations
TYPES: BEGIN OF TY_EDITOR,
EDIT(254) TYPE C,
END OF TY_EDITOR.
data: int_line type table of tline with header line.
data: gw_thead like thead.
data: int_table type standard table of ty_editor.
You should create a text for uniquely identifying the text you are saving each time so that it doesn't get overwritten
For this a key combination must be decidedd to uniquely identify the test..here it is loc_nam
****************fill header..from SO10( t-code )
GW_THEAD-TDNAME = loc_nam. " unique key for the text
GW_THEAD-TDID = 'ST'. " Text ID
GW_THEAD-TDSPRAS = SY-LANGU.
GW_THEAD-TDOBJECT = 'ZXXX'. "name of the text object created
*Read Container and get data to int_table
CALL METHOD EDITOR ->GET_TEXT_AS_R3TABLE
IMPORTING
TABLE = int_table
EXCEPTIONS
ERROR_DP = 1
ERROR_CNTL_CALL_METHOD = 2
ERROR_DP_CREATE = 3
POTENTIAL_DATA_LOSS = 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.
loop data from int_table and save to int_line-tdline appending it.
*save the text
CALL FUNCTION 'SAVE_TEXT'
EXPORTING
HEADER = GW_THEAD
TABLES
LINES = InT_LINE
EXCEPTIONS
ID = 1
LANGUAGE = 2
NAME = 3
OBJECT = 4
OTHERS = 5.
IF SY-SUBRC 0.
ENDIF.
The code shown above is ok and working fine for save also,hope that the above sample with helps you solve the problem
Please check and revert,
Reward if helpful
Regards
Byju -
How to create customer self registration form iReceivables in 11.5.10.2
Hi,
I am new to iReceivables and in need to know how to create customer self registration in iReceivable 11.5.10.2.
Please give the steps. I the guide its mentioned as need to create the static HTML page. If so please let me know how to do it. Please give me if you are having any sample code.
Regards
Suresh PPlease see these docs.
SelfService Registration Link Not Working For iReceivables [ID 603353.1]
iReceivables user tries to register for iStore and message 'Email Address Is Already In Use' [ID 1114661.1]
Questions: Auto Login After Self-Registration [ID 403097.1]
How to Find iReceviables Patchset Level on 11i Instance [ID 263942.1]
How To Create Custom Self Registration Challenge Questions In 11i [ID 759998.1]
iReceivables Self Registration Challenge Question not Working [ID 961586.1]
The Ireceivables Self Registration Page Errors Out. What Are the Setups to Review? [ID 414161.1]
How To Control The Invoice Picked Up In iReceivable Self Registartion Challenge Question? [ID 1310902.1]
Thanks,
Hussein -
How to create custom infotype for training and event management
hai freinds can any one tell me how to create custom infotype for training and event managment with following fields
PS No PA0000-> PERNR
Name - PA0001 -> ENAME
IS PS.No. PA0001-> PS no. of Immediate Superior
IS name PA0001 -> ENAME
thanx in advance
afzalHi,
Your question is not clear for me. Since it is a TEM infotype, it could be a PD infotype.
If you wish to create a PD infotype, use transaction PPCI to create the infotype.
But before that you need to create a structure HRInnnn (where nnnn is the infotype number) with all the fields relevant for the infotype.
If you wish to create a PA infotype, use transaction PM01 to create the infotype.
But before that you may be required to create a strcuture PSnnnn (where nnnn is the infotype number) with all the fields relevant for the infotype.
Regards,
Srini -
How to create custom content placeholder in sharepoint 2013
Hi, I would like to create custom content placeholder don't know how to and add to my custom master page in sharepoint 2013. I have no luck searching on how to create custom content placeholder, any help?
Thanks,
JohnwebHi,
If you’re not fixed your requirement with the Out of the box SharePoint place holders, you can create as many as you want as long as the ID doesn’t conflict. On the master page add the content place holder
<asp:ContentPlaceHolderid="CustomName" runat="server"></asp:ContentPlaceHolder> and add this to your page layout
<asp:Contentrunat="server" ContentPlaceHolderID="CustomName"></asp:Content>.
I suggest you provide your basic requirement for further research.
If you want to customize a master page, the Rajendra's method would be helpful.
Best Regards,
Dennis Guo
TechNet Community Support
Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
[email protected] -
How to create custom adapter for Products and CommerceService
Hi guys!
First of all I wanted to say that I did search. Only relevant material I found was this http://dev.day.com/docs/en/cq/5-5/ecommerce/eCommerce-framework.html
Unfortunately it doesn't go in details enough...
I'm trying to follow geometrixx-outdoors example to create my shoppingCart. I have a list of of products in /etc/commerce/products.... referenced by productPage in content.
But I don't know how to create custom CommerceProvider and Adapter to create proper Product objects - it always picks up geoProductImpl.
As I understand I need to specify cq:commerceProvider to myProvider and then I need to somehow register MyProvider so it gets picked up.
Also I guess I need to add MyProductAdapter somehow so when shoppingCart executes following it returns my implementation instead of geoProductImpl.
Product product = productResource.adaptTo(Product.class);
I'd really appreciate if anyone could share an example or point me in the right direction for a guide.
Cheers
KostyaHi Kostya,
Look at this presentation recorded at http://dev.day.com/ddc/en/gems/commerce-framework.html
Thanks,
Sham -
How Tou2026 Create Custom Application in E-Commerce 7.0?
Hi all,
We want to set up SAP E-Commerce for ERP 7.0. For SAP E-Commerce for ERP 5.0 the following configuration guide is available:
How Tou2026 Create Custom Application in E-Commerce 5.0
What about SAP E-Commerce for ERP 7.0? Is this guideline also valid for 7.0?
If not, where can I find the corresponding configuration guideline for SAP E-Commerce for ERP 7.0 (on the SAP Service Marketplace?)?
Thanks in advance.
Regards,
AVHello Av,
Please see the Development and extension guide @
http://service.sap.com/crm-inst
=> Release 7.0
=> Operate
Regards
Mark -
How to create custom report in crm 2013
Hi,
I want to create custom report in crm 2013. I want to show Contact information in report. My scenario is that when I select multiple record and run report then contact information show in different pages. I want to show record in textbox in report. Here
is an example of display recordHi Aamir,
Have a look at below link it shows step by step how to create custom SSRS report.
http://www.njevity.com/blog/creating-dynamics-crm-2011-reports-sql-reporting-services-pre-filtering-and-default-filters
It tells using fetchxml, you can use SQL query as well. You need to use pre filtering to run report on selected record.
Thanks,
Prasad
Make sure to "Vote as Helpful" and "Mark As Answer",if you get answer of your question.
Maybe you are looking for
-
Data sources (ODBC) config -MS SQL Server linking
OS -WS2008 R2-64 I realize that the problems I'm experiencing are not one's everyday's activities and are falling quite astray of the regular Oracle dba work. There is no other place to post but here as the MS SQL Server forums were not able to provi
-
Idoc exchange between SAP R/3 4.6C and AS/400
Hi We need to develop an interface between SAP 4.6C and AS/400 Warehouse System. The users are totally new to idoc concept. I need some information where I can get information on how idoc can be created from by AS/400 warehouse persons ? What kind of
-
Problem creating backend PO in ECC
Hi, I have already posted this question in the SRM Forum. We are using SRM 5.0. I am trying to create a backend PO. SRM defines the standard PO with a doc type as 'EC' and the same in ECC is defined as 'ZSTD'. This is getting created perfectly. Absol
-
Just opened a new blank document in Pages (iWork 2009). When I try to type any text, the computer just "dings" at me and types nothing.
-
How can I take a very large gif and print it over many pages?
I have a gif image that, if printed, comes out all compacted (read: much too small) on one page. It is so small that it cannot really serve as a poster that I want to hang in my classroom. My desired result is to take the image and somehow split / d