Program-function pool
i have program rsrfcrfc it calls function pool SAPLCRFC
where are they linked
i want that cos i have created zrsrfcrfc
and sapzcrfc
but could find where i could link these both z objects
Function-Pool is nothing but a abap program where you can define Function Modules...
When you call a function module from a function group that has not already been loaded in an internal session, an additional program group is created and into which the function group to which the function module belongs is loaded. The additional program group, along with its data, exists for the rest of the time of the internal session.
For this reason function groups must begin with a function pool statement.
You can execute it normally as a report program.
Regards,
Pavan
Similar Messages
-
Subscreen selection screen for function pool program
Hi,
I have a requirement wherein i need to make the parameter field flexible( meaning can exclude, include values etc). Same function as select-options. The parameter was created in a dialog progmming.
The problem here is that i am using function pool. I have tried to use subscreen but it is only applicable on report program. Is anyone knows if this is possible. Or is there any way to make the field as select-option without using call subscreen?
Please help!
Thanks in advance!Hi,
No need to create separate Fields ,only create as parameter.
for your Reference check below code.
DATA : lv_title TYPE sy-title,
ls_description TYPE rsfldesc,
lt_selopt TYPE STANDARD TABLE OF rsdsselopt.
PARAMETER : p_field TYPE ausp-atwrt .
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_field.
lv_title = 'TEST'.
ls_description-type = 'C'.
ls_description-length = '30'.
ls_description-olength = '30'.
CALL FUNCTION 'COMPLEX_SELECTIONS_DIALOG'
EXPORTING
title = lv_title
description = ls_description
help_field = 'AUSP-ATWRT'
TABLES
range = lt_selopt
EXCEPTIONS
no_range_tab = 1
cancelled = 2
internal_error = 3
invalid_fieldname = 4
OTHERS = 5.
IF sy-subrc NE 2.
MESSAGE ID sy-msgid TYPE 'S' NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF. -
Hi folks,
I am trying to modify one screen in SAPLWOSE_GR_ENTRY_DLG (function-pool) to my requirement, and need to know how to do assign them to transaction code.
Thanks,
UmaHi Uma,
unfortunately I'm not able to run transaction WSTED, since it cannot be lauched from the SAPGUI, and I have no authorization to run transactions from the web browser.
Nevertheless, if you take a glance at the definition of transaction WSTED (thru tx SE93), you'll see that WSTED runs program SAPLWOSE_DOGR with dynpro 0100.
From your last answer I can see that you must modify dynpro 0230. Now how do you want the transaction to run?
- If as the standard behaviour, you could copy module-pool SAPLWOSE_DOGR to a (say) ZSAPLWOSE_DOGR, copy all the dynpros, and then modify screen 0230.
- If you wish to start with screen 0230, just create a Z transaction which calls module-pool SAPLWOSE_DOGR and dynpro 0230.
- If you want the standard transaction WSTED to have your changes (not recommended, it's altering SAP's standards), just change dynpro 0230 of module-pool SAPLWOSE_DOGR. Then when you run transaction WSTED it will show your changes.
Sorry if I didn't understand exactly your requirements. Please let me know.
Kind regards,
Alvaro -
hi all,
i am using submit statement in Z program and calling standard program of SM37, but problem is that it is going for dump and saying that we cant use submit for function-pool.
can anyone please tell me that how can i submit? can i call this by using call transaction? actually i have to pass selection screen parameters also from my Z program and have to skip standard selection screen.
plz help.
regards.saurabh srivastava,
There are few things regarding your query, which I need to clarify
<li>Submit statements can be used to call Report programs (Type 1 means executable). So program for SM37 transaction is SAPLBTCH which means you can not use SUBMIT statement. SAPLBTCH is module pool program. You can not use Selection-screen statement for module pool program.
<li>Call transaction can be used to call either report programs or module programs. Which means if transaction is assigned to them, we can use. As I said before program is module pool program. You can still use below statement.
CALL TRANSACTION 'SM37' and SKIP FIRST SCREEN.
<li>If you want to use AND SKIP FIRST SCREEN statement , need to follow the below conditions
"1.For the initial dynpro, in the Screen Painter the own dynpro number must not be specified as the next screen number.
"2.All mandatory input fields of the initial dynpro must be filled completely and with the correct values by the SPA/GPA parameters
<li>Please press F1 help on * and SKIP FIRST SCREEN* statement to see how to use.
Thanks
Venkat.O -
Submit program for function pool
Dear Experts,
i am using submit program for a standard report
submit SAPLRHPA_REPORTING
with APPSELECT_HISTO eq 'X'
and return.
it's going to dump how to use function pool programs in submit statements.
You attempted to start the ABAP/4 program "SAPLRHPA_REPORTING" with SUBMIT, but
attributes specify this program as type "F" instead of "1". You can
only start programs of type 1 with SUBMIT.
Thanks and Regards,
Thirukumaran. RHi
As per my knoweldge i think you cant submit the fuction pool using by submit.
Alternate way is call the function module which is within the function pool .
Or if you want to execute a particular routine within a function pool you can use as below
PERFORM Routine_name(saplrhpa_reporting)
USING parameters.
Hope this answer helps you
Cheers.
J. -
New Function Pool Program Question?
I am new to these processes.......If I copy a Function Pool Include to a new one, and create a new Function Group to link it to, thus I assume a new Function Pool SAPLZXXX program will will be automatically created, I am trying to determine how, or where config?, is done to link it (the new Function Pool/SAPLZXXX) to its process?
Any input will help.....Thank-You.Hi,
When you create a Function group under a Function pool, then inside of that Function group main program there will be some includes
· LfgrpTOP. This contains the FUNCTION-POOL statement (equivalent for a function group of the REPORT or PROGRAMstatement) and global data declarations for the entire function group.
· LfgrpUXX. This contains further INCLUDEstatements for the include programs LfgrpU01, LfgrpU02,... These includes contain the actual function modules.
· The include programs LfgrpF01, LfgrpF02,... can contain the coding of subroutines that can be called with internal subroutine calls from all function modules of the group.
Regards
Sudheer -
Finding number of lines in a program/function module
Hi Expets,
I would like to know is there any way to find the number of code lines in a ABAP program/function module.
Additionally, can i extend this to a package such that the utility will find the number of codelines in all the programs/function modules/include programs in that package.
Any hints regarding the same would be appreciated.
Regards,
Ramanath1. First using Read report to load the source code to your internal table.
2. Using SCAN statement to do analysis about the source code. pls refer to the sap keyword help about "SCAN".
Syntax Diagram
SCAN
Note
This statement is for internal use only.
It cannot be used in application programs.
Variants:
1. SCAN ABAP-SOURCE itab1 ...TOKENS INTO itab2
...STATEMENTS INTO itab3.
2. SCAN AND CHECK ABAP-SOURCE itab1 ...RESULT INTO itab2.
Variant 1
SCAN ABAP-SOURCE itab1 ...TOKENS INTO itab2
...STATEMENTS INTO itab3.
Parts marked with " ..." are interchangeable
Extras:
1. ... FROM n1
2. ... TO n2
3. ... KEYWORDS FROM itab4
4. ... LEVELS INTO itab5
5. ... STRUCTURES INTO itab6
6. ... OVERFLOW INTO c1
7. ... WITH ANALYSIS
8. ... WITH COMMENTS
9. ... WITH INCLUDES [IMPLEMENTATIONS FROM itab]
10. ... WITH TYPE-POOLS
11. ... WITH LIST TOKENIZATION
12. ... PRESERVING IDENTIFIER ESCAPING
13. ... WITHOUT TRMAC
14. ... [INCLUDE] PROGRAM FROM c2
15. ... INCLUDE INTO c3
16. ... MESSAGE INTO c4
17. ... WORD INTO c5
18. ... LINE INTO n3
19. ... OFFSET INTO n4
20. ... WITH EXPLICIT ENHANCEMENTS [IMPLEMENTATIONS FROM itab]
21. ... FRAME PROGRAM FROM c2
22. ... ENHANCEMENTS INTO itab -
Calling a Function Pool inside a Class
Hi,
I want to call a Function Pool inside a Class Method. I am getting an Error that 'Report or Program Statement already exists' when I call the function pool in the method. can anybody help me on how to call a Function Pool inside a class method.Hello Krish
Based on your error description I assume that you have tried to "insert" the function pool program (e.g. function group ZFUNC -> SAPLZFUNC) into your class.
You cannot do that. The explanation for the error message is a following:
- The class contains already a program statement (CLASS-POOL). If there is somewhere in the class an additional program statement (e.g. FUNCTION-POOL) you will get the error.
In addition, you cannot "call" a function pool. Instead you can always call the function modules of your function group.
Regards
Uwe -
Function Pool & Function Group
Hi Abapers,
I need some information regarding the function group & function pool are client dependant or independant ?
And where we can check it ?
Thanks
NaniHi,
Function Pool and Function Group are one and the same thing.
Just when we view the Program for the Function Group it shows as Function Pool. When we view the Function group associated with Function Module, it displays Function group.
This can be viewed using SE37--> Goto --> Function Groups --> Display/Create/Change
The Program can be viwed using SE38.
Juts concatenate SAPL before the Function Group name and view it in SE38.
Regards
Himanshu -
Hi,
Had some questions, would appreciate if somebody could help answer.
1) If I want to do a BDC on TCode T1 and if BDC is successful on T1 then do a BDC on Tcode T2 (all in the same program), Can we do a BDC using session method on multiple transactions in one session?
2) Can you call a screen from a function pool?
Thanks in advance.
MickHi Venkat,
I do not have a real life scenario, but this question came to mind when I was trying something.
But hypothetically consider a scenario where I create Purchase Orders using BDC and then if the BDC is successful then immediately do another BDC for Goods Receipt. This could also be part of some cleanup exercise where I want to do BDC's on 2 TCodes, the 2nd one only if the 1st one is successful.
Regards,
Mick -
Difference between a programe&function module in R/3 & BW
Hi Gurus
i would like to know differenece between programe and function module in R/3
and BW, so can some one give me a brief idea about it cheers thanks .....Hi,
Function modules are ABAP routines that are administered in a central function library. They apply across applications and are available throughout the system. You must assign function modules to a function pool that is called a function group. A function group is nothing but a container for the function modules. Now create a function group and then a function module.
it is a kind of standrad program where u can use it in differnt local programes .
take an example standrad function module "REUSE_ALV_CHECKBOX_SET" suppose u want to create a checkbox in output screen u dont need to write a program for that u can use above mentioned function module in ur programe.
hope this information helps u
Regards,
Gurudatt Bellary -
Function pool relation to Function group
Hi friends,
Could you please clarify for me how the 2 are related? I can understand function group but not sure what is function pool and how it relates to function group and function module.
I have searched the online help but its not clear to me. Please give me simpler explanations.
Thanks
SriHi Sri - When you interact with a function group you are using an interface which uses the ABAP code contained in a function pool. A function group will always be in only one function pool and a function pool will always have only one function group. The function pool is the parent program of the function group. Each function module is an ABAP include in the parent program. Likewise when you interact with the function module you are using an interface that uses the ABAP include.
When you debug into a function module you will always see the main program as the function pool and the source code is the ABAP include of the function module because that is the code that is being executed. Usually SAPL prefixes the function group to create the name of the function pool.
Hope this helps.
Andy -
Why most of SAP Standard transactions are written in function pools
Hi Forum Experts,
Why most of SAP Standard transactions are written in function pools instead of a normal module pool program? ( In the case of Standard tcode function pools, it is a collection of a large number of funciton modules, includes for forms used by function modules, and screens. Why is it so? ).
Quick response will be appriciated.
Thanks in advance.
Regards,
Harikrishna Indugu.because these functino pools contains so many function mudules and these function modules are used in other transactions also...
thats why....
reward points if useful.... -
Hi,
I have a requirement, to call the standard transaction skiping the initial screen ( passing the selection screen values to initial screen ) thru program ( SE38 ).
So if i applied for Call Transaction, there is no parameter ID for the input of strandard Tcode.
So, how can i call the standard transaction skipping the initial screen with passing the values. If i use the SUBMIT statement it is giving the error "Function Pool cannot use in SUBMIT statement".
Remember that, once i click back button on the second screen, it should come to selection screen of Z program only.
Thanks & Regards,
BaluCall transaction 'MD04' with bdc_data mode 'E'.
-
Hi All,
As per some new requirement I've copied one standard function pool into my own function pool.when I'm calling one subroutine defined in this fuction pool through a user exit , it's not behaving the same way as when the same subroutine is called defined in the standard function pool.
While calling the subrouting using the copied function pool, the vaules are not getting passed and it's taking initial values.
Any help would be greatly appreciated.
Thanks.
Alok VarmaSanjay,
I've copied all the includes in the Function pool into the new Function pool. The subroutine which I'm using is defined in one of those includes which I've already copied. I'm calling one subroutine defined in one include LL03AF9J externally in the user exit include program.I'changed the earlier code for calling this subroutine to
PERFORM LAGERPLATZFINDUNG_1(SAPLZF05) USING L_SAV_NLTYP
I_LTAP-NLBER
I_T331
I_LTAP-VSOLM
E_NLPLA
L_HLP_PLPOS.
earlier this code was
PERFORM LAGERPLATZFINDUNG_1(SAPLL03A) USING L_SAV_NLTYP
I_LTAP-NLBER
I_T331
I_LTAP-VSOLM
E_NLPLA
L_HLP_PLPOS.
Any clue on this ?
Thanks
Alok
Maybe you are looking for
-
Why was I able to redeem my ITunes card and have a balance that is shown next to my email address as an available balance to purchase ITunes for my IPod, but when I try to purchase any songs/albums, I am directed to the credit card/billing informatio
-
Smart Object sharpening in CR from PS via LR - not sticking
Ok, here is what I am attempting to do. I have 2 images in lightroom. They are the same subject (landscape) taken with 2 different exposures. Exposure 1 is for the foreground, which was in shadow. The second exposure is for the middle ground and the
-
Auction Outbid Notices specify wrong timezone
Hello, We have set our server time to UTC. We also set following two system properties and restarted Java server: system.default.timezone=UTC system.master_timezone=UTC However we are still getting Auction Outbid Notices which specify wrong timezone
-
Hi All, Which version of SAP B1 2007 is supported in Thailand? Which add-ons are avaliable for Thailand version of SAP B1 2007? Regards, Abhishek
-
I am looking at getting Windows Vista Ultimate for my Macbook Pro I just got, and I was wondering which bit-version I should get. Will both the 32-bit and 64-bit versions work with Boot Camp? If they both do, would one would be better than the other?