Docking Container - Custom Container
Hi Friends,
I have the following doubts.
1. What all are the advantages of Docking and Custom Container.
2. Under what scenario's we use Docking over Custom Container.
3. I want to have 2 ALV GRID's in one screen one below another. Shall I use Docking Container?
internal table I_MARA with 10 records and I_MARC with 20 records.
Explain how to achieve this using Docking Container with code.
Regards,
Viji.
hi vijayalakshmi
you can use 2 custom containers in that screen for two ALV grid
*& Report ZLISTBOX1 *
REPORT zlistbox1 .
*parameters: date like sy-datum.
TABLES: lfa1,ekko.
TYPE-POOLS: slis,sdydo.
*select-options: vendor for lfa1-lifnr.
DATA: itab TYPE TABLE OF ekko,
identity TYPE REF TO cl_gui_custom_container,
l_list TYPE slis_t_listheader,
l_logo TYPE sdydo_value,
l_identity TYPE REF TO cl_gui_custom_container,
l_tree TYPE REF TO cl_gui_alv_tree_simple,
tree TYPE REF TO cl_gui_alv_tree_simple,
fcat TYPE lvc_t_fcat,
sort_b TYPE lvc_t_sort,
sort_w TYPE lvc_s_sort.
CALL SCREEN 100.
*& Module USER_COMMAND_0100 INPUT
text
MODULE user_command_0100 INPUT.
CASE sy-ucomm.
WHEN 'DISPLAY'.
PERFORM col_head.
PERFORM output.
PERFORM sort.
IF l_identity IS INITIAL.
CREATE OBJECT l_identity
EXPORTING
container_name = 'LOGO'.
CREATE OBJECT l_tree
EXPORTING
i_parent = l_identity.
PERFORM logo USING l_logo.
CALL METHOD l_tree->create_report_header
EXPORTING
it_list_commentary = l_list
i_logo = l_logo.
ENDIF.
IF identity IS INITIAL.
CREATE OBJECT identity
EXPORTING
container_name = 'JANAGAR'.
CREATE OBJECT tree
EXPORTING
i_parent = identity.
CALL METHOD tree->set_table_for_first_display
CHANGING
it_outtab = itab
it_fieldcatalog = fcat
it_sort = sort_b.
ENDIF.
*refresh itab.
CALL METHOD tree->refresh_table_display.
WHEN 'EXIT'.
LEAVE PROGRAM.
ENDCASE.
ENDMODULE. " USER_COMMAND_0100 INPUT
*& Form logo
text
-->P_LOGO text
FORM logo USING p_logo.
p_logo = 'ENJOYSAP_LOGO'.
ENDFORM. "logo
*& Form col_head
text
FORM col_head.
CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'
EXPORTING
I_BUFFER_ACTIVE =
i_structure_name = 'EKKO'
I_CLIENT_NEVER_DISPLAY = 'X'
I_BYPASSING_BUFFER =
I_INTERNAL_TABNAME = ITAB
CHANGING
ct_fieldcat = fcat.
EXCEPTIONS
INCONSISTENT_INTERFACE = 1
PROGRAM_ERROR = 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.
ENDFORM. "col_head
*& Form output
text
FORM output.
SELECT * FROM ekko INTO TABLE itab WHERE lifnr = lfa1-lifnr.
ENDFORM. "output
*& Form sort
text
FORM sort.
sort_w-spos = 1.
sort_w-fieldname = 'EBELN'.
APPEND sort_w TO sort_b.
sort_w-spos = 2.
sort_w-fieldname = 'AEDAT'.
APPEND sort_w TO sort_b.
sort_w-spos = 3.
sort_w-fieldname = 'BUKRS'.
APPEND sort_w TO sort_b.
ENDFORM. "sort
cheers
s.janagar
Similar Messages
-
Difference between Docking container & Custom container?
What is the difference between Docking container & Custom container?
Where we use docking container??
Cheers
Kunu
Moderator Message : Interview type questions are not allowed. Search for available information before posting. Thread locked.
Edited by: Vinod Kumar on May 19, 2011 11:18 AMWhat is the difference between Docking container & Custom container?
Where we use docking container??
Cheers
Kunu
Moderator Message : Interview type questions are not allowed. Search for available information before posting. Thread locked.
Edited by: Vinod Kumar on May 19, 2011 11:18 AM -
Hi,
I want to reuse the same custom container screen for a different data.
First screen there will be button 1 and button 2
if I click button 1 then calculate and display data in custom container, if button 2 is clicked then calculate and display data with in the same custom container.
For this
1. Created Custom container - CONTAINER
2. In program defined and created custom container and custom alv grid
g_custom_container TYPE REF TO cl_gui_custom_container,
alv_grid TYPE REF TO cl_gui_alv_grid.
IF g_custom_container IS INITIAL.
CREATE OBJECT g_custom_container
EXPORTING
container_name = 'CONTAINER'.
CREATE OBJECT alv_grid
EXPORTING
i_parent = g_custom_container.
ENDIF.
3. Display data using CALL METHOD alv_grid->set_table_for_first_display
every thing works great for button 1
4. when button 2 is clicked then calculate and display different set of data in same custom container which is used earlier.
5. here I used
call method alv_grid->free.
call method g_custom_container->free.
6. create above objects once again and tried to use
call method alv_grid->set_table_for_first_display
, to reuse the same custom container 'CONTAINER' again for a different set of data and getting ABAP dump.
In debug mode, when I used the above method FREE for both ALV_GRID and G_CUSTOM_CONTAINER objects are not clearing.
Please let me know how can I reuse the same container for a different set of data when button2 is pressed.
Thanks in advance,
Krishna
Please use code tags to format your code and post in the correct forum
Edited by: Rob Burbank on Oct 1, 2010 2:37 PMHello Krishna
I would recommend to use a different approach instead of trying to initialize your container instances:
DATA:
go_container_1 TYPE REF TO cl_gui_custom_container,
go_container_2 TYPE REF TO cl_gui_custom_container,
go_grid_1 TYPE REF TO cl_gui_alv_grid,
go_grid_2 TYPE REF TO cl_gui_alv_grid.
" NOTE: Do this coding BEFORE calling the screen
* (1) Create 2 containers
CREATE OBJECT g_container_1
EXPORTING
container_name = 'CONTAINER'.
CREATE OBJECT g_container_2
EXPORTING
container_name = 'CONTAINER'.
" NOTE: If it is not possible to use the same container name then either create an additional
" dummy screen having a second CUSTOM_CONTROL element or replace
" the customer containers with docking containers -> here you do not need to give a container name
* (2) Create 2 grid instances using a different container
* (3) Link the first container to the screen using its LINK method:
CALL METHOD go_container_1
EXPORTING
repid = <...>
dynnr = <...>.
* (4) Perhaps you need to define a second dummy screen to which you link the second container
* (5) Display first grid instance (as default)
Now when the user pushes button 2 (to display the second grid) link container_1 to the dummy screen
and link container_2 to your main screen.
Regards
Uwe -
Dont want see default buttons on custom container ?
Hi Rich,
Thanks for your solution, but i dont want to see the icons which are showing bydefault on top of the container...
Is it possible to avoid...
Can you please let me know.
regards
jayaHi Rich,
Thanks for your solution, but i dont want to see the icons which are showing bydefault on top of the container...
Is it possible to avoid...
Can you please let me know.
regards
jaya
Hi, you can do this using a custom container instead of the docking container. If you have a screen, go into screen painter and create a custom control in that screen, then in the PBO, you can reuse that coding and just use the custom container instead of the docking. Make sure to name the custom container in the screen as 'TE_CONTAINER'. This is what I've referenced in the code below.
data: cc_container type ref to cl_gui_custom_container.
create object cc_container
EXPORTING
CONTAINER_NAME = 'TE_CONTAINER'.
create object text_editor
exporting
parent = cc_container.
xtext = 'http:
www.sap.com'.
append xtext to itext.
call method text_editor->set_text_as_r3table
exporting
table = itext
exceptions
others = 1.
Regards,
Rich Heilman -
Push Buttons in the custom Container
Hi
I have created one container using cl_gui_custom_container.
Now I have splitted the container into two parts as left and right using cl_gui_splitter_container.
Is there any way to create push buttons in the left container.
Regards
VijayPushbutton is an example of classic control while custom container is an example of GUI control . You can't mix controls of first type with the latter meaning you can embed classic control in GUI container. You can have such control only outside any container (on screen canvas). This is very common that you have docking container on the left and classic controls on the right side of the screen (not container)
To be able to have a button inside container, you will have to use cl_gui_toolbar class adding your options there and handling them as normal OO event. This way you only combine GUI controls (toolbar + container). Otherwise it is not possible.
Regards
Marcin -
ALV resizing Custome container
Hi All,
How can i resize Custom controler area based on the number of records i fetch..
Regards
AnujWe cannot resize the custom container area dynamically using ABAP code.Try using docking container instead.
-
Docking and splitter container
Hi,
I need to create 2 containers as per the attached document, that are resizeable in both x and y axis.
I have been able to do this, similar to in transaction DWDM, where I have 2 cl_gui_container's inside a customer container.
But this solution does not allow resizing in the vertical axis, as they are tied inside the "fixed" customer container.
Is there a way to create the docking and splitters that allow both axis resizing?
Thanks
TonyHi Tony,
of course you can create both types of containers (docking and Splitter).
Here is an example to create a splitter container :
Data declarations:
DATA: lo_gui_container_head TYPE REF TO cl_gui_container,
lo_gui_container_costs TYPE REF TO cl_gui_container,
lo_gui_splitter_container TYPE REF TO cl_gui_splitter_container,
lo_event_receiver TYPE REF TO lcl_event_receiver,
lo_event_receiver_head TYPE REF TO lcl_event_receiver_head,
lo_custom_container_head TYPE REF TO cl_gui_custom_container.
part from the source code :
CREATE OBJECT lo_custom_container_head
EXPORTING
container_name = 'ALV_GRID'.
*Create SPLITTER and SPLITTER panes
* here we can define if splitters are horizontal or vertical:
IF rb_hori IS INITIAL.
lv_rows = 2.
lv_columns = 1.
ELSE.
lv_rows = 1.
lv_columns = 2.
ENDIF.
* create splitter:
CREATE OBJECT lo_gui_splitter_container
EXPORTING
parent = lo_custom_container_head
rows = lv_rows
columns = lv_columns.
* Splitter for Header
CALL METHOD lo_gui_splitter_container->get_container
EXPORTING
row = 1
column = 1
RECEIVING
container = lo_gui_container_head.
CALL METHOD lo_gui_splitter_container->set_row_height
EXPORTING
id = 1
height = 20.
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
* 2nd Spiltter for details:
CALL METHOD lo_gui_splitter_container->get_container
EXPORTING
row = lv_rows
column = lv_columns
RECEIVING
container = lo_gui_container_costs.
* splitter for header
CREATE OBJECT alv_head
EXPORTING
i_parent = lo_gui_container_head.
* Objekt ALV grid mit splitter anlegen:
CREATE OBJECT alv_grid
EXPORTING
i_parent = lo_gui_container_costs.
* create handlers for both spitters :
CREATE OBJECT lo_event_receiver_head.
CREATE OBJECT lo_event_receiver.
SET HANDLER lo_event_receiver->handle_hotspot_click FOR alv_grid.
SET HANDLER lo_event_receiver_head->handle_double_click FOR alv_head.
SET HANDLER lo_event_receiver_head->handle_toolbar FOR alv_head.
SET HANDLER lo_event_receiver_head->handle_before_user_command FOR alv_head.
SET HANDLER lo_event_receiver_head->handle_hotspot_click_head FOR alv_head.
* display both tables in the spitters:
CALL METHOD alv_head->set_table_for_first_display
EXPORTING
is_layout = ls_layout
it_toolbar_excluding = lt_toolbar_excluding[]
i_default = lv_default
i_save = lv_save
is_variant = ls_disvarhead
CHANGING
it_outtab = gt_head[]
it_fieldcatalog = gt_cathead.
CALL METHOD alv_grid->set_table_for_first_display
EXPORTING
is_layout = ls_layout
is_variant = ls_disvariant
i_default = lv_default
i_save = lv_save
it_toolbar_excluding = lt_toolbar_excluding[]
CHANGING
it_outtab = gt_details[]
it_fieldcatalog = gt_fieldcatalog[]
it_filter = gt_filter[].
Hope this helps
Regards
Fred -
Display data in a custom container
Hi All,
My requirment is to just display data in a custom container.
I could able to display data in change mode but not display mode.Can you please let me now how can i do that.
Thanks in Advance
KVIm using cl_gui_custom_container.
In PBO
here is my code whihc is fine for Change/Edit mode.
create control container
CREATE OBJECT g_editor_container
EXPORTING
container_name = 'DISP_CONT'
EXCEPTIONS
cntl_error = 1
cntl_system_error = 2
create_error = 3
lifetime_error = 4
lifetime_dynpro_dynpro_link = 5.
IF sy-subrc NE 0.
do nothing
ENDIF.
create calls constructor, which initializes, creats and links
a TextEdit Control
CREATE OBJECT g_editor
EXPORTING
parent = g_editor_container
wordwrap_mode = cl_gui_textedit => wordwrap_at_fixed_position
wordwrap_to_linebreak_mode = cl_gui_textedit=>TRUE
EXCEPTIONS
OTHERS = 1.
IF sy-subrc NE 0.
do nothing
ENDIF.
In PAI
CALL METHOD g_editor->get_text_as_r3table
IMPORTING
table = Text_table
EXCEPTIONS
OTHERS = 1.
IF sy-subrc NE 0.
ENDIF.
Text_table contains messages which r supposed to be displayed.
Based on certain logical operations i will display the messages. -
Refresh Editable ALV Grid inside a custom Container
Hello all,
I am having a screen with custom container in which i am populating datas and a entry screen which is going to have my
filtering condition for this custom container screen..
The problem i am facing is whenever i come out of the custom container screen after displaying and again give the
necessary filtering data in the previous screen...
the custom container screen displays wrong values...
But when i refresh the data with the refresh icon in the container right datas are coming...
I even used CALL METHOD C_ALVGD->REFRESH_TABLE_DISPLAY
EXPORTING
IS_STABLE = STABLE
EXCEPTIONS
FINISHED = 1
OTHERS = 2. after displaying the values using
CALL METHOD C_ALVGD->SET_TABLE_FOR_FIRST_DISPLAY
EXPORTING
IT_TOOLBAR_EXCLUDING = T_FUNC
IS_LAYOUT = IT_LAYOUT
I_SAVE = 'A'
CHANGING
IT_OUTTAB = IT_ZCAWNT_V
IT_FIELDCATALOG = IT_FCAT
EXCEPTIONS
INVALID_PARAMETER_COMBINATION = 1
PROGRAM_ERROR = 2
TOO_MANY_LINES = 3
OTHERS = 4.
IF SY-SUBRC 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
I have refreshed my internal table once when i display and again fetched from the DB according to the filtering conditions given
in the first screen.
I have tried clearing the Object created once when i display and again recreated it.But could not get the output.
solution would be really helpful...Hey all,
Thanks a lot for helping me...
The problem is solved....
i just used,
CALL METHOD C_ALVGD->FREE. 'Grid inside the container
CLEAR C_ALVGD.
CALL METHOD C_CCONT->FREE. "Container
CLEAR C_CCONT.
when i click BACK Button from screen 2 to screen1. -
In R/3 display smartform as pdf in a custom container
Hello,
I want to display smartform as pdf in a custom contianer . I was able to find all the right code from sdn.
but my problem is that when executed my sap gui is closed without any error.
I am unable to understand what is going wrong.
CALL METHOD G_HTML_CONTROL->SHOW_URL( URL = LV_URL
IN_PLACE = 'X' ). does not show the pdf.
Can any one help me to find out if we need to do some setting for MIME type application/pdf. Because I tried to display a bar chart in the custom container of MIME type text/html , and this is working fine.
Is any setting missing in our R/3 because of which the code is not getting executed.
below code is the exact copy from a post in sdn:
report ztest_pdf.
DATA: LT_PDF TYPE TABLE OF TLINE,
LS_PDF LIKE LINE OF LT_PDF,
LV_URL TYPE CHAR255,
PDF_FSIZE TYPE I,
LV_CONTENT TYPE XSTRING,
LT_DATA TYPE STANDARD TABLE OF X255.
DATA : L_JOB_OUTPUT_INFO TYPE SSFCRESCL.
DATA : LS_CONTROL_PARAM TYPE SSFCTRLOP.
DATA : G_HTML_CONTAINER TYPE REF TO CL_GUI_CUSTOM_CONTAINER,
G_HTML_CONTROL TYPE REF TO CL_GUI_HTML_VIEWER.
* pdf_control type ref to cl_gui_pdfviewer.
DATA : P_VBELN TYPE VBELN_VL.
DATA : i_html TYPE w3htmltabtype.
", g_url TYPE w3url
FIELD-SYMBOLS <FS_X> TYPE X.
INITIALIZATION.
LS_CONTROL_PARAM-GETOTF = 'X'.
LS_CONTROL_PARAM-NO_DIALOG = 'X'.
START-OF-SELECTION.
CALL FUNCTION '/1BCDWB/SF00000298'
EXPORTING
* ARCHIVE_INDEX =
* ARCHIVE_INDEX_TAB =
* ARCHIVE_PARAMETERS =
CONTROL_PARAMETERS = LS_CONTROL_PARAM
* P_VBELN = P_VBELN
* MAIL_APPL_OBJ =
* MAIL_RECIPIENT =
* MAIL_SENDER =
* OUTPUT_OPTIONS =
* USER_SETTINGS = 'X'
IMPORTING
* DOCUMENT_OUTPUT_INFO = L_DOCUMENT_OUTPUT_INFO
JOB_OUTPUT_INFO = L_JOB_OUTPUT_INFO
* JOB_OUTPUT_OPTIONS = L_JOB_ OUTPUT_OPTIONS
EXCEPTIONS
FORMATTING_ERROR = 1
INTERNAL_ERROR = 2
SEND_ERROR = 3
USER_CANCELED = 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.
data pdfxstring type xstring.
CALL FUNCTION 'CONVERT_OTF'
EXPORTING
FORMAT = 'PDF'
IMPORTING
BIN_FILESIZE = PDF_FSIZE
bin_file = pdfxstring
TABLES
OTF = L_JOB_OUTPUT_INFO-OTFDATA
LINES = LT_PDF
EXCEPTIONS
ERR_MAX_LINEWIDTH = 1
ERR_FORMAT = 2
ERR_CONV_NOT_POSSIBLE = 3
OTHERS = 4.
CALL SCREEN 100.
module STATUS_0100 output.
* SET PF-STATUS 'xxxxxxxx'.
* SET TITLEBAR 'xxx'.
CREATE OBJECT G_HTML_CONTAINER
EXPORTING
CONTAINER_NAME = 'PDF'.
CREATE OBJECT G_HTML_CONTROL
EXPORTING
PARENT = G_HTML_CONTAINER.
* Convert xstring to binary table to pass to the LOAD_DATA method
CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
EXPORTING
BUFFER = pdfxstring"LV_CONTENT
TABLES
BINARY_TAB = LT_DATA.
* PERFORM bar_chart .
* Load the HTML
CALL METHOD G_HTML_CONTROL->LOAD_DATA(
EXPORTING
TYPE = 'application' "'text' " 'application'
SUBTYPE = 'pdf' "'html' "'pdf'
IMPORTING
ASSIGNED_URL = lv_URL
CHANGING
DATA_TABLE = LT_DATA "i_html "LT_DATA
EXCEPTIONS
DP_INVALID_PARAMETER = 1
DP_ERROR_GENERAL = 2
CNTL_ERROR = 3
OTHERS = 4 ).
* Show it
CALL METHOD G_HTML_CONTROL->SHOW_URL( URL = LV_URL
IN_PLACE = 'X' ).
Thanks,
Jaya.
Edited by: kishan P on Jun 9, 2011 1:40 PMHello Sandra,
Thanks for your reply, but eventhen it fails to load the pdf. Is ADS required to be installed for this?
Can I just pass the pdf_fsize imported from CONVERT_OTF which is of type i.
CALL FUNCTION 'CONVERT_OTF'
EXPORTING
FORMAT = 'PDF'
IMPORTING
BIN_FILESIZE = PDF_FSIZE
bin_file = pdfxstring
TABLES
OTF = L_JOB_OUTPUT_INFO-OTFDATA
LINES = LT_PDF
EXCEPTIONS
ERR_MAX_LINEWIDTH = 1
ERR_FORMAT = 2
ERR_CONV_NOT_POSSIBLE = 3
OTHERS = 4.
CALL METHOD G_HTML_CONTROL->LOAD_DATA(
EXPORTING
TYPE = 'application' "'text' " 'application'
SUBTYPE = 'pdf' "'html' "'pdf'
size = PDF_FSIZE
IMPORTING
ASSIGNED_URL = lv_URL
CHANGING
DATA_TABLE = LT_DATA "i_html "LT_DATA
EXCEPTIONS
DP_INVALID_PARAMETER = 1
DP_ERROR_GENERAL = 2
CNTL_ERROR = 3
OTHERS = 4 ).
Thanks,
Jaya. -
Alv grid dispaly in custom container....?
Hay friends i have shown ALV grid display in custom container .....in that some fields are input fields...
how can i modify my internal table (which is shown in ALV )...by knowing that this field is changed...i need to update in my internal table...
need help...
reply soon...Hello
All you need to know can be found in thread About events of class cl_gui_alv_grid and the links mentioned therein.
Regards
Uwe -
How to clear the picture from custom container
Hi All
I am uploading the employee image into custom container . for that i have used the below fn modules
CALL FUNCTION 'HR_IMAGE_EXISTS'
EXPORTING
p_pernr = pernr
* P_TCLAS = 'A'
* P_BEGDA = '18000101'
* P_ENDDA = '99991231'
IMPORTING
* P_EXISTS =
p_connect_info = g_connect_info
EXCEPTIONS
error_connectiontable = 1
OTHERS = 2
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
else.
CALL FUNCTION 'SCMS_DOC_URL_READ'
EXPORTING
* MANDT = SY-MANDT
stor_cat = space
crep_id = g_connect_info-archiv_id
doc_id = g_connect_info-arc_doc_id
* PHIO_ID =
comp_id = 'DATA'
* SIGNATURE = 'X'
* SECURITY = ' '
* USE_LOCATION = 'A'
* LOCATION = ' '
* HTTP_URL_ONLY = ' '
dp_url_only = 'X'
* LIFETIME = ' '
* NO_CACHE = ' '
* EXPIRATION =
* PDF_MODE = ' '
* URL_EXTENTION = ' '
* FORCE_GET = ' '
IMPORTING
url = g_url
EXCEPTIONS
error_config = 1
error_parameter = 2
error_signature = 3
http_not_supported = 4
docget_not_supported = 5
not_accessable = 6
data_provider_error = 7
tree_not_supported = 8
not_supported = 9
OTHERS = 10
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
after getting the url for uploading the picture
I used load_picture_from_url
the image is uploaded, but when i try to clear the image from control using picture->clear_picture
it is not clearing the image
Please help me how to clear the image.
Thanks
RamaHi,
" Request an URL from the data provider by exporting the pic_data.
CLEAR url.
PERFORM load_pic_from_db CHANGING url.
" load picture
CALL METHOD cl_gui_picture_1->load_picture_from_url
EXPORTING
url = url.
CLEAR url.
url = 'file://C:\sap-logo.gif'.
CALL METHOD cl_gui_picture_2->load_picture_from_url
EXPORTING
url = url.
CLEAR url.
url = 'http://www.sap-press.com/images/logo_books_online_162_50.gif'.
CALL METHOD cl_gui_picture_3->load_picture_from_url
EXPORTING
url = url.
init = 'X'.
CALL METHOD cl_gui_cfw=>flush
EXCEPTIONS
cntl_system_error = 1
cntl_error = 2.
ENDIF.
Its helpful.
Regards,
Raj. -
Need F4 Help for custom container element based on partner type
Hi Friends
I am displaying customer details in custom container .In that custom container I have a field Partner number,Partner type etc etc..
I included F4 help for partner number field, In that I referenced the following field.Now its coming perfectly.
wa_cat1-f4availabl = 'X'.
wa_cat1-ref_table = 'KNA1'.
wa_cat1-ref_field = 'KUNNR'.
But as per my requirement, customer wants to get the different F4 help when the partner type eq "Contact Person".
Rest of the partner type(Ship to party, Sold to party,Reseller, End user) should show the above one.
So I dont know, where I have to change, because in the field catelod level there is no option to control particular type in the column.
Kindly help me on this.
Thanks
GowrishankarHi Jose
Thanks for your Input.I created Event Receiver than Defined and implemented a method to get F4 help for customer number and email id field.Already F4 help is available for Email ID.Now I want to Include the F4 help for partner number field, it will call the search help based on partner type.I can able to get the partner number field search help, but F4 help is not working for email id.
I am not sure some whee its over writing some values or I am not sure.If I comment partner number F4 help class, I can able to get the F4 help for email address.
Plz guide to me to fix the same.
Thanks
Gowrishankar -
Help Regarding a Picture Display in Customer Container.
Hi,
I am generating a ALV report output with an ICON in every line to show the corresponding picture of the material in a Pop-up window.
Now for displaying the picture at usercommand from ALV ,
HTML browser is placed on the custom container screen and the URL is passed to the variable EDURL which helps in processing the material picture on the screen.
The issues that in this process is.. Picture pop-up currently shows briefly the previous picture before retrieving requested image .
Please help me to solve this,
Thanks
Priyanka.Hi,
While calling the pop up clear, refresh all the variables and pass the new values.
I guess when you are calling the Image for first time you are not getting any delay or previous image.
So basically see the variables when calling for the first time and implement for the rest of times also.
BR
Dep -
Which table contains - Customer Master Changes?
Team,
Which table contains - Customer Master Changes?
Please be specific; For example:
CDHDR:
OBJECTCLAS ?
CDPOS:
BJECTCLAS?
ABNAME
ABKEY
HNGIND
ThanksHi Naved,
try this:
CDHDR-OBJECTCLAS = 'DEBI'
CDHDR-OBJECTID = customer no.
CDPOS-OBJECTCLAS = 'DEBI'
CDPOS-OBJECTID = customer no.
CDPOS-CHANGENR = CDHDR-CHANGENR
CDPOS-TABNAME = 'KNA1'
CDPOS-TABKEY = sy-mandt + customer no. (key of table KNA1)
CDPOS-FNAME = field modified
CDPOS-CHNGIND = (U Update, I Insert, D Delete)
Regards, Manuel
PS: Please remember to reward points if the answer is useful.
Maybe you are looking for
-
Goods receipt when PO creator has been removed from org structure ?
Hello in my organisational structure PPOMA_BBP, i have 2 users, X and Y. X has created a PO in the SRM portal.However , X has been removed from the org. structure. Is it possible for Y to make the goods recept( that is , Y logs in the portal and make
-
Crash oraclehome node 1 - mistaken removal
He was performing a procedure here to remove the spfile location to move storage, but control and came up with page break and deleted files that could not .. not delete them off cause I hit CTRL + C and stopped halfway exclusion. The command was run
-
Displaying Custom Opportunity Fields in Accounts
Hi, We have created custom opportunity fields via EEWB. We would also like to display these fields in the Accounts page, in the Opportunities assignment block as columns. The fields were already part of the BUILOPPORTUNITY context node. I have create
-
Image quality degrades in published swf
I've built a Flash site for a freind who is a photographer. There are over 100 images on the site that are imported jpegs. Most of them look fine but two of them look very washed out when I publish my swf even though in the Flash project file they ha
-
Function used to find Query Execution Time
Hi All! Could you please let me know the function name used in finding 'Query Execution Time'? Thanks and Regards, Vikas