At User command - enhancement for FBL1N
Good day,
For our requirement, we have modified the Vendor Line Item display report (Tcode FBL1N) to include another field. Now we need enhance this further. When the user clicks on this additional field, a customer specific functionality needs to be called (not the FI document).
We checked the BADIs/ User exits for FBL1N. There are several menu enhancements. But no specific enhancement for the
'at user command' action, called when this field is clicked. We would like to know if anyone of you have implemented this before.
Appreciate your help,
Liz.
Hi,
I tried in my system and it allows me to create enhancement in FI_ITEMS_DISPLAY. Take the following steps.
Go to Se37 and press display for function module. Press SHIFT+F4. Go to edit--> enhancement operation->show implicit enhancements.
It will bring a line at start and end of function module. In the end before endfunction right click with curson on line and click create implementation. Choose declaration and name of implementation and code there.
I believe you are on ECC.
Let me know in case you need any help.
Nabheet
Similar Messages
-
USER COMMAND CODE for the ICON "Back"
Hello All,
I wanted to know if there is any command code for the user-command icon "back" that i can use while programming.
e.g. as for the icon "save" there is '&data_save' code which we can use.
I have used the code "&F03" for 'back" but it does not call the routine i have written for the same.
So if in case no other code for "Back" icon is available, what is the procedure to implement the "back" command through programming?
as when i click the icon,the code written inside the report should be executed along with the normal "back" function.
ThanksHi..
you do one thing..put /h. then click on back.At the bottom pART of the debugging screen u find
Field names section..There type sy-ucomm and press enter. The value of sy-ucomm can be seen...
Thats the value u need...Which u can use the same in case statement
and its case sensitive.chk the same.. and write it in quotes( ''). that is 'BACK' or 'F03'
Edited by: Rudra Prasanna Mohapatra on Jun 21, 2008 7:48 AM -
User exit/ enhancement for billdoc creation using external billdoc number
good day experts,
my requirement is to allow assignment of external billing document. we have no problem with sales document and outbound delivery number. but for billing document, it seems no possible without user exit. I want to know the user exit for this and if I need to request for devkey upon modifying this user exit? or just create an enhancement point?
thank you in advance!Refer to the reply from Brad.
SAP IMG documentation reads,
Number assignment
Specify a number range for number assignment. For billing documents numbers can
only be assigned internally by the SAP System. To define a common number
assignment for different billing types, you have to specify the same number range
in each case. -
User Exit/Enhancement for Customized Price Determination in VF01
Hi Experts,
User would like to change the item price (VBRP-NETWR) in VF01 using its customized logic.
Which Exit/Enhancement I should implement to to change the value of VBRP-NETWR before it is displayed out to the user?.
What I trying to do is to override the item price (VBRP-NETWR) regardless then standard SAP logic which calculated the price.
Thanks in Advanced.
Regards,
Ming Jun
Edited by: Lai MJ on Apr 13, 2010 6:15 AMHi Lai,
For your transaction below mentioned exits are available:
SDVFX001 User exit header line in delivery to accounting
SDVFX002 User exit for A/R line in transfer to accounting
SDVFX003 User exit cash clearing in transfer to accounting
SDVFX004 User exit G/L line in transfer to accounting
SDVFX005 User exit reserves in transfer to accounting
SDVFX006 User exit tax line in transfer to accounting
SDVFX007 User exit: Billing plan during transfer to Accounting
SDVFX008 User exit: Processing of transfer structures SD-FI
SDVFX009 Billing doc. processing KIDONO (payment reference number)
SDVFX010 User exit item table for the customer lines
SDVFX011 Userexit for the komkcv- and kompcv-structures
V05I0001 User exits for billing index
V05N0001 User Exits for Printing Billing Docs. using POR Procedure
V60A0001 Customer functions in the billing document
V60P0001 Data provision for additional fields for display in lists
V61A0001 Customer enhancement: Pricing
i think you can try using(any one) :
SDVFX005 User exit reserves in transfer to accounting
SDVFX006 User exit tax line in transfer to accounting
SDVFX010 User exit item table for the customer lines
Regards,
Tutun -
Hi,
My requirement is: When I Enter a Master Serial Number, For Ex. my master serial number is of format SXXNNNNNNNK,
*where XX is the number of Serial numbers to capture.*
*If XX = 15, i need to capture 15 serial numbers.*
*NNNNNNN is the series of the serial number beginning.*
*If NNNNNNN = 1234500, and XX = 5, the Master Serial numbers generated would be 1234500 1234501 1234502 1234503 1234504*
*(5 S/Ns should be generated).*
(S and K can be left alone).
Now When i enter the Master Serial Number SXXNNNNNNNK, and when I press enter, internally a User Exit should be triggered and generate the required number of S/Ns.
Can anyone please help me out what is the User Exit i need to use so that my requirement as mentioned above is fulfilled?
*Thanks in advance,*
*saikumar*Hi,
You can use the user exit include - MV45AFZZ and the subroutine FORM USEREXIT_NUMBER_RANGE.
Hope it helps.
Reward if it is useful.
Thanks,
Srinivas -
User command for the parameters
hi all, i have one doubt help me how to give user command (click) for parameters.
regards,
kumarHi Nareshreddy,
We can give the usercommand for the Radio buttions,
for ex: if you have two radio button in that first have 2 parameters and 2nd having 3 paratmeters.
then you have to give user command to both the the radio buttons and based on selcted radio buttion.
you can display the paramters.
syntax for the usercommand for the radio button.
PARAMETER : r_presnt RADIOBUTTON GROUP r USER-COMMAND btn DEFAULT 'X',
r_appli RADIOBUTTON GROUP r.
PARAMETERS :
p_pmc_hd TYPE rlgrap-filename LOWER CASE MODIF ID a,
p_pmc_im TYPE rlgrap-filename MODIF ID a,
p_amc_hd TYPE rlgrap-filename LOWER CASE MODIF ID b.
SELECT-OPTIONS:
so_rnghd FOR g_cnt_transactions_read NO-EXTENSION MODIF ID b.
PARAMETERS:
p_amc_im TYPE rlgrap-filename MODIF ID b.
for more info you can check in the SCN..
Thanks!! -
AT USER COMMAND is not getting triggerd
Hi Techie's
I have two fields on the selection screen
1) Name: ___________
2) Id: ___________
I have some buttons say on the Application toolbar say::
Save Delete Modify Exit
I have created these buttons in the INITIALIZATION event.
I am using AT Selection Screen OUTPUT for some logic purpose.
Later I am writing AT USER COMMAND and pressing SAVE The function code for SAVE is "SAV".
But the drama is that AT USER COMMAND is not getting triggered at all.
It goes first to Initialization--->At selection Screen OUTPUT>Then screen appears> I give the values and press the SAVE button--
again it goes to the At Selection screen OUTPUT.
Not even getting the hang of it. Please help if anybody know the story of it.
ITS SO URGENT.At user command is for list processing, you need something like this:
Pushbuttons in the Application Toolbar
In the application toolbar of the standard GUI status of the selection screen, five pushbuttons are predefined with the function codes FC01 to FC05, but are inactive by default. You can activate them during the definition of the selection screen as follows:
SELECTION-SCREEN FUNCTION KEY i.
The numbering i must be between 1 and 5. The individual function texts must be assigned to the functxt_0i components of structure sscrfields before the selection screen is called. You must declare this structure as an interface work area using the TABLES statement.
If the user chooses one of these buttons, the runtime environment triggers the AT SELECTION-SCREEN event and the function code FC0i is placed into the component ucomm of the structure sscrfields.
After the AT SELECTION-SCREEN event has been processed, the system displays the selection screen again. The only way to exit the selection screen and carry on processing the program is to choose Execute (F8). Consequently, the pushbuttons on the application toolbar are more suitable for controlling dynamic modifications of the selection screen than for controlling the program flow.
REPORT demo_sel_screen_function_key.
TABLES sscrfields.
PARAMETERS: p_carrid TYPE s_carr_id,
p_cityfr TYPE s_from_cit.
SELECTION-SCREEN: FUNCTION KEY 1,
FUNCTION KEY 2.
INITIALIZATION.
sscrfields-functxt_01 = 'LH'.
sscrfields-functxt_02 = 'UA'.
AT SELECTION-SCREEN.
CASE sscrfields-ucomm.
WHEN'FC01'.
p_carrid = 'LH'.
p_cityfr = 'Frankfurt'.
WHEN 'FC02'.
p_carrid = 'UA'.
p_cityfr = 'Chicago'.
ENDCASE.
START-OF-SELECTION.
WRITE / 'START-OF-SELECTION'.
This defines a standard selection screen with two parameters. In the application toolbar, two pushbuttons are assigned the texts LH and UA and activated.
When the user clicks one of the buttons, the AT SELECTION-SCREEN event is triggered and there the input fields are preassigned correspondingly. -
hi
can any one explain me about pf-status and user-command? what is the difference between this two and how to display icons in it.
max reward points for good answer
thanks
alkaHi alka ritu ,
Check the following websites for good documentation o n pf status and user-command
http://help.sap.com/saphelp_nw04/helpdata/en/9f/dba34635c111d1829f0000e829fbfe/content.htm
http://help.sap.com/saphelp_nw04/helpdata/en/9f/dba99935c111d1829f0000e829fbfe/content.htm
1. How to set pf-status
set pf-status ZZBILSTA.
2. How to set pf-status excluding/including single menu items
You can exclude menus by using exclude :
set pf-status ZZBILSTA excluding PST.
Note: Can also be used with include instead of exclude
3. How to set pf-status excluding/including several menu items
You have to use an internal table to store the status you want to ex- or include:
DATA:BEGIN OF I_PF_STATUS_TAB OCCURS 10,
FCODE,
END OF I_PF_STATUS_TAB.
FORM SET_PF_STATUS_POSTER.
REFRESH I_PF_STATUS_TAB. MOVE PST TO I_PF_STATUS_TAB. APPEND I_PF_STATUS_TAB. MOVE ART TO I_PF_STATUS_TAB. APPEND I_PF_STATUS_TAB. SET PF-STATUS ZZBILSTA EXCLUDING I_PF_STATUS_TAB.
ENDFORM.
4. Setting PF status to the (SAP) system default
set pf-status BASIC.
5. How to check for pf-status
AT USER-COMMAND.
CASE SY-UCOMM. WHEN ART. PERFORM STYR_ARTSKONTI. WHEN PST. PERFORM STYR_POSTER. WHEN BIL. PERFORM VIS_BILAG. ENDCASE.
6. Use of SY-PFKEY
You can use the system variable sy-pfkey to retrieve the name of the current pf status
USER-COMMAND:
If the user chooses a function code during list processing that is neither processed by the system, or PICK or PFnn, the system triggers the event AT USER-COMMAND. For this event, you must define your own GUI status for a list. To react to your own function codes in a program, you must define the following event block:
AT USER-COMMAND.
statements.
In this event block, you can use an IF or CASE structure to differentiate between the function codes. They are available in the system field sy-ucomm. There are further system fields that are filled in list events, such as sy-lsind and sy-pfkey, that allow you to make further case distinctions.
Triggering a List Event from the Program
You can trigger a list event from the program as follows:
SET USER-COMMAND fc.
This statement takes effect after the current list is completed. Before the list is displayed, the event assigned to function code fc is triggered, regardless of the dialog status you are using.
The effect is the same as when the user chooses the function. In other words, predefined list function codes are trapped and processed by the runtime environment, the function codes PICK and PFnn trigger the AT LINE-SELECTION and AT PFnnevents, and user-defined function codes trigger the AT USER-COMMAND event block.
Function code PICK triggers an event only if the cursor is located on a list line.
Using this statement in conjunction with the function codes reserved for system functions, you can call the system functions from the program. For example, you can use SET USER-COMMAND '%SC' to call the Find dialog box directly, or to position the list correctly before it is displayed.
If you use several SET USER-COMMAND statements while creating a list, the system executes only the last one.
Example of AT USER-COMMAND.
REPORT demo_list_at_user_command NO STANDARD PAGE HEADING.
START-OF-SELECTION.
WRITE: 'Basic List',
/ 'sy-lsind:', sy-lsind.
TOP-OF-PAGE.
WRITE 'Top-of-Page'.
ULINE.
TOP-OF-PAGE DURING LINE-SELECTION.
CASE sy-pfkey.
WHEN 'TEST'.
WRITE 'Self-defined GUI for Function Codes'.
ULINE.
ENDCASE.
AT LINE-SELECTION.
SET PF-STATUS 'TEST' EXCLUDING 'PICK'.
PERFORM out.
sy-lsind = sy-lsind - 1.
AT USER-COMMAND.
CASE sy-ucomm.
WHEN 'FC1'.
PERFORM out.
WRITE / 'Button FUN 1 was pressed'.
WHEN 'FC2'.
PERFORM out.
WRITE / 'Button FUN 2 was pressed'.
WHEN 'FC3'.
PERFORM out.
WRITE / 'Button FUN 3 was pressed'.
WHEN 'FC4'.
PERFORM out.
WRITE / 'Button FUN 4 was pressed'.
WHEN 'FC5'.
PERFORM out.
WRITE / 'Button FUN 5 was pressed'.
ENDCASE.
sy-lsind = sy-lsind - 1.
FORM out.
WRITE: 'Secondary List',
/ 'sy-lsind:', sy-lsind,
/ 'sy-pfkey:', sy-pfkey.
ENDFORM.
Example of AT USER-COMMAND.
REPORT demo_list_set_user_command NO STANDARD PAGE HEADING.
START-OF-SELECTION.
SET USER-COMMAND 'MYCO'.
WRITE 'Basic List'.
AT USER-COMMAND.
CASE sy-ucomm.
WHEN 'MYCO'.
WRITE 'Secondary List from USER-COMMAND,'.
WRITE: 'sy-lsind', sy-lsind.
SET USER-COMMAND 'PF05'.
ENDCASE.
AT pf05.
WRITE 'Secondary List from PF05,'.
WRITE: 'sy-lsind', sy-lsind.
SET CURSOR LINE 1.
SET USER-COMMAND 'PICK'.
AT LINE-SELECTION.
WRITE 'Secondary List from LINE-SELECTION,'.
WRITE: 'sy-lsind', sy-lsind.
SET USER-COMMAND '%SC'.
http://maxdb.sap.com/currentdoc/94/90ee41c334c717e10000000a155106/content.htm
cheers!
gyanaraj
****Pls reward points if u find this helpful -
AT USER COMMAND event in interactive reports
hi experts,
Can anyone explain me about AT USER COMMAND event with one practical ex.
thanks in advance
R.vijaiHi vijaya kumar,
If the user chooses a function code during list processing that is neither processed by the system, or PICK or PF<nn>, the system triggers the event AT USER-COMMAND. For this event, you must define your own GUI status for a list. To react to your own function codes in a program, you must define the following event block:
AT USER-COMMAND.
<statements>.
In this event block, you can use an IF or CASE structure to tell the function codes apart. They are available in the system field SY-UCOMM. There are further system fields that are filled in list events, such as SY-LSIND and SY-PFKEY, that allow you to make further case distinctions.
REPORT Test_program.
START-OF-SELECTION.
SET PF-STATUS 'TEST'.
WRITE: 'Basic list, SY-LSIND =', sy-lsind.
AT LINE-SELECTION.
WRITE: 'LINE-SELECTION, SY-LSIND =', sy-lsind.
AT USER-COMMAND.
CASE sy-ucomm.
WHEN 'TEST'.
WRITE: 'TEST, SY-LSIND =', sy-lsind.
ENDCASE.
With this code double click on 'TEST' and define your own PF status and give user command as TEST and check out this useful programe.
All the very best to you.
Regards,
Mohan Vamsi Krishna.A -
User command for checkbox in alv grid output
Hi,
Does anyone knows the user command for checkbox in alv grid display. My requirement is to have a column for checkbox in alv output. When the user checks the checkbox, a pop-up dialog box will appear. This dialog box was created in screen painter. I can't find the user command for this. Please help.
Thanks in advance.Hi,
there r two ways for creating checkbox col on the ALV grid.
1.) take an extra field in your internal table i.e
data:
checkbox type c.
loop at internal_table into wa.
checkbox.
endloop.
or
the fieldcatalog attribute
2.) wa_fcat-checkbox = 'X'.
append wa_fcat to t_fcat.
clear wa_fcat.
if itab-checkbox = 'X'.
call screen <dialogbox screen number>.
endif.
regards
ravi -
Hi Experts.
Can anyone tell me how to know the enhancement for a particular user-exit.
Rgds,
SimranHi,
If you know the User-Exit name for eg:EXIT_SAPFP50M_002, Goto SE11 and check the table MODSAPVIEW giving this (EXIT_SAPFP50M_002) in the MEMBER field, you will find the Enhacement Name in the Name filed.
But is the thing you need to know or finding an user exit for a SAP transaction..?
SK -
hello
can you please let me the know the enhancement for user exit:exit_sapliqs0_001
regards
anikHi,
these are teh enhancements that r available...u need to check each of them.
IWO10026 User check on setting status 'Do not perform'
IWO10027 User exit: Generate user-defined settlement rule
IWOC0001 Create PM/SM notification: Determine reference object
IWOC0002 PM/SM notification: Check whether status change is allo
IWOC0003 PM/SM authorization check of ref. object and planner gr
IWOC0004 Change single-level list editing PM/QM/SM ALV settings
Regards,
nagaraj -
User specific default variant for FBL1n FbL5n
Friends,
I am trying to create a variant for FBL1n report layout for specific user. Now the issue is the user has to go and select his specific variant every time he executes FBL1n. Is there any way by which we can default the specific variant for specific user.
Any help is much appreciated.Hello,
Go and change the variant selection settings in FB00. You select the relevant variant.
Regards,
Ravi -
USER COMMAND FOR INTERACTIVE ALV REPORT
Hi Frens
I am making an interactive alv report showing a cost center hierarchy. I could scuccessfully capture the first click event in the user command using '&IC1'. Now i want to capture the second click event for the third hierarchy.
When i try to do that, the program flow keeps hitting the same user command time n again. I want to put in a different code for the different click events. What is the way to achieve this?
I searched ....there is nothing like '&IC2'. It does not work.hi,
You can try this for the first click
READ TABLE IST_EVENTS INTO WA_EVENT WITH KEY NAME = 'USER_COMMAND'.
IF SY-SUBRC EQ 0.
WA_EVENT-FORM = 'USER_COMMAND'.
MODIFY IST_EVENTS FROM WA_EVENT TRANSPORTING FORM WHERE NAME = WA_EVENT-NAME.
ENDIF.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_CALLBACK_PROGRAM = G_REPID
I_CALLBACK_PF_STATUS_SET = C_PF "'SET_PF_STATUS'
I_CALLBACK_USER_COMMAND = 'USER_COMMAND'
I_CALLBACK_TOP_OF_PAGE = 'TOP_OF_PAGE'
I_GRID_TITLE = G_TITLE
IS_LAYOUT = IST_LAYOUT
IT_FIELDCAT = IST_FIELDCAT[]
IT_SORT = IST_SORT
I_SAVE = 'A'
IT_EVENTS = IST_EVENTS
IS_PRINT = IST_PRNT
IMPORTING
E_EXIT_CAUSED_BY_CALLER = G_EXIT
ES_EXIT_CAUSED_BY_USER = IST_EXIT
TABLES
T_OUTTAB = IST_FINAL "sodtl
EXCEPTIONS
PROGRAM_ERROR = 1
OTHERS = 2.
FORM USER_COMMAND USING R_UCOMM TYPE SY-UCOMM
RS_SELFIELD TYPE SLIS_SELFIELD.
your code....
ENDFORM.
for second click
READ TABLE IST_EVENTS INTO WA_EVENT WITH KEY NAME = 'USER_COMMAND1'.
IF SY-SUBRC EQ 0.
WA_EVENT-FORM = 'USER_COMMAND1'.
MODIFY IST_EVENTS FROM WA_EVENT TRANSPORTING FORM WHERE NAME = WA_EVENT-NAME.
ENDIF.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_CALLBACK_PROGRAM = G_REPID
I_CALLBACK_PF_STATUS_SET = C_PF "'SET_PF_STATUS'
I_CALLBACK_USER_COMMAND = 'USER_COMMAND1'
I_CALLBACK_TOP_OF_PAGE = 'TOP_OF_PAGE'
I_GRID_TITLE = G_TITLE
IS_LAYOUT = IST_LAYOUT
IT_FIELDCAT = IST_FIELDCAT[]
I_SAVE = 'A'
TABLES
T_OUTTAB = IST_FINAL1.
hope this solves. -
How to add user command to drop down list in output screen for OALV Report
Hi Experts,
I have created a report by using OALV.
in Output screen i have added drop down for one filed with 2 values.
when i select value from the drop down list the program should trigger and the next field should be update.
so it is possiable to add a user command for the drop down list in output screen.
if so please help me .
Regards,
RathanHI,
Check the Demo program BCALV_EDIT_06 with having the DATA_CHANGED event still you can capture the changed data. This event will help you.
or you can go for this code..
data: it_f4 type lvc_t_f4,
wa_f4 type lvc_s_f4.
wa_f4-FIELDNAME = 'CONNID'.
wa_f4-REGISTER = 'X'.
wa_f4-GETBEFORE = 'X'.
wa_f4-CHNGEAFTER = 'X'.
append wa_f4 to it_f4.
"register F4 event
CALL METHOD g_alv_grid_ref->register_f4_for_fields
EXPORTING
it_f4 = it_f4.
"Once you try to pick the value HANDLE_DATA_CHANGED event will be triggered
"Definition
methods:
handle_data_changed FOR EVENT data_changed OF cl_gui_alv_grid
IMPORTING er_data_changed e_onf4 e_onf4_before e_onf4_after,
"Implementation
METHOD handle_data_changed .
DATA: ls_mod_cells TYPE lvc_s_modi.
IF e_onf4_before = 'X'.
MESSAGE 'Data changed before F4' TYPE 'I'.
ENDIF.
IF e_onf4 = 'X'. "if event triggered by F4
MESSAGE 'Data changed on F4' TYPE 'I'.
ENDIF.
IF e_onf4_after = 'X'.
MESSAGE 'Data changed after F4' TYPE 'I'.
ENDIF.
"here you know which cell was modified
LOOP AT er_data_changed->mt_mod_cells INTO ls_mod_cells.
"just example test case, here you can implement your code for modified cells
IF ls_mod_cells-value >=5.
CALL METHOD er_data_changed->add_protocol_entry
EXPORTING
i_msgid = 'SABAPDOCU'
i_msgty = 'E'
i_msgno = '888'
i_msgv1 = 'Only numbers below 5 are possibe'
i_msgv2 = 'Please correct'
i_fieldname = ls_mod_cells-fieldname
i_row_id = ls_mod_cells-row_id.
CALL METHOD er_data_changed->modify_cell
EXPORTING
i_fieldname = ls_mod_cells-fieldname
i_row_id = ls_mod_cells-row_id
i_value = space.
ENDIF.
ENDLOOP.
ENDMETHOD. "handle_data_changed
Edited by: sum_it2 on Nov 21, 2011 10:07 AM
Maybe you are looking for
-
Two Game Center accounts on the same Apple ID?
Yesterday I got an iPhone 5c, and I transfered everything from my iPod Touch 5 to my iPhone. I gave the iPod to my little sister after I factory resetted it, and I don't know what she did, but she ended up changing my Apple ID information and passwor
-
Business rule to add or reduce a fixed percentage for the next FY
Folks I am new to business rules. I need help from the gurus. I am working on a business rule which has to do the following: - Take the values for a particular scenario and version of previous year - Add or subtract fixed % from the amount and copy t
-
I've searched this forum and have seen few people claiming to sucessfuly use curors in a select statement using TABLE function type.Can anyone provide the solution with a simple example. Thanks In Advance
-
Multiple Databases in one Business Area?
Can I put multiple databases into the same Business Area? The crux of the problem is as follows: I am migrating data from one database to another. There will be a period of dual running, whilst the products are migrated. I want to be able to write re
-
About Error 1311, help to fix it
I am new here and I havent a glue and couldnt find a glue on how to post a problem I have with the adobe reader, I am at my wits end with it and have tryed everything you all have written about this error 1311. When I go to try to delete it out of my