‎2009 Jun 22 11:57 AM
Hi,
I have a situation. I want to pass values to selection screen of a standard report - to a field that is generated at runtime.
This screen field has a paramter id - but I have to pass more than a single value to that field - so that the report can show me the results according to the selection required.
I hope you got my point.
The Paramter id is "CRM_OBJECT_ID". This field appears in the "Other attributes" of report SAPLSPROJECT_SOLAR_DOC_EVAL_IM.
Regards,
Navdeep
‎2009 Jun 22 12:03 PM
Hi,
u can use select-options instead of parameter,here u can give value range 4 that field.
i think this is wat u r asking.
Regards,
Sneha.
‎2009 Jun 22 12:49 PM
May be I did not explain well.
I am calling a standard - report that has a select-options with parameter_ID .
I want to pass multiple values to that - standard report, from my program.
I can use ranges - OK, but how do I pass it on to the standard program - that is the question.
Regards,
Andy
‎2009 Jun 22 12:59 PM
Hi,
You can store internal table in the parameter ID and can pass at the run time, rest SAP will take care.
If parameter ID is passed, it means whole table is passes into selection-screen
-Sujatha
‎2009 Jun 22 1:06 PM
Hi,
check this SAP notes 1212323
check this link.
[https://www.sdn.sap.com/irj/scn/advancedsearch?cat=sdn_all&query=multiplevaluesusingParameterID+++&adv=false&sortby=cm_rnd_rankvalue]
hope it'll help u ans u'll get some idea.
Regards,
Sneha.
Edited by: sneha kumari on Jun 22, 2009 2:06 PM
‎2009 Jun 22 1:15 PM
Sorry but I cannot pass a table to the paramter id.
set PARAMETER ID 'CRM_OBJECT_ID' FIELD it_obj.
Compilation error.
"IT_OBJ" must be a character-type field (data type C, N, D or T).control structure introduced by "INTERFACE". by "INTERFACE". by "INTERFACE".
I solved the problem though. I am telling you in another reply how to do it.
Regards,
Navdeep
‎2009 Jun 22 1:09 PM
Hi,
Are you using submit statement to call this standard program...
like this...
ZREPORT.
....
.....
SUBMIT SAPLSPROJECT_SOLAR_DOC_EVAL_IM....
.....
.....
use SUBMIT statement in your report and pass the value.
And read about SUBMIT statement once....
‎2009 Jun 22 1:36 PM
Submit program will not work - as the field is dynamic and not in the program untill we click on
"Other Attributes"
Regards,
Navdeep
‎2009 Jun 22 1:17 PM
Hi,
I solved the problem. If you are in similar situation use -
CALL METHOD clgui_frontend_services=>clipboard_export
IMPORTING
data = it_obj_
to export the values to clipboard and then further use the BDC to put the values to the screen.
Regards,
Navdeep