Regarding changing parameters
hi experts,
cud u plz send me your own small coding which let me about the functionality of changing parameters.....thnx in advance....
plz dnt copy and paste it from net.......
Hi,
CHANGING parameters are input and output parameters. When the function module is called, a suitable actual parameter must be specified for every non-optional input or output parameter. When the function module is called, the content of the actual parameter is passed to the input/output parameter, and when the function module is completed, the content of the input/output parameter is passed to the actual parameter. TABLES parameters are table parameters. Table parameters are obsolete CHANGING parameters that are typed as standard tables with a header line. If an internal table without a header line or a table body is passed as an actual parameter to a formal parameter of this type, an empty local header line is generated in the function module. If an internal table with a header line is used as an actual parameter, both the table body and the header line are passed to the function module. Pass by value is not possible in formal parameters defined using TABLES. Formal parameters defined with TABLES can be replaced by formal parameters defined with CHANGING. A local work area can be created for the internal table in the function module by using the addition LIKE LINE OF itab of the DATA statement.
Exceptions
The exception of a function module are defined on the Exceptions tab page in the Function Builder. Here you can select exception classes to define whether class-based exceptions are declared or non-class-based exception are defined. Class-based exceptions are represented in the above syntax by RAISING, and non-class-based exceptions are represented by EXCEPTIONS.
The addition RAISING is used to declare class-based exceptions that can be propagated from the function module to the caller. Exceptions in the categories CX_STATIC_CHECK and CX_DYNAMIC_CHECK must be explicitly declared, otherwise a propagation can lead to an interface violation. A violation of the interface leads to the treatable exception CX_SY_NO_HANDLER. Exceptions of the category CX_NO_CHECK are implicitly always declared. The declaration of exceptions of the category CX_STATIC_CHECK is statically checked in the syntax check. For exceptions of the category CX_DYNAMIC_CHECK, the check is not performed until runtime. In a function module in which class-based exceptions are declared with the RAISING addition, the statement CATCH SYSTEM-EXCEPTIONS cannot be used. Instead, the relevant treatable exceptions should be handled in a TRY control structure.
The addition EXCEPTIONS is used to define a list of non-class-based exceptions that can be triggered in the function module using the statements RAISE or MESSAGE RAISING. Exceptions defined in this way - as with formal parameters - are bound to the function module and cannot be propagated. If an exception of this type is triggered in a function module, and no return value has been assigned to it with the homonymous addition EXCEPTIONS of the CALL FUNCTION statement when the call was made, this leads to a runtime error.
Note
For new developments after release 6.10, SAP recommends that you work with class-based exceptions that are independent of the function module.
RFC is a technology which is used to access a functions (Modules) from
the remote systems.
If a function module is set as remote enabled which can be access from
the remote system via RFC.Eg: U can access the Remote enabled function modules in ur VB,Webdynpro,Java,Visual composer program.
A function module can be set as remote enabled by SE37->Go to ur FM->click the option Button "remote enabled".
But Normal function modules can not accessd from the remote system.
Good Example for RFC enabled function module is : BAPI(Business Application Programming Interface)
Note: All BAPIs are Remote enabled but not all remote enabled function modules are BAPI.
CALLING A FUNCTION MODULE:
1)In U ABAP Editor --> Click "Patter" ---> Selection Option Button "Call Function"
--> Write the Corresponding FM name --> Hit Enter
2)The appropriate import ,export Parameters will be displayed in ur editor
3)Pass the Values Here.
Also check these links.
http://www.geocities.com/victorav15/sapr3/abapfun.html
Check this link:
http://help.sap.com/saphelp_erp2004/helpdata/en/9f/db988735c111d1829f0000e829fbfe/content.htm
http://help.sap.com/saphelp_nw2004s/helpdata/en/ef/d94b78ebf811d295b100a0c94260a5/frameset.htm
http://help.sap.com/saphelp_nw2004s/helpdata/en/43/41341147041806e10000000a1553f6/frameset.htm
Check this link:
http://help.sap.com/saphelp_erp2004/helpdata/en/9f/db988735c111d1829f0000e829fbfe/content.htm
http://help.sap.com/saphelp_nw2004s/helpdata/en/ef/d94b78ebf811d295b100a0c94260a5/frameset.htm
http://help.sap.com/saphelp_nw2004s/helpdata/en/43/41341147041806e10000000a1553f6/frameset.htm
See the following links:
http://help.sap.com/saphelp_erp2005vp/helpdata/en/9f/db970e35c111d1829f0000e829fbfe/frameset.htm
http://help.sap.com/saphelp_erp2005vp/helpdata/en/9f/db970e35c111d1829f0000e829fbfe/frameset.htm
http://help.sap.com/saphelp_erp2005vp/helpdata/en/9f/db970e35c111d1829f0000e829fbfe/frameset.htm
http://help.sap.com/saphelp_erp2005vp/helpdata/en/9f/db970e35c111d1829f0000e829fbfe/frameset.htm
http://help.sap.com/saphelp_erp2005vp/helpdata/en/9f/db970e35c111d1829f0000e829fbfe/frameset.htm
http://help.sap.com/saphelp_nw04/helpdata/en/26/64f623fa8911d386e70000e82011b8/content.htm
REPORT demo_mod_tech_example_2 .
DATA: num TYPE i VALUE 5,
fac TYPE i VALUE 0.
PERFORM fact USING num CHANGING fac.
WRITE: / 'Factorial of', num, 'is', fac. "#EC NOTEXT
FORM fact
USING value(f_num) TYPE i
CHANGING f_fact TYPE i.
f_fact = 1.
WHILE f_num GE 1.
f_fact = f_fact * f_num.
f_num = f_num - 1.
ENDWHILE.
ENDFORM.
Regards,
Priyanka.
Similar Messages
-
Need of Changing Parameters in Function Module
Hi All,
Why we need sepearte Import and Export parameters in Function Module if the Changing Parameters
acts as both import and export parameters.
What is the use of using Changing Parametrs in Function Module.
Thanks in advance.
SundaresanHi,
EXPORT PARAMETERS: When u r passing some value to the function, and the parameter will not be changed in the function, we use export parameter. Example: u pass parameter (a : 10) to a function, even after the function has been executed, value of a will be 10 only.
IMPORT PARAMETER: When u require some value back from the function. u do not provide any initial value to the function. Example : u pass a parameter (b: <blank>) to the function, function returns the same import parameter as (b : 20).
CHANGING PARAMETER: When u pass some value to the function and that function may change that value inside function, then changing parameters are used. Example: u pass parameter ( c: 30) to the function as changing parameter and function modifies this variable and return ( c: 50).
Reward points if helpful.
Thanks & Regards
- Rishika Bawa -
NWA Job scheduler, how to change parameters?
Dear guys,
moving to AEX (java-only) the ABAP Stack is gone.
Regarding job scheduling there is no more transaction sm37, but Job scheduler within NWA to be used for scheduling jobs.
I configured a job for the predefined job definition AlertConsumerJob to get emails in case of alerts.
Doing this the questions arises how to change parameters once a job is scheduled e.g. add additional email receiver.
So far is seems you have to stop the configured job and define a NEW one from scratch by providing all job parameters. It seems not possible to adjust a job.
This is not very comfortable?
Is there an workaround / solution for this?
Best regards
JochenHello Gaurav
thanks for your reply.
It's a pity, but shows that there is still some room of improvement regarding AEX functionality (java only)
Best regards
Jochen -
Syntax for defining a variable with size in changing parameters
hi,
syntax for defining a variable with size in changing parameters in the form statement.Hi prasad,
1. one option is to type it as an data element.
eg.
form abc changing myvar type char10.
endform.
where char10 is a data element with length 10 characters.
regards,
amit m. -
Hi,
I exploring the functionality of Change parameters (Change Rule & change type) @ insp. plan header but system issues following error msg.
*'Changes to change rule and change type are not allowed
Message no. C5023"*
Can anyone tell me how to use change rule functionality & also where to view message No. in SPRO.
Ajay............Hi Ajay,
As the message itself directing you....... follow the steps.
- Create a Change Number (CC01)
- Assign this object (the inspection plan group number, you should assign all the group numbers to this Change master itself, that will be use full to use a compiled/common Change number to activate ECM for all the Inspection plans)
- Convert the ECR to ECO
- Now run QP02, enter group number and the Change number just created.
- Press enter to enter the QP02
- Now try to set the change rule at header level for the inspection plan.
Regards,
Shyamal -
Questions regarding *dump_dest parameters and fast_recovery_area
Hello,
I just installed a fresh new 11.2.0.2 Database on Solaris 10.
Everything straightforward on the parameter side!!! I tried custom install as well as general purpose template. When installing with DBCA, I set every parameters around DB Name in lowercase name.
With this, questions are popping in my mind regarding some parameters after installation.
First, %dump_dest parameters contains in path, two times the db name (ocpdb in my case):
background_dump_dest /u01/app/oracle/diag/rdbms/ocpdb/ocpdb/trace
user_dump_dest /u01/app/oracle/diag/rdbms/ocpdb/ocpdb/trace
core_dump_dest /u01/app/oracle/diag/rdbms/ocpdb/ocpdb/cdumpIs it normal to have ..../rdbms/dbname/dbname/..... as path, with dbname/dbname ??? Why?
Second, the question regarding the directory structure under fast_recovery_area (new term for flash_recovery_area). The directory structure:
oracle@enalab13:/u01/app/oracle/fast_recovery_area$ ls -l
total 2
drwxr-x--- 2 oracle oinstall 512 2010-10-28 19:53 ocpdb
drwxr----- 5 oracle oinstall 512 2010-10-29 07:44 OCPDB
oracle@enalab13:/u01/app/oracle/fast_recovery_area$ ls -l ocpdb
total 9528
-rw-r----- 1 oracle oinstall 9748480 2010-10-31 21:09 control02.ctl
oracle@enalab13:/u01/app/oracle/fast_recovery_area$ ls -l OCPDB/
total 3
drwxr----- 5 oracle oinstall 512 2010-10-31 03:48 archivelog
drwxr----- 3 oracle oinstall 512 2010-10-29 07:44 autobackup
drwxr----- 3 oracle oinstall 512 2010-10-29 07:43 backupsetWhy am I having a subdir with dbname in uppercase AND in lowercase? Should I specify dbname in uppercase at db creation to have all files under the same directory, or in lowercase? Or, is it normal?
I want to know how to do it well before reinstalling a fresh database.
Thanks
Bruno
Edited by: blavoie on Oct 31, 2010 6:18 PM
Edited by: blavoie on Oct 31, 2010 6:20 PMHi,
I just reinstalled all from scratch, everything in lowercase as well in environment variables and dbname in dbca:
oracle@enalab13:~$ echo $ORACLE_SID
ocpdbFast recovery area directories, dates prove that it's my fresh install:
oracle@enalab13:/u01/app/oracle$ ll fast_recovery_area/
total 2
drwxr-x--- 2 oracle oinstall 512 2010-11-02 11:06 ocpdb
drwxr-x--- 4 oracle oinstall 512 2010-11-02 11:24 OCPDB
oracle@enalab13:/u01/app/oracle$ ll -R fast_recovery_area/
fast_recovery_area/:
total 2
drwxr-x--- 2 oracle oinstall 512 2010-11-02 11:06 ocpdb
drwxr-x--- 4 oracle oinstall 512 2010-11-02 11:24 OCPDB
fast_recovery_area/ocpdb:
total 9528
-rw-r----- 1 oracle oinstall 9748480 2010-11-02 11:34 control02.ctl
fast_recovery_area/OCPDB:
total 2
drwxr-x--- 3 oracle oinstall 512 2010-11-02 11:24 archivelog
drwxr-x--- 2 oracle oinstall 512 2010-11-02 11:06 onlinelog
fast_recovery_area/OCPDB/archivelog:
total 1
drwxr-x--- 2 oracle oinstall 512 2010-11-02 11:24 2010_11_02
fast_recovery_area/OCPDB/archivelog/2010_11_02:
total 47032
-rw-r----- 1 oracle oinstall 48123392 2010-11-02 11:24 o1_mf_1_5_6f0c9pnh_.arc
fast_recovery_area/OCPDB/onlinelog:
total 0Some interresting output asked earlier in post:
SQL> archive log list
Database log mode Archive Mode
Automatic archival Enabled
Archive destination USE_DB_RECOVERY_FILE_DEST
Oldest online log sequence 4
Next log sequence to archive 6
Current log sequence 6
SQL> show parameter recovery
NAME TYPE VALUE
db_recovery_file_dest string /u01/app/oracle/fast_recovery_area
db_recovery_file_dest_size big integer 4032M
recovery_parallelism integer 0
SQL> show parameter control_files
NAME TYPE VALUE
control_files string /u01/app/oracle/oradata/ocpdb/control01.ctl,
/u01/app/oracle/fast_recovery_area/ocpdb/control02.ctl
SQL> show parameter instance_name
NAME TYPE VALUE
instance_name string ocpdb
SQL> show parameter db_name
NAME TYPE VALUE
db_name string ocpdb
SQL> show parameter log_archive_dest_1
NAME TYPE VALUE
log_archive_dest_1 string
log_archive_dest_10 string
log_archive_dest_11 string
log_archive_dest_12 string
log_archive_dest_13 string
log_archive_dest_14 string
log_archive_dest_15 string
log_archive_dest_16 string
log_archive_dest_17 string
log_archive_dest_18 string
log_archive_dest_19 string
SQL> show parameter %dump_dest
NAME TYPE VALUE
background_dump_dest string /u01/app/oracle/diag/rdbms/ocpdb/ocpdb/trace
core_dump_dest string /u01/app/oracle/diag/rdbms/ocpdb/ocpdb/cdump
user_dump_dest string /u01/app/oracle/diag/rdbms/ocpdb/ocpdb/traceI think, next time, I'll install everything regarding oracle SID in upper case...
Maybe it's details that I don't need to care about... I seems that something is happening bad with the management of fast_recovery_area...
Thanks
Bruno -
Blocks in standalone applications which can be double clicked for changing parameters
Can we have blocks in standalone applications which can be double clicked for changing parameters.
something like an options/configure button which opens another window and helps us to change tha parameters of that particular
block.Well, you will need to program your application that way. Maybe I am not understanding this correctly but what parameters do you want to change in your standalone application?
Adnan Zafar
Certified LabVIEW Architect
Coleman Technologies -
Regarding Changing of Namespace
Dear All,
This is regarding Changing name space of a particular ABA program to some other name space. can any body will tell me the steps and procedure to follow.
Thanks
InlayHi,
for ABAP programs I dont have any problem but what about development class how to change the namespace of development as even tables & data elements can by copied
Vinayak -
apple is not sending mail to my rescue email address so i cant proceed further regarding "changing my password or security question" ?????? help???
You are at least the second person to post the same thing today, so I don't know if there are problems with it. You clicked on the link to send reset info to your rescue email address as shown in steps 1 to 5 of the page that you posted from, and you've checked your spam folder as well as your Inbox ?
-
Whether it is possible through plsql to change parameters of the chart?
Having set constant number in these fields («Y Axis Min », «Y Axis Max», «Chart Width»,«Chart Height »,«Maximum Rows») it is possible to change parameters of the chart.
And whether it is possible to change them during performance of the program (to substitute in them the necessary plsql-variables)?A question for the HTMLDB gurus, has the limitation been fixed? I mean, can you use variables to set min/max for charts?
I am using htmldb 2.0 and I can not put anything but constant number for min/max.
btw. is there a way to use htmldb api to manually code a chart so I can set min/max dynamically like what we have in Microsoft Excel?
Thanks. -
Regarding Change document read
Hi All,
Am using Change Document read function module to find out the changed material details. i want to fetch the plant from marc to filter the records am having the only relationship i.e material to fetch the details from marc and mara,with this i can't filter because for one material four plants will be there.so am using the tabkey from that function module to fetch the plant i don't think is this a right way can anyone explain how i can get a plant.Think you query is misleading...
As per my understanding you are trying to find all changes for materials in a specific plant right????
If so below code can give you some idea:
TABLES: mara.
SELECT-OPTIONS: so_date FOR mara-laeda. " Date Criteria
PARAMETERS: p_werks TYPE werks_d obligatory. " Plant
CONSTANTS: c_tcode TYPE sytcode VALUE 'MM02'.
TYPES: BEGIN OF ty_marc,
matnr TYPE matnr,
werks TYPE werks_d,
END OF ty_marc.
DATA: i_cdocs TYPE STANDARD TABLE OF cdred, " Change Docs
wa_cdocs TYPE cdred,
i_marc TYPE STANDARD TABLE OF ty_marc, " Plant Existence
wa_marc TYPE ty_marc.
START-OF-SELECTION.
" Read Change documents
CALL FUNCTION 'CHANGEDOCUMENT_READ'
EXPORTING
date_of_change = so_date-low
objectclass = 'MATERIAL'
date_until = so_date-high
TABLES
editpos = i_cdocs
EXCEPTIONS
no_position_found = 1
wrong_access_to_archive = 2
time_zone_conversion_error = 3
OTHERS = 4.
" Delete documents where materials are not changed
DELETE i_cdocs WHERE tcode NE c_tcode.
CHECK NOT i_cdocs[] IS INITIAL.
* Check for Material existence in Plant
SELECT matnr werks INTO TABLE i_marc
FROM marc
FOR ALL ENTRIES IN i_cdocs
WHERE matnr = i_cdocs-objectid(18)
AND werks = p_werks.
LOOP AT i_cdocs INTO wa_cdocs.
READ TABLE i_marc INTO wa_marc
WITH KEY matnr = wa_cdocs-objectid.
IF sy-subrc EQ 0. " Material Defined in specified plant
" Further Processing statements
ENDIF.
ENDLOOP.
Correct me if my understanding is wrong.
Regards
Eswar -
When changing parameters in a disco workbook portlet provider refresh fail
Hi,
When changing input parameters in a discoverer workbook the automatic portlet provider refresh routine fails.
We have published a report in Discoverer portal using portlet provider.
When we change a parameter in the discoverer workbook and save it, then the automatic refresh of portlet with information about the parameters that are not recognized.
Is it so that the portlet will be invalid and due to the workbook / work sheet parameter change. ?
And the solution is then to create a new portlet? Or is it a bug?
Have someone had this kind of issue?
NOTE: We ar using Discoverer Plus 10.1.2.54.25 and the server installation is Oracle Application Server Installation Guide10g Release 2 (10.1.2)
Regards
FrodeMichael,
There are no issues with your provider.xml. Let me explain the
ideal situations where SSO feature of URL-based portlets will
work -
1. FORM based authentication :
User information is submitted to the secure application through
HTML FORM and the application as a response sends Cookies to the
client. These cookies are stored by the client will be used as
authentication tokens from then on.
URL-based portlets work in a similar fashion where in Cookies are
extracted by the provider (URLProvider) and the portlets make
use of the stored cookies while sending a request.
2. BASIC authentication :
Its a simple and less secure authentication mechanism than FORM based
authentication. User credentials are Base64 encoded and are sent
over network to the secure application.
Having said this, it is important to know if your FORUM application
relies on cookies or not.
-AMJAD. -
Regarding change document generation
Hi,
In t-code SCDO, for one object class STUE_V I have added one new table MAST and generated the same. But while I execute my t-code CS01, the same is not appearing in exporting parameters in the standard program where it is calling my generated fucntion module.
Hence it is giving dump. This is part of BOMMAT idoc change pointer creation.
Could someone shed some light on this as I am really stuck here.Hi
Have you tried generating after adding the table in the class ? This is more a generation issue. Might be the include LCSVBF30 has not got properly generated.
What I feel is if you are adding a table to a standard class then you must also change the code yourself and SAP is not changing the where used list of the update function calls.
Refer
http://www.scribd.com/doc/12627676/Logging-Using-Change-Document
http://help.sap.com/saphelp_nw04/helpdata/en/2a/fa015b493111d182b70000e829fbfe/frameset.htm
http://wiki.sdn.sap.com/wiki/display/ABAP/Change+Document
note - 0000391833 - No change documents for object dependencies change
Regards
Vijay -
Regarding change process for CRM Lease contracts
Hi Frenzzzz,
I need to create a standalone program which is used for change process for a lease contract.... The change process mainly used in my requirement is (Change of Location) & (Change of Ownership)....
I found out two function modules CRM_FS_CP_PREPARE and CRM_FS_CP_MAINTAIN which is used for change process.. I donno how to use them (I mean the mandatory parameters which needs to be passed) or is there any other way that i can acheive this functionality
Regards,
Arvish.......Hi Vijay,
have you tried to maintain the upselling product through the webUI?
This would always be my first try because COMMPR01 does not necessarily support all new features.
Settings to check in IMG:
Have you assigned a method schema to your transaction type for Provider Contracts in:
SAP Customizing Implementation Guide
--> Customer Relationship Management
--> Transactions
--> Settings for Sales Transactions
--> Product Proposals in Quotations and Orders
--> Method Schemas for Product Proposals
--> Assign Method Schema to Transaction Type
Use a method schema that is based on SAP standard schema 000018 or at least contains module CRM_MKTPR_PP_US_GL_SC_READ ("Call the Solution Configurator to determine Global Up-Selling Products").
Place to check in debugger:
Trace the call to CRM_PRODUCT_PROPOSAL_DETERMINE triggered from CL_PROVDLPR_CHANGEPRODSR_IMPL->DO_PREPARE_OUTPUT()
Hope this serves as a starting point for your analysis.
Best regards
Stefan -
Hi,
I am working on your tutorial to create a widget : everything work ! And now I would to change some parameters like the one in the search bar.
I can sort my result with the user id but i would like with an other parameter : I use the BAPI for the delivery getlist and I would like to sort by date or by ship to party...
I think i can change the parameter in this sentence :
var inputValue = components.cMainInput.getValue();
Controller.showMain_View({"IV_USERID" : inputValue});
I don't this real meaning of : IV_USERID, can i change for an other parameter?
Thank you for your help
Best Regards
BenjaminHi,
This one : [https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/c032ae0a-7d6b-2a10-14a1-cc6efb066dfc|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/c032ae0a-7d6b-2a10-14a1-cc6efb066dfc]
I think it's page 61 : when you have to "Adding Modified Search Functionality to a Widget"
Best regards
Benjamin
Maybe you are looking for
-
Can't set workarea context for unversioned container
Greetings, RON => File => Open => <Repository/All Containers/Containers> shows an unversioned application system called TEST. It is owned by REPOS_MANAGER. I want to re-assign ownership and check it in but RON won't let me do either until it knows th
-
Hi, I want to invoke the Pagesetup dialogbox with default A4 paper.Furher, is there any method that will help me retrieve the left,top,right and bottom margins that a user has selected from he page setup dialog box.... Plaese help me ASAP Thnx
-
How do I customize my background picture?
I would like to add my personal photo as my background. Anyone know how I can do this? Also I just noticed that Apple works has been Cached on my computer. Any idea of how to get it back?
-
Hi guys. We provide wireless with a couple of Flex7500 in HA Deployment. Both WLC are in LAG (10Gx2) to a Nexus 7K. Management and Redundancy-Management Interface are untagged while in N7K their subnet IP belongs to VLAN1. (I know VLAN1 is not a best
-
I installed Windows 7 Pro 64bit via Boot Camp, with a genuine product key (I got a copy free through a student programme at Uni). Everything has worked fine for months, but a few days ago Windows started trying to activate again, and now it can't, sa