Can i use wildcards in function module .

Hi All,
         I am using 3 input parameter in my function module .Can i use wildcards for one of the parameter .If so please kindly let me know the procedure.if u give sample code it will be great.
Thanks,
Veera

Hey Wayne....that helped alot. I simplified the formula a bit for this question but your answer led be to my answer. I plugged in the "isblank" function into my formula to get the state of the cell.
For general reference, this is my final formula:
=IF((ISBLANK(S2)),F2−E2,0)
It's saying "if S2 is empty then run the formula "F2-E2" else (if S2 is not empty) then print "0".
Thanks again.
Update: based on the answers, here is another way to sove my probem:
=IF(D2="",F2−E2,0)
If "D2" is blank then run "F2-E2" or else show 0.

Similar Messages

  • How to make use of SE37- Function Module & how to find out the table?

    Hi ,
    1.Could anyone help me what's this SE37-Function module is all about,How to make use of this?
    For Eg,If i want to delete a BOM permanently from the system then I have to use the Function module CM_DB_DEL_FROM_ROOT_BOM.
    But after giving the particular name what should i do?
    Please help me.
    2.How to find out the respective table for a particular field sya for T code-COGI, T code MFBF,where its values are getting populated.,Please help in this issue.
    Thanks in adavnce for spending some time
    Raj.S

    Hi Raj
    Function Modules
    Function modules are procedures that are defined in special ABAP programs only, so-called function groups, but can be called from all ABAP programs. Function groups act as containers for function modules that logically belong together. You create function groups and function modules in the ABAP Workbench using the Function Builder.
    Function modules allow you to encapsulate and reuse global functions in the SAP System. They are managed in a central function library. The SAP System contains several predefined functions modules that can be called from any ABAP program. Function modules also play an important role during updating  and in interaction between different SAP systems, or between SAP systems and remote systems through remote communications.
    Unlike subroutines, you do not define function modules in the source code of your program. Instead, you use the Function Builder. The actual ABAP interface definition remains hidden from the programmer. You can define the input parameters of a function module as optional. You can also assign default values to them. Function modules also support exception handling. This allows you to catch certain errors while the function module is running. You can test function modules without having to include them in a program using the Function Builder.
    The Function Builder  also has a release process for function modules. This ensures that incompatible changes cannot be made to any function modules that have already been released. This applies particularly to the interface. Programs that use a released function module will not cease to work if the function module is changed.
    Check this link
    http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/db988735c111d1829f0000e829fbfe/content.htm
    You can execute function module in SE37ie you can perform the activiites defined in the function module by executing it.
    By deleting BOM you mention the FM name in se37 and execute. In some function module it will ask input parameters as developed in the program , you have to give the input parameters and execute.

  • Is it necessary to use the standard function modules always?

    Hi All,
       Suppose i can retrieve the BUSINEES PARTNER ID from the table BUT000 with the help of 'BP_GUID' field through a select query statement. 
    Now is it necessary to use a standard function module to retrieve the same data. what about the performance? which is the better solution. to implement our own code or to use the function module available.
    Please someone clarify me about this issue.
    Regards,
    Sharry.

    If you'd ask the question in general it's obvious that there is no good answer as it always would depend on the circumstance. However, as you've posted your question in the performance tuning forum, let's look at your question in this context first. I think it's fairly safe to say, that in almost 100% of the cases a standard function module will not be as fast as any well implemented and custom tailored code. If in doubt, just try reading the code of the function module you want to read; most likely you will find lots of unnecessary fluff in there, often they read data that you don't even need.
    And as far as buffering is concerned, that can also be an issue. E.g. let's say you do a massive read of distinct business partners and you only need the data once for each partner. Obviously buffering is silly in this case and it might even slow down your program, because the implemented buffering is not necessarily well implemented. I've come across a few cases, where the buffer tables where standard tables with no efficient read access (so no sorted table or hash table) and once tons of data were buffered, it actually took a moment to look up if the record already was buffered (just to find it wasn't there yet).
    Now most of the times this slowdown is not an issue as the lookup is still fast compared to the (usually) prevalent database accesses with their slower IO timing. But another factor to consider is memory consumption and why buffer data in memory (and waste it), if you can't use the buffer anyway? So when I do use standard function modules, I usually try to see what they retain in global memory, to better understand if I need to call some initialization/clearing/refresh function...
    Note also that often you need to process lots of data, but don't find a standard function module for "mass access", so you need to read your object one by one. Obviously that's another good candidate for implementing your own queries, where you can process the data in packages.
    So what might be the reason to use a standard function module? Well, often it's required because the logic is so complex that it would take you too much time to implement it (not to mention that we often simply don't know all the logic that's coded in there). Another advantage is that you might get independent of the data model. E.g. for IDoc interfaces SAP switched in some release the tables where the data is stored. So if you had coded your own queries to get IDoc data, they wouldn't have worked after this particular release upgrade. The standard function on the other hand, checks both the old and new tables, so by using it you would have been fine.
    The one major caveat I'd give though is to always check whether the function module is released or at least documented to some degree. I.e. if it's not released, SAP won't support it and does not guarantee that the interface or logic stays the same. In my experience lots of functions I do want to use are not released (or documented), but I will still use them because they seem to be the best alternative in certain scenarios.
    Cheers, harald

  • Use of this function module

    hi,
    can anyone explain the use of this function module,  i coudn't find any documentation .
    This function module prints the data selected in selection screen.. but i want a breif explanation y we use this and wat for is this....
    FM_SELECTION_CRITERIA_PRINT

    Hi,
    1. Suppose the requirement is to know the parameters/select-options selected on the selection screen, on the list output (report).
    Because once we are on the report output , we wouldnt know the selection parameters made. The only way is to go back & check. Instead of going back we can use this FM to know even when we are on the o/p.
    2. Also to take a print of both the report output& selection parameters.
    Reward if useful.
    Thanks
    SMS

  • How to do data source ehancement by using "Extraction by function module"

    I have one customized datasource "ZSOURCE" in R/3, this datasource use Extraction by function module, namely one functiona
    module "ZBI_FM_EX"and Extract. struct "ZBI_EX".
    Now I want to add one field "ZNEW" from standard SAP table LIKP into extractor "ZBI_EX" and write coding in ZXRSAU01.
    Question, could I add new field "ZNEW" into Structure:"ZBI_EX"? Do I need to change anything in functional module "ZBI_FM_EX" itself?
    Many Thanks!
    rajatina.

    Hi Dear,
                  It is good to write the code in your function module i.e. ZBI_FM_EX. becuase writing the code in ZXRSAU01 include program will affect the loading performance. instead of looping the data two time (one in your FM and again in ZXRSAU01 ), you can get the same will only loop.
    Thanks
    Obaid
    Edited by: obaid shaikh on Jan 21, 2011 11:53 AM

  • Using subroutines in Function Module

    Hi , experts ,
    I want to know how to use performs in function module,
    If created subroutine must be used in all FM in  Func.Group ?
    if you have  articles about this or any information , I will be glad .
    Please help.
    Regards,
    Tatiana.

    If i am not mistaken you want to use forms in function module.
    To enable forms in function module you have to follow these steps:
    Create a Z include in your function module.
    INCLUDE ZTEST_INCLUDE.
    Inside this include you need to write your form routine which will be accessable from your function module.
    Now you can use perform statement in your funtion module.
    Thnaks & Regards,
    Lalit Mohan Gupta

  • To use SubRoutines and function modules and include

    Hellow Friends ,
    Can any body suggest me at waht situations we have to use SubRoutines and function modules and include in an abap report and also i need the standards in an abap program.

    Hi Rajesh,
    You use create subroutines within your programs for those block of codes which are used often within the scope of the development. Function modules are like global subroutines , hence any number programs which might want to use the functionality within the function module can do so.
    Creating includes is a good programming prctise, e.g. one for data declerations , one for subroutines, so that it makes the code more reader friendly and also helps in modularizing the program. Also once you put a subroutine in an include, you can use the same subroutine in other programs by referring to the include with the INCLUDE statement in your other programs.
    Hence basically they are used for :
    1. Reusability
    2. Modularization of code (make it more readable)
    Hope this is of some help.
    Regards,
    Aditya

  • Using of SXPG_COMMAND_EXECUTE Function Module.

    I am using the below Function Module
    CALL FUNCTION 'SXPG_COMMAND_EXECUTE'
        EXPORTING
          commandname                   = p_cmnd
          operatingsystem               = syst-opsys
          targetsystem                  = w_target
          stdout                        = 'X'
          stderr                        = 'X'
          terminationwait               = 'X'
        IMPORTING
          status                        = w_status
          exitcode                      = w_exitcode
        TABLES
          exec_protocol                 = t_protocol
        EXCEPTIONS
          no_permission                 = 1
          command_not_found             = 2
          parameters_too_long           = 3
          security_risk                 = 4
          wrong_check_call_interface    = 5
          program_start_error           = 6
          program_termination_error     = 7
          x_error                       = 8
          parameter_expected            = 9
          too_many_parameters           = 10
          illegal_command               = 11
          wrong_asynchronous_parameters = 12
          cant_enq_tbtco_entry          = 13
          jobcount_generation_error     = 14
          OTHERS                        = 15.
      WRITE :/ 'SY-SUBRC      =  [',  sy-subrc ,']'.
      WRITE :/ 'STATUS        =  [',  w_status ,']'.
      WRITE :/ 'EXITCODE      =  [',  w_exitcode ,']'.
      WRITE :/ 'EXEC_PROTOCOL ='.
    But By using the above function module I am getting the SY-SUBRC as equal to '1' and in the import parameters w_status getting as BLANK and T_PROTOCOL as Blank so it is raising the "Problem in executing UNIX command." in my program. Can anybody suggest how can i rectify this problem.
    Thanks in Advance.

    > no_permission = 1
    Seems like an authorization problem. Call SU53 immediatly after the failed function call and check with your security or system administrator (authorization object S_LOG_COM).
    Thomas

  • SUP use own RFC Function module

    Hello there,
    I wanted to create my own RFC Function Module to get a list of purchase orders. So I could use my FM to create a MBO in Sybase WorkSpace. But I've got a problem, whenever I want to add a new MBO and start searching for my own FM, it can't find my Function Module....
    How can I use my FM in SUP workspace ?
    greetings,
    Amintah

    Hello,
    I have basically the same Problem.
    I developed a function module to retrieve maintenance orders from the SAP System.
    Therefore I created a package and assigned it to the PM (Plant Maintenance) application component.
    Now when I connect to the SAP Server in the SUP WorkPlace, there is only one folder called "Application Components". In its subfolder "Plant Maintenance" I can't find my own function modules.
    Do I have to search somewhere else or is there anything else I have to do first?
    Thank you for your help in advance!
    Regards,
    Daniel

  • Can we use Initilization event in module pool program?

    Hi All,
    Can we use Initialization event in module pool program? If not why?
    Thanks In Advance!!!!!!!!!

    The runtime environment creates the INITIALIZATION event and calls the corresponding event block (if it has been defined in the ABAP program).
    http://help.sap.com/saphelp_nw70/helpdata/EN/fc/eb2d67358411d1829f0000e829fbfe/content.htm
    SEE THE ABOVE LINK...THINK IT WILL SOLVE ALL YOUR DOUBTS
    REGARDS
    RACHEL

  • How can I use Seeburger java functions on SAP XI's user defined functions?

    Hi All,
    As my title implies; how can I use Seeburger java functions on SAP XI's user defined functions?  I've tried searching over the net in tutorials regarding this topic but I failed to find one; can someone provide me information regarding my question? thanks very much.
    best regards,
    Mike

    Hi Mike !
    You should check your documentation about which java classes you need to reference in the "import" section of your UDF. And also deploy the java classes into the java stack or include them as a imported archive in integration repository...it should be stated in the seeburger documentation.
    What kind of functions are you trying to use?
    Regards,
    Matias.

  • *Can we call a Standard Function Module inside a Zfunction module ?*

    Can anyone please help me know whether we can call a Standard Function Module inside a Zfunction module ?
    I tried the same (No syntax error) BUT when i activate the zFunction Module it throws the error:-
    +'' REPORT/PROGRAM statement missing, or program type is INCLUDE. " +

    Yes, I got the Answer -
    We Can we call a Standard Function Module inside a Zfunction module.
    But we need to make sure that the Function Groups are activated.
    FUNCTION ZFM_TEST_NESTED_FM.
    ""Local Interface:
    *"  EXPORTING
    *"     REFERENCE(EX_CONVERT_UPPER_CASE) TYPE  STRING
    CALL FUNCTION 'TERM_TRANSLATE_TO_UPPER_CASE'
      EXPORTING
      LANGU                     = SY-LANGU
        TEXT                         = 'gaurav'
    IMPORTING
        TEXT_UC                   = EX_CONVERT_UPPER_CASE
    EXCEPTIONS
       NO_LOCALE_AVAILABLE       = 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.
    ENDFUNCTION.

  • Photoshop CC: Can't use the 3d function???

    Hello,
    I need help one this. I can't use the 3d function in photoshop cc and it gives me this error:
    http://i.imgur.com/Zn7e47d.png
    And here are my performance settings:
    http://i.imgur.com/A8rCi8J.png
    And here is the vram of my gpu:
    http://i.imgur.com/sSr5Knb.png
    And here is the paste from the system info thing:
    0bin - encrypted pastebin
    Ohh and i use windows 7 ultimate
    Anyone knows a fix for this as i can't live without
    Thanks!
    Regards,

  • TS3989 Can you use the search function in a shared photo stream? How?

    Can you use the search function in a shared photo stream? When I try to search in the shared photo stream it goes to search in my photos.

    I'm not sure there is a solution to your question, other than to not keep so many photos on your devices.  If you delete a photo from photo stream, it will delete it from all your devices.  To keep them, first save them to your camera roll (tap Edit, tap the photos, tap Share, tap Save to Camera Roll), then import them to your computer as explained here: http://support.apple.com/kb/HT4083.  However, given the number of photos you have, a much more practical solution would be to transfer them to your computer using an app like PhotoSync, which will select them all at once and transfer them over wifi.
    I'm not sure why you're seeing such a discrepancy in the amount of space taken up by your photos.  It's possible that something is corrupt given the large number of photos on your device.

  • How to get tables used by a Function Module

    Hi,
    How to know the tables used by a function module dynamically.
    Cuurently im using BAPI_MATERIAL_SAVEDATA in my report program.
    I tried FM GET_TABLES to know the tables, but could see only tables used in the report.
    Main issue in my case is when im running this update program, could observe different tables being displayed as updated in SM50(Process Overview).Want to clarify as why these tables which are not being used in my report are being displayed in SM50.
    So was doubtin weather this FM is using these displayed tables.
    Thanks in advance for u r replys.
    Regards,
    Dedeepya

    Hi Dedeepya,
    you could use a SQL Trace (tx. ST05) to list all tables affected and operations that realize. Just active the trace, execute FM, and Deactive trace. Then click in "Display trace" and check it.
    Best regards,
    Pablo

Maybe you are looking for

  • Why do my audio files constantly corrupt and slip out of sync?

    Whether using .caf or .aif (no MP3 audio), I get this strange issue were audio is randomly slipping out of sync.  If I use the slip tool to scrub the audio track, I can usually hear an audible digital hit in the file.  For example, I placed an explos

  • Re: (forte-users) HTTP request through proxy server

    Daniel - No, it does not. ;) How do you say to HTTPRequest to go through proxy? Thanks, Taras Daniel Nguyen wrote: > Hi, It works very well. I have experienced this model for a distant Forte client calling a Forte Server service Object for instance w

  • Using native sql for update

    Hello , I have a reqaust to update a db table declared "outside" our R3 db. I mennage to select the data using native sql with a connection to the db. Now i need to modify the data on the db. Is there a similliar command like "fetch next" ' for updat

  • What is my rescue email address?

    Where Can I change the email address  to where my Security Info gets sent to?

  • How to go to the last post in a discussion?

    Hi, in the ist of posts in a discussion, how can I jump to the last post or page directly? Previously I could click on the time of the last post which brought me directly there. Thanks paps.