ALV user defined status
Hi,
In hierarchial list display.
I'm implementing my own user defined status.
I have copied the standard status and modified for SAVE & BACK functions.
In the at user command module i have coded for SAVE & BACK.
for SAVE it's working fine where as for BACK control is not coming to my user command module.it's just going back to the previous screen.how to implement the function code for BACK.
Regards
Raghavendra
Hi Raghavendra,
in the PAI event of ur screen from where u want to go back to user command.
sample code:
<b>PROCESS AFTER INPUT</b>.
<b>MODULE <modulename> AT EXIT-COMMAND.</b>
<b>MODULE <modulename> INPUT.</b>
IF OK-CODE = 'BACK' .
LEAVE PROGRAM.
ENDIF.
<b>ENDMODULE.</b>
instead of <b>LEAVE PROGRAM</b> u can also use
<b>LEAVE TO SCREEN 0</b>.
hope this works fine for u.
Similar Messages
-
Set user Defined Status in the Shopping Cart
Hello,
I am facing problem while Setting user defined Status in the shopping cart. Below are the steps which I have followed.
1. I have created Status profile via Transaction 'BS02' and also created the Status 'On Hold' with Status number 'Exxxxx'.
2. Entry of this external status is also created in the table TJ30.
3. Also I tried assigning this Status profile in Transaction type for "BUS2121".
After making the above configuration for the new User defined status I have used below function module in my program.
I am using FM "CRM_STATUS_CHANGE_EXTERN" to set the User defined status in the shopping cart.
CALL FUNCTION 'CRM_STATUS_CHANGE_EXTERN'
EXPORTING
objnr = ls_header-guid
user_status = lv_stat
IMPORTING
stonr = lv_stonr
After this FM I am also using "COMMIT WORK AND WAIT ".
But still my Status is not updated in the Shopping Cart.
Expert please suggest if some one has work in this scenario.
Best Regards,
Chirag ShahHi Chirag,
try to initialize Status schema before update.
CALL FUNCTION 'CRM_STATUS_OBJECT_CREATE'
EXPORTING
objnr = ls_header-guid
obtyp = 'SCH'
stsma = 'ZHOLD'
EXCEPTIONS
obtyp_invalid = 1
status_object_already_exists = 2
stsma_invalid = 3
stsma_obtyp_invalid = 4
error_ocurred = 5
OTHERS = 6.
Regards
K -
Hi Friends,
How to add a user defined toolbar for ALV programs. Please help me. I need very urgent.
Regards
PraveenHi Praveen,
The following document gives you almost everything that you need to know about an ALV -
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/abap/an easy reference for alv grid control.pdf
Regards,
Anand Mandalika. -
ABAP Web Dynpro ALV - User Defined Functions
Dear All,
I don't know if my question is worth a new topic, but since I haven't found any appropriate answer by now I want you to ask the following:
We're using the ALV web dynpro component to manage data and have added user functions in order to display buttons for saving data and adding new lines.
Everything worked fine for us until some users adjusted the default view of the table by using the default 'Settings' option to hide some columns.
The problem we're facing now is that the labels of the additional buttons - which were set up by use of OTR texts on initialisation of the dynpro - are blank until the user navigates on the dynpro or changes some cell contents. After that labels are shown correctly again.
The problem is that I cannot simulate this dynamically, neither I can narrow down the source of the problem at all.
A prompt reply would be very much appreciatedHi Eddy,
Could you please create a CSN ticket for this problem, the component is BC-WD-CMP-ALV.
Please enter all relevant data and access to your system to the message.
Thanks,
Regina -
hi all
just a simple question.
the procedure illustrated in SBW about "status concept" is valid for cockpit datasources?
thanks,
StefaniaHi Ram,
Thanks again. I am heading to get my user status for opportunity using the standard way suggested by you.
1) Maintained the BW status groups , objects.
2) Generated text data source.
3) RSA6 - enhance the extract structure for 0CRM_OPPT_H
4) In the append structure add the field BWSTONEUSS0
where ONE is Status group and USS0 is status object.
Still the field is not visible in extract structure.
Thus not able to see the extraction in RSA3.
Can you pls support me on this ?
Thanks , -
ALV User defined toolbar button
I have defined a checkbox button i.e button type is 5 , in the alv toolbar.
I have handled the toolbar button with an event handler also.
But how do i check in the handle_user_command event handler whether the button is checked or unchecked i.e selected or unselected.
if anyone has a sample code for this pls attach the link.
Thanks,
Rohit.Hi,
You trigger out a message when it is checked or unchecked.
IF CHK1 = 'X'.
MESSAGE I001. " CHECKBOX IS SELECTED.
ELSE.
MESSAGE I002. " CHECKBOX IS NOT SELECTED.
ENDIF.
Hope this helps.
Cheers!! -
API for Work Order status from Released to Unreleased or any user defined s
Dear All
Is there any API for to change work order status from Released to Unreleased or any user defined status.
Take care
AamirHi Ben,
As query is resolved, you should close the Thread after rewarding to the Concerned
Thanks,
Manish -
Hi all,
I am doing an ALV through an user defined pf-status.But when I am using this pf-status I am unable to find the standard application tool bar and remaining also.I have seen some threads regarding this. These threads are giving me the suggestions to copy the standard pf status of ALV into user defined pf status. How to copy this standard pf status to my program.
Sathish Reddy.First of all you must copy STANDART status from any ALV example in SLIS Development Class into your report.
You can change this status Properties. (Functions, Buttons)
And you must add this form to Active Your Status in ALV.
*& Form set_pf_status
* text
* --> p1 text
* <-- p2 text
form set_pf_status using rt_extab type slis_t_extab.
set pf-status 'STANDARD' excluding rt_extab.
endform.
and you must add specified line in your callf of ALV Function.
call function 'REUSE_ALV_LIST_DISPLAY'
exporting
i_callback_program = g_repid
it_fieldcat = gt_fieldcat[]
it_events = t_events[]
i_callback_user_command = 'USER_COMMAND'
i_callback_pf_status_set = 'SET_PF_STATUS' <<<<<< ADD THIS
tables
t_outtab = mglistoutput.
ibrahim -
How to create user defined button in alv report
how to create user defined button in alv report
thnks in advance.Hi,
U can define it the the PF-STATUS ( Menu for ALV ).
For that u have to define it in the EVENTCAT.
form z_eventcat using p_i_eventcat type slis_t_event.
data: i_event type slis_alv_event.
call function 'REUSE_ALV_EVENTS_GET'
exporting
i_list_type = 0
importing
et_events = p_i_eventcat
exceptions
list_type_wrong = 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.
endif.
clear i_event.
read table p_i_eventcat with key name = slis_ev_top_of_page into
i_event.
if sy-subrc = 0.
move 'TOP_OF_PAGE' to i_event-form.
append i_event to p_i_eventcat.
endif.
read table p_i_eventcat with key name = slis_ev_pf_status_set into i_event.
if sy-subrc = 0.
move 'SET_PF_STATUS' to i_event-form.
append i_event to p_i_eventcat.
endif.
clear i_event.
read table p_i_eventcat into i_event with key name = slis_ev_user_command .
if sy-subrc = 0.
move 'USER_COMMAND' to i_event-form.
append i_event to p_i_eventcat.
endif.
And in the DISPLAY
call function 'REUSE_ALV_GRID_DISPLAY'
exporting
i_callback_program = v_progname
i_callback_pf_status_set = 'SET_PF_STATUS'
i_callback_user_command = 'USER_COMMAND'
i_callback_top_of_page = 'TOP_OF_PAGE'
i_grid_title = v_gridtitle
i_save = 'A'
is_layout = i_layout
it_fieldcat = i_fieldcat[]
it_sort = i_sortinfo
it_events = i_eventcat
IMPORTING
E_EXIT_CAUSED_BY_CALLER =
ES_EXIT_CAUSED_BY_USER =
tables
t_outtab = it_final
exceptions
program_error = 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.
endif.
*MENU SETTINGS.
form set_pf_status using rt_extab type slis_t_extab.
set pf-status 'ALV_MENU'.
endform. "SET_PF_STATUS
endform. " Z_EVENTCAT
Now double click on ALV MENU nad u can create a button in the application bar.
Regards,
Pritha. -
HI ALL
JUST WANT TO KNOW CAN WE HANDLE USER DEFINED EVENTS BY SETTING USER DEFINED PF -STATUS IN ALV
FOR EG :
call function 'REUSE_ALV_LIST_DISPLAY'
exporting
i_callback_program = gd_repid
I_CALLBACK_PF_STATUS_SET = K_STATUS
I_CALLBACK_PF_STATUS_SET = 'ZTEST1'
i_callback_top_of_page = 'TOP-OF-PAGE' "see FORM
i_callback_u ser_command = 'USER_COMMAND'
I_CALLBACK_USER_COMMAND = K_USER_COMMAND
IS_LAYOUT = GD_LAYOUT
IT_SPECIAL_GROUPS = KR_SP_GROUP
i_grid_title = outtext
is_layout = gd_layout
it_fieldcat = fieldcatalog[]
it_special_groups = gd_tabgroup
IT_EVENTS = GT_XEVENTS
i_save = 'X'
IS_VARIANT = K_VARIANT
IT_EVENTS = KR_EVENTS[]
is_variant = z_template
tables
t_outtab = it_ekko
exceptions
program_error = 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.
endif.
endform. " DISPLAY_ALV_REPORT
I HAVE MY OWN PF-STATUS IN WHICH I HAVE CREATED 1 BUTTON WHEN I GET THE OUT PUT AND CLICK ON THAT BUTTON THAN IT GOES TO STANDARD PROGRAM ....I WANT WHEN IT CLICK ON THAT BUTTON IT GOES TO MY Z PROGRAM HOW CAN I DO THAT ...
IF POSSIBLE PLZ PROVIDE CODE OR SOME EXAMPLE .
THANKS
TARANU can have button on application toolbar.
You just have to use the new pf status in your report program.
You should copy the 'STANDARD' GUI status from program SAPLKKBL using transaction SE90 >Programming SubObjects> Gui Status.
Execute this transaction to get to next screen. select status using checkbox. click on GUI Status --> Copy.
Enter your Z program name and the name you what for this status - you can keep it as 'STANDARD' to be simple.
Then you can edit the new status to add or delete buttons. This will also bring in the standard SAP ALV functionality.
Have a look at below code for using the new status.
TYPE-POOLS: slis.
DATA: i_qmel LIKE qmel OCCURS 0.
data v_repid type repid.
SELECT * FROM qmel INTO TABLE i_qmel.
v_repid = sy-repid.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_CALLBACK_PROGRAM = v_repid
<b>I_CALLBACK_PF_STATUS_SET = 'SET_PF_STATUS'</b>
I_CALLBACK_USER_COMMAND = 'USER_COMMAND'
i_structure_name = 'QMEL'
TABLES
t_outtab = i_qmel
EXCEPTIONS
program_error = 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.
ENDIF.
<b>form set_pf_status using rt_extab type slis_t_extab.
set pf-status 'TEST'.
endform.</b>
FORM user_command USING ucomm LIKE sy-ucomm
selfield TYPE slis_selfield.
data lv_ucomm type sy-ucomm.
lv_ucomm
= sy-ucomm.
CASE lv_ucomm.
WHEN 'BUTTON'. "Double Click line Item
**Write ur functinality here
endcase.
endform.
Also have a look at below links.
http://www.sap-basis-abap.com/abap/add-button-to-alv-toolbar-with-reuse-alv-list-display.htm
ALV report
I hope it helps.
Best Regards,
Vibha
*Please mark all the helpful answers -
Problem with ALV and user defined selection screen. please help!
Hi Experts,
I have program which has a user defined selection screen 9001. On executing the selection screen i call a ALV using resuse_alv_grid function module.
What problem I am facing is that when I press back button from ALV page it goes to the se38 editor instead of selection screen.
How to resolve this?
Thanks
GopalHi,
This might be due to LEAVE TO TRANSACTION statement. You might be running the program from SE38. Try to run the program using Z-TCode assigned to it.
Thanks and Regards,
Bharat Kumar Reddy.V
Message was edited by: Bharat Reddy V -
ALV view : Problem with user defined views
Dear Experts,
We are facing a problem pertaining to user defined views for a ALV table that we have in SAP eRecruiting application in webdynpro ABAP. The problem is as follows.
There is a candidate application ABC & only ONE person can edit this at a time.In this application ABC there is a ALV table.
If the user clicks on this application & navigates to the ALV,this ABC application is in normal/edit mode(no one else has opened this ). So, the user can make changes in ABC. In the ALV, he can click on the 'settings 'button and save the STANDARD view as his own user defined view(by adding or removing columns).
If the user opens the application ABC in display mode(implying that someone else has alraedy opened ABC for editing), when i navigate to the same ALV,the user CANNOT see the views which were saved in the edit mode.Only the standard view is displayed. The user however has the option to again freshly save a view.
The views created by a user for this ALV should be seen irrespective of the application being opened in normal or display mode.
To add to the confusion, this problem is occuring only in some systems & not in others. There is atleast one system where the views are displayed correctly to the user.
On debugging, the table wdy_conf_user has config ids as different where the user views are stored separately for display & edit mode.
In systems where the user views are displayed correctly, the config id is one & the same ensuring that the user can see all his views irrespective of the mode of the application.
Any thoughts on how we can rectify this?
sorry for the long & tedious explanation
Thanks in advance,
SowmyaSee
michaels> select xmlquery('declare function local:test_function($namecmp as xs:string?, $inputtype as xs:string?) as xs:string?
return {$inputtype}
local:test_function("1","2")' returning content) o from dual
Error at line 5
ORA-19114: error during parsing the XQuery expression:
LPX-00801: XQuery syntax error at '{'
3 return {$inputtype}
- ^
michaels> select xmlquery('declare function local:test_function($namecmp as xs:string?, $inputtype as xs:string?) as xs:string?
$inputtype
local:test_function("1","2")' returning content) o from dual
O
2
1 row selected. -
ALV with user-defined buttons on toolbar in wd abap
Hi All,
I have to create an alv with user defined buttons in wd abap on its toolbar.Could any one tell me in detail about it or provide me with any tutorial based on it.
Thanking you all in advance.DATA: LR_CMP_USAGE TYPE REF TO IF_WD_COMPONENT_USAGE.
DATA: LR_INTF_ALV TYPE REF TO IWCI_SALV_WD_TABLE.
LR_CMP_USAGE = WD_THIS->WD_CPUSE_ALV( ).
IF LR_CMP_USAGE->HAS_ACTIVE_COMPONENT( ) EQ ABAP_FALSE.
LR_CMP_USAGE->CREATE_COMPONENT( ).
ENDIF.
LR_INTF_ALV = WD_THIS->WD_CPIFC_ALV( ).
WD_THIS->M_MODEL = LR_INTF_ALV->GET_MODEL( ).
DATA: LR_FUNCTION TYPE REF TO CL_SALV_WD_FUNCTION.
LR_FUNCTION =
WD_THIS->M_MODEL->IF_SALV_WD_FUNCTION_SETTINGS~CREATE_FUNCTION(
ID = 'ISSUE' ).
DATA: LR_BUTTON TYPE REF TO CL_SALV_WD_FE_BUTTON.
CREATE OBJECT LR_BUTTON.
LR_BUTTON->SET_TEXT( 'Issue/Receive' ).
LR_FUNCTION->SET_EDITOR( LR_BUTTON ).
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/101df93f-4b5c-2910-14aa-9eb0338c2110
Abhi -
Dear Dina,
Is it possible to have user defined Project statues in the system like failure/Success like this any??
pls guide me thanks a lot n advanceHi
Go to Setup menu > Projects > Project Statuses
You can inquiry existing statuses and create user defined new ones.
Dina -
Hi all ,
my requirement is to calculate an user defined subtotal in ALV .
thanks
senthilHi senthil,
This is ALV list display or Grid display. if it is list display then you can use the following event SLIS_EV_AFTER_LINE_OUTPUT and write the subtotal using write statement simply... but this method should only be used in justified cases because it costs a lot of performance.
Maybe you are looking for
-
Bug: Multiple Struts modules and DataPages
There is a bug with multiple struts config files, and the "DataAction" Struts/UIX component. for example: New DataAction, UIX file is at ...app.../portal/Login.uix. The DataAction shows "/Login.uix". In that form, I get an awful "404" error that has
-
Adding photos from photo album to my computer
How do I transfer my photo (after editing) to my computer Veena
-
Images Won't Appear in Simple Program
I am working on a small game project and I can't get Java to draw images to the screen. I started developing on a mac, and the code worked there. I switched to my new PC, and now everything in the program executes, but the images just don't show up.
-
I'm seeing two "Lightroom 5″ under the apps tab in creative cloud.
I'm seeing two "Lightroom 5″ under the apps tab in creative cloud. Both having the same name unlike Photoshop CC and Photoshop CC (2014). The only difference being that one has an "Update" box next to it while the other has "Up to date". So is one of
-
Mac Mini 2014 4k display 60Hz max resolution
Hello, I can read in the infos for the new iMac 2014 that is possible to use 2 x 27" Apple Displays over thunderbolt. My question is, what is the max resolution what you can use with one Display. Is it possible to use a Mac Mini with a LG 34UC97 wi