To pass the values in repetitive structures any function module
hi all,
Is there any function module to pass the values in repetitive structures like infotype 0041(Date spcification). I heard there is a function module, so any of you can tell that function module.
thanks,
sekhar.
Hi Chandra,
If your question is to find a date for a given dar value in IT 0041 then this is the sol:
Yes there is a function Module for IT0041, HR_ECM_READ_IT0041_DATE_TYPE
eg:
INFOTYPES: p0041.
DATA: lv_msg TYPE REF TO if_hrpa_message_handler,
lv_date TYPE D.
GET pernr.
CLEAR: lv_date.
CALL FUNCTION 'HR_ECM_READ_IT0041_DATE_TYPE'
EXPORTING
datar = 'U2' " specify the value of the dar value, for which u have to find date
p0041 = p0041
message_handler = lv_msg
IMPORTING
date = lv_date.
For the dar value U2, lv_date will have the corresponding date.
Hope this will clear your doubt.
Thanks,
Kishore
Similar Messages
-
How to pass multi value selection parameter to SAP Function Module?
Hi ,
Anyone know how to pass CR multi value parameter - array to SAP Function module ?
eg multi selection of customer in CR
and then pass to Function module
in SAP FM, the SQL select these customer only
How should the import parameter / table of SAP Function module designed?
and how should CR pass the data to SAP FM
thx
JohnMoved to Integration Kit forum
-
Parameter passing by value or by reference in function module
hi everybody:
Im a beginner for abap.
Below description is described in online help.
In function module, the CALL FUNCTION statement can pass import, export, and changing parameters either by value or by reference. Table parameters are always transferred by reference.
I understand parameters passing by value means values carried by parameters are transferred, but I do not understand what is "by reference".
Please kindly give me a explanation.
Regards.
Andyhi,
Function modules are modular units with interfaces. The interface can contain the following elements:
Import parameters are parameters passed to the function module. In general, these are assigned
standard ABAP Dictionary types. Import parameters can also be characterized as optional.
Export parameters are passed from the function module to the calling program. Export parameters
are always optional and for that reason do not need to be accepted by the calling program.
Changing parameters are passed to the function module and can be changed by it. The result is
returned to the calling program after the function module has executed.
Exceptions are used to intercept errors. If an error triggers an exception in a function module, the
function module stops. You can assign exceptions to numbers in the calling program, which sets the
system field SY-SUBRC to that value. This return code can then be handled by the program.
By reference Passes a pointer to the original memory location. Very efficient
By value Allocates a new memory location for use within the subroutine. The memory is freed when the subroutine ends. Prevents changes to passed variable
By value and result Similar to pass by value, but the contents of the new memory is copied back into the original memory before returning. Allows changes and allows a rollback
When you pass a parameter by reference, new memory is not allocated for the value. Instead, a pointer to the original memory location is passed. All references to the parameter are references to the original memory location. Changes to the variable within the subroutine update the original memory location immediately.
1 report ztx1804.
2 data f1 value 'A'.
3
4 perform s1 using f1.
5 write / f1.
6
7 form s1 using p1.
8 p1 = 'X'.
9 endform.
The code in Listing produces the following output:
X
Hope this helps, Do reward. -
Job scheduling(passing the values to the child program)
when i'm trying to schedule a background job(using job_open job_submit and job_close) i'm passing the values of the selection screen(parent program) to my child program using set parameter id. And trying to get the values using get parameter id in the cild program.
But the values of the parent program are not being passed to the child program what may be the cause for it?rathan,
Why con't you use
SUBMIT... [VIA SELECTION-SCREEN]
[USING SELECTION-SET <var>]
[WITH <sel> <criterion>]
[WITH FREE SELECTIONS <freesel>]
[WITH SELECTION-TABLE <rspar>].
When you start an executable program, the standard selection screen normally appears, containing the selection criteria and parameters of both the logical database connected to the program and of the program itself (see Direct Execution - Reports). When you start an executable program using SUBMIT, there are various additions that you can use to fill the input fields on the selection screen:
SUBMIT... [VIA SELECTION-SCREEN]
[USING SELECTION-SET <var>]
[WITH <sel> <criterion>]
[WITH FREE SELECTIONS <freesel>]
[WITH SELECTION-TABLE <rspar>].
These options have the following effects:
VIA SELECTION-SCREEN
The selection screen of the called executable program (report) appears. If you transfer values to the program using one or more of the other options, the corresponding input fields in the selections screen are filled. The user can change these values. By default, the system does not display a selection screen after SUBMIT.
USING SELECTION-SET <var>
This option tells the system to start the called program with the variant <var>.
WITH <sel> <criterion>
Use this option to fill individual elements <sel> of the selection screen (selection tables and parameters). Use one of the elements <criterion>:
<op> <f> [SIGN <s>], for single value selection
If <sel> is a selection criterion, use <op> to fill the OPTION field, <f> to fill the LOW field, and <s> to fill the SIGN field of the selection table <sel> in the called program.
If <sel> is a parameter, you can use any operator for <op>. The parameter <sel> is always filled with <f>.
[NOT] BETWEEN <f1> AND <f2> [SIGN <s>], for interval selection
<f1> is transferred into the LOW field, <f2> into the HIGH field, and <s> into the SIGN field of the selection table <sel> in the called program. If you omit the NOT option, the system places the value BT into the OPTION field; if you use NOT, the system fills OPTION with NB.
IN <seltab>, transferring a selection table
This addition fills the selection table <sel> in the called program with the values of the table <seltab> in the calling program. Table <seltab> must have the structure of a selection table. Use the RANGES statement to create selection tables.
WITH FREE SELECTION <freesel>, user dialog for dynamic selections
To use this option, the called program must be connected to a logical database that supports dynamic selections. In the calling program, use the function modules FREE_SELECTIONS_INIT and FREE_SELECTIONS_DIALOG. They allow the user to enter dynamic selections on a selection screen. One export parameter of these function modules has structure RSDS_TEXPR from the RSDS type group. Transfer the values of this export parameter by means of the internal table <freesel> of the same structure to the called report.
WITH SELECTION-TABLE <rspar>, dynamic transfer of values
You need an internal table <rspar> with the Dictionary structure RSPARAMS. The table then consists of the following six fields:
SELNAME (type C, length 8) for the name of the selection criterion or parameter
KIND (type C, length 1) for the selection type (S for selection criterion, P for parameter)
SIGN, OPTION, LOW, HIGH as in a normal selection table, except that LOW and HIGH both have type C and length 45.
This table can be filled dynamically in the calling program with all of the required values for the selection screen of the called program. If the name of a selection criterion appears more than once, the system creates a multiple-line selection table for that criterion in the called program. If the name of a parameter appears more than once, the system uses the last value. Note that LOW and HIGH have type C, so that the system executes type conversions to the criteria of the called program. This is important for date fields, for example. Before your program is used in a live context, you should check it using the VIA SELECTION-SCREEN addition.
Except for WITH SELECTION-TABLE, you can use any of the above options several times and in any combination within a SUBMIT statement. In particular, you can use the WITH <sel> option several times for one single criterion <sel>. In the called program, the system appends the corresponding lines to the selection tables used. For parameters, it uses the last value specified. The only combination possible for the WITH SELECTION-TABLE option is USING SELECTION-SET.
If the input fields on the selection screen are linked to SPA/GPA parameters, you can also use this technique to pass values to the selection screen (see Passing Data Between Programs).
The following executable program (report) creates a selection screen containing the parameter PARAMET and the selection criterion SELECTO:
REPORT demo_program_submit_rep1.
DATA number TYPE i.
PARAMETERS paramet(14) TYPE c.
SELECT-OPTIONS selecto FOR number.
The program DEMO_PROGRAM_SUBMIT_REP1 is called by the following program using various parameters:
REPORT demo_program_submit_sel_screen NO STANDARD PAGE HEADING.
DATA: int TYPE i,
rspar TYPE TABLE OF rsparams,
wa_rspar LIKE LINE OF rspar.
RANGES seltab FOR int.
WRITE: 'Select a Selection!',
SKIP.
FORMAT HOTSPOT COLOR 5 INVERSE ON.
WRITE: 'Selection 1',
/ 'Selection 2'.
AT LINE-SELECTION.
CASE sy-lilli.
WHEN 4.
seltab-sign = 'I'. seltab-option = 'BT'.
seltab-low = 1. seltab-high = 5.
APPEND seltab.
SUBMIT demo_program_submit_rep1 VIA SELECTION-SCREEN
WITH paramet eq 'Selection 1'
WITH selecto IN seltab
WITH selecto ne 3
AND RETURN.
WHEN 5.
wa_rspar-selname = 'SELECTO'. wa_rspar-kind = 'S'.
wa_rspar-sign = 'E'. wa_rspar-option = 'BT'.
wa_rspar-low = 14. wa_rspar-high = 17.
APPEND wa_rspar TO rspar.
wa_rspar-selname = 'PARAMET'. wa_rspar-kind = 'P'.
wa_rspar-low = 'Selection 2'.
APPEND wa_rspar TO rspar.
wa_rspar-selname = 'SELECTO'. wa_rspar-kind = 'S'.
wa_rspar-sign = 'I'. wa_rspar-option = 'GT'.
wa_rspar-low = 10.
APPEND wa_rspar TO rspar.
SUBMIT demo_program_submit_rep1 VIA SELECTION-SCREEN
WITH SELECTION-TABLE rspar
AND RETURN.
ENDCASE.
Pls. reward if useful... -
How to pass the values from the Wb Dynpro Application to the SAP Backend ?
Hi All,
Good morning..,
I have scenario like:
I want to pass the values from the web dynpro appication to the SAP Back end R/3 Table. IN backend the RFC is writtn to accept the structure input from the Webdynpro.
Upto know I imported the corresponding RFC and maaped to the View.
How to proceed with the coding to save the data...
PLease suggest...
Regards and Thanks in Advance,
CSPHi Pradeep
Steps:
1. First create an instance for bapi and bind the instance to the bapi node.
Z<bapi name> zb=new Z<bapi name>();
wdContext.nodeZ<bapi name>. bind(zb);
2. Then if u have the import parameter u have to set them by using
The instance of the above bapi.
Zb.set<import parameters>;
3. If the bapi has a table parameters then the structure for the table parameters will also be imported
In the model class.
4. Set the table parameters by creating the instance for that structure and using this instance set it.
Z<Struct>itm tab=new Z<Struct>();
Tab.set<table parameters>
5. Then add the structure instance to the bapi instance.
Zb.add(Tab);
6. Then Execute the bapi after setting the import parameters.
7. If there is any export parameters, then get the values after execution.
Look at this thread for codes
Re: RFC call on click of button
Regards,
Arun -
Passing the values between two pages
hi all,
I am trying to pass the value from one page to another page. by referring the Link
http://www.youtube.com/watch?v=4eyzBiIf5MM&feature=related
I have created the code based on the demo. it is deployed without any issues. but when i press the hyperlink from the first page it is not moving to the second page.
Regards
C.KarukkuvelHi john,
My Requirement is to create a ADF page based on the Human Task with the Default payload. In that page when the user presses the empid link field, It will show all the information related to the employee id in a separate page.
so ,
1. i have created the View Object based on the Query with where clause
2. Create a bind variable for the where clause
3.Created s new page for displaying the employee details
4.drag and drop the both the pages (employee details, default page created by human task) into the adfcconfig file.
5.drag and drop the Execute with params into the adfcconfig file
6.wire it from human task page --> execute with params--> Employee details page
7.change the employee field in that human task page to a link field.
8.drag and drop the set property listener to that employee field.
Testing
Enter the input values for the Web service, logging to the BPM worklist, double click that task .it is showing the details when I press the employee id it is not navigating to the employee details page.
Thanks in advance
C.Karukkuvel -
Passing the values in Recipe PLM WEBUI
Created a new tab for Recipe via customization in PLM Web UI. But I am not able to create new fields in the screen and pass the values.
Please let me know the configuration steps and how to pass the values to PLM Web UIHi Shailesh
You will have to create 'New Selection' in either Row/Columns (wherever you wish to display the Key Figures) or you could also create a 'Restricted Key figure'.
In the First Selection / RKF.. select the ey Figure for 'No of Employee' and then select the Characteristic for the From/To Period (0I_FPER).
In the second Selection / RKF..select the Key Figure for the Amount and then select the Char for the From/To Period (0I_FPER).
If there is any other characteristic which is used for identifying the Employees that have resigned, (say for Eg. Employee Status could be 0 for resigned employee, a hypothetical case), select the char. for Employee status with the value '0' and include it in both the selections / RKFs and you will get the desired results.
Pl remember, if you select a period variable with a range (i.e. from and to values within the same variable) , then you will get only one column for 'Amount' and the value in this column will be for value for the period.
If you want Amount for From and To values to appear in two different columns , the do not select variable with a 'range'. Instead select two variables with single value , one each from From and To. (However, I am not sure if you requirement wants From and To in two different columns, although, you are saying so !!!). If you select two variable (say for eg. ZPERIOD1 and ZPERIOD2 then in your selections you will not use 0I_FPER instead the new variables).
Hope you find the answer useful.
Regards
Umesh -
Passing the values from the graph when we use Navigate to the BI Content
Hi,
The following are the problems which we are facing when navigating to the other BI report.
1)When using the “Navigate to BI content” action the values are not getting passed to the detail report from the graph. Is there any limitation or any alternative to make it work?
When I click on the Bar graph I need to pass the corresponding period and the dimension (EX: Operating Unit – Vision Services R+D) to the detail report.
2)I have tried using the “Navigate to Web page” action. I am able to pass the values but the page is getting opened in another window. I want that page to be opened in the same window so that my presentation variable values are not lost.
3)When I click on the bar graph, I am able to pass the values period and operating unit. But my presentation variable values are lost. I want to retain them.
Please help me out in achieving this scenario.
Thanks,
ChaithanyaHi,
In the column properties give the navigation to other reports from the interaction tab and make a chart with the column and in the dashboard -->edit dashboard-->in the section where the report is placed--->give 'drill in place'.
Regards
MuRam
NOTE: Please mention if this resolved your problem/still facing and close the thread. -
Passing the values from subreport to master report in JasperReports
Hi All,
I want to pass the values from subreport to master report, but my subreport is without any query.
Please help me in this regard. its urgent.
Thanks & Regards
KrisHi,
Below link may help you
http://jasperreports.sourceforge.net/tips.tricks.html#returnvalues
regards
MJ -
Passing the values to another page.
Hi all,
In the first column of the report is radio buttons
After selecting the radio button of a row and pressing the button view, has to go the next page where i can view the full details of the row.
How i should pass the values of the selected row in the view button.
In other words
How to refer the report items when pressing a button.
For eg:
If i say in URL Target like.....
javascript:redirect('f?p=&APP_ID.:3:&SESSION.:DISPLAY:NO::P3_ACC_NO:' +#id#+)
if i put #id# the value is not appearing..
Could any one please guide me ?
Thanks in advance
bye
SrikaviHello,
>> only if it is the primary key as you mentioned it is appearing.but, if i put an non-pk column it is not appearing.
I’m not sure what you mean by that. The onclick event will always set your hidden item according the any database column. In my example it’s ‘empno’, but I don’t see any reason to use any other column in the row. Anyway, the reason to use PK as the passes parameter is that with the PK you can retrieve the entire record on your next page, and use any column you need from the record.
If I misunderstood you’ please be more descriptive about the problem.
Regards,
Arie. -
Call Transaction from Program by Skipping Initial Screen & Pass the Value
Hi All,
Can anybody help me to call a transaction from my program. I do not want to display the initial screen of the transaction but that TCODE should get opened by passing the values to the parameter of the initial screen.
For Example, in my program I want to call 'SE38' and in that, my Program of Name 'ZTEST' should get opened. So I need to call Transaction SE38, but I donot want to display initial screen of that. Instead of that, I want to put the value of Program 'ZTEST' and thus my program should get opened.
SandipHello Sandip,
Since you have not made any references to Batch Processing, I shall tell you the normal way to do it. First look at the code below and execute it.
set parameter id 'DTB' field 'VBAK'.
call transaction 'SE16' and skip first screen.
There are a few things that you need to keep in mind before you use this statement:
1. All mandatory input fields of the initial dynpro must be filled completely and with the correct values by the SPA/GPA parameters.
2. For the initial dynpro, in the Screen Painter the own dynpro number must not be specified as the next screen number. However, if the next screen can be reached from the first screen by just hitting the Enter key, this will work.
The following will not work as you expect, because the next screen in the transaction cannot be reached by just hitting the Enter Key.
set parameter id 'RID' field 'ZTEST'.
call transaction 'SE38' and skip first screen.
Regards,
Anand Mandalika.
Please reward points if this helps. -
Call transaction which passing the value to T.CODE
Hello
I created zrepot in which i am calling the Standard transaction
like
call transaction 'FB03'..
In Interactive report the value which i m selecting should be pass as document no(BSEG-BELNR) and Fiscial Year & Company Code should be taken
Pls help meHi,
Is it an regular interactive report or an ALV.
If it is a regular report then use the HIDE command
to get the value of Document number and company code during line selection.
In ALV get the values in selfield structure in the user_command routine.
Regards,
Sudhir Atluru
<REMOVED BY MODERATOR>
Edited by: Alvaro Tejada Galindo on Feb 7, 2008 2:35 PM -
Help Creating A Link In An IR Report Passing The Value From A Different Col
Version 4.0.2.00.07
Hello,
I have an Interactive Report with a column that I need to create a link on but I need to pass the value of another column.
This report shows the Features of a particular Release. There is a select list for the Release that is selected and executes the report.
There is a column that indicates whether the Feature has a Commitment attached to it. If there is have that a link to another report that shows all the Commitments for that Feature by passing the FEATURE_ID which is also a column on the Feature report.
Query:
SELECT
,CASE WHEN ft.feature_id IN (SELECT cc.feature_id
FROM customer_commitments cc
WHERE ft.feature_id = cc.feature_id
) THEN 'Yes' ELSE 'No'
END "Commitment Exists"
,ft.feature_id
FROM ....If "Commitment Exists" has a 'Yes', the 'Yes' is a link that will pass the FEATURE_ID to another report that will show the Commitments for that Feature. If the "Commitment Exists" has a 'No' then no link.
I was also wondering if the Commitment report could open in a seperate window and make it modal?
I hope this is clear and someone could help me.
Please let me know if it's not clear or more information is needed.
Thanks,
JoeTo accomplish this I would build the link as part of the value. So if Yes the Yes itself would be a link, if No is simply text as today.
It would look something like this:
SELECT
,CASE WHEN ft.feature_id IN (SELECT cc.feature_id
FROM customer_commitments cc
WHERE ft.feature_id = cc.feature_id
THEN
'<a href="f?p=&APP_ID.:NEW_PAGE:&SESSION.::::Pn_FEATURE_ID:' || ft.feature_id || '">Yes</a>'
ELSE
'No'
END "Commitment Exists"
,ft.feature_id
FROM ....One problem with this approach is when you export the report (as a CSV for example). There are a few ways to handle this, one is to simply duplicate the column with clear text yes and no and set this column to be included on export and only visible on export. The other column, with the link, set it to no export.
The other option is to add another condition on the REQUEST value.
SELECT
,CASE WHEN ft.feature_id IN (SELECT cc.feature_id
FROM customer_commitments cc
WHERE ft.feature_id = cc.feature_id
THEN
decode(:REQUEST, 'CSV', 'Yes'
, '<a href="f?p=&APP_ID.:NEW_PAGE:&SESSION.::::Pn_FEATURE_ID:' || ft.feature_id || '">Yes</a>'
ELSE
'No'
END "Commitment Exists"
,ft.feature_id
FROM ....It seems that the link itself is getting replaced with a #. The link would look something like this:
'f?p=&APP_ID.:NEW_PAGE:&SESSION.::::Pn_FEATURE_ID:' || ft.feature_id
Hope this helps.
Oh and of course, in order for the link to display you need to change the Display Type to "Standard Report Column" otherwise the HTML will be escaped.
Thanks
-Jorge -
How to pass the values to stored proc using presentation variable in OBIEE
Need your help regarding in resolving an issue in OBIEE 10.1.3.4.1
There are 6 reports say ‘A’,’B’,’C’,’D’,’E’,’F’ in the same subject area.
The reports are being configured with prompts using either the repository/presentation variables.
One of the reports say ‘A’ has been configured to pass the values using presentation variables from the prompt in Advanced Tab of the report request to the stored procedure defined in the Execute Before Query section of the connection pool.
After running another report ‘B’ in the same subject area, upon visiting the report ‘A’ view display error is being seen ( Please have a look below screen shot for your reference) .
Speculate the issue is around presentation variables of report ‘A’ getting initialized even before running the report.
Appreciate your earliest advise as this is a prod issue.Hi Prasad,
I got your note, you should not use Session variable syntax to call presentation variable.
you should use like @{AIC_PROJ_PLAT_SEQ_NO}
One more thing: first test the variable AIC_PROJ_PLAT_SEQ_NO value then try to pass to SP.
Hope this helps -
Unable to pass the values to stored proc using presentation variable in OBI
Hi All,
Need your help regarding in resolving an issue in OBIEE 10.1.3.4.1
There is an OBIEE requirement whereby two prompts need to be defined.
1. Textbox prompt
2. Drop-down prompt
The dropdown values should be populated using textbox prompt. So, we have used presentation variable in textbox prompt and passing the same to select query of drop-down.
Until this step, the report works just fine.
Now, the value in both textbox and drop-down needs to be passed to stored proc.
While trying to pass the values by using the presentation variable, the following error comes-up saying
Session variable has no value definition.
Note:Although the corresponding session variable has been set to default value,still the error appears.
Please advise.
Regards,
Prasad"Session variable has no value definition" I'm assuming typo error and it should be presentation variable.
Set default value for presentation variable that may work
Maybe you are looking for
-
I can't redeem a gift from 9/13/10 in itunes--don't get a code. I just set up my itunes account and downloaded a more recent gift.
-
Stand-Alone Client to Access JMS Resource without ACC
I'am having trouble to run the JMS SimpleProducer example from the JMS tutorial as a Stand-Alone application. Although its works as suggested when run inside an ACC. (The tutorial I refer to: http://java.sun.com/j2ee/1.4/docs/tutorial/doc/JMS5.html#w
-
BitmapData, get/setPixel on scaled data. Real get/setPixel exist?
Ok... I've been staring at this all day long, so the answer might be screaming at me and I just don't see it.... Summary: I need an Image to "show through" to the background, cutting through any other images that may be in it's way -- but not images
-
Unable to maintain the tab active in dynpro
Dear Experts, I have a normal screen '100' which has a tabstrip control 'TABSTRIP'. It has two tabs with two subscreens. When I do some operation in the subscreen, PAI is getting triggered and the control is coming back to the normal screen 100. I wa
-
How to Call JavaScript using SDK [CS4] - Reg.
Dear All, Here I am successfully run the javascript usig SDK [CS3] coding. But I have some slight modificate then this is not working. Please kindly help me. I'm using the SDK Code is : CS3:virtual ErrorCode RunFile(const IDFile& idFile, bool16 showE