Display Document in USER_COMMAND IN ALV
Hi Experts
In ALV am using USER_COMMAND for material document number, when i click the document it needs to open the display document(MIGO).
But its not opening the document, by defualt its coming with Goods Receipt -> Purchase Order.
How can we set this defualt, can you pls explain.
Thanks in advance.
Regards
Rajaram
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = v_repid
i_callback_user_command = 'PROCESS_USER_COMMANDS'
is_layout = w_layout
it_fieldcat = i_fieldcat[]
it_sort = gt_sort[]
i_default = 'X'
i_save = 'A'
it_events = v_events
is_print = w_print
TABLES
t_outtab = i_final1
EXCEPTIONS
program_error = 1
OTHERS = 2.
FORM process_user_commands USING syst-ucomm LIKE syst-ucomm
selfield TYPE slis_selfield.
CASE syst-ucomm.
WHEN '&IC1'.
IF selfield-sel_tab_field = 'I_FINAL1-VBELN'.
w_vbeln = selfield-value.
SET PARAMETER ID: 'VL' FIELD w_vbeln.
CALL TRANSACTION 'VL03N' AND SKIP FIRST SCREEN.
ELSEIF selfield-sel_tab_field = 'I_FINAL1-ORDER'.
v_vbeln = selfield-value.
SET PARAMETER ID: 'AUN' FIELD v_vbeln.
CALL TRANSACTION 'VA03' AND SKIP FIRST SCREEN.
ELSE.
READ TABLE i_final1 INTO w_final1 INDEX selfield-tabindex.
IF w_final1-vbeln <> ' '.
LOOP AT i_final INTO w_final WHERE vbeln = w_final1-vbeln.
READ TABLE i_makt INTO w_makt WITH KEY matnr = w_final-matnr .
IF sy-subrc = 0.
MOVE : w_final TO w_final2.
MOVE : w_makt-maktx TO w_final2-maktx.
APPEND w_final2 TO i_final2.
ELSE.
MOVE : w_final TO w_final2.
MOVE : ' ' TO w_final2-maktx.
APPEND w_final2 TO i_final2.
ENDIF.
ENDLOOP.
CLEAR w_makt.
ELSE.
LOOP AT i_final INTO w_final WHERE order = w_final1-order.
READ TABLE i_makt INTO w_makt WITH KEY matnr = w_final-matnr .
IF sy-subrc = 0.
MOVE : w_final TO w_final2.
MOVE : w_makt-maktx TO w_final2-maktx.
APPEND w_final2 TO i_final2.
ELSE.
MOVE : w_final TO w_final2.
MOVE : ' ' TO w_final2-maktx.
APPEND w_final2 TO i_final2.
ENDIF.
ENDLOOP.
CLEAR w_makt.
ENDIF.
PERFORM fieldcatalog1 USING selfield .
PERFORM event_build.
PERFORM layout_build1.
PERFORM grid_display1.
ENDIF.
ENDCASE.
ENDFORM. " PROCESS_USER_COMMANDS
Similar Messages
-
Display document from Content Server
Hello Expert,
I need to display document in CE portal, that are stored on ECC content server.
Does anyone know how to do this?
Thank you in advance.
Francois
Edited by: François BECKER on Oct 13, 2011 9:39 AMHi,
Try using this sample code
class lcl_handle_events definition.
public section.
methods:
on_double_click for event double_click of cl_salv_events_table
importing row column.
endclass. "lcl_handle_events DEFINITION
class lcl_handle_events implementation.
method on_double_click.
if column = 'INSTID'.
clear gv_usrnme.
*Reading the ALV table to get the purchase order number
read table gt_usrnme into gv_usrnme index row.
if sy-subrc = 0.
*Passing the value of the PO number to ME23N Transaction
set parameter id 'BES' field gv_usrnme-instid.
*Calling ME23N
call transaction 'ME23N'.
endif.
endif.
endmethod.
data gv_event type ref to lcl_handle_events. "events object
gv_events = gs_table->get_event( ).
create object gv_event.
*... §6.4 register to the event Link_CLICK
set handler gv_event->on_double_click for gv_events.
Hope this helps you. Here i was calling a different transaction code based on each line selection..
Regards
Ansari -
Displaying selection screen details in Alv Report output display as Header
Hi all,
May be somebody knows how I can show selected values with select-options in top_of_page using REUSE_ALV_GRID_DISPLAY.
This shoud work for all the reports and diff selection screens .
I need one dynamic process which will for display any report selection screen selected details.(Basically varient information of report).
Small example if possible, please.
Thanks in advance,
RimasHi Thiru,
Thanks for the input.
This is my exact requirement.
Hi Experts,
I would like to Display / Print Select-options selected details in ALV Header.
Ex: Say suppose here i enter kunnr as 1000
lifnr as 2000 to 4000
p_langu as 'EN'.
p_dir as 'C:\TEMP,
p_upda as 'X'
for selection screen below.
SELECTION-SCREEN :BEGIN OF BLOCK blk1 WITH FRAME TITLE text-000.
SELECT-OPTIONS : s_kunnr FOR kna1-kunnr.
SELECT-OPTIONS : s_lifnr FOR lfa1-lifnr.
PARAMETER : p_lanuge LIKE t002-spras DEFAULT sy-langu.
PARAMETER: p_dir LIKE rlgrap-filename
DEFAULT text-003 LOWER CASE.
PARAMETERS: p_upd AS CHECKBOX DEFAULT 'X'.
I dont want to Hard code selection screen values like
DATA: header TYPE slis_t_listheader,
wa TYPE slis_listheader,
wa-typ = 'S'(093).
wa-key = s_lifnr .
wa-info = 'Vendor no".
APPEND wa TO header.
I want dynamic process for all of my selection screen values selected
hard code may be it will be fine small selection screen it will work.
Fur that i got one process to get dynamically through fm
Ex: DATA: irsparams TYPE rsparams OCCURS 0 WITH HEADER LINE.
CALL FUNCTION 'RS_REFRESH_FROM_SELECTOPTIONS'
EXPORTING
curr_report = program
TABLES
selection_table = irsparams
EXCEPTIONS
not_found = 1
no_report = 2
OTHERS = 3.
loop at irsparams.
write : / irsparams-SELNAME.
write : / irsparams-SIGN.
write : / irsparams-OPTION.
write : / irsparams-LOW.
write : / irsparams-HIGH.
endloop.
I have done my requirement partially but i am failed to achive my full requirement.
Because
rsparams strcture is diff from slis_t_listheader.
Can any one help me for further assistence to display irsparams strcture data in alv header.
Thanks
Nag -
Is it Possible to display the output of the ALV list as POP-UP
Hi Experts,
Is it Possible to display the output of the ALV list as POP-UP, if yes then provide some ideas on it.
thanking in advance,
Samad.Hi samad, it is possible to display alv list as pop-up by using the FM " REUSE_ALV_POPUP_TO_SELECT"
try this sample code
CALL FUNCTION 'REUSE_ALV_POPUP_TO_SELECT'
EXPORTING
I_TITLE = P1_TITLE
I_SELECTION = 'X'
I_ZEBRA = 'X'
I_CHECKBOX_FIELDNAME =
I_LINEMARK_FIELDNAME =
I_SCROLL_TO_SEL_LINE = 'X'
I_TABNAME = 'T_VBAP'
I_STRUCTURE_NAME = 'T_VBAP'
IT_FIELDCAT = T_FCAT2
I_CALLBACK_PROGRAM = 'ZTEST_ALV_POPUP'
IMPORTING
ES_SELFIELD = I_SELFIELD
E_EXIT = W_EXIT
TABLES
T_OUTTAB = T_VBAP.
i think it will solve your problem
Regards,
Vijay -
How do i display text information below an ALV grid.??
Hi.
I need to display my output in an ALV GRID.
also i need to display summary details below the ALV grid. the smmary values keep changing dynamically depending upon selection screen inputs!!chk this report..write your code in the footer
*& Report ZRJR02 *
REPORT ZRJR02 .
*Table declaration.
TABLES:ZEMP_MST,ZDEPT_MST,ZDESG_MST,ZSL_TXN.
*Varriable declaration.
TYPE-POOLS SLIS.
DATA : POS TYPE I.
DATA REPID LIKE SY-REPID.
DATA : F1 TYPE SLIS_T_FIELDCAT_ALV,
F2 TYPE SLIS_FIELDCAT_ALV,
L_LAYOUT TYPE SLIS_LAYOUT_ALV.
DATA L_POS TYPE I VALUE 1. "position of the column
DATA GT_FIELDCAT TYPE SLIS_T_FIELDCAT_ALV.
*DATA GT_SORT TYPE SLIS_T_SORTINFO_ALV.
data: GT_EVENTS TYPE SLIS_T_EVENT,
FS_EVENTCAT LIKE LINE OF GT_EVENTs.
*Internal table declaration.
*DATA BEGIN OF IT_SORT OCCURS 5.
* INCLUDE TYPE SLIS_SORTINFO_ALV.
*DATA END OF IT_SORT.
DATA:BEGIN OF ITAB OCCURS 0,
ZEMPNO LIKE ZEMP_MST-ZEMPNO,
ZEMPNAME LIKE ZEMP_MST-ZEMPNAME,
ZDEPTCD LIKE ZEMP_MST-ZDEPTCD,
ZDEPTNAME LIKE ZDEPT_MST-ZDEPTNAME,
ZDESGCD LIKE ZEMP_MST-ZDESGCD,
ZDESGNAME LIKE ZDESG_MST-ZDESGNAME,
END OF ITAB.
REFRESH ITAB.CLEAR ITAB.
START-OF-SELECTION.
SELECT A~ZEMPNO A~ZEMPNAME A~ZDEPTCD B~ZDEPTNAME A~ZDESGCD C~ZDESGNAME
FROM ZEMP_MST AS A
INNER JOIN ZDEPT_MST AS B
ON A~ZDEPTCD EQ B~ZDEPTCD
INNER JOIN ZDESG_MST AS C
ON A~ZDESGCD EQ C~ZDESGCD
INTO CORRESPONDING FIELDS OF TABLE ITAB.
IF SY-SUBRC <> 0.
MESSAGE E899(M3) WITH 'No records'.
ENDIF.
perform f_build_eventcat.
PERFORM LAYOUT.
END-OF-SELECTION.
*& Form LAYOUT
FORM LAYOUT .
PERFORM FCAT USING 'ZEMPNO' 'ITAB' '' 'Emp.No.' 'ZEMPNO' 'ZEMP_MST' ''.
PERFORM FCAT USING 'ZEMPNAME' 'ITAB' '' 'Emp. Name' 'ZEMPNAME' 'ZEMP_MST' ''.
PERFORM FCAT USING 'ZDEPTCD' 'ITAB' '' 'Dept.Code' 'ZDEPTCD' 'ZEMP_MST' ''.
PERFORM FCAT USING 'ZDEPTNAME' 'ITAB' '' 'Dept.Name' 'ZDEPTNAME' 'ZDEPT_MST' ''.
PERFORM FCAT USING 'ZDESGCD' 'ITAB' '' 'Desg.Code' 'ZDESGCD' 'ZEMP_MST' ''.
PERFORM FCAT USING 'ZDESGNAME' 'ITAB' '' 'Desg.Name' 'ZDESGNAME' 'ZDESG_MST' ''.
* PERFORM LSORT USING 'ZEMPNO' 'IDATA' ''.
* PERFORM LSORT USING 'ZEMPNAME' 'IDATA' ''.
* MOVE IT_SORT[] TO GT_SORT[].
REPID = SY-REPID.
CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
EXPORTING
I_CALLBACK_PROGRAM = REPID
IT_FIELDCAT = F1
* IT_SORT = GT_SORT
I_SAVE = 'X'
IT_EVENTS = GT_EVENTS[]
TABLES
T_OUTTAB = ITAB.
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. " LAYOUT
*& Form FCAT
FORM FCAT USING P_FIELD P_TABLE P_SUM P_TEXT P_RFIELD P_RTABLE P_DISP.
ADD 1 TO POS.
F2-COL_POS = POS.
F2-FIELDNAME = P_FIELD.
F2-TABNAME = P_TABLE.
F2-SELTEXT_L = P_TEXT.
F2-REF_FIELDNAME = P_RFIELD.
F2-REF_TABNAME = P_RTABLE.
F2-DO_SUM = P_SUM.
F2-NO_OUT = P_DISP.
APPEND F2 TO F1.
CLEAR F2.
ENDFORM. " FCAT
*& Form LSORT
*FORM LSORT USING P_FIELD P_TABLE P_UP.
* ADD 1 TO L_POS.
* IT_SORT-SPOS = L_POS.
* IT_SORT-FIELDNAME = P_FIELD.
* IT_SORT-TABNAME = P_TABLE.
* IT_SORT-UP = P_UP.
* APPEND IT_SORT.
*ENDFORM. " LSORT
FORM F_BUILD_EVENTCAT .
CLEAR: GT_EVENTS. REFRESH: GT_EVENTS.
CLEAR: FS_EVENTCAT.
FS_EVENTCAT-NAME = 'TOP_OF_PAGE'.
FS_EVENTCAT-FORM = 'F_REPORT_HEADER_ALV'.
APPEND FS_EVENTCAT TO GT_EVENTS.
CLEAR: FS_EVENTCAT.
FS_EVENTCAT-NAME = 'END_OF_LIST'.
FS_EVENTCAT-FORM = 'F_WRITE_SUMMARY'.
APPEND FS_EVENTCAT TO GT_EVENTS.
ENDFORM. " F_BUILD_EVENTCAT
FORM F_REPORT_HEADER_ALV.
CALL FUNCTION 'Z_YHEAD_PRINT'
EXPORTING
TITLE1 = 'XYZ Limited'
TITLE2 = 'Employee Master'
TITLE3 = 'Created on '
COLOR = 'X'
ENDFORM.
*& Form F_WRITE_SUMMARY
* Write summary before exit
FORM F_WRITE_SUMMARY .
write:/ 'Welcome to XYZ Limited'.
write:/ 'This is a test program to display Report in ALV Format'.
ENDFORM. -
Error :Display document : Update was terminated.While displaying the PO
Hi All,
I am creating a PO with respect to contract in SAP 4.6C system using ME21.PO is getting created successfully.But when I want to display the same in ME23 it giving me a message 'Display document : Update was terminated'.( an express message is getting generated to view in SBWP transaction code ).
I went through some of SDN forums and checked the tcode SM13 to resolve the issue .I found that there is no ABAP dump got generated for the same .
Please help me to resolve the issue ..
Regards,
Praveen GB.Hi Lakshman.
I did that, systesm is showing below error :
1 ME_CREATE_DOCUMENT V1 NORMAL Err
when click on that ,I got one more window with an option to check ABAP dump,But there is no ABAP dump exists for the same.
I cheked in ST22 also there is no DUMP available for the above issue.
Please let me know how to crack this issue.
Regards.,
Praveen GB -
I have a new MacBook Pro w/ OS 10.6.4. & Safari 5.0.1 Right out of the box Adobe Reader would not display documents. I downloaded Adobe Reader 9.3.3 & installed. When attempting to see pdf files on Safari OR pdf files on my hard drive, all I will get is a dark grey screen. Blank. No message. No errors. My older G4 iMac has no problems. Only the Mac Book Pro with latest OS. I noticed that the Adobe web site listed version 9.3.3 available for Intel Mac OS 10.6.3. I also uninstalled Adobe then tried new download/installs several times, rebooting system after each uninstall and download. Does anyone have any idea what the issue is and how to fix it?
Carolyn: I was able, through more research in the discussion groups, to find a solution that resolved my problem! In the HD>applications folder>safari>get info I checked the "open in 32 bit mode" box. Then I went to Adobe Reader>preferences>Internet and unchecked the box "display PDF in browser using" [Adobe Reader 9.3.3]. I then closed my Safari Browser, restarted the computer and, happy days are here again! On my older G5 I only had to set the preferences on the Adobe Preferences, as Safari 5.0.1 only appears to work in 32 bit mode, as the 32 bit mode check box was not there. You may want to pass this on to other users with the same or similar problems.
-
I installed CS6 on my new retina MacBook pro laptops. InDesign and Acrobat display document pixilated. I ran the updates and it fixed Illustrator and Photosho, but not InDesign and Acrobat. What can I do to make them display in high resolution? HELP!
InDesign CS6 is not optimized for retina displays. You’ll need to move to Creative Cloud for retina compatibility.
-
Document in BSEG but not in BKPF. Message displays Document not in Database
Good day!
We are using SAP 4.6C.
Our client wants to display a document posted some time ago using FB03.
The message displayed, "Document not in database. Search Document archive?"
I looked for the document in BSEG and found that the document exists there.
However, the document header data are missing in BKPF.
Is there a transaction code that could have archived/removed the data in BKPF while
not changing anything in BSEG?
Could there be a way to retrieve these data?
Thank you!Good Day !
For your information, the pop up message prompting for archived mesages "Document is not in database. Search document archive? " is not present anymore in the release ECC 6.0. This pop existed in your release and this has been phased out as part of continuous product improvement after inputs from various customers.
In the newer releases instead of this pop up we have the message
"Document XXXX XXXXXXXXX XXXX is already archived" being displayed at the lower bottom of the screen. This helps you identify that the document was archived. This is the standard SAP behaviour.
Therefore, your document is archived. To able to retrieve this document again you can use Tcode FBL3N and change the Data source option (there is a button for that) to Archived Data.
The same you achieve in FB03 when you select Document List button and then Data Sources Button, mark the option Archive.
I hope this helps.
Best Regards,
Vanessa. -
Display document in the Single Document web item -authorization problem.
Hi Gurus,
I have a problem.
I have two types of users, users for display document in the Single
Document web item and users who can maintain and create new comment in
the Single Document web item.
My problem is I can't create users that can only display documents (all
users who can display the query can add new comment).
We use the new 7.0 Authorization.
The authorization object S_RS_ADMWB doesnu2019t influence about the
activity in the Single Document web item.
In the new authorization method, in PFCG or in RSECADMIN there is no
functionality that we can separate between the two types of users I
mention before.we used S_RS_COMP & S_RS_COMP1.
Please advice
Sharon.Hi Sankar,
this may be helpful
<a href="http://help.sap.com/saphelp_nw04/helpdata/en/e3/ae133bdca84047e10000000a11402f/content.htm">http://help.sap.com/saphelp_nw04/helpdata/en/e3/ae133bdca84047e10000000a11402f/content.htm</a>
Pavel -
SAP Portal Display Documents is hanging with Null Pointer Exception
Hi I am having problems with an iview from the products section of SAP standard iviews
In my portal page I have the following three iviews, find documents, display master data and display documents both the find docs and display master data work great, but the display documents seems to hang and a java Null Pointer Exception shows in the data frame of IE. It hangs up the whole page and I have to keep hitting back button to close the window and open. I have the following in config for web front end
DOC_OBJ is mapped to DOKAR, DOKNR, DOKVR and DOKTL with default set.
DOC_REQ is set to DOKAR default checked
EQUI_REQ is set to EQUI-EQUNR default checked
This is under SIMG_SPORT -> products -> select data fields for web front end
Am I missing something?
Cheers,
DevlinThe following code is your problem:
//-------construct
public void MySlide()
contents = new Tile[ROWS][COLS];
reset();
}Constructors don't return anything including void. Therefore you really aren't calling the above method as you assume in your main method as it is not a constructor. Remove the void keyword and your initializing code will execute properly. -
Display Document in Portal (WD)
Hi,
i have created a Container filled with Documents and after double clicking on one of them, i want it to be displayed (document) ,
would somebody tell me how can do this, with double click and which method shall i call , to display that document?
Thank you very much
SharlHi,
Did you try Office control UI element? It supports MS word and Excel files.
[Office Control UI element|http://help.sap.com/saphelp_nw70/helpdata/en/d1/af8841349e1909e10000000a155106/content.htm]
Best regards,
Chinnu -
Gnome-documents 3.16 not displaying document when using shell search
Hi. Upgrading gnome-documents to 3.16.0-1 broke the functionality of displaying documents straight from the shell search. File format doesn't matter (no pdfs or google documents are displayed), only "sad face" icon is shown instead. However, in present mode everything works and also thumbnails of pages are displayed in the page selector (bottom of the screen). Starting gnome-documents first and selecting a document from the main screen works as expected.
I haven't found anything related to this when googling, am I only one experiencing this? Looking at the journal didn't help me, neither removing indexes and caches. I downgraded gnome-documents back to 3.14.2-1 and now it is working normally.I can confirm this. So far mostly noticed this with pdf.
-
Hi experts,
I have a requirement to upload the document of any type (jpg,doc,tff,ppt,pps,xls,pdf etc) to a Z table (may be in a binary format) in a web dynpro application.
I think this can be achieved through Fileupload view element.
In another window, I need to display the document based on what is selected in the table row. Which control or method can display any type of document? As far as I know, the office control view element can only display documents of type (.doc and .xls).
Please provide pointers on this or any example will help me.
Thanks,
AmitJainAbhimanyu,
Thanks for the reply. Wonderful it worked like a miracle.
Awarded full points.
Thanks
Code I used in the action: onactionclick
METHOD onactionclick .
DATA: content TYPE xstring.
DATA: lr_context_view_node TYPE REF TO if_wd_context_node.
wd_context->get_attribute(
EXPORTING
name = `PDF`
IMPORTING
value = content ).
CALL METHOD cl_wd_runtime_services=>attach_file_to_response
EXPORTING
i_filename = 'Default_pdf.pdf'
i_content = content
i_mime_type = 'pdf'
i_in_new_window = ABAP_FALSE
i_inplace = ABAP_FALSE
ENDMETHOD.
Edited by: Amit Jain on Apr 2, 2009 5:46 PM -
To change the icon name displayed by default while an ALV is displayed.
Hi Experts ,
Need to change the icon name EXPORT displayed by default , while an ALV is displayed to Download to Excel.
How can this be achieved?
Regards.Hi,
You can copy the Status 'Standard' of the program 'SAPLKKBL' and create a Z. Change the icon name in the Z pf-status as wished. Now in the event slis_ev_pf_status_set of 'REUSE_ALV_GRID_DISPLAY' set the PF-Status to the Z that u created.
Regards,
Nikhil
Maybe you are looking for
-
How to get the alv saved in background mode without modifying the program?
Hi all, I have to run a standard report(IW39) in background and save the result ALV as excel or text file. How to get the result saved in excel / text format if I don't want to customize the standard program? (In the spool, there is an option to save
-
Dotmac published web gallery not showing up.
So I have now created 2 web galleries through Aperture 2. One shows up the other does not.. The URL it should be at is http://gallery.mac.com/cbchev68/100191 and it should be called Sushi Hunter.. The other one that is showing up is called Northwind
-
Cannot Get Quicktime Pro to work
I am a Windows user who is having difficulty believing there is no technical support for this product. I have purchased QuicktimePro 3 times, trying to get it to work. It does not. I get my key, and enter it in the Quicktime applet in Control Panel,
-
Error in Production: Enhancement to FBL1N
Dear all, I have developed a BTE for FBL1N. It's work firne in dev and quality servers fine. but it throughs an error in production i.e. 'fm doesn't found in library'. but i have transported to request num of that to production. Can anyone help me
-
Hi . 1) We are running WebAS 6.20 with EP 6.0 2) We do not have an add button in the AdminGui for the Web AS under the dbpool service . So we need to use dbpool.bat with the xml file to create our pools 3) WebAS 6.20 only runs ons JDK 1.3 .. we are r