Adding our own function to sap standard function code.

HI,
My requirement is to add a functionality to icon(import) on alv application tool bar so that the customer get a popup message after data is transfered to excel.
is that possible.
else
i want to know the procedure to pass header of my alv when i try to download using gui_download.
here the problem is i am having 362 fields in my report.
so passsing header for these many fields is immposible.
when i use gui_download i am not getting header in my excel.
i am not good at ASML_====.
Pls help me.
Any helpful ans will be rewarded.

Declare two internal tables it_header for the header and it_downloads for data.
data:begin of it_header occurs 0,
string(100),
end of it_header.
<b>Perform Insert_header.
Call Function GUI_DOWNLOAD
exporting
filename = c:xyz.xls
filetype = DAT
tables
data_tab = it_download                 " itab with data
fieldnames = it_header                  " itab with header info.
exceptions
if sy-subrc <> 0.
endif</b>.
<b>Form Insert_header.     " You can put some logic ie some loop here for    * all the fields.
it_header-string = text-001.
append it_header.Clear it_header.
it_header-string = text-002.
append it_header.Clear it_header.
it_header-string = text-003.
append it_header.Clear it_header.
it_header-string = text-004.
append it_header.Clear it_header.
Endform</b>.

Similar Messages

  • Where-Used List: Modifying SAP standard function module

    Hi,
    We have decided to modify SAP standard function module SD_SCHEDULING. But before that, we need to understand what impact this modification will have in the system. We will also estimate the risks with this modification.
    Therefore, I have taken Where-Used List for this function module. We are aware that this list is not comprehensive.
    Do you know any other way we could use to understand better what impacts this kind of modification may have? My colleagues say that this is the only way.
    Thanks in advance for your help.
    Regards,
    Jarmo Tuominen

    Hi Jarmo,
    Try this
    1). Goto Se16 and check the contents of table 'CROSS'.
    2). Enter 'F' in the first selection screen field
    3). In the NAME field enter the Function module SD_SCHEDULING and execute.
    4). The list will give you where all the FM has been used.
    Kindly note this is almost the same as doing a where used list. The where used list will only work correctly if the 'Update Navigation Index' works correctly in your system. So just to ensure the result of your where used list you can follow the above steps. This does not require the Update Navigation Index.
    Hope this helps
    Cheers
    VJ

  • Lst of all sap standard function modules???

    can anyone provide with a list of all sap standard function modules??? I am currently working in Product costing.As per my Functional specification i need to find the number of cost centers in a cost center group.we guess that this information will be available from a function modules.so can anyone provide all the function modules of sap.

    Hi,
    Check this link :
    <a href="http://www.erpgenie.com/abap/functions.htm">http://www.erpgenie.com/abap/functions.htm</a>
    -SatyaPriya

  • SAP Standard Functionality ?

    Hello PP members:
    In GAP analysis, the clients requirement is "capacity to be checked during MRP run and if sufficient capacity is there then MRP run should not create orders"
    But SAP standard functionality  MRP run always creates orders irrespective of capacity checking
    Is there any work around for this problem, If yes please let me know
    Thanks for your time & efforts
    Thanks Again,
    Suren

    Hi Suren,
    basically what MRP does it create Planned order that means it is booking hours into m/c, when you do lead time scheduling dates will be thrown to free period where no capacity is booked and if dates not matching it reschedule the planning
    Thats wat standard SAP does
    Thanks
    Bala

  • Question about SAP standard functionality related to the GL master record.

    My question is;
    Is this a SAP standard functionality to update the description ( long text or short) of a GL account (in master record) in one company code when we change the description of the same GL account in another company code which is assigned to the same chart of account?
    For example we have two company codes and both are assigned to the same chart of account and we are changing long text of one GL account in one CoCd. Should it update the long text of the same GL account in other CoCd assigned to the same chart of account? If so, then is this a standard SAP functionality or there is any setting where we can turn this functionality on or off.
    Thanks in advance for help n answer.

    Hi 
    GL accounts control takes place two leval
    1.Chart of account leval
    2.Comapany code leval
    In chart of account leval  Type/Description,Keywoard Translation,Information of Chart of Account of account tabs are controlled ,if u made any changes above tabs that should be applicable to all company codes using same chart of accounts.
    u r changing the short text,long text these are controlled by char of accounts leval this should be applicalbe to all company codes, u can't maintain company code leval type and description.

  • Is there any detail description of SAP standard function?

    HI
    I just curious about wheather any references of SAP standard function exist.
    for example. I found 'UMB_VAR_TO_FISCPER' function which is someone's abap code but I can't get any clue what that function use for.
    I only can see type description in function source code.
    Is there any references of SAP function?
    thanks.

    Go thru the below link
    <a href="http://http://www.sapdevelopment.co.uk/fmodules/fmssap.htm"></a>
    You will find Function Modules with description and with example.

  • Can we add our own menu in sap easy access screen

    can we add our own menu in sap easy access screen
    along with the existing menu items...
    ex : can i add the new menu item as help1 on that screen
    regards
       raghu

    go  to transection se43 ...ther e  u can create   ur  own menu list.. and  ur  cusomize transection to that perticular menu list.....
    You can enter the area menu in the command field like any other transaction code, also in menu exits can be filled with a area menu.
    You might play a little with S000 and S001 - when you enter them, the menu tree of easy access changes.
    Do you search for the menu exits to append your area menu into the standard menu tree?
    Message was edited by: kishan negi

  • Use Function Keys as Standard Function Keys checkbox missing

    Is there a reason the "Use Function Keys as Standard Function Keys" checkbox is missing in my Keyboard/Mouse settings?

    Just go to the Keyboard shortcuts tab and uncheck the items assigned to the function keys or assign them to different keys.

  • SAP Standard functional spec

    Hi,
    Can somebody share with me or point me to a location in this SDN web site or outside , where I can have the standard SAP functional spec template.
    I have few templates, but would liek to use standard SAP template.
    thanks
    JayaO

    HI Jaya,
    Functional Specification format will be generally decided and agreed by the client. There is no standard functional specification. And by the way what is a functional specification? It is a detailed description of your functional required to the ABAP development team.
    There is a terminology called FRICE (Forms, Reports, Interfaces,Conversions,Enhancements). Based on these five you will prepare your functional specification. Either the requirement is for forms or an interface like that.
    As you mentioned that you are having some templated. Select the one which is more descriptive take your clients approval that this is the format going to be used and go ahead.
    Hope you got it.
    Regards
    Srikanth

  • Error in the SAP standard function module 'RSDRI_INFOPROV_READ'.

    Hello Experts,
    We upgraded from 3.5 to 7,0 support pack 17 .
    After upgrade we are getting error
      with return code 11 'Others´'.
    While debugging the standard function module we found that the standard method s_r_infoprov->read is being executed with the return code = 8 (inherited_error).
    Any suggestions?
    Regards,
    Vivek

    Not sure if the parameters provided were correct,you may wish to do a sanity check
    Input Parameters:
    1. I_INFOPROV - This will hold the Name of the Info Cube from where we need the pull the data.
    2. I_T_SFC - This parameter is in the format of Internal Table which holds the Character Info Objects we need to pull from the Source Cube.
    3. I_T_SFK - This parameter is also in the format of Internal Table which holds the Key Figure Info Objects which we need to pull from the Source Cube.
    4. I_T_RANGE - This is also in the format of Internal Table which holds the Selection criteria for which we need to pull from the Source Cube u2013 For example the Company Code u2013 001 and Fiscal Year Period u2013 001/2006.
    5. I_T_REQUID u2013 Selection of cube data based on Request Id.
    6. I_SAVE_IN_TABLE u2013 In case you need to save the data in DB table
    7. I_REFERENCE_DATE u2013 This holds the current date.
    8. I_AUTHORITY_CHECK u2013 This will hold the value u2018Ru2019, which is meant for READ.
    9. I_DEBUG u2013 This is for Debugging mode and holds the default value u2018Yu2019.
    Output Parameters:
    1. E_T_DATA u2013 This Output Parameter is of internal table format, in which we can mention the output fields (For all the fields mentioned in the Input Parameter, this output parameter will hold the values).
    2. E_END_OF_DATA u2013 Once the FM is executed successfully, this output parameter will hold the value u2018Xu2019, means extraction completed successfully.
    Hope it Helps
    Chetan
    @CP..

  • Proviiding F4 function for SAP Standard filed.

    Hello Gurus ,
    Can anyone help me in providing the solution in my issue.
    The SAP Standard ID  field must be implement F4 fucntionality to search for Business partner.
    Any help is greatly appreciated and point will be Rewarded.
    Best Regards
    Shaik

    Hi..
    Have you tried enhancing the GET_V method of the std. field ?
    try this code:
    DATA: ls_map TYPE if_bsp_wd_valuehelp_f4descr=>gtype_param_mapping,
    lt_inmap TYPE if_bsp_wd_valuehelp_f4descr=>gtype_param_mapping_tab,
    lt_outmap TYPE if_bsp_wd_valuehelp_f4descr=>gtype_param_mapping_tab.
    CREATE OBJECT rv_valuehelp_descriptor
    TYPE
    cl_bsp_wd_valuehelp_f4descr
    EXPORTING
    iv_help_id = 'class_name'
    iv_help_id_kind = if_bsp_wd_valuehelp_f4descr=>help_id_kind_callback
    iv_input_mapping = lt_inmap
    iv_output_mapping = lt_outmap
    iv_trigger_submit = abap_true.
    class_name is the class that you need to create which would implement the interface method retrieve_custom_values of interface IF_BSP_WD_CUSTOM_F4_CALLBACK where you write the code for retrieving the F4 help values.This is helpful in providing customized result set.
    U can also search for std. value help views/std. search helps for BP in transaction se11 and pass it as param iv_help_id instead of classname .
    Hope this may help you...
    Thanks...

  • Adding elementry search help to SAP standard Collective Search help

    Hi,
    I had copied standard elementary search help to MAT0M to ZZ_MAT0M and added some more fields and activated to it.
    it got activated sucessfully.
    Now i have to attached the ZZ_MAT0M elementry search help to standard collective search help MAT1_A.
    How can i do that?
    can i add it directly to MAT1_A (sell --->search help <MAT1_A> changes --> in included search helpss tab using + (insert icon) )
    Thanks & regards

    I solved my problem :
    I had copied standard elementary search help to MAT0M to ZZ_MAT0M and added some more fields and copied Database View M_MAT1M to ZZ_M_MAT1M and addedd same fields and  activated both.
    both got activated sucessfully.
    Now i have to attached the ZZ_MAT0M elementry search help to standard collective search help MAT1_A and this Z-search help shd appear on the first tab.
    so I just went to collective search help MAT1_A in change mode --> click on "+" icon addedd my ZZ__ search help, save and activated it.
    If you dont really care in which tab your search help shd appear, then the best option is to use Append Search help.
    Note : if you are directly adding your search help in collective standard search help, then its better to remove hotkey form your custom elementry search help, as, if not remove will lead to warnings or make sure that you have unique hotkey in that collective search help.

  • Can we move SAP standard Function Group and Table defintion to BW

    Dear Forum,
    We are in a ‘pilot’ process of migrating SAP R/3 Custom development objects to our BW client and we have a few questions that we would like to know if possible.
    We are currently in the ‘To Be’ Blueprint Phase of migrating SAP 45B to ERP2005 as a Ramp-Up customer and we need to determine as soon as possible the feasibility of moving one particular Custom application
    from our SAP R/3 environment to BW.  This application primarily performs computational processing and does reporting of the results at the
    conclusion
    We have selected one Custom R/3 ABAP program to do a ‘pilot’ to determine the feasibility of migrating it to the BW platform. This Custom program utilizes objects from standard SAP Function Groups which are non existent in BW.  In this particular case Function groups KMS0
    (Cost Center Selection) and KAB2 (CO Reporting: General).
    Questions:
    Are we allowed to move these 2 standard SAP Function Groups to BW ? Would it alter the BW environment integrity as intended and designed by SAP?
    If we move the Function Group KMS0 and KAB2 will
    SAP support our BW environment if we decide to move them?
    Would it be considered a ‘SAP Best Practice’ to move standard SAP R/3
    objects to BW?
    Thank you in advance for your help,
    Paulo Silveira
    [email protected]

    Hi Paulo and welcome on board !
    Please don't post twice the same question...(look in the other one...)
    ..and don't forget to rewards the answers...it's THE way to say thanks here !
    Anyway, I'd suggest to close this thread to avoid to receive answers in both threads...
    Cheers,
    Roberto

  • How to fill data when call function of sap standard script form?

    Hi every experts,
    <Priority Normalized>
    In our system, when we log in 'FR', we can print purchase order in language Franch,in t_code:ME22N.  And when logging in 'EN', we can print it in language English, in ME22N. The English form is just only translated from Franch, with all same structure and frame.  The form is done by script form.
    And when logging in 'ZH', we create a new program, calling function smartform, instead of translating from EN language. Because of different structure and frame, I don't know the way to write script, so  I print puchase order by smartform, when logging in 'ZH'.
    But I have a new issue. Our MM module consultant needs me to print Chinese form if one condition, print English form in other condition.
    So I have no idea to solve it. Because in my program, I get data to fill smartform and call function of smartform. And I don't know how to get data to fill script form. I only know the function name, 'OPEN_FORM' 'WRITE_FORM' 'CLOSE_FORM'.....
    If I only call the several functions, I will get only frame without no data. So who can tell me how to do????
    <Urgency downgraded>
    Edited by: Suhas Saha on Jul 26, 2011 3:34 PM
    Edited by: Vinod Kumar on Jul 26, 2011 4:09 PM

    Hi,
    Normally if we look in NACE transaction, you can see that upto five different FORMS can be assigned to a single output type . i.e. for each form there will be a seperate routine through which it gets called. But it all start from the first form only.
    so you need to write your code in the ENTRY of the first form and if it does not satisfy do not go for processing of it but just exit of that form ENTRY. so that it will take you to next form.
    hope this helps.
    Thanks,
    Venkatesh

  • Introduce error message for a particular SAP standard function

    Hi All,
    In TCode CS02 - BOM Changes, for a particular BOM usuage [say D], whenever a user clicks on Material BOM- DELETE, I would like an error message to be displayed saying that they need a Change Number.
    Could you please let me know how I go about acheiving this and in which module I have to build the code ?
    Thank you,
    Satish

    Hi,
    To find the BAdi for CS02, follow steps:
    Goto SE24 and enter CL_EXITHANDLER and click on display. Now double click on the method GET_INSTANCE. Set breakpoint on CL_EXITHANDLER=>GET_CLASS_NAME_ON_INTERFACE.
    Now run the transaction for which you want to search the Badiu2019s. Now whenever the method is called, the program goes into debugging mode. Check the value of exit_name (changing parameter),this would give the name of the Badiu2019s. Run the entire transaction and note down all the Badiu2019s.
    Now we have to implement the Badi. Go to SE18 to check the definition of the Badi and SE19 to implement the Badi. Enter the name of the Badi in the create implementation section (if you are creating a new implementation u2013 Radiobutton Classic Badi) and click on create implementation. Now enter the name of the implementation. Double click on the method name and add the code for the implementation.
    Now, you need to check the parameter inside the BADI and figure out as per your requirement.
    Use break-points (break <user_name>) and execute the transaction to check the flow and find the BAdi exectued when user click DELETE button.
    Hope this helps you.
    Regards,
    Tarun

Maybe you are looking for