Re: Creating a Interface in Class
Re: ALV standard button Click event tracing in OOP
Hi,
for functionality on standard toolbar following is the procedure.
class test definition.
Methods:
user_command FOREVENT user_command
OF cl_gui_alv_grid
IMPORTING e_ucomm,
standard_toolbar FOR EVENT toolbar
OF cl_gui_alv_grid
IMPORTING e_object e_interactive.
endclass.
class test implementation.
METHOD user_command .
PERFORM handle_user_command USING e_ucomm .
ENDMETHOD.
METHOD standard_toolbar.
PERFORM standard_toolbar USING e_object e_interactive.
ENDMETHOD.
********THIS FORM WILL MAKE AND USER ICON (PLUS) SIMILARLY YOU CAN PUT MANY ON THE TOOLBAR********
form standard_toolbar using p_e_object p_e_interactive.
DATA: wa_toolbar TYPE stb_button.
CLEAR ls_toolbar.
MOVE 'PLUS' to wa_toolbar-function.
MOVE ICON_SUM to wa_toolbar-icon.
MOVE 'ADDITION' TO wa_toolbar-text
APPEND wa_toolbar TO p_e_object->mt_toolbar.
endform.
************HERE YOU CAN PUT YOUR LOGIC FOR ADDITION ETC.
form user_command USING OK_CODE TYPE sy-ucomm. "p_e_ucomm
CASE OK_CODE.
"WHEN'PLUS'.
PERFORM PLUS.
ENDCASE .
ENDFORM.
Re: Implementing BADI MD_ADD_COL_EZPS for MD04 custom column
Hello David ,
Thanks,
I have one more question.
If I have to implement a hotspot for this same column which I added . Any idea about that ?
Regards,
Shubhendu
Re: condition to be used for numerical value processing
hi,
Use below code.Let your variable be lv_variable.
data: lv_var type p decimals 2.
lv_var = lv_variable.
Its very simple 2 line code is enough.
Re: Hi Gurus,can any please tell me how to create vertical scrollbar for normal table in webdynpro abap? I am new to webdynpro please help me
How many records are there in the internal table and how many are visible in the table?If you have set the visible row count to 5 then the scroll bar will only appear for more than 5 records i.e. 6 or more.
Re: How to activate a standard button "Call Up Report" on object oriented ALV
Please call method set_tool_bar_interactive of cl_gui_alv_grid_display.
Re: To populate Customer purchase order number in VF05
Hi
Create your field ZZBSTKD in structure FAMTV (include FAMTVZ). In VBRK you have the ID of sales order (VBRP-VBELV if I am right). So,in the include V05XZZMO a coding as this
WHEN 'VBRP'. | |
* | item |
SELECT SINGLE bstkd INTO LFAMTV-ZZBSTKD FROM vbkd WHERE vbeln = LVBRP-VBELV. |
I hope this helps you
Regards
Eduardo
PD: check performance, surely it will be expensive
Message was edited by: Eduardo Hinojosa
Re: How to activate a standard button "Call Up Report" on object oriented ALV
Check program BCALV_GRID_05.
Regards,
Frisoni
Re: Comparing input date range with VBAK table GUEBG GUEEN fileds date range
Hi Soumen,
There is function module which gives the difference of number of days. The function module is 'FIMA_DAYS_AND_MONTHS_AND_YEARS'.
This function module takes two dates, the start date and the end date.
It calculates number of days, month, and year difference.
Hope this function module will help to solve your problem..
Re: Downloading file in UTF-8 format using Function 'GUI_DOWNLOAD'
http://wiki.sdn.sap.com/wiki/display/ABAP/Download+File+in+UTF-8+encoding
The correct Unicode Codepage are
UTF-8 Encoding: 4110
UTF-16 Big Endian : 4102
UTF-16 Little Endian : 4103.
http://scn.sap.com/thread/1683149
Please check the above. Hope it helps.
Re: HR_INFOTYPE_OPERATION FM not updating infotype values
Experts,
Any Solution?
Re: Need help on HCM Process and Forms HRASR_DT
Re: g_editor->get_text_as_r3table - not working second time around
Hi,
Now i think when notes clicked, you call new screen.
try set new note in notes button user-command routine write your editor create code and set table code.
in editor screen save user-command routine, you can use get table method. I hope i can explain with my bad english.
regards.
Re: Enhancement/Exit for FB03
Hi Prameet,
FB03 is belongs to package FIDC. There are no user exits available for FIDC package.
You can findout list of BADIs being called in the FB03 transaction by keeping the breakpoint in GET_INSTANCE, GET_CLASS_NAME_BY_INTERFACE & GET_INSTANCE_FOR_SUBSCREENS methods of class CL_EXITHANDLER.
Thanks & Regards,
Venugopal M N
How to convert script to PDF then send PDF attachment to external mail
Hi,
Actually i am never working in scripts.So kindly advice me.
How to convert script(MEDRUCK) to PDF then send this PDF as a attachment to external mail.
Sample code will be more helpful for me.
Advance Thanks,
Ragav
Re: I have a module pool program, in that i have to set validation.
Hi Hemant,
Since you're validating the Service Order Number entred by user across the EBELN value of EKKO table. Follow below steps:
* Check does the service order nuber entered by user is present in EKKO table using
SELECT SINGLE EBELN statement.
* If the service order number is not present in the EKKO table, give Error message.
Code:
DATA: l_ebeln TYPE EKKO-EBELN.
if wa_data-sn1 IS NOT INITIAL.
SELECT SINGLE ebeln from ekko into l_ebeln WHERE ebeln EQ wa_data-sn1.
IF sy-subrc NE 0.
MESSAGE 'Enter Correct Serivce Order Number' TYPE 'E'.
ENDIF.
ENDIF.
Thanks & Regards,
Venugopal M N
Re: Dynamic SELECT-OPTIONS at selection screen?
Hi Romans,
I have also tried and faced the same problem.
May be we have to use CALL TRANSACTION and call the selection screen again to get rid of the problem of refreshing the selection screen.
Will let you know if find any solution.
Regards,
Santanu.
Re: HR_INFOTYPE_OPERATION FM not updating infotype values
Hi Zakir,
I am afraid the custom fields can not be directly updated from the BAPI.
May be you can try the SECONDARY_RECORD available in the exporting parameters.
Regards,
Santanu.
Re: Roles that are authorized for a Company Code
Hi Pranav,
You can get the list of roles & corresponding list of T-code asssociated with it from the AGR_TCODES table.
Following is the code which will give the list of roles & corresponding list tcodes based on the user input.
REPORT zvenu_test10.
TYPES: BEGINOF ty_roles,
agr_name TYPE agr_tcodes-agr_name, " Role
tcode TYPE agr_tcodes-tcode, " T-codes
ENDOF ty_roles.
DATA: t_roles TYPESTANDARDTABLEOF ty_roles,
x_roles TYPE ty_roles.
REFRESH: t_roles.
CLEAR: x_roles.
SELECT-OPTIONS: s_roles FOR x_roles-agr_name, " TRole Name
s_tcode FOR x_roles-tcode. " T-Code
START-OF-SELECTION.
*--Fetch the roles from AGR_ROLES
SELECT agr_name tcode FROM agr_tcodes INTOTABLE t_roles WHERE agr_name IN s_roles
AND tcode IN s_tcode.
IFNOT t_roles ISINITIAL.
LOOPAT t_roles INTO x_roles.
WRITE:/ 'T-Code : ', x_roles-tcode ,'ROLE Name : ' , x_roles-agr_name.
CLEAR: x_roles.
ENDLOOP.
ENDIF.
Thanks & Regards,
Venugopal M N
Re: How can I use hotspot click in an ALV grid?
With Pleasure ,..
All the best ,...
Regards ,
Gaja