![Abap calling subroutine from another program](https://kumkoniak.com/91.jpg)
![abap calling subroutine from another program abap calling subroutine from another program](https://3.bp.blogspot.com/-6sTiNTk9lqA/VBp85sbX-ZI/AAAAAAAAAeQ/AJfky3Urmf4/s1600/2.png)
“ImportingĭATA it_change TYPE STANDARD TABLE OF rscha. Identificador TYPE string, “char30, “char25,ĭATA it_codigo TYPE STANDARD TABLE OF ty_codigo.ĭATA it_import TYPE STANDARD TABLE OF rsimp. TYPES swbse_max_line_tab TYPE TABLE OF swbse_max_line. TYPES ty_line_tab TYPE STANDARD TABLE OF ty_line. TYPES ty_abaptxt255 TYPE STANDARD TABLE OF abaptxt255. TYPES ty_fupararef TYPE STANDARD TABLE OF sfupararef. TYPES ty_trdir TYPE STANDARD TABLE OF trdir. TYPES ty_enlfdir TYPE STANDARD TABLE OF enlfdir. TYPES ty_funct TYPE STANDARD TABLE OF funct. TYPES ty_tftit TYPE STANDARD TABLE OF tftit. TYPES ty_tfdir TYPE STANDARD TABLE OF tfdir. This is my program, which is in experimental stage n_n, my abapers friends help me with the testing, maybe if you can test it and give me feedback it helps me a lot to make more improvements.ĬONSTANTS: c_tip_import TYPE c VALUE ‘I’, That’s how I came with the idea to add variables to the corresponding parameters automatically and declare those variables. This tool gives me the possibility of assign the variables to the function parameters by myself, witch is and advantage because is flexible, but also is an disadvantage (in my opinion) because i have to assign the variables and declares too for all the parameters. The same problem of write code several times happens to me when i call modules functions or standard bapis, the workbench tool provides me the Pattern, witch generates the code for the function call.
![abap calling subroutine from another program abap calling subroutine from another program](https://3.bp.blogspot.com/-ZI_tfUjgOPU/VbXkcOMaXBI/AAAAAAAAR_U/2TkDfEm1bQs/s1600/8.png)
One posible solution is in some way automatize the code generation, and avoid type code and save time. For example, when i create a selection screen I have to type code for every parameter, is very reasonable when it’s a single screen, but imagine when are several screens, it becomes a laborious task, which consumes a lots of hours of development. I’ve been working as an SAP developer for quite some time, and there’s something I always have seen and do, and that’s write a lot of code.
![Abap calling subroutine from another program](https://kumkoniak.com/91.jpg)