Skip to Content
Author's profile photo Raul Mosquera Pumaricra

Calling a function module is now FM Droid

UPDATE 25/11/2010: One missing structure was added to the NUGG_Z_FMDROID_CALL_CODE_W_PATTERN_V2.nugg, thanks for the comment Andrea.

I few weeks ago, I published an app which attempts to reduce the ABAP programming time by providing the code for the Calling a function module (abap code), quickly Andrea Olivieri continued with my work and integrate it on the Call a function module in the ABAP Editor: Stop Crying – Start Laughing. =D  (many thanks for the contribution).  By the suggestion of Gregor Wolf, I upload it to the Code Xchange, where the project is called Calling a function module (abap code).

I felt I could make more improvements to the code and add some new features, so I’ve uploaded  a new version that includes:

1. Type declaration for internal tables, in case we need to declare several internal tables.

2. Form encapsulation, maybe if we need to call the function module several times.

All the code has been encapsulated in a function module (to be used in other applications or programs) in FMDroid.W.PatternV2.NUGG.rar.zip.

These are some of the improvements I have added, I hope they will be useful for you =D.

PD: the two funcionalities depend of the parameters with_types and with_form from the options, by default is always set to ‘Y’.

 

Special thanks to Andrea Olivieri, Alvaro Tejada “Blag” (for helping me with my English) and Gregor Wolf.

Assigned Tags

      7 Comments
      You must be Logged on to comment or reply to a post.
      Author's profile photo Former Member
      Former Member
      Very good concept. Though it looks a simple idea but very effective in real time scenario's.
      Many companies use different programming standards in ABAP and they can modify the code to suit the data declaration as per their norms.
      Author's profile photo Andrea Olivieri
      Andrea Olivieri
      Hi Raul,
      thank you for your great idea. 
      Now FMDroid becomes more powerful 😉

      Andrea

      Author's profile photo Vinod Kumar
      Vinod Kumar
      Hi Andrea,
      Very useful developement. One suggestion, But can't we use the Class "CL_FB_FUNCTION_UTILITY", method "METH_GET_INTERFACE" to get this information without much coding?

      Regards
      Vinod

      Author's profile photo Former Member
      Former Member
      Hi,

      I think what you started here is a very nice project.

      I am just wondering about the choice of the name for the project and the use of the Android logo on CodeX. IMHO, your project has nothing to do with Android, Google's phone OS, and therefore is pretty misleading. Moreover, I think the usage of the android logo on the codeX start page would require the proper attribution according to google, which is

      "Portions of this page are reproduced from work created and shared by Google  and used according to terms described in the Creative Commons 3.0 Attribution License."

      my 2 cents,
      anton

      Author's profile photo Former Member
      Former Member
      Hello.

      I am on version 4.7.  The following statement fails:

      data l_fbpattern   type fbpattern.

      because "fbpattern" does not exist in our system.

      Could I make a type "Zfbpattern"?  If so, what are its attributes?

      Thanks
      Bruce

      Author's profile photo Raul Mosquera Pumaricra
      Raul Mosquera Pumaricra
      Blog Post Author
      Hello Bruce, sorry for the delay, here are the fields of the structure: http://bit.ly/eAo8Bw
      Author's profile photo Former Member
      Former Member
      Raúl,

      I created the type "fbpattern" in the function groups TOP include.  The pattern works great.

      types: begin of fbpattern,
                       formal_eq_actual(1),
                       exc_wo_others(1),
                       with_try_endtry(1),
            end   of fbpattern.

      Thanks
      Bruce